@bigbinary/neeto-image-uploader-frontend 1.4.1 → 1.4.3
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/README.md +6 -21
- package/dist/index.cjs.js +1062 -922
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1063 -923
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/types.d.ts +17 -2
package/dist/index.cjs.js
CHANGED
|
@@ -9112,10 +9112,10 @@ var INFINITE_SCROLLER_SIZES = (cov_l0ywmw7at().s[7]++, [{
|
|
|
9112
9112
|
var INFINITE_SCROLLER_STYLE = (cov_l0ywmw7at().s[8]++, {
|
|
9113
9113
|
width: "100%"
|
|
9114
9114
|
});
|
|
9115
|
-
|
|
9115
|
+
(cov_l0ywmw7at().s[9]++, {
|
|
9116
9116
|
"image/*": [".png", ".jpg", ".jpeg", ".svg", ".gif"]
|
|
9117
9117
|
});
|
|
9118
|
-
|
|
9118
|
+
(cov_l0ywmw7at().s[10]++, 1048576 * 5); // 5 MB
|
|
9119
9119
|
|
|
9120
9120
|
var ASSETS_FETCH_URL = (cov_l0ywmw7at().s[11]++, IS_DEVELOPMENT_OR_HEROKU_ENV ? (cov_l0ywmw7at().b[0][0]++, "neeto_image_uploader_engine/development/fetch") : (cov_l0ywmw7at().b[0][1]++, "neeto_image_uploader_engine/assets/fetch"));
|
|
9121
9121
|
|
|
@@ -9703,6 +9703,84 @@ function _extends$1() {
|
|
|
9703
9703
|
return _extends$1.apply(this, arguments);
|
|
9704
9704
|
}
|
|
9705
9705
|
|
|
9706
|
+
function cov_21hcu7u8qb() {
|
|
9707
|
+
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/constants.js";
|
|
9708
|
+
var hash = "eb688e980df175783d8c340129a4e714f0a935ad";
|
|
9709
|
+
var global = new Function("return this")();
|
|
9710
|
+
var gcv = "__coverage__";
|
|
9711
|
+
var coverageData = {
|
|
9712
|
+
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/constants.js",
|
|
9713
|
+
statementMap: {
|
|
9714
|
+
"0": {
|
|
9715
|
+
start: {
|
|
9716
|
+
line: 1,
|
|
9717
|
+
column: 43
|
|
9718
|
+
},
|
|
9719
|
+
end: {
|
|
9720
|
+
line: 6,
|
|
9721
|
+
column: 1
|
|
9722
|
+
}
|
|
9723
|
+
},
|
|
9724
|
+
"1": {
|
|
9725
|
+
start: {
|
|
9726
|
+
line: 8,
|
|
9727
|
+
column: 38
|
|
9728
|
+
},
|
|
9729
|
+
end: {
|
|
9730
|
+
line: 8,
|
|
9731
|
+
column: 39
|
|
9732
|
+
}
|
|
9733
|
+
},
|
|
9734
|
+
"2": {
|
|
9735
|
+
start: {
|
|
9736
|
+
line: 10,
|
|
9737
|
+
column: 37
|
|
9738
|
+
},
|
|
9739
|
+
end: {
|
|
9740
|
+
line: 13,
|
|
9741
|
+
column: 1
|
|
9742
|
+
}
|
|
9743
|
+
}
|
|
9744
|
+
},
|
|
9745
|
+
fnMap: {},
|
|
9746
|
+
branchMap: {},
|
|
9747
|
+
s: {
|
|
9748
|
+
"0": 0,
|
|
9749
|
+
"1": 0,
|
|
9750
|
+
"2": 0
|
|
9751
|
+
},
|
|
9752
|
+
f: {},
|
|
9753
|
+
b: {},
|
|
9754
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9755
|
+
hash: "eb688e980df175783d8c340129a4e714f0a935ad"
|
|
9756
|
+
};
|
|
9757
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
9758
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
9759
|
+
coverage[path] = coverageData;
|
|
9760
|
+
}
|
|
9761
|
+
var actualCoverage = coverage[path];
|
|
9762
|
+
{
|
|
9763
|
+
// @ts-ignore
|
|
9764
|
+
cov_21hcu7u8qb = function () {
|
|
9765
|
+
return actualCoverage;
|
|
9766
|
+
};
|
|
9767
|
+
}
|
|
9768
|
+
return actualCoverage;
|
|
9769
|
+
}
|
|
9770
|
+
cov_21hcu7u8qb();
|
|
9771
|
+
var DEFAULT_ALLOWED_IMAGE_TYPES = (cov_21hcu7u8qb().s[0]++, {
|
|
9772
|
+
"image/png": [".png"],
|
|
9773
|
+
"image/jpg": [".jpg", ".jpeg"],
|
|
9774
|
+
"image/gif": [".gif"],
|
|
9775
|
+
"image/svg+xml": [".svg"]
|
|
9776
|
+
});
|
|
9777
|
+
var DEFAULT_MAX_IMAGE_SIZE = (cov_21hcu7u8qb().s[1]++, 5); // 5 MB
|
|
9778
|
+
|
|
9779
|
+
var DEFAULT_UPLOAD_CONFIG = (cov_21hcu7u8qb().s[2]++, {
|
|
9780
|
+
maxImageSize: DEFAULT_MAX_IMAGE_SIZE,
|
|
9781
|
+
allowedImageTypes: DEFAULT_ALLOWED_IMAGE_TYPES
|
|
9782
|
+
});
|
|
9783
|
+
|
|
9706
9784
|
function cov_1ukp3guhfu() {
|
|
9707
9785
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/apis/direct_uploads.js";
|
|
9708
9786
|
var hash = "f074c9414e4a1e062399fbde6442c0051712f20c";
|
|
@@ -11851,7 +11929,7 @@ function noop() {}
|
|
|
11851
11929
|
|
|
11852
11930
|
function cov_sedvezotl() {
|
|
11853
11931
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useUploadDropzone.js";
|
|
11854
|
-
var hash = "
|
|
11932
|
+
var hash = "8c74c0d181099d9bd8c858bdf5d7b304c157e00c";
|
|
11855
11933
|
var global = new Function("return this")();
|
|
11856
11934
|
var gcv = "__coverage__";
|
|
11857
11935
|
var coverageData = {
|
|
@@ -11863,7 +11941,7 @@ function cov_sedvezotl() {
|
|
|
11863
11941
|
column: 34
|
|
11864
11942
|
},
|
|
11865
11943
|
end: {
|
|
11866
|
-
line:
|
|
11944
|
+
line: 146,
|
|
11867
11945
|
column: 1
|
|
11868
11946
|
}
|
|
11869
11947
|
},
|
|
@@ -12143,157 +12221,177 @@ function cov_sedvezotl() {
|
|
|
12143
12221
|
column: 21
|
|
12144
12222
|
},
|
|
12145
12223
|
end: {
|
|
12146
|
-
line:
|
|
12224
|
+
line: 106,
|
|
12147
12225
|
column: 3
|
|
12148
12226
|
}
|
|
12149
12227
|
},
|
|
12150
12228
|
"29": {
|
|
12151
12229
|
start: {
|
|
12152
12230
|
line: 95,
|
|
12153
|
-
column:
|
|
12231
|
+
column: 4
|
|
12154
12232
|
},
|
|
12155
12233
|
end: {
|
|
12156
12234
|
line: 95,
|
|
12157
|
-
column:
|
|
12235
|
+
column: 28
|
|
12158
12236
|
}
|
|
12159
12237
|
},
|
|
12160
12238
|
"30": {
|
|
12161
12239
|
start: {
|
|
12162
|
-
line:
|
|
12163
|
-
column:
|
|
12240
|
+
line: 95,
|
|
12241
|
+
column: 21
|
|
12164
12242
|
},
|
|
12165
12243
|
end: {
|
|
12166
|
-
line:
|
|
12167
|
-
column:
|
|
12244
|
+
line: 95,
|
|
12245
|
+
column: 28
|
|
12168
12246
|
}
|
|
12169
12247
|
},
|
|
12170
12248
|
"31": {
|
|
12171
12249
|
start: {
|
|
12172
12250
|
line: 97,
|
|
12173
|
-
column:
|
|
12251
|
+
column: 21
|
|
12174
12252
|
},
|
|
12175
12253
|
end: {
|
|
12176
|
-
line:
|
|
12177
|
-
column:
|
|
12254
|
+
line: 97,
|
|
12255
|
+
column: 30
|
|
12178
12256
|
}
|
|
12179
12257
|
},
|
|
12180
12258
|
"32": {
|
|
12181
12259
|
start: {
|
|
12182
12260
|
line: 98,
|
|
12183
|
-
column:
|
|
12261
|
+
column: 24
|
|
12184
12262
|
},
|
|
12185
12263
|
end: {
|
|
12186
12264
|
line: 98,
|
|
12187
|
-
column:
|
|
12265
|
+
column: 44
|
|
12188
12266
|
}
|
|
12189
12267
|
},
|
|
12190
12268
|
"33": {
|
|
12191
12269
|
start: {
|
|
12192
|
-
line:
|
|
12270
|
+
line: 99,
|
|
12193
12271
|
column: 4
|
|
12194
12272
|
},
|
|
12195
12273
|
end: {
|
|
12274
|
+
line: 101,
|
|
12275
|
+
column: 7
|
|
12276
|
+
}
|
|
12277
|
+
},
|
|
12278
|
+
"34": {
|
|
12279
|
+
start: {
|
|
12280
|
+
line: 100,
|
|
12281
|
+
column: 6
|
|
12282
|
+
},
|
|
12283
|
+
end: {
|
|
12284
|
+
line: 100,
|
|
12285
|
+
column: 40
|
|
12286
|
+
}
|
|
12287
|
+
},
|
|
12288
|
+
"35": {
|
|
12289
|
+
start: {
|
|
12196
12290
|
line: 103,
|
|
12291
|
+
column: 4
|
|
12292
|
+
},
|
|
12293
|
+
end: {
|
|
12294
|
+
line: 105,
|
|
12197
12295
|
column: 50
|
|
12198
12296
|
}
|
|
12199
12297
|
},
|
|
12200
|
-
"
|
|
12298
|
+
"36": {
|
|
12201
12299
|
start: {
|
|
12202
|
-
line:
|
|
12300
|
+
line: 108,
|
|
12203
12301
|
column: 29
|
|
12204
12302
|
},
|
|
12205
12303
|
end: {
|
|
12206
|
-
line:
|
|
12304
|
+
line: 114,
|
|
12207
12305
|
column: 3
|
|
12208
12306
|
}
|
|
12209
12307
|
},
|
|
12210
|
-
"
|
|
12308
|
+
"37": {
|
|
12211
12309
|
start: {
|
|
12212
|
-
line:
|
|
12310
|
+
line: 109,
|
|
12213
12311
|
column: 4
|
|
12214
12312
|
},
|
|
12215
12313
|
end: {
|
|
12216
|
-
line:
|
|
12314
|
+
line: 113,
|
|
12217
12315
|
column: 6
|
|
12218
12316
|
}
|
|
12219
12317
|
},
|
|
12220
|
-
"
|
|
12318
|
+
"38": {
|
|
12221
12319
|
start: {
|
|
12222
|
-
line:
|
|
12320
|
+
line: 110,
|
|
12223
12321
|
column: 6
|
|
12224
12322
|
},
|
|
12225
12323
|
end: {
|
|
12226
|
-
line:
|
|
12324
|
+
line: 112,
|
|
12227
12325
|
column: 7
|
|
12228
12326
|
}
|
|
12229
12327
|
},
|
|
12230
|
-
"
|
|
12328
|
+
"39": {
|
|
12231
12329
|
start: {
|
|
12232
|
-
line:
|
|
12330
|
+
line: 111,
|
|
12233
12331
|
column: 8
|
|
12234
12332
|
},
|
|
12235
12333
|
end: {
|
|
12236
|
-
line:
|
|
12334
|
+
line: 111,
|
|
12237
12335
|
column: 71
|
|
12238
12336
|
}
|
|
12239
12337
|
},
|
|
12240
|
-
"
|
|
12338
|
+
"40": {
|
|
12241
12339
|
start: {
|
|
12242
|
-
line:
|
|
12340
|
+
line: 122,
|
|
12243
12341
|
column: 6
|
|
12244
12342
|
},
|
|
12245
12343
|
end: {
|
|
12246
|
-
line:
|
|
12344
|
+
line: 131,
|
|
12247
12345
|
column: 4
|
|
12248
12346
|
}
|
|
12249
12347
|
},
|
|
12250
|
-
"
|
|
12348
|
+
"41": {
|
|
12251
12349
|
start: {
|
|
12252
|
-
line:
|
|
12350
|
+
line: 126,
|
|
12253
12351
|
column: 19
|
|
12254
12352
|
},
|
|
12255
12353
|
end: {
|
|
12256
|
-
line:
|
|
12354
|
+
line: 126,
|
|
12257
12355
|
column: 35
|
|
12258
12356
|
}
|
|
12259
12357
|
},
|
|
12260
|
-
"
|
|
12358
|
+
"42": {
|
|
12261
12359
|
start: {
|
|
12262
|
-
line:
|
|
12360
|
+
line: 127,
|
|
12263
12361
|
column: 6
|
|
12264
12362
|
},
|
|
12265
12363
|
end: {
|
|
12266
|
-
line:
|
|
12364
|
+
line: 127,
|
|
12267
12365
|
column: 23
|
|
12268
12366
|
}
|
|
12269
12367
|
},
|
|
12270
|
-
"
|
|
12368
|
+
"43": {
|
|
12271
12369
|
start: {
|
|
12272
|
-
line:
|
|
12370
|
+
line: 133,
|
|
12273
12371
|
column: 2
|
|
12274
12372
|
},
|
|
12275
12373
|
end: {
|
|
12276
|
-
line:
|
|
12374
|
+
line: 135,
|
|
12277
12375
|
column: 23
|
|
12278
12376
|
}
|
|
12279
12377
|
},
|
|
12280
|
-
"
|
|
12378
|
+
"44": {
|
|
12281
12379
|
start: {
|
|
12282
|
-
line:
|
|
12380
|
+
line: 134,
|
|
12283
12381
|
column: 4
|
|
12284
12382
|
},
|
|
12285
12383
|
end: {
|
|
12286
|
-
line:
|
|
12384
|
+
line: 134,
|
|
12287
12385
|
column: 41
|
|
12288
12386
|
}
|
|
12289
12387
|
},
|
|
12290
|
-
"
|
|
12388
|
+
"45": {
|
|
12291
12389
|
start: {
|
|
12292
|
-
line:
|
|
12390
|
+
line: 137,
|
|
12293
12391
|
column: 2
|
|
12294
12392
|
},
|
|
12295
12393
|
end: {
|
|
12296
|
-
line:
|
|
12394
|
+
line: 145,
|
|
12297
12395
|
column: 4
|
|
12298
12396
|
}
|
|
12299
12397
|
}
|
|
@@ -12317,7 +12415,7 @@ function cov_sedvezotl() {
|
|
|
12317
12415
|
column: 6
|
|
12318
12416
|
},
|
|
12319
12417
|
end: {
|
|
12320
|
-
line:
|
|
12418
|
+
line: 146,
|
|
12321
12419
|
column: 1
|
|
12322
12420
|
}
|
|
12323
12421
|
},
|
|
@@ -12437,7 +12535,7 @@ function cov_sedvezotl() {
|
|
|
12437
12535
|
column: 35
|
|
12438
12536
|
},
|
|
12439
12537
|
end: {
|
|
12440
|
-
line:
|
|
12538
|
+
line: 106,
|
|
12441
12539
|
column: 3
|
|
12442
12540
|
}
|
|
12443
12541
|
},
|
|
@@ -12447,145 +12545,145 @@ function cov_sedvezotl() {
|
|
|
12447
12545
|
name: "(anonymous_6)",
|
|
12448
12546
|
decl: {
|
|
12449
12547
|
start: {
|
|
12450
|
-
line:
|
|
12548
|
+
line: 99,
|
|
12451
12549
|
column: 52
|
|
12452
12550
|
},
|
|
12453
12551
|
end: {
|
|
12454
|
-
line:
|
|
12552
|
+
line: 99,
|
|
12455
12553
|
column: 53
|
|
12456
12554
|
}
|
|
12457
12555
|
},
|
|
12458
12556
|
loc: {
|
|
12459
12557
|
start: {
|
|
12460
|
-
line:
|
|
12558
|
+
line: 99,
|
|
12461
12559
|
column: 57
|
|
12462
12560
|
},
|
|
12463
12561
|
end: {
|
|
12464
|
-
line:
|
|
12562
|
+
line: 101,
|
|
12465
12563
|
column: 5
|
|
12466
12564
|
}
|
|
12467
12565
|
},
|
|
12468
|
-
line:
|
|
12566
|
+
line: 99
|
|
12469
12567
|
},
|
|
12470
12568
|
"7": {
|
|
12471
12569
|
name: "(anonymous_7)",
|
|
12472
12570
|
decl: {
|
|
12473
12571
|
start: {
|
|
12474
|
-
line:
|
|
12572
|
+
line: 108,
|
|
12475
12573
|
column: 29
|
|
12476
12574
|
},
|
|
12477
12575
|
end: {
|
|
12478
|
-
line:
|
|
12576
|
+
line: 108,
|
|
12479
12577
|
column: 30
|
|
12480
12578
|
}
|
|
12481
12579
|
},
|
|
12482
12580
|
loc: {
|
|
12483
12581
|
start: {
|
|
12484
|
-
line:
|
|
12582
|
+
line: 108,
|
|
12485
12583
|
column: 47
|
|
12486
12584
|
},
|
|
12487
12585
|
end: {
|
|
12488
|
-
line:
|
|
12586
|
+
line: 114,
|
|
12489
12587
|
column: 3
|
|
12490
12588
|
}
|
|
12491
12589
|
},
|
|
12492
|
-
line:
|
|
12590
|
+
line: 108
|
|
12493
12591
|
},
|
|
12494
12592
|
"8": {
|
|
12495
12593
|
name: "(anonymous_8)",
|
|
12496
12594
|
decl: {
|
|
12497
12595
|
start: {
|
|
12498
|
-
line:
|
|
12596
|
+
line: 109,
|
|
12499
12597
|
column: 23
|
|
12500
12598
|
},
|
|
12501
12599
|
end: {
|
|
12502
|
-
line:
|
|
12600
|
+
line: 109,
|
|
12503
12601
|
column: 24
|
|
12504
12602
|
}
|
|
12505
12603
|
},
|
|
12506
12604
|
loc: {
|
|
12507
12605
|
start: {
|
|
12508
|
-
line:
|
|
12606
|
+
line: 110,
|
|
12509
12607
|
column: 6
|
|
12510
12608
|
},
|
|
12511
12609
|
end: {
|
|
12512
|
-
line:
|
|
12610
|
+
line: 112,
|
|
12513
12611
|
column: 7
|
|
12514
12612
|
}
|
|
12515
12613
|
},
|
|
12516
|
-
line:
|
|
12614
|
+
line: 110
|
|
12517
12615
|
},
|
|
12518
12616
|
"9": {
|
|
12519
12617
|
name: "(anonymous_9)",
|
|
12520
12618
|
decl: {
|
|
12521
12619
|
start: {
|
|
12522
|
-
line:
|
|
12620
|
+
line: 110,
|
|
12523
12621
|
column: 17
|
|
12524
12622
|
},
|
|
12525
12623
|
end: {
|
|
12526
|
-
line:
|
|
12624
|
+
line: 110,
|
|
12527
12625
|
column: 18
|
|
12528
12626
|
}
|
|
12529
12627
|
},
|
|
12530
12628
|
loc: {
|
|
12531
12629
|
start: {
|
|
12532
|
-
line:
|
|
12630
|
+
line: 111,
|
|
12533
12631
|
column: 8
|
|
12534
12632
|
},
|
|
12535
12633
|
end: {
|
|
12536
|
-
line:
|
|
12634
|
+
line: 111,
|
|
12537
12635
|
column: 71
|
|
12538
12636
|
}
|
|
12539
12637
|
},
|
|
12540
|
-
line:
|
|
12638
|
+
line: 111
|
|
12541
12639
|
},
|
|
12542
12640
|
"10": {
|
|
12543
12641
|
name: "(anonymous_10)",
|
|
12544
12642
|
decl: {
|
|
12545
12643
|
start: {
|
|
12546
|
-
line:
|
|
12644
|
+
line: 125,
|
|
12547
12645
|
column: 12
|
|
12548
12646
|
},
|
|
12549
12647
|
end: {
|
|
12550
|
-
line:
|
|
12648
|
+
line: 125,
|
|
12551
12649
|
column: 13
|
|
12552
12650
|
}
|
|
12553
12651
|
},
|
|
12554
12652
|
loc: {
|
|
12555
12653
|
start: {
|
|
12556
|
-
line:
|
|
12654
|
+
line: 125,
|
|
12557
12655
|
column: 29
|
|
12558
12656
|
},
|
|
12559
12657
|
end: {
|
|
12560
|
-
line:
|
|
12658
|
+
line: 128,
|
|
12561
12659
|
column: 5
|
|
12562
12660
|
}
|
|
12563
12661
|
},
|
|
12564
|
-
line:
|
|
12662
|
+
line: 125
|
|
12565
12663
|
},
|
|
12566
12664
|
"11": {
|
|
12567
12665
|
name: "(anonymous_11)",
|
|
12568
12666
|
decl: {
|
|
12569
12667
|
start: {
|
|
12570
|
-
line:
|
|
12668
|
+
line: 133,
|
|
12571
12669
|
column: 12
|
|
12572
12670
|
},
|
|
12573
12671
|
end: {
|
|
12574
|
-
line:
|
|
12672
|
+
line: 133,
|
|
12575
12673
|
column: 13
|
|
12576
12674
|
}
|
|
12577
12675
|
},
|
|
12578
12676
|
loc: {
|
|
12579
12677
|
start: {
|
|
12580
|
-
line:
|
|
12678
|
+
line: 133,
|
|
12581
12679
|
column: 18
|
|
12582
12680
|
},
|
|
12583
12681
|
end: {
|
|
12584
|
-
line:
|
|
12682
|
+
line: 135,
|
|
12585
12683
|
column: 3
|
|
12586
12684
|
}
|
|
12587
12685
|
},
|
|
12588
|
-
line:
|
|
12686
|
+
line: 133
|
|
12589
12687
|
}
|
|
12590
12688
|
},
|
|
12591
12689
|
branchMap: {
|
|
@@ -12739,68 +12837,101 @@ function cov_sedvezotl() {
|
|
|
12739
12837
|
"5": {
|
|
12740
12838
|
loc: {
|
|
12741
12839
|
start: {
|
|
12742
|
-
line:
|
|
12840
|
+
line: 95,
|
|
12743
12841
|
column: 4
|
|
12744
12842
|
},
|
|
12745
12843
|
end: {
|
|
12746
|
-
line:
|
|
12747
|
-
column:
|
|
12844
|
+
line: 95,
|
|
12845
|
+
column: 28
|
|
12748
12846
|
}
|
|
12749
12847
|
},
|
|
12750
|
-
type: "
|
|
12848
|
+
type: "if",
|
|
12751
12849
|
locations: [{
|
|
12752
12850
|
start: {
|
|
12753
|
-
line:
|
|
12754
|
-
column:
|
|
12851
|
+
line: 95,
|
|
12852
|
+
column: 4
|
|
12755
12853
|
},
|
|
12756
12854
|
end: {
|
|
12757
|
-
line:
|
|
12758
|
-
column:
|
|
12855
|
+
line: 95,
|
|
12856
|
+
column: 28
|
|
12759
12857
|
}
|
|
12760
12858
|
}, {
|
|
12761
12859
|
start: {
|
|
12762
|
-
line:
|
|
12763
|
-
column:
|
|
12860
|
+
line: undefined,
|
|
12861
|
+
column: undefined
|
|
12764
12862
|
},
|
|
12765
12863
|
end: {
|
|
12766
|
-
line:
|
|
12767
|
-
column:
|
|
12864
|
+
line: undefined,
|
|
12865
|
+
column: undefined
|
|
12768
12866
|
}
|
|
12769
12867
|
}],
|
|
12770
|
-
line:
|
|
12868
|
+
line: 95
|
|
12771
12869
|
},
|
|
12772
12870
|
"6": {
|
|
12773
12871
|
loc: {
|
|
12774
12872
|
start: {
|
|
12775
|
-
line:
|
|
12776
|
-
column:
|
|
12873
|
+
line: 103,
|
|
12874
|
+
column: 4
|
|
12777
12875
|
},
|
|
12778
12876
|
end: {
|
|
12779
|
-
line:
|
|
12780
|
-
column:
|
|
12877
|
+
line: 105,
|
|
12878
|
+
column: 49
|
|
12781
12879
|
}
|
|
12782
12880
|
},
|
|
12783
|
-
type: "
|
|
12881
|
+
type: "cond-expr",
|
|
12784
12882
|
locations: [{
|
|
12785
12883
|
start: {
|
|
12786
|
-
line:
|
|
12787
|
-
column:
|
|
12884
|
+
line: 104,
|
|
12885
|
+
column: 8
|
|
12788
12886
|
},
|
|
12789
12887
|
end: {
|
|
12790
|
-
line:
|
|
12888
|
+
line: 104,
|
|
12791
12889
|
column: 37
|
|
12792
12890
|
}
|
|
12793
12891
|
}, {
|
|
12794
12892
|
start: {
|
|
12795
|
-
line:
|
|
12796
|
-
column:
|
|
12893
|
+
line: 105,
|
|
12894
|
+
column: 8
|
|
12797
12895
|
},
|
|
12798
12896
|
end: {
|
|
12799
|
-
line:
|
|
12897
|
+
line: 105,
|
|
12898
|
+
column: 49
|
|
12899
|
+
}
|
|
12900
|
+
}],
|
|
12901
|
+
line: 103
|
|
12902
|
+
},
|
|
12903
|
+
"7": {
|
|
12904
|
+
loc: {
|
|
12905
|
+
start: {
|
|
12906
|
+
line: 111,
|
|
12907
|
+
column: 21
|
|
12908
|
+
},
|
|
12909
|
+
end: {
|
|
12910
|
+
line: 111,
|
|
12911
|
+
column: 70
|
|
12912
|
+
}
|
|
12913
|
+
},
|
|
12914
|
+
type: "binary-expr",
|
|
12915
|
+
locations: [{
|
|
12916
|
+
start: {
|
|
12917
|
+
line: 111,
|
|
12918
|
+
column: 21
|
|
12919
|
+
},
|
|
12920
|
+
end: {
|
|
12921
|
+
line: 111,
|
|
12922
|
+
column: 37
|
|
12923
|
+
}
|
|
12924
|
+
}, {
|
|
12925
|
+
start: {
|
|
12926
|
+
line: 111,
|
|
12927
|
+
column: 41
|
|
12928
|
+
},
|
|
12929
|
+
end: {
|
|
12930
|
+
line: 111,
|
|
12800
12931
|
column: 70
|
|
12801
12932
|
}
|
|
12802
12933
|
}],
|
|
12803
|
-
line:
|
|
12934
|
+
line: 111
|
|
12804
12935
|
}
|
|
12805
12936
|
},
|
|
12806
12937
|
s: {
|
|
@@ -12847,7 +12978,9 @@ function cov_sedvezotl() {
|
|
|
12847
12978
|
"40": 0,
|
|
12848
12979
|
"41": 0,
|
|
12849
12980
|
"42": 0,
|
|
12850
|
-
"43": 0
|
|
12981
|
+
"43": 0,
|
|
12982
|
+
"44": 0,
|
|
12983
|
+
"45": 0
|
|
12851
12984
|
},
|
|
12852
12985
|
f: {
|
|
12853
12986
|
"0": 0,
|
|
@@ -12870,10 +13003,11 @@ function cov_sedvezotl() {
|
|
|
12870
13003
|
"3": [0, 0],
|
|
12871
13004
|
"4": [0, 0],
|
|
12872
13005
|
"5": [0, 0],
|
|
12873
|
-
"6": [0, 0]
|
|
13006
|
+
"6": [0, 0],
|
|
13007
|
+
"7": [0, 0]
|
|
12874
13008
|
},
|
|
12875
13009
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
12876
|
-
hash: "
|
|
13010
|
+
hash: "8c74c0d181099d9bd8c858bdf5d7b304c157e00c"
|
|
12877
13011
|
};
|
|
12878
13012
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
12879
13013
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -13037,30 +13171,41 @@ var useDropzoneWithValidation = function useDropzoneWithValidation(_ref) {
|
|
|
13037
13171
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13038
13172
|
case 0:
|
|
13039
13173
|
cov_sedvezotl().f[5]++;
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13174
|
+
cov_sedvezotl().s[29]++;
|
|
13175
|
+
if (!ramda.isNil(file)) {
|
|
13176
|
+
_context3.next = 8;
|
|
13177
|
+
break;
|
|
13178
|
+
}
|
|
13179
|
+
cov_sedvezotl().b[5][0]++;
|
|
13180
|
+
cov_sedvezotl().s[30]++;
|
|
13181
|
+
return _context3.abrupt("return");
|
|
13182
|
+
case 8:
|
|
13183
|
+
cov_sedvezotl().b[5][1]++;
|
|
13184
|
+
case 9:
|
|
13185
|
+
fileSize = (cov_sedvezotl().s[31]++, file.size);
|
|
13186
|
+
XHRProgress = (cov_sedvezotl().s[32]++, new XMLHttpRequest());
|
|
13187
|
+
cov_sedvezotl().s[33]++;
|
|
13043
13188
|
XHRProgress.upload.addEventListener("progress", function (e) {
|
|
13044
13189
|
cov_sedvezotl().f[6]++;
|
|
13045
|
-
cov_sedvezotl().s[
|
|
13190
|
+
cov_sedvezotl().s[34]++;
|
|
13046
13191
|
handleUploadProgress(e, fileSize);
|
|
13047
13192
|
});
|
|
13048
|
-
cov_sedvezotl().s[
|
|
13193
|
+
cov_sedvezotl().s[35]++;
|
|
13049
13194
|
if (!IS_DEVELOPMENT_OR_HEROKU_ENV) {
|
|
13050
|
-
_context3.next =
|
|
13195
|
+
_context3.next = 20;
|
|
13051
13196
|
break;
|
|
13052
13197
|
}
|
|
13053
|
-
cov_sedvezotl().b[
|
|
13054
|
-
_context3.next =
|
|
13198
|
+
cov_sedvezotl().b[6][0]++;
|
|
13199
|
+
_context3.next = 18;
|
|
13055
13200
|
return developmentUpload(file);
|
|
13056
|
-
case
|
|
13057
|
-
_context3.next =
|
|
13201
|
+
case 18:
|
|
13202
|
+
_context3.next = 23;
|
|
13058
13203
|
break;
|
|
13059
|
-
case
|
|
13060
|
-
cov_sedvezotl().b[
|
|
13061
|
-
_context3.next =
|
|
13204
|
+
case 20:
|
|
13205
|
+
cov_sedvezotl().b[6][1]++;
|
|
13206
|
+
_context3.next = 23;
|
|
13062
13207
|
return productionUpload(file, XHRProgress);
|
|
13063
|
-
case
|
|
13208
|
+
case 23:
|
|
13064
13209
|
case "end":
|
|
13065
13210
|
return _context3.stop();
|
|
13066
13211
|
}
|
|
@@ -13070,32 +13215,32 @@ var useDropzoneWithValidation = function useDropzoneWithValidation(_ref) {
|
|
|
13070
13215
|
return _ref8.apply(this, arguments);
|
|
13071
13216
|
};
|
|
13072
13217
|
}();
|
|
13073
|
-
cov_sedvezotl().s[
|
|
13218
|
+
cov_sedvezotl().s[36]++;
|
|
13074
13219
|
var handleDropRejected = function handleDropRejected(fileRejections) {
|
|
13075
13220
|
cov_sedvezotl().f[7]++;
|
|
13076
|
-
cov_sedvezotl().s[
|
|
13221
|
+
cov_sedvezotl().s[37]++;
|
|
13077
13222
|
fileRejections.map(function (_ref9) {
|
|
13078
13223
|
var errors = _ref9.errors;
|
|
13079
13224
|
cov_sedvezotl().f[8]++;
|
|
13080
|
-
cov_sedvezotl().s[
|
|
13225
|
+
cov_sedvezotl().s[38]++;
|
|
13081
13226
|
return errors.map(function (_ref10) {
|
|
13082
13227
|
var code = _ref10.code;
|
|
13083
13228
|
cov_sedvezotl().f[9]++;
|
|
13084
|
-
cov_sedvezotl().s[
|
|
13085
|
-
return neetoui.Toastr.error((cov_sedvezotl().b[
|
|
13229
|
+
cov_sedvezotl().s[39]++;
|
|
13230
|
+
return neetoui.Toastr.error((cov_sedvezotl().b[7][0]++, fileErrors[code]) || (cov_sedvezotl().b[7][1]++, t$2("imageUpload.genericError")));
|
|
13086
13231
|
});
|
|
13087
13232
|
});
|
|
13088
13233
|
};
|
|
13089
|
-
var _ref11 = (cov_sedvezotl().s[
|
|
13234
|
+
var _ref11 = (cov_sedvezotl().s[40]++, useDropzone({
|
|
13090
13235
|
multiple: false,
|
|
13091
13236
|
accept: acceptedTypes,
|
|
13092
13237
|
onDrop: function onDrop(acceptedFiles) {
|
|
13093
13238
|
cov_sedvezotl().f[10]++;
|
|
13094
|
-
var file = (cov_sedvezotl().s[
|
|
13095
|
-
cov_sedvezotl().s[
|
|
13239
|
+
var file = (cov_sedvezotl().s[41]++, acceptedFiles[0]);
|
|
13240
|
+
cov_sedvezotl().s[42]++;
|
|
13096
13241
|
uploadFile(file);
|
|
13097
13242
|
},
|
|
13098
|
-
maxSize: maxSize,
|
|
13243
|
+
maxSize: maxSize * 1048576,
|
|
13099
13244
|
onDropRejected: handleDropRejected
|
|
13100
13245
|
})),
|
|
13101
13246
|
getRootProps = _ref11.getRootProps,
|
|
@@ -13103,13 +13248,13 @@ var useDropzoneWithValidation = function useDropzoneWithValidation(_ref) {
|
|
|
13103
13248
|
isDragActive = _ref11.isDragActive,
|
|
13104
13249
|
fileRejections = _ref11.fileRejections,
|
|
13105
13250
|
inputRef = _ref11.inputRef;
|
|
13106
|
-
cov_sedvezotl().s[
|
|
13251
|
+
cov_sedvezotl().s[43]++;
|
|
13107
13252
|
React.useEffect(function () {
|
|
13108
13253
|
cov_sedvezotl().f[11]++;
|
|
13109
|
-
cov_sedvezotl().s[
|
|
13254
|
+
cov_sedvezotl().s[44]++;
|
|
13110
13255
|
setError(pure.isNotEmpty(fileRejections));
|
|
13111
13256
|
}, [fileRejections]);
|
|
13112
|
-
cov_sedvezotl().s[
|
|
13257
|
+
cov_sedvezotl().s[45]++;
|
|
13113
13258
|
return {
|
|
13114
13259
|
getRootProps: getRootProps,
|
|
13115
13260
|
getInputProps: getInputProps,
|
|
@@ -15861,7 +16006,7 @@ var uploadWithImageKit = /*#__PURE__*/function () {
|
|
|
15861
16006
|
|
|
15862
16007
|
function cov_28odpwq50i() {
|
|
15863
16008
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/Unsplash.jsx";
|
|
15864
|
-
var hash = "
|
|
16009
|
+
var hash = "a1ba538f52c55a05f5d2facf2fed6bde1644feef";
|
|
15865
16010
|
var global = new Function("return this")();
|
|
15866
16011
|
var gcv = "__coverage__";
|
|
15867
16012
|
var coverageData = {
|
|
@@ -15873,167 +16018,167 @@ function cov_28odpwq50i() {
|
|
|
15873
16018
|
column: 24
|
|
15874
16019
|
},
|
|
15875
16020
|
end: {
|
|
15876
|
-
line:
|
|
16021
|
+
line: 111,
|
|
15877
16022
|
column: 1
|
|
15878
16023
|
}
|
|
15879
16024
|
},
|
|
15880
16025
|
"1": {
|
|
15881
16026
|
start: {
|
|
15882
|
-
line:
|
|
16027
|
+
line: 27,
|
|
15883
16028
|
column: 32
|
|
15884
16029
|
},
|
|
15885
16030
|
end: {
|
|
15886
|
-
line:
|
|
16031
|
+
line: 27,
|
|
15887
16032
|
column: 46
|
|
15888
16033
|
}
|
|
15889
16034
|
},
|
|
15890
16035
|
"2": {
|
|
15891
16036
|
start: {
|
|
15892
|
-
line:
|
|
16037
|
+
line: 28,
|
|
15893
16038
|
column: 30
|
|
15894
16039
|
},
|
|
15895
16040
|
end: {
|
|
15896
|
-
line:
|
|
16041
|
+
line: 28,
|
|
15897
16042
|
column: 42
|
|
15898
16043
|
}
|
|
15899
16044
|
},
|
|
15900
16045
|
"3": {
|
|
15901
16046
|
start: {
|
|
15902
|
-
line:
|
|
16047
|
+
line: 29,
|
|
15903
16048
|
column: 30
|
|
15904
16049
|
},
|
|
15905
16050
|
end: {
|
|
15906
|
-
line:
|
|
16051
|
+
line: 29,
|
|
15907
16052
|
column: 41
|
|
15908
16053
|
}
|
|
15909
16054
|
},
|
|
15910
16055
|
"4": {
|
|
15911
16056
|
start: {
|
|
15912
|
-
line:
|
|
16057
|
+
line: 30,
|
|
15913
16058
|
column: 28
|
|
15914
16059
|
},
|
|
15915
16060
|
end: {
|
|
15916
|
-
line:
|
|
16061
|
+
line: 30,
|
|
15917
16062
|
column: 43
|
|
15918
16063
|
}
|
|
15919
16064
|
},
|
|
15920
16065
|
"5": {
|
|
15921
16066
|
start: {
|
|
15922
|
-
line:
|
|
16067
|
+
line: 32,
|
|
15923
16068
|
column: 20
|
|
15924
16069
|
},
|
|
15925
16070
|
end: {
|
|
15926
|
-
line:
|
|
16071
|
+
line: 37,
|
|
15927
16072
|
column: 3
|
|
15928
16073
|
}
|
|
15929
16074
|
},
|
|
15930
16075
|
"6": {
|
|
15931
16076
|
start: {
|
|
15932
|
-
line:
|
|
16077
|
+
line: 33,
|
|
15933
16078
|
column: 4
|
|
15934
16079
|
},
|
|
15935
16080
|
end: {
|
|
15936
|
-
line:
|
|
16081
|
+
line: 33,
|
|
15937
16082
|
column: 76
|
|
15938
16083
|
}
|
|
15939
16084
|
},
|
|
15940
16085
|
"7": {
|
|
15941
16086
|
start: {
|
|
15942
|
-
line:
|
|
16087
|
+
line: 35,
|
|
15943
16088
|
column: 4
|
|
15944
16089
|
},
|
|
15945
16090
|
end: {
|
|
15946
|
-
line:
|
|
16091
|
+
line: 35,
|
|
15947
16092
|
column: 19
|
|
15948
16093
|
}
|
|
15949
16094
|
},
|
|
15950
16095
|
"8": {
|
|
15951
16096
|
start: {
|
|
15952
|
-
line:
|
|
16097
|
+
line: 36,
|
|
15953
16098
|
column: 4
|
|
15954
16099
|
},
|
|
15955
16100
|
end: {
|
|
15956
|
-
line:
|
|
16101
|
+
line: 36,
|
|
15957
16102
|
column: 36
|
|
15958
16103
|
}
|
|
15959
16104
|
},
|
|
15960
16105
|
"9": {
|
|
15961
16106
|
start: {
|
|
15962
|
-
line:
|
|
16107
|
+
line: 39,
|
|
15963
16108
|
column: 36
|
|
15964
16109
|
},
|
|
15965
16110
|
end: {
|
|
15966
|
-
line:
|
|
16111
|
+
line: 62,
|
|
15967
16112
|
column: 3
|
|
15968
16113
|
}
|
|
15969
16114
|
},
|
|
15970
16115
|
"10": {
|
|
15971
16116
|
start: {
|
|
15972
|
-
line:
|
|
16117
|
+
line: 40,
|
|
15973
16118
|
column: 4
|
|
15974
16119
|
},
|
|
15975
16120
|
end: {
|
|
15976
|
-
line:
|
|
16121
|
+
line: 61,
|
|
15977
16122
|
column: 5
|
|
15978
16123
|
}
|
|
15979
16124
|
},
|
|
15980
16125
|
"11": {
|
|
15981
16126
|
start: {
|
|
15982
|
-
line:
|
|
16127
|
+
line: 41,
|
|
15983
16128
|
column: 6
|
|
15984
16129
|
},
|
|
15985
16130
|
end: {
|
|
15986
|
-
line:
|
|
16131
|
+
line: 41,
|
|
15987
16132
|
column: 27
|
|
15988
16133
|
}
|
|
15989
16134
|
},
|
|
15990
16135
|
"12": {
|
|
15991
16136
|
start: {
|
|
15992
|
-
line:
|
|
16137
|
+
line: 42,
|
|
15993
16138
|
column: 23
|
|
15994
16139
|
},
|
|
15995
16140
|
end: {
|
|
15996
|
-
line:
|
|
16141
|
+
line: 45,
|
|
15997
16142
|
column: 7
|
|
15998
16143
|
}
|
|
15999
16144
|
},
|
|
16000
16145
|
"13": {
|
|
16001
16146
|
start: {
|
|
16002
|
-
line:
|
|
16147
|
+
line: 47,
|
|
16003
16148
|
column: 19
|
|
16004
16149
|
},
|
|
16005
16150
|
end: {
|
|
16006
|
-
line:
|
|
16151
|
+
line: 49,
|
|
16007
16152
|
column: 8
|
|
16008
16153
|
}
|
|
16009
16154
|
},
|
|
16010
16155
|
"14": {
|
|
16011
16156
|
start: {
|
|
16012
|
-
line:
|
|
16157
|
+
line: 51,
|
|
16013
16158
|
column: 21
|
|
16014
16159
|
},
|
|
16015
16160
|
end: {
|
|
16016
|
-
line:
|
|
16161
|
+
line: 53,
|
|
16017
16162
|
column: 40
|
|
16018
16163
|
}
|
|
16019
16164
|
},
|
|
16020
16165
|
"15": {
|
|
16021
16166
|
start: {
|
|
16022
|
-
line:
|
|
16167
|
+
line: 55,
|
|
16023
16168
|
column: 6
|
|
16024
16169
|
},
|
|
16025
16170
|
end: {
|
|
16026
|
-
line:
|
|
16171
|
+
line: 55,
|
|
16027
16172
|
column: 31
|
|
16028
16173
|
}
|
|
16029
16174
|
},
|
|
16030
16175
|
"16": {
|
|
16031
16176
|
start: {
|
|
16032
|
-
line:
|
|
16177
|
+
line: 57,
|
|
16033
16178
|
column: 6
|
|
16034
16179
|
},
|
|
16035
16180
|
end: {
|
|
16036
|
-
line:
|
|
16181
|
+
line: 57,
|
|
16037
16182
|
column: 26
|
|
16038
16183
|
}
|
|
16039
16184
|
},
|
|
@@ -16044,176 +16189,186 @@ function cov_28odpwq50i() {
|
|
|
16044
16189
|
},
|
|
16045
16190
|
end: {
|
|
16046
16191
|
line: 58,
|
|
16047
|
-
column:
|
|
16192
|
+
column: 32
|
|
16048
16193
|
}
|
|
16049
16194
|
},
|
|
16050
16195
|
"18": {
|
|
16051
16196
|
start: {
|
|
16052
|
-
line:
|
|
16053
|
-
column:
|
|
16197
|
+
line: 60,
|
|
16198
|
+
column: 6
|
|
16054
16199
|
},
|
|
16055
16200
|
end: {
|
|
16056
|
-
line:
|
|
16057
|
-
column:
|
|
16201
|
+
line: 60,
|
|
16202
|
+
column: 28
|
|
16058
16203
|
}
|
|
16059
16204
|
},
|
|
16060
16205
|
"19": {
|
|
16061
16206
|
start: {
|
|
16062
|
-
line:
|
|
16063
|
-
column:
|
|
16207
|
+
line: 64,
|
|
16208
|
+
column: 18
|
|
16064
16209
|
},
|
|
16065
16210
|
end: {
|
|
16066
|
-
line:
|
|
16211
|
+
line: 64,
|
|
16067
16212
|
column: 38
|
|
16068
16213
|
}
|
|
16069
16214
|
},
|
|
16070
16215
|
"20": {
|
|
16071
16216
|
start: {
|
|
16072
16217
|
line: 64,
|
|
16073
|
-
column:
|
|
16218
|
+
column: 24
|
|
16074
16219
|
},
|
|
16075
16220
|
end: {
|
|
16076
16221
|
line: 64,
|
|
16077
|
-
column:
|
|
16222
|
+
column: 38
|
|
16078
16223
|
}
|
|
16079
16224
|
},
|
|
16080
16225
|
"21": {
|
|
16081
16226
|
start: {
|
|
16082
16227
|
line: 66,
|
|
16083
|
-
column:
|
|
16228
|
+
column: 16
|
|
16084
16229
|
},
|
|
16085
16230
|
end: {
|
|
16086
|
-
line:
|
|
16087
|
-
column:
|
|
16231
|
+
line: 66,
|
|
16232
|
+
column: 32
|
|
16088
16233
|
}
|
|
16089
16234
|
},
|
|
16090
16235
|
"22": {
|
|
16091
16236
|
start: {
|
|
16237
|
+
line: 68,
|
|
16238
|
+
column: 34
|
|
16239
|
+
},
|
|
16240
|
+
end: {
|
|
16092
16241
|
line: 77,
|
|
16242
|
+
column: 3
|
|
16243
|
+
}
|
|
16244
|
+
},
|
|
16245
|
+
"23": {
|
|
16246
|
+
start: {
|
|
16247
|
+
line: 79,
|
|
16093
16248
|
column: 19
|
|
16094
16249
|
},
|
|
16095
16250
|
end: {
|
|
16096
|
-
line:
|
|
16251
|
+
line: 86,
|
|
16097
16252
|
column: 9
|
|
16098
16253
|
}
|
|
16099
16254
|
},
|
|
16100
|
-
"
|
|
16255
|
+
"24": {
|
|
16101
16256
|
start: {
|
|
16102
|
-
line:
|
|
16257
|
+
line: 80,
|
|
16103
16258
|
column: 4
|
|
16104
16259
|
},
|
|
16105
16260
|
end: {
|
|
16106
|
-
line:
|
|
16261
|
+
line: 80,
|
|
16107
16262
|
column: 39
|
|
16108
16263
|
}
|
|
16109
16264
|
},
|
|
16110
|
-
"
|
|
16265
|
+
"25": {
|
|
16111
16266
|
start: {
|
|
16112
|
-
line:
|
|
16267
|
+
line: 80,
|
|
16113
16268
|
column: 32
|
|
16114
16269
|
},
|
|
16115
16270
|
end: {
|
|
16116
|
-
line:
|
|
16271
|
+
line: 80,
|
|
16117
16272
|
column: 39
|
|
16118
16273
|
}
|
|
16119
16274
|
},
|
|
16120
|
-
"
|
|
16275
|
+
"26": {
|
|
16121
16276
|
start: {
|
|
16122
|
-
line:
|
|
16277
|
+
line: 82,
|
|
16123
16278
|
column: 4
|
|
16124
16279
|
},
|
|
16125
16280
|
end: {
|
|
16126
|
-
line:
|
|
16281
|
+
line: 85,
|
|
16127
16282
|
column: 5
|
|
16128
16283
|
}
|
|
16129
16284
|
},
|
|
16130
|
-
"
|
|
16285
|
+
"27": {
|
|
16131
16286
|
start: {
|
|
16132
|
-
line:
|
|
16287
|
+
line: 83,
|
|
16133
16288
|
column: 6
|
|
16134
16289
|
},
|
|
16135
16290
|
end: {
|
|
16136
|
-
line:
|
|
16291
|
+
line: 83,
|
|
16137
16292
|
column: 22
|
|
16138
16293
|
}
|
|
16139
16294
|
},
|
|
16140
|
-
"
|
|
16295
|
+
"28": {
|
|
16141
16296
|
start: {
|
|
16142
|
-
line:
|
|
16297
|
+
line: 84,
|
|
16143
16298
|
column: 6
|
|
16144
16299
|
},
|
|
16145
16300
|
end: {
|
|
16146
|
-
line:
|
|
16301
|
+
line: 84,
|
|
16147
16302
|
column: 16
|
|
16148
16303
|
}
|
|
16149
16304
|
},
|
|
16150
|
-
"
|
|
16305
|
+
"29": {
|
|
16151
16306
|
start: {
|
|
16152
|
-
line:
|
|
16307
|
+
line: 88,
|
|
16153
16308
|
column: 2
|
|
16154
16309
|
},
|
|
16155
16310
|
end: {
|
|
16156
|
-
line:
|
|
16311
|
+
line: 92,
|
|
16157
16312
|
column: 23
|
|
16158
16313
|
}
|
|
16159
16314
|
},
|
|
16160
|
-
"
|
|
16315
|
+
"30": {
|
|
16161
16316
|
start: {
|
|
16162
|
-
line:
|
|
16317
|
+
line: 89,
|
|
16163
16318
|
column: 4
|
|
16164
16319
|
},
|
|
16165
16320
|
end: {
|
|
16166
|
-
line:
|
|
16321
|
+
line: 89,
|
|
16167
16322
|
column: 17
|
|
16168
16323
|
}
|
|
16169
16324
|
},
|
|
16170
|
-
"
|
|
16325
|
+
"31": {
|
|
16171
16326
|
start: {
|
|
16172
|
-
line:
|
|
16327
|
+
line: 90,
|
|
16173
16328
|
column: 4
|
|
16174
16329
|
},
|
|
16175
16330
|
end: {
|
|
16176
|
-
line:
|
|
16331
|
+
line: 90,
|
|
16177
16332
|
column: 18
|
|
16178
16333
|
}
|
|
16179
16334
|
},
|
|
16180
|
-
"
|
|
16335
|
+
"32": {
|
|
16181
16336
|
start: {
|
|
16182
|
-
line:
|
|
16337
|
+
line: 91,
|
|
16183
16338
|
column: 4
|
|
16184
16339
|
},
|
|
16185
16340
|
end: {
|
|
16186
|
-
line:
|
|
16341
|
+
line: 91,
|
|
16187
16342
|
column: 14
|
|
16188
16343
|
}
|
|
16189
16344
|
},
|
|
16190
|
-
"
|
|
16345
|
+
"33": {
|
|
16191
16346
|
start: {
|
|
16192
|
-
line:
|
|
16347
|
+
line: 94,
|
|
16193
16348
|
column: 2
|
|
16194
16349
|
},
|
|
16195
16350
|
end: {
|
|
16196
|
-
line:
|
|
16351
|
+
line: 100,
|
|
16197
16352
|
column: 3
|
|
16198
16353
|
}
|
|
16199
16354
|
},
|
|
16200
|
-
"
|
|
16355
|
+
"34": {
|
|
16201
16356
|
start: {
|
|
16202
|
-
line:
|
|
16357
|
+
line: 95,
|
|
16203
16358
|
column: 4
|
|
16204
16359
|
},
|
|
16205
16360
|
end: {
|
|
16206
|
-
line:
|
|
16361
|
+
line: 99,
|
|
16207
16362
|
column: 6
|
|
16208
16363
|
}
|
|
16209
16364
|
},
|
|
16210
|
-
"
|
|
16365
|
+
"35": {
|
|
16211
16366
|
start: {
|
|
16212
|
-
line:
|
|
16367
|
+
line: 102,
|
|
16213
16368
|
column: 2
|
|
16214
16369
|
},
|
|
16215
16370
|
end: {
|
|
16216
|
-
line:
|
|
16371
|
+
line: 110,
|
|
16217
16372
|
column: 4
|
|
16218
16373
|
}
|
|
16219
16374
|
}
|
|
@@ -16233,247 +16388,247 @@ function cov_28odpwq50i() {
|
|
|
16233
16388
|
},
|
|
16234
16389
|
loc: {
|
|
16235
16390
|
start: {
|
|
16236
|
-
line:
|
|
16391
|
+
line: 26,
|
|
16237
16392
|
column: 6
|
|
16238
16393
|
},
|
|
16239
16394
|
end: {
|
|
16240
|
-
line:
|
|
16395
|
+
line: 111,
|
|
16241
16396
|
column: 1
|
|
16242
16397
|
}
|
|
16243
16398
|
},
|
|
16244
|
-
line:
|
|
16399
|
+
line: 26
|
|
16245
16400
|
},
|
|
16246
16401
|
"1": {
|
|
16247
16402
|
name: "(anonymous_1)",
|
|
16248
16403
|
decl: {
|
|
16249
16404
|
start: {
|
|
16250
|
-
line:
|
|
16405
|
+
line: 32,
|
|
16251
16406
|
column: 20
|
|
16252
16407
|
},
|
|
16253
16408
|
end: {
|
|
16254
|
-
line:
|
|
16409
|
+
line: 32,
|
|
16255
16410
|
column: 21
|
|
16256
16411
|
}
|
|
16257
16412
|
},
|
|
16258
16413
|
loc: {
|
|
16259
16414
|
start: {
|
|
16260
|
-
line:
|
|
16415
|
+
line: 32,
|
|
16261
16416
|
column: 54
|
|
16262
16417
|
},
|
|
16263
16418
|
end: {
|
|
16264
|
-
line:
|
|
16419
|
+
line: 37,
|
|
16265
16420
|
column: 3
|
|
16266
16421
|
}
|
|
16267
16422
|
},
|
|
16268
|
-
line:
|
|
16423
|
+
line: 32
|
|
16269
16424
|
},
|
|
16270
16425
|
"2": {
|
|
16271
16426
|
name: "(anonymous_2)",
|
|
16272
16427
|
decl: {
|
|
16273
16428
|
start: {
|
|
16274
|
-
line:
|
|
16429
|
+
line: 39,
|
|
16275
16430
|
column: 36
|
|
16276
16431
|
},
|
|
16277
16432
|
end: {
|
|
16278
|
-
line:
|
|
16433
|
+
line: 39,
|
|
16279
16434
|
column: 37
|
|
16280
16435
|
}
|
|
16281
16436
|
},
|
|
16282
16437
|
loc: {
|
|
16283
16438
|
start: {
|
|
16284
|
-
line:
|
|
16439
|
+
line: 39,
|
|
16285
16440
|
column: 51
|
|
16286
16441
|
},
|
|
16287
16442
|
end: {
|
|
16288
|
-
line:
|
|
16443
|
+
line: 62,
|
|
16289
16444
|
column: 3
|
|
16290
16445
|
}
|
|
16291
16446
|
},
|
|
16292
|
-
line:
|
|
16447
|
+
line: 39
|
|
16293
16448
|
},
|
|
16294
16449
|
"3": {
|
|
16295
16450
|
name: "(anonymous_3)",
|
|
16296
16451
|
decl: {
|
|
16297
16452
|
start: {
|
|
16298
|
-
line:
|
|
16453
|
+
line: 64,
|
|
16299
16454
|
column: 18
|
|
16300
16455
|
},
|
|
16301
16456
|
end: {
|
|
16302
|
-
line:
|
|
16457
|
+
line: 64,
|
|
16303
16458
|
column: 19
|
|
16304
16459
|
}
|
|
16305
16460
|
},
|
|
16306
16461
|
loc: {
|
|
16307
16462
|
start: {
|
|
16308
|
-
line:
|
|
16463
|
+
line: 64,
|
|
16309
16464
|
column: 24
|
|
16310
16465
|
},
|
|
16311
16466
|
end: {
|
|
16312
|
-
line:
|
|
16467
|
+
line: 64,
|
|
16313
16468
|
column: 38
|
|
16314
16469
|
}
|
|
16315
16470
|
},
|
|
16316
|
-
line:
|
|
16471
|
+
line: 64
|
|
16317
16472
|
},
|
|
16318
16473
|
"4": {
|
|
16319
16474
|
name: "(anonymous_4)",
|
|
16320
16475
|
decl: {
|
|
16321
16476
|
start: {
|
|
16322
|
-
line:
|
|
16477
|
+
line: 79,
|
|
16323
16478
|
column: 35
|
|
16324
16479
|
},
|
|
16325
16480
|
end: {
|
|
16326
|
-
line:
|
|
16481
|
+
line: 79,
|
|
16327
16482
|
column: 36
|
|
16328
16483
|
}
|
|
16329
16484
|
},
|
|
16330
16485
|
loc: {
|
|
16331
16486
|
start: {
|
|
16332
|
-
line:
|
|
16487
|
+
line: 79,
|
|
16333
16488
|
column: 41
|
|
16334
16489
|
},
|
|
16335
16490
|
end: {
|
|
16336
|
-
line:
|
|
16491
|
+
line: 86,
|
|
16337
16492
|
column: 3
|
|
16338
16493
|
}
|
|
16339
16494
|
},
|
|
16340
|
-
line:
|
|
16495
|
+
line: 79
|
|
16341
16496
|
},
|
|
16342
16497
|
"5": {
|
|
16343
16498
|
name: "(anonymous_5)",
|
|
16344
16499
|
decl: {
|
|
16345
16500
|
start: {
|
|
16346
|
-
line:
|
|
16501
|
+
line: 88,
|
|
16347
16502
|
column: 12
|
|
16348
16503
|
},
|
|
16349
16504
|
end: {
|
|
16350
|
-
line:
|
|
16505
|
+
line: 88,
|
|
16351
16506
|
column: 13
|
|
16352
16507
|
}
|
|
16353
16508
|
},
|
|
16354
16509
|
loc: {
|
|
16355
16510
|
start: {
|
|
16356
|
-
line:
|
|
16511
|
+
line: 88,
|
|
16357
16512
|
column: 18
|
|
16358
16513
|
},
|
|
16359
16514
|
end: {
|
|
16360
|
-
line:
|
|
16515
|
+
line: 92,
|
|
16361
16516
|
column: 3
|
|
16362
16517
|
}
|
|
16363
16518
|
},
|
|
16364
|
-
line:
|
|
16519
|
+
line: 88
|
|
16365
16520
|
}
|
|
16366
16521
|
},
|
|
16367
16522
|
branchMap: {
|
|
16368
16523
|
"0": {
|
|
16369
16524
|
loc: {
|
|
16370
16525
|
start: {
|
|
16371
|
-
line:
|
|
16526
|
+
line: 32,
|
|
16372
16527
|
column: 23
|
|
16373
16528
|
},
|
|
16374
16529
|
end: {
|
|
16375
|
-
line:
|
|
16530
|
+
line: 32,
|
|
16376
16531
|
column: 35
|
|
16377
16532
|
}
|
|
16378
16533
|
},
|
|
16379
16534
|
type: "default-arg",
|
|
16380
16535
|
locations: [{
|
|
16381
16536
|
start: {
|
|
16382
|
-
line:
|
|
16537
|
+
line: 32,
|
|
16383
16538
|
column: 33
|
|
16384
16539
|
},
|
|
16385
16540
|
end: {
|
|
16386
|
-
line:
|
|
16541
|
+
line: 32,
|
|
16387
16542
|
column: 35
|
|
16388
16543
|
}
|
|
16389
16544
|
}],
|
|
16390
|
-
line:
|
|
16545
|
+
line: 32
|
|
16391
16546
|
},
|
|
16392
16547
|
"1": {
|
|
16393
16548
|
loc: {
|
|
16394
16549
|
start: {
|
|
16395
|
-
line:
|
|
16550
|
+
line: 33,
|
|
16396
16551
|
column: 4
|
|
16397
16552
|
},
|
|
16398
16553
|
end: {
|
|
16399
|
-
line:
|
|
16554
|
+
line: 33,
|
|
16400
16555
|
column: 75
|
|
16401
16556
|
}
|
|
16402
16557
|
},
|
|
16403
16558
|
type: "cond-expr",
|
|
16404
16559
|
locations: [{
|
|
16405
16560
|
start: {
|
|
16406
|
-
line:
|
|
16561
|
+
line: 33,
|
|
16407
16562
|
column: 24
|
|
16408
16563
|
},
|
|
16409
16564
|
end: {
|
|
16410
|
-
line:
|
|
16565
|
+
line: 33,
|
|
16411
16566
|
column: 42
|
|
16412
16567
|
}
|
|
16413
16568
|
}, {
|
|
16414
16569
|
start: {
|
|
16415
|
-
line:
|
|
16570
|
+
line: 33,
|
|
16416
16571
|
column: 45
|
|
16417
16572
|
},
|
|
16418
16573
|
end: {
|
|
16419
|
-
line:
|
|
16574
|
+
line: 33,
|
|
16420
16575
|
column: 75
|
|
16421
16576
|
}
|
|
16422
16577
|
}],
|
|
16423
|
-
line:
|
|
16578
|
+
line: 33
|
|
16424
16579
|
},
|
|
16425
16580
|
"2": {
|
|
16426
16581
|
loc: {
|
|
16427
16582
|
start: {
|
|
16428
|
-
line:
|
|
16583
|
+
line: 51,
|
|
16429
16584
|
column: 21
|
|
16430
16585
|
},
|
|
16431
16586
|
end: {
|
|
16432
|
-
line:
|
|
16587
|
+
line: 53,
|
|
16433
16588
|
column: 40
|
|
16434
16589
|
}
|
|
16435
16590
|
},
|
|
16436
16591
|
type: "cond-expr",
|
|
16437
16592
|
locations: [{
|
|
16438
16593
|
start: {
|
|
16439
|
-
line:
|
|
16594
|
+
line: 52,
|
|
16440
16595
|
column: 10
|
|
16441
16596
|
},
|
|
16442
16597
|
end: {
|
|
16443
|
-
line:
|
|
16598
|
+
line: 52,
|
|
16444
16599
|
column: 44
|
|
16445
16600
|
}
|
|
16446
16601
|
}, {
|
|
16447
16602
|
start: {
|
|
16448
|
-
line:
|
|
16603
|
+
line: 53,
|
|
16449
16604
|
column: 10
|
|
16450
16605
|
},
|
|
16451
16606
|
end: {
|
|
16452
|
-
line:
|
|
16607
|
+
line: 53,
|
|
16453
16608
|
column: 40
|
|
16454
16609
|
}
|
|
16455
16610
|
}],
|
|
16456
|
-
line:
|
|
16611
|
+
line: 51
|
|
16457
16612
|
},
|
|
16458
16613
|
"3": {
|
|
16459
16614
|
loc: {
|
|
16460
16615
|
start: {
|
|
16461
|
-
line:
|
|
16616
|
+
line: 80,
|
|
16462
16617
|
column: 4
|
|
16463
16618
|
},
|
|
16464
16619
|
end: {
|
|
16465
|
-
line:
|
|
16620
|
+
line: 80,
|
|
16466
16621
|
column: 39
|
|
16467
16622
|
}
|
|
16468
16623
|
},
|
|
16469
16624
|
type: "if",
|
|
16470
16625
|
locations: [{
|
|
16471
16626
|
start: {
|
|
16472
|
-
line:
|
|
16627
|
+
line: 80,
|
|
16473
16628
|
column: 4
|
|
16474
16629
|
},
|
|
16475
16630
|
end: {
|
|
16476
|
-
line:
|
|
16631
|
+
line: 80,
|
|
16477
16632
|
column: 39
|
|
16478
16633
|
}
|
|
16479
16634
|
}, {
|
|
@@ -16486,60 +16641,60 @@ function cov_28odpwq50i() {
|
|
|
16486
16641
|
column: undefined
|
|
16487
16642
|
}
|
|
16488
16643
|
}],
|
|
16489
|
-
line:
|
|
16644
|
+
line: 80
|
|
16490
16645
|
},
|
|
16491
16646
|
"4": {
|
|
16492
16647
|
loc: {
|
|
16493
16648
|
start: {
|
|
16494
|
-
line:
|
|
16649
|
+
line: 80,
|
|
16495
16650
|
column: 8
|
|
16496
16651
|
},
|
|
16497
16652
|
end: {
|
|
16498
|
-
line:
|
|
16653
|
+
line: 80,
|
|
16499
16654
|
column: 30
|
|
16500
16655
|
}
|
|
16501
16656
|
},
|
|
16502
16657
|
type: "binary-expr",
|
|
16503
16658
|
locations: [{
|
|
16504
16659
|
start: {
|
|
16505
|
-
line:
|
|
16660
|
+
line: 80,
|
|
16506
16661
|
column: 8
|
|
16507
16662
|
},
|
|
16508
16663
|
end: {
|
|
16509
|
-
line:
|
|
16664
|
+
line: 80,
|
|
16510
16665
|
column: 18
|
|
16511
16666
|
}
|
|
16512
16667
|
}, {
|
|
16513
16668
|
start: {
|
|
16514
|
-
line:
|
|
16669
|
+
line: 80,
|
|
16515
16670
|
column: 22
|
|
16516
16671
|
},
|
|
16517
16672
|
end: {
|
|
16518
|
-
line:
|
|
16673
|
+
line: 80,
|
|
16519
16674
|
column: 30
|
|
16520
16675
|
}
|
|
16521
16676
|
}],
|
|
16522
|
-
line:
|
|
16677
|
+
line: 80
|
|
16523
16678
|
},
|
|
16524
16679
|
"5": {
|
|
16525
16680
|
loc: {
|
|
16526
16681
|
start: {
|
|
16527
|
-
line:
|
|
16682
|
+
line: 82,
|
|
16528
16683
|
column: 4
|
|
16529
16684
|
},
|
|
16530
16685
|
end: {
|
|
16531
|
-
line:
|
|
16686
|
+
line: 85,
|
|
16532
16687
|
column: 5
|
|
16533
16688
|
}
|
|
16534
16689
|
},
|
|
16535
16690
|
type: "if",
|
|
16536
16691
|
locations: [{
|
|
16537
16692
|
start: {
|
|
16538
|
-
line:
|
|
16693
|
+
line: 82,
|
|
16539
16694
|
column: 4
|
|
16540
16695
|
},
|
|
16541
16696
|
end: {
|
|
16542
|
-
line:
|
|
16697
|
+
line: 85,
|
|
16543
16698
|
column: 5
|
|
16544
16699
|
}
|
|
16545
16700
|
}, {
|
|
@@ -16552,27 +16707,27 @@ function cov_28odpwq50i() {
|
|
|
16552
16707
|
column: undefined
|
|
16553
16708
|
}
|
|
16554
16709
|
}],
|
|
16555
|
-
line:
|
|
16710
|
+
line: 82
|
|
16556
16711
|
},
|
|
16557
16712
|
"6": {
|
|
16558
16713
|
loc: {
|
|
16559
16714
|
start: {
|
|
16560
|
-
line:
|
|
16715
|
+
line: 94,
|
|
16561
16716
|
column: 2
|
|
16562
16717
|
},
|
|
16563
16718
|
end: {
|
|
16564
|
-
line:
|
|
16719
|
+
line: 100,
|
|
16565
16720
|
column: 3
|
|
16566
16721
|
}
|
|
16567
16722
|
},
|
|
16568
16723
|
type: "if",
|
|
16569
16724
|
locations: [{
|
|
16570
16725
|
start: {
|
|
16571
|
-
line:
|
|
16726
|
+
line: 94,
|
|
16572
16727
|
column: 2
|
|
16573
16728
|
},
|
|
16574
16729
|
end: {
|
|
16575
|
-
line:
|
|
16730
|
+
line: 100,
|
|
16576
16731
|
column: 3
|
|
16577
16732
|
}
|
|
16578
16733
|
}, {
|
|
@@ -16585,7 +16740,7 @@ function cov_28odpwq50i() {
|
|
|
16585
16740
|
column: undefined
|
|
16586
16741
|
}
|
|
16587
16742
|
}],
|
|
16588
|
-
line:
|
|
16743
|
+
line: 94
|
|
16589
16744
|
}
|
|
16590
16745
|
},
|
|
16591
16746
|
s: {
|
|
@@ -16623,7 +16778,8 @@ function cov_28odpwq50i() {
|
|
|
16623
16778
|
"31": 0,
|
|
16624
16779
|
"32": 0,
|
|
16625
16780
|
"33": 0,
|
|
16626
|
-
"34": 0
|
|
16781
|
+
"34": 0,
|
|
16782
|
+
"35": 0
|
|
16627
16783
|
},
|
|
16628
16784
|
f: {
|
|
16629
16785
|
"0": 0,
|
|
@@ -16643,7 +16799,7 @@ function cov_28odpwq50i() {
|
|
|
16643
16799
|
"6": [0, 0]
|
|
16644
16800
|
},
|
|
16645
16801
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
16646
|
-
hash: "
|
|
16802
|
+
hash: "a1ba538f52c55a05f5d2facf2fed6bde1644feef"
|
|
16647
16803
|
};
|
|
16648
16804
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
16649
16805
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -16663,7 +16819,8 @@ cov_28odpwq50i().s[0]++;
|
|
|
16663
16819
|
var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
16664
16820
|
var debouncedQuery = _ref.debouncedQuery,
|
|
16665
16821
|
setSelectedImage = _ref.setSelectedImage,
|
|
16666
|
-
setIsUploading = _ref.setIsUploading
|
|
16822
|
+
setIsUploading = _ref.setIsUploading,
|
|
16823
|
+
setActiveTab = _ref.setActiveTab;
|
|
16667
16824
|
cov_28odpwq50i().f[0]++;
|
|
16668
16825
|
var _ref2 = (cov_28odpwq50i().s[1]++, React.useState(true)),
|
|
16669
16826
|
_ref3 = _slicedToArray$2(_ref2, 2),
|
|
@@ -16736,37 +16893,39 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16736
16893
|
result = _context.t0;
|
|
16737
16894
|
cov_28odpwq50i().s[15]++;
|
|
16738
16895
|
setSelectedImage(result);
|
|
16739
|
-
_context.next =
|
|
16896
|
+
_context.next = 33;
|
|
16740
16897
|
break;
|
|
16741
16898
|
case 27:
|
|
16742
16899
|
_context.prev = 27;
|
|
16743
16900
|
_context.t1 = _context["catch"](2);
|
|
16744
16901
|
cov_28odpwq50i().s[16]++;
|
|
16745
16902
|
neetoui.Toastr.error(_context.t1);
|
|
16746
|
-
case 31:
|
|
16747
|
-
_context.prev = 31;
|
|
16748
16903
|
cov_28odpwq50i().s[17]++;
|
|
16904
|
+
setActiveTab(TABS[0].key);
|
|
16905
|
+
case 33:
|
|
16906
|
+
_context.prev = 33;
|
|
16907
|
+
cov_28odpwq50i().s[18]++;
|
|
16749
16908
|
setIsUploading(false);
|
|
16750
|
-
return _context.finish(
|
|
16751
|
-
case
|
|
16909
|
+
return _context.finish(33);
|
|
16910
|
+
case 37:
|
|
16752
16911
|
case "end":
|
|
16753
16912
|
return _context.stop();
|
|
16754
16913
|
}
|
|
16755
|
-
}, _callee, null, [[2, 27,
|
|
16914
|
+
}, _callee, null, [[2, 27, 33, 37]]);
|
|
16756
16915
|
}));
|
|
16757
16916
|
return function handleUnsplashImageSelect(_x) {
|
|
16758
16917
|
return _ref11.apply(this, arguments);
|
|
16759
16918
|
};
|
|
16760
16919
|
}();
|
|
16761
|
-
cov_28odpwq50i().s[
|
|
16920
|
+
cov_28odpwq50i().s[19]++;
|
|
16762
16921
|
var onError = function onError() {
|
|
16763
16922
|
cov_28odpwq50i().f[3]++;
|
|
16764
|
-
cov_28odpwq50i().s[
|
|
16923
|
+
cov_28odpwq50i().s[20]++;
|
|
16765
16924
|
return setError(true);
|
|
16766
16925
|
};
|
|
16767
|
-
var _ref12 = (cov_28odpwq50i().s[
|
|
16926
|
+
var _ref12 = (cov_28odpwq50i().s[21]++, useTranslation()),
|
|
16768
16927
|
t = _ref12.t;
|
|
16769
|
-
var _ref13 = (cov_28odpwq50i().s[
|
|
16928
|
+
var _ref13 = (cov_28odpwq50i().s[22]++, useFetchUnsplashImages({
|
|
16770
16929
|
query: debouncedQuery,
|
|
16771
16930
|
pageNo: pageNo
|
|
16772
16931
|
}, {
|
|
@@ -16775,41 +16934,41 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16775
16934
|
})),
|
|
16776
16935
|
refetch = _ref13.refetch,
|
|
16777
16936
|
isFetching = _ref13.isFetching;
|
|
16778
|
-
var loadMore = (cov_28odpwq50i().s[
|
|
16937
|
+
var loadMore = (cov_28odpwq50i().s[23]++, reactUtils.useFuncDebounce(function () {
|
|
16779
16938
|
cov_28odpwq50i().f[4]++;
|
|
16780
|
-
cov_28odpwq50i().s[
|
|
16939
|
+
cov_28odpwq50i().s[24]++;
|
|
16781
16940
|
if ((cov_28odpwq50i().b[4][0]++, isFetching) || (cov_28odpwq50i().b[4][1]++, !hasMore)) {
|
|
16782
16941
|
cov_28odpwq50i().b[3][0]++;
|
|
16783
|
-
cov_28odpwq50i().s[
|
|
16942
|
+
cov_28odpwq50i().s[25]++;
|
|
16784
16943
|
return;
|
|
16785
16944
|
} else {
|
|
16786
16945
|
cov_28odpwq50i().b[3][1]++;
|
|
16787
16946
|
}
|
|
16788
|
-
cov_28odpwq50i().s[
|
|
16947
|
+
cov_28odpwq50i().s[26]++;
|
|
16789
16948
|
if (pageNo > 1) {
|
|
16790
16949
|
cov_28odpwq50i().b[5][0]++;
|
|
16791
|
-
cov_28odpwq50i().s[26]++;
|
|
16792
|
-
setError(false);
|
|
16793
16950
|
cov_28odpwq50i().s[27]++;
|
|
16951
|
+
setError(false);
|
|
16952
|
+
cov_28odpwq50i().s[28]++;
|
|
16794
16953
|
refetch();
|
|
16795
16954
|
} else {
|
|
16796
16955
|
cov_28odpwq50i().b[5][1]++;
|
|
16797
16956
|
}
|
|
16798
16957
|
}, 500));
|
|
16799
|
-
cov_28odpwq50i().s[
|
|
16958
|
+
cov_28odpwq50i().s[29]++;
|
|
16800
16959
|
React.useEffect(function () {
|
|
16801
16960
|
cov_28odpwq50i().f[5]++;
|
|
16802
|
-
cov_28odpwq50i().s[29]++;
|
|
16803
|
-
setPageNo(1);
|
|
16804
16961
|
cov_28odpwq50i().s[30]++;
|
|
16805
|
-
|
|
16962
|
+
setPageNo(1);
|
|
16806
16963
|
cov_28odpwq50i().s[31]++;
|
|
16964
|
+
setImages([]);
|
|
16965
|
+
cov_28odpwq50i().s[32]++;
|
|
16807
16966
|
refetch();
|
|
16808
16967
|
}, [debouncedQuery]);
|
|
16809
|
-
cov_28odpwq50i().s[
|
|
16968
|
+
cov_28odpwq50i().s[33]++;
|
|
16810
16969
|
if (error) {
|
|
16811
16970
|
cov_28odpwq50i().b[6][0]++;
|
|
16812
|
-
cov_28odpwq50i().s[
|
|
16971
|
+
cov_28odpwq50i().s[34]++;
|
|
16813
16972
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
16814
16973
|
className: "mt-9 flex justify-center",
|
|
16815
16974
|
style: "body2"
|
|
@@ -16817,7 +16976,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16817
16976
|
} else {
|
|
16818
16977
|
cov_28odpwq50i().b[6][1]++;
|
|
16819
16978
|
}
|
|
16820
|
-
cov_28odpwq50i().s[
|
|
16979
|
+
cov_28odpwq50i().s[35]++;
|
|
16821
16980
|
return /*#__PURE__*/React__default["default"].createElement(InfiniteScroller, {
|
|
16822
16981
|
handleUnsplashImageSelect: handleUnsplashImageSelect,
|
|
16823
16982
|
hasMore: hasMore,
|
|
@@ -16829,7 +16988,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16829
16988
|
|
|
16830
16989
|
function cov_zqbvekg8p() {
|
|
16831
16990
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/index.jsx";
|
|
16832
|
-
var hash = "
|
|
16991
|
+
var hash = "33d509b88b1d3cbda9975e4155d54874bfd9ef7f";
|
|
16833
16992
|
var global = new Function("return this")();
|
|
16834
16993
|
var gcv = "__coverage__";
|
|
16835
16994
|
var coverageData = {
|
|
@@ -16841,77 +17000,77 @@ function cov_zqbvekg8p() {
|
|
|
16841
17000
|
column: 21
|
|
16842
17001
|
},
|
|
16843
17002
|
end: {
|
|
16844
|
-
line:
|
|
17003
|
+
line: 54,
|
|
16845
17004
|
column: 1
|
|
16846
17005
|
}
|
|
16847
17006
|
},
|
|
16848
17007
|
"1": {
|
|
16849
17008
|
start: {
|
|
16850
|
-
line:
|
|
17009
|
+
line: 18,
|
|
16851
17010
|
column: 28
|
|
16852
17011
|
},
|
|
16853
17012
|
end: {
|
|
16854
|
-
line:
|
|
17013
|
+
line: 18,
|
|
16855
17014
|
column: 40
|
|
16856
17015
|
}
|
|
16857
17016
|
},
|
|
16858
17017
|
"2": {
|
|
16859
17018
|
start: {
|
|
16860
|
-
line:
|
|
17019
|
+
line: 20,
|
|
16861
17020
|
column: 16
|
|
16862
17021
|
},
|
|
16863
17022
|
end: {
|
|
16864
|
-
line:
|
|
17023
|
+
line: 20,
|
|
16865
17024
|
column: 32
|
|
16866
17025
|
}
|
|
16867
17026
|
},
|
|
16868
17027
|
"3": {
|
|
16869
17028
|
start: {
|
|
16870
|
-
line:
|
|
17029
|
+
line: 22,
|
|
16871
17030
|
column: 25
|
|
16872
17031
|
},
|
|
16873
17032
|
end: {
|
|
16874
|
-
line:
|
|
17033
|
+
line: 22,
|
|
16875
17034
|
column: 48
|
|
16876
17035
|
}
|
|
16877
17036
|
},
|
|
16878
17037
|
"4": {
|
|
16879
17038
|
start: {
|
|
16880
|
-
line:
|
|
17039
|
+
line: 24,
|
|
16881
17040
|
column: 2
|
|
16882
17041
|
},
|
|
16883
17042
|
end: {
|
|
16884
|
-
line:
|
|
17043
|
+
line: 26,
|
|
16885
17044
|
column: 12
|
|
16886
17045
|
}
|
|
16887
17046
|
},
|
|
16888
17047
|
"5": {
|
|
16889
17048
|
start: {
|
|
16890
|
-
line:
|
|
17049
|
+
line: 25,
|
|
16891
17050
|
column: 4
|
|
16892
17051
|
},
|
|
16893
17052
|
end: {
|
|
16894
|
-
line:
|
|
17053
|
+
line: 25,
|
|
16895
17054
|
column: 17
|
|
16896
17055
|
}
|
|
16897
17056
|
},
|
|
16898
17057
|
"6": {
|
|
16899
17058
|
start: {
|
|
16900
|
-
line:
|
|
17059
|
+
line: 28,
|
|
16901
17060
|
column: 2
|
|
16902
17061
|
},
|
|
16903
17062
|
end: {
|
|
16904
|
-
line:
|
|
17063
|
+
line: 53,
|
|
16905
17064
|
column: 4
|
|
16906
17065
|
}
|
|
16907
17066
|
},
|
|
16908
17067
|
"7": {
|
|
16909
17068
|
start: {
|
|
16910
|
-
line:
|
|
17069
|
+
line: 37,
|
|
16911
17070
|
column: 45
|
|
16912
17071
|
},
|
|
16913
17072
|
end: {
|
|
16914
|
-
line:
|
|
17073
|
+
line: 37,
|
|
16915
17074
|
column: 60
|
|
16916
17075
|
}
|
|
16917
17076
|
}
|
|
@@ -16931,98 +17090,98 @@ function cov_zqbvekg8p() {
|
|
|
16931
17090
|
},
|
|
16932
17091
|
loc: {
|
|
16933
17092
|
start: {
|
|
16934
|
-
line:
|
|
16935
|
-
column:
|
|
17093
|
+
line: 17,
|
|
17094
|
+
column: 6
|
|
16936
17095
|
},
|
|
16937
17096
|
end: {
|
|
16938
|
-
line:
|
|
17097
|
+
line: 54,
|
|
16939
17098
|
column: 1
|
|
16940
17099
|
}
|
|
16941
17100
|
},
|
|
16942
|
-
line:
|
|
17101
|
+
line: 17
|
|
16943
17102
|
},
|
|
16944
17103
|
"1": {
|
|
16945
17104
|
name: "(anonymous_1)",
|
|
16946
17105
|
decl: {
|
|
16947
17106
|
start: {
|
|
16948
|
-
line:
|
|
17107
|
+
line: 24,
|
|
16949
17108
|
column: 12
|
|
16950
17109
|
},
|
|
16951
17110
|
end: {
|
|
16952
|
-
line:
|
|
17111
|
+
line: 24,
|
|
16953
17112
|
column: 13
|
|
16954
17113
|
}
|
|
16955
17114
|
},
|
|
16956
17115
|
loc: {
|
|
16957
17116
|
start: {
|
|
16958
|
-
line:
|
|
17117
|
+
line: 24,
|
|
16959
17118
|
column: 18
|
|
16960
17119
|
},
|
|
16961
17120
|
end: {
|
|
16962
|
-
line:
|
|
17121
|
+
line: 26,
|
|
16963
17122
|
column: 3
|
|
16964
17123
|
}
|
|
16965
17124
|
},
|
|
16966
|
-
line:
|
|
17125
|
+
line: 24
|
|
16967
17126
|
},
|
|
16968
17127
|
"2": {
|
|
16969
17128
|
name: "(anonymous_2)",
|
|
16970
17129
|
decl: {
|
|
16971
17130
|
start: {
|
|
16972
|
-
line:
|
|
17131
|
+
line: 37,
|
|
16973
17132
|
column: 18
|
|
16974
17133
|
},
|
|
16975
17134
|
end: {
|
|
16976
|
-
line:
|
|
17135
|
+
line: 37,
|
|
16977
17136
|
column: 19
|
|
16978
17137
|
}
|
|
16979
17138
|
},
|
|
16980
17139
|
loc: {
|
|
16981
17140
|
start: {
|
|
16982
|
-
line:
|
|
17141
|
+
line: 37,
|
|
16983
17142
|
column: 45
|
|
16984
17143
|
},
|
|
16985
17144
|
end: {
|
|
16986
|
-
line:
|
|
17145
|
+
line: 37,
|
|
16987
17146
|
column: 60
|
|
16988
17147
|
}
|
|
16989
17148
|
},
|
|
16990
|
-
line:
|
|
17149
|
+
line: 37
|
|
16991
17150
|
}
|
|
16992
17151
|
},
|
|
16993
17152
|
branchMap: {
|
|
16994
17153
|
"0": {
|
|
16995
17154
|
loc: {
|
|
16996
17155
|
start: {
|
|
16997
|
-
line:
|
|
17156
|
+
line: 39,
|
|
16998
17157
|
column: 7
|
|
16999
17158
|
},
|
|
17000
17159
|
end: {
|
|
17001
|
-
line:
|
|
17160
|
+
line: 51,
|
|
17002
17161
|
column: 7
|
|
17003
17162
|
}
|
|
17004
17163
|
},
|
|
17005
17164
|
type: "cond-expr",
|
|
17006
17165
|
locations: [{
|
|
17007
17166
|
start: {
|
|
17008
|
-
line:
|
|
17167
|
+
line: 40,
|
|
17009
17168
|
column: 8
|
|
17010
17169
|
},
|
|
17011
17170
|
end: {
|
|
17012
|
-
line:
|
|
17171
|
+
line: 43,
|
|
17013
17172
|
column: 10
|
|
17014
17173
|
}
|
|
17015
17174
|
}, {
|
|
17016
17175
|
start: {
|
|
17017
|
-
line:
|
|
17176
|
+
line: 45,
|
|
17018
17177
|
column: 8
|
|
17019
17178
|
},
|
|
17020
17179
|
end: {
|
|
17021
|
-
line:
|
|
17180
|
+
line: 50,
|
|
17022
17181
|
column: 10
|
|
17023
17182
|
}
|
|
17024
17183
|
}],
|
|
17025
|
-
line:
|
|
17184
|
+
line: 39
|
|
17026
17185
|
}
|
|
17027
17186
|
},
|
|
17028
17187
|
s: {
|
|
@@ -17044,7 +17203,7 @@ function cov_zqbvekg8p() {
|
|
|
17044
17203
|
"0": [0, 0]
|
|
17045
17204
|
},
|
|
17046
17205
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
17047
|
-
hash: "
|
|
17206
|
+
hash: "33d509b88b1d3cbda9975e4155d54874bfd9ef7f"
|
|
17048
17207
|
};
|
|
17049
17208
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
17050
17209
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -17064,7 +17223,8 @@ cov_zqbvekg8p().s[0]++;
|
|
|
17064
17223
|
var ImageLibrary = function ImageLibrary(_ref) {
|
|
17065
17224
|
var setSelectedImage = _ref.setSelectedImage,
|
|
17066
17225
|
tab = _ref.tab,
|
|
17067
|
-
setIsUploading = _ref.setIsUploading
|
|
17226
|
+
setIsUploading = _ref.setIsUploading,
|
|
17227
|
+
setActiveTab = _ref.setActiveTab;
|
|
17068
17228
|
cov_zqbvekg8p().f[0]++;
|
|
17069
17229
|
var _ref2 = (cov_zqbvekg8p().s[1]++, React.useState("")),
|
|
17070
17230
|
_ref3 = _slicedToArray$2(_ref2, 2),
|
|
@@ -17100,6 +17260,7 @@ var ImageLibrary = function ImageLibrary(_ref) {
|
|
|
17100
17260
|
setSelectedImage: setSelectedImage
|
|
17101
17261
|
})) : (cov_zqbvekg8p().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(UnsplashLibrary, {
|
|
17102
17262
|
debouncedQuery: debouncedQuery,
|
|
17263
|
+
setActiveTab: setActiveTab,
|
|
17103
17264
|
setIsUploading: setIsUploading,
|
|
17104
17265
|
setSelectedImage: setSelectedImage
|
|
17105
17266
|
})));
|
|
@@ -17107,7 +17268,7 @@ var ImageLibrary = function ImageLibrary(_ref) {
|
|
|
17107
17268
|
|
|
17108
17269
|
function cov_2my1w2udyi() {
|
|
17109
17270
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/Modal/index.jsx";
|
|
17110
|
-
var hash = "
|
|
17271
|
+
var hash = "bed00b5694691cad842bce85480ae0581d29bbbe";
|
|
17111
17272
|
var global = new Function("return this")();
|
|
17112
17273
|
var gcv = "__coverage__";
|
|
17113
17274
|
var coverageData = {
|
|
@@ -17115,281 +17276,291 @@ function cov_2my1w2udyi() {
|
|
|
17115
17276
|
statementMap: {
|
|
17116
17277
|
"0": {
|
|
17117
17278
|
start: {
|
|
17118
|
-
line:
|
|
17279
|
+
line: 27,
|
|
17119
17280
|
column: 14
|
|
17120
17281
|
},
|
|
17121
17282
|
end: {
|
|
17122
|
-
line:
|
|
17283
|
+
line: 171,
|
|
17123
17284
|
column: 1
|
|
17124
17285
|
}
|
|
17125
17286
|
},
|
|
17126
17287
|
"1": {
|
|
17127
17288
|
start: {
|
|
17128
|
-
line:
|
|
17289
|
+
line: 33,
|
|
17129
17290
|
column: 36
|
|
17130
17291
|
},
|
|
17131
17292
|
end: {
|
|
17132
|
-
line:
|
|
17293
|
+
line: 33,
|
|
17133
17294
|
column: 57
|
|
17134
17295
|
}
|
|
17135
17296
|
},
|
|
17136
17297
|
"2": {
|
|
17137
17298
|
start: {
|
|
17138
|
-
line:
|
|
17299
|
+
line: 34,
|
|
17139
17300
|
column: 44
|
|
17140
17301
|
},
|
|
17141
17302
|
end: {
|
|
17142
|
-
line:
|
|
17303
|
+
line: 34,
|
|
17143
17304
|
column: 56
|
|
17144
17305
|
}
|
|
17145
17306
|
},
|
|
17146
17307
|
"3": {
|
|
17147
17308
|
start: {
|
|
17148
|
-
line:
|
|
17309
|
+
line: 35,
|
|
17149
17310
|
column: 40
|
|
17150
17311
|
},
|
|
17151
17312
|
end: {
|
|
17152
|
-
line:
|
|
17313
|
+
line: 35,
|
|
17153
17314
|
column: 55
|
|
17154
17315
|
}
|
|
17155
17316
|
},
|
|
17156
17317
|
"4": {
|
|
17157
17318
|
start: {
|
|
17158
|
-
line:
|
|
17319
|
+
line: 37,
|
|
17159
17320
|
column: 16
|
|
17160
17321
|
},
|
|
17161
17322
|
end: {
|
|
17162
|
-
line:
|
|
17323
|
+
line: 37,
|
|
17163
17324
|
column: 32
|
|
17164
17325
|
}
|
|
17165
17326
|
},
|
|
17166
17327
|
"5": {
|
|
17167
17328
|
start: {
|
|
17168
|
-
line:
|
|
17329
|
+
line: 39,
|
|
17169
17330
|
column: 33
|
|
17170
17331
|
},
|
|
17171
17332
|
end: {
|
|
17172
|
-
line:
|
|
17333
|
+
line: 39,
|
|
17173
17334
|
column: 48
|
|
17174
17335
|
}
|
|
17175
17336
|
},
|
|
17176
17337
|
"6": {
|
|
17177
17338
|
start: {
|
|
17178
|
-
line:
|
|
17179
|
-
column:
|
|
17339
|
+
line: 41,
|
|
17340
|
+
column: 35
|
|
17180
17341
|
},
|
|
17181
17342
|
end: {
|
|
17182
|
-
line:
|
|
17343
|
+
line: 44,
|
|
17183
17344
|
column: 3
|
|
17184
17345
|
}
|
|
17185
17346
|
},
|
|
17186
17347
|
"7": {
|
|
17187
17348
|
start: {
|
|
17188
|
-
line:
|
|
17349
|
+
line: 46,
|
|
17350
|
+
column: 27
|
|
17351
|
+
},
|
|
17352
|
+
end: {
|
|
17353
|
+
line: 49,
|
|
17354
|
+
column: 3
|
|
17355
|
+
}
|
|
17356
|
+
},
|
|
17357
|
+
"8": {
|
|
17358
|
+
start: {
|
|
17359
|
+
line: 47,
|
|
17189
17360
|
column: 4
|
|
17190
17361
|
},
|
|
17191
17362
|
end: {
|
|
17192
|
-
line:
|
|
17363
|
+
line: 47,
|
|
17193
17364
|
column: 14
|
|
17194
17365
|
}
|
|
17195
17366
|
},
|
|
17196
|
-
"
|
|
17367
|
+
"9": {
|
|
17197
17368
|
start: {
|
|
17198
|
-
line:
|
|
17369
|
+
line: 48,
|
|
17199
17370
|
column: 4
|
|
17200
17371
|
},
|
|
17201
17372
|
end: {
|
|
17202
|
-
line:
|
|
17373
|
+
line: 48,
|
|
17203
17374
|
column: 25
|
|
17204
17375
|
}
|
|
17205
17376
|
},
|
|
17206
|
-
"
|
|
17377
|
+
"10": {
|
|
17207
17378
|
start: {
|
|
17208
|
-
line:
|
|
17379
|
+
line: 51,
|
|
17209
17380
|
column: 34
|
|
17210
17381
|
},
|
|
17211
17382
|
end: {
|
|
17212
|
-
line:
|
|
17383
|
+
line: 78,
|
|
17213
17384
|
column: 3
|
|
17214
17385
|
}
|
|
17215
17386
|
},
|
|
17216
|
-
"
|
|
17387
|
+
"11": {
|
|
17217
17388
|
start: {
|
|
17218
|
-
line:
|
|
17389
|
+
line: 52,
|
|
17219
17390
|
column: 4
|
|
17220
17391
|
},
|
|
17221
17392
|
end: {
|
|
17222
|
-
line:
|
|
17393
|
+
line: 76,
|
|
17223
17394
|
column: 5
|
|
17224
17395
|
}
|
|
17225
17396
|
},
|
|
17226
|
-
"
|
|
17397
|
+
"12": {
|
|
17227
17398
|
start: {
|
|
17228
|
-
line:
|
|
17399
|
+
line: 53,
|
|
17229
17400
|
column: 6
|
|
17230
17401
|
},
|
|
17231
17402
|
end: {
|
|
17232
|
-
line:
|
|
17403
|
+
line: 56,
|
|
17233
17404
|
column: 9
|
|
17234
17405
|
}
|
|
17235
17406
|
},
|
|
17236
|
-
"
|
|
17407
|
+
"13": {
|
|
17237
17408
|
start: {
|
|
17238
|
-
line:
|
|
17409
|
+
line: 58,
|
|
17239
17410
|
column: 22
|
|
17240
17411
|
},
|
|
17241
17412
|
end: {
|
|
17242
|
-
line:
|
|
17413
|
+
line: 65,
|
|
17243
17414
|
column: 7
|
|
17244
17415
|
}
|
|
17245
17416
|
},
|
|
17246
|
-
"
|
|
17417
|
+
"14": {
|
|
17247
17418
|
start: {
|
|
17248
|
-
line:
|
|
17419
|
+
line: 67,
|
|
17249
17420
|
column: 6
|
|
17250
17421
|
},
|
|
17251
17422
|
end: {
|
|
17252
|
-
line:
|
|
17423
|
+
line: 75,
|
|
17253
17424
|
column: 9
|
|
17254
17425
|
}
|
|
17255
17426
|
},
|
|
17256
|
-
"
|
|
17427
|
+
"15": {
|
|
17257
17428
|
start: {
|
|
17258
|
-
line:
|
|
17429
|
+
line: 69,
|
|
17259
17430
|
column: 10
|
|
17260
17431
|
},
|
|
17261
17432
|
end: {
|
|
17262
|
-
line:
|
|
17433
|
+
line: 72,
|
|
17263
17434
|
column: 13
|
|
17264
17435
|
}
|
|
17265
17436
|
},
|
|
17266
|
-
"
|
|
17437
|
+
"16": {
|
|
17267
17438
|
start: {
|
|
17268
|
-
line:
|
|
17439
|
+
line: 77,
|
|
17269
17440
|
column: 4
|
|
17270
17441
|
},
|
|
17271
17442
|
end: {
|
|
17272
|
-
line:
|
|
17443
|
+
line: 77,
|
|
17273
17444
|
column: 23
|
|
17274
17445
|
}
|
|
17275
17446
|
},
|
|
17276
|
-
"
|
|
17447
|
+
"17": {
|
|
17277
17448
|
start: {
|
|
17278
|
-
line:
|
|
17449
|
+
line: 81,
|
|
17279
17450
|
column: 4
|
|
17280
17451
|
},
|
|
17281
17452
|
end: {
|
|
17282
|
-
line:
|
|
17453
|
+
line: 86,
|
|
17283
17454
|
column: 6
|
|
17284
17455
|
}
|
|
17285
17456
|
},
|
|
17286
|
-
"
|
|
17457
|
+
"18": {
|
|
17287
17458
|
start: {
|
|
17288
|
-
line:
|
|
17459
|
+
line: 88,
|
|
17289
17460
|
column: 31
|
|
17290
17461
|
},
|
|
17291
17462
|
end: {
|
|
17292
|
-
line:
|
|
17463
|
+
line: 88,
|
|
17293
17464
|
column: 62
|
|
17294
17465
|
}
|
|
17295
17466
|
},
|
|
17296
|
-
"
|
|
17467
|
+
"19": {
|
|
17297
17468
|
start: {
|
|
17298
|
-
line:
|
|
17469
|
+
line: 88,
|
|
17299
17470
|
column: 37
|
|
17300
17471
|
},
|
|
17301
17472
|
end: {
|
|
17302
|
-
line:
|
|
17473
|
+
line: 88,
|
|
17303
17474
|
column: 62
|
|
17304
17475
|
}
|
|
17305
17476
|
},
|
|
17306
|
-
"
|
|
17477
|
+
"20": {
|
|
17307
17478
|
start: {
|
|
17308
|
-
line:
|
|
17479
|
+
line: 89,
|
|
17309
17480
|
column: 18
|
|
17310
17481
|
},
|
|
17311
17482
|
end: {
|
|
17312
|
-
line:
|
|
17483
|
+
line: 91,
|
|
17313
17484
|
column: 4
|
|
17314
17485
|
}
|
|
17315
17486
|
},
|
|
17316
|
-
"
|
|
17487
|
+
"21": {
|
|
17317
17488
|
start: {
|
|
17318
|
-
line:
|
|
17489
|
+
line: 93,
|
|
17319
17490
|
column: 2
|
|
17320
17491
|
},
|
|
17321
17492
|
end: {
|
|
17322
|
-
line:
|
|
17493
|
+
line: 95,
|
|
17323
17494
|
column: 15
|
|
17324
17495
|
}
|
|
17325
17496
|
},
|
|
17326
|
-
"
|
|
17497
|
+
"22": {
|
|
17327
17498
|
start: {
|
|
17328
|
-
line:
|
|
17499
|
+
line: 94,
|
|
17329
17500
|
column: 4
|
|
17330
17501
|
},
|
|
17331
17502
|
end: {
|
|
17332
|
-
line:
|
|
17503
|
+
line: 94,
|
|
17333
17504
|
column: 30
|
|
17334
17505
|
}
|
|
17335
17506
|
},
|
|
17336
|
-
"
|
|
17507
|
+
"23": {
|
|
17337
17508
|
start: {
|
|
17338
|
-
line:
|
|
17509
|
+
line: 97,
|
|
17339
17510
|
column: 2
|
|
17340
17511
|
},
|
|
17341
17512
|
end: {
|
|
17342
|
-
line:
|
|
17513
|
+
line: 170,
|
|
17343
17514
|
column: 4
|
|
17344
17515
|
}
|
|
17345
17516
|
},
|
|
17346
|
-
"
|
|
17517
|
+
"24": {
|
|
17347
17518
|
start: {
|
|
17348
|
-
line:
|
|
17519
|
+
line: 120,
|
|
17349
17520
|
column: 29
|
|
17350
17521
|
},
|
|
17351
17522
|
end: {
|
|
17352
|
-
line:
|
|
17523
|
+
line: 120,
|
|
17353
17524
|
column: 49
|
|
17354
17525
|
}
|
|
17355
17526
|
},
|
|
17356
|
-
"
|
|
17527
|
+
"25": {
|
|
17357
17528
|
start: {
|
|
17358
|
-
line:
|
|
17529
|
+
line: 128,
|
|
17359
17530
|
column: 30
|
|
17360
17531
|
},
|
|
17361
17532
|
end: {
|
|
17362
|
-
line:
|
|
17533
|
+
line: 128,
|
|
17363
17534
|
column: 53
|
|
17364
17535
|
}
|
|
17365
17536
|
},
|
|
17366
|
-
"
|
|
17537
|
+
"26": {
|
|
17367
17538
|
start: {
|
|
17368
|
-
line:
|
|
17539
|
+
line: 138,
|
|
17369
17540
|
column: 18
|
|
17370
17541
|
},
|
|
17371
17542
|
end: {
|
|
17372
|
-
line:
|
|
17543
|
+
line: 144,
|
|
17373
17544
|
column: 29
|
|
17374
17545
|
}
|
|
17375
17546
|
},
|
|
17376
|
-
"
|
|
17547
|
+
"27": {
|
|
17377
17548
|
start: {
|
|
17378
|
-
line:
|
|
17549
|
+
line: 141,
|
|
17379
17550
|
column: 35
|
|
17380
17551
|
},
|
|
17381
17552
|
end: {
|
|
17382
|
-
line:
|
|
17553
|
+
line: 141,
|
|
17383
17554
|
column: 56
|
|
17384
17555
|
}
|
|
17385
17556
|
},
|
|
17386
|
-
"
|
|
17557
|
+
"28": {
|
|
17387
17558
|
start: {
|
|
17388
|
-
line:
|
|
17559
|
+
line: 150,
|
|
17389
17560
|
column: 16
|
|
17390
17561
|
},
|
|
17391
17562
|
end: {
|
|
17392
|
-
line:
|
|
17563
|
+
line: 156,
|
|
17393
17564
|
column: 18
|
|
17394
17565
|
}
|
|
17395
17566
|
}
|
|
@@ -17399,456 +17570,456 @@ function cov_2my1w2udyi() {
|
|
|
17399
17570
|
name: "(anonymous_0)",
|
|
17400
17571
|
decl: {
|
|
17401
17572
|
start: {
|
|
17402
|
-
line:
|
|
17573
|
+
line: 27,
|
|
17403
17574
|
column: 14
|
|
17404
17575
|
},
|
|
17405
17576
|
end: {
|
|
17406
|
-
line:
|
|
17577
|
+
line: 27,
|
|
17407
17578
|
column: 15
|
|
17408
17579
|
}
|
|
17409
17580
|
},
|
|
17410
17581
|
loc: {
|
|
17411
17582
|
start: {
|
|
17412
|
-
line:
|
|
17413
|
-
column:
|
|
17583
|
+
line: 32,
|
|
17584
|
+
column: 6
|
|
17414
17585
|
},
|
|
17415
17586
|
end: {
|
|
17416
|
-
line:
|
|
17587
|
+
line: 171,
|
|
17417
17588
|
column: 1
|
|
17418
17589
|
}
|
|
17419
17590
|
},
|
|
17420
|
-
line:
|
|
17591
|
+
line: 32
|
|
17421
17592
|
},
|
|
17422
17593
|
"1": {
|
|
17423
17594
|
name: "(anonymous_1)",
|
|
17424
17595
|
decl: {
|
|
17425
17596
|
start: {
|
|
17426
|
-
line:
|
|
17597
|
+
line: 46,
|
|
17427
17598
|
column: 27
|
|
17428
17599
|
},
|
|
17429
17600
|
end: {
|
|
17430
|
-
line:
|
|
17601
|
+
line: 46,
|
|
17431
17602
|
column: 28
|
|
17432
17603
|
}
|
|
17433
17604
|
},
|
|
17434
17605
|
loc: {
|
|
17435
17606
|
start: {
|
|
17436
|
-
line:
|
|
17607
|
+
line: 46,
|
|
17437
17608
|
column: 33
|
|
17438
17609
|
},
|
|
17439
17610
|
end: {
|
|
17440
|
-
line:
|
|
17611
|
+
line: 49,
|
|
17441
17612
|
column: 3
|
|
17442
17613
|
}
|
|
17443
17614
|
},
|
|
17444
|
-
line:
|
|
17615
|
+
line: 46
|
|
17445
17616
|
},
|
|
17446
17617
|
"2": {
|
|
17447
17618
|
name: "(anonymous_2)",
|
|
17448
17619
|
decl: {
|
|
17449
17620
|
start: {
|
|
17450
|
-
line:
|
|
17621
|
+
line: 51,
|
|
17451
17622
|
column: 34
|
|
17452
17623
|
},
|
|
17453
17624
|
end: {
|
|
17454
|
-
line:
|
|
17625
|
+
line: 51,
|
|
17455
17626
|
column: 35
|
|
17456
17627
|
}
|
|
17457
17628
|
},
|
|
17458
17629
|
loc: {
|
|
17459
17630
|
start: {
|
|
17460
|
-
line:
|
|
17631
|
+
line: 51,
|
|
17461
17632
|
column: 49
|
|
17462
17633
|
},
|
|
17463
17634
|
end: {
|
|
17464
|
-
line:
|
|
17635
|
+
line: 78,
|
|
17465
17636
|
column: 3
|
|
17466
17637
|
}
|
|
17467
17638
|
},
|
|
17468
|
-
line:
|
|
17639
|
+
line: 51
|
|
17469
17640
|
},
|
|
17470
17641
|
"3": {
|
|
17471
17642
|
name: "(anonymous_3)",
|
|
17472
17643
|
decl: {
|
|
17473
17644
|
start: {
|
|
17474
|
-
line:
|
|
17645
|
+
line: 68,
|
|
17475
17646
|
column: 19
|
|
17476
17647
|
},
|
|
17477
17648
|
end: {
|
|
17478
|
-
line:
|
|
17649
|
+
line: 68,
|
|
17479
17650
|
column: 20
|
|
17480
17651
|
}
|
|
17481
17652
|
},
|
|
17482
17653
|
loc: {
|
|
17483
17654
|
start: {
|
|
17484
|
-
line:
|
|
17655
|
+
line: 68,
|
|
17485
17656
|
column: 28
|
|
17486
17657
|
},
|
|
17487
17658
|
end: {
|
|
17488
|
-
line:
|
|
17659
|
+
line: 73,
|
|
17489
17660
|
column: 9
|
|
17490
17661
|
}
|
|
17491
17662
|
},
|
|
17492
|
-
line:
|
|
17663
|
+
line: 68
|
|
17493
17664
|
},
|
|
17494
17665
|
"4": {
|
|
17495
17666
|
name: "(anonymous_4)",
|
|
17496
17667
|
decl: {
|
|
17497
17668
|
start: {
|
|
17498
|
-
line:
|
|
17669
|
+
line: 88,
|
|
17499
17670
|
column: 31
|
|
17500
17671
|
},
|
|
17501
17672
|
end: {
|
|
17502
|
-
line:
|
|
17673
|
+
line: 88,
|
|
17503
17674
|
column: 32
|
|
17504
17675
|
}
|
|
17505
17676
|
},
|
|
17506
17677
|
loc: {
|
|
17507
17678
|
start: {
|
|
17508
|
-
line:
|
|
17679
|
+
line: 88,
|
|
17509
17680
|
column: 37
|
|
17510
17681
|
},
|
|
17511
17682
|
end: {
|
|
17512
|
-
line:
|
|
17683
|
+
line: 88,
|
|
17513
17684
|
column: 62
|
|
17514
17685
|
}
|
|
17515
17686
|
},
|
|
17516
|
-
line:
|
|
17687
|
+
line: 88
|
|
17517
17688
|
},
|
|
17518
17689
|
"5": {
|
|
17519
17690
|
name: "(anonymous_5)",
|
|
17520
17691
|
decl: {
|
|
17521
17692
|
start: {
|
|
17522
|
-
line:
|
|
17693
|
+
line: 93,
|
|
17523
17694
|
column: 12
|
|
17524
17695
|
},
|
|
17525
17696
|
end: {
|
|
17526
|
-
line:
|
|
17697
|
+
line: 93,
|
|
17527
17698
|
column: 13
|
|
17528
17699
|
}
|
|
17529
17700
|
},
|
|
17530
17701
|
loc: {
|
|
17531
17702
|
start: {
|
|
17532
|
-
line:
|
|
17703
|
+
line: 93,
|
|
17533
17704
|
column: 18
|
|
17534
17705
|
},
|
|
17535
17706
|
end: {
|
|
17536
|
-
line:
|
|
17707
|
+
line: 95,
|
|
17537
17708
|
column: 3
|
|
17538
17709
|
}
|
|
17539
17710
|
},
|
|
17540
|
-
line:
|
|
17711
|
+
line: 93
|
|
17541
17712
|
},
|
|
17542
17713
|
"6": {
|
|
17543
17714
|
name: "(anonymous_6)",
|
|
17544
17715
|
decl: {
|
|
17545
17716
|
start: {
|
|
17546
|
-
line:
|
|
17717
|
+
line: 120,
|
|
17547
17718
|
column: 23
|
|
17548
17719
|
},
|
|
17549
17720
|
end: {
|
|
17550
|
-
line:
|
|
17721
|
+
line: 120,
|
|
17551
17722
|
column: 24
|
|
17552
17723
|
}
|
|
17553
17724
|
},
|
|
17554
17725
|
loc: {
|
|
17555
17726
|
start: {
|
|
17556
|
-
line:
|
|
17727
|
+
line: 120,
|
|
17557
17728
|
column: 29
|
|
17558
17729
|
},
|
|
17559
17730
|
end: {
|
|
17560
|
-
line:
|
|
17731
|
+
line: 120,
|
|
17561
17732
|
column: 49
|
|
17562
17733
|
}
|
|
17563
17734
|
},
|
|
17564
|
-
line:
|
|
17735
|
+
line: 120
|
|
17565
17736
|
},
|
|
17566
17737
|
"7": {
|
|
17567
17738
|
name: "(anonymous_7)",
|
|
17568
17739
|
decl: {
|
|
17569
17740
|
start: {
|
|
17570
|
-
line:
|
|
17741
|
+
line: 128,
|
|
17571
17742
|
column: 21
|
|
17572
17743
|
},
|
|
17573
17744
|
end: {
|
|
17574
|
-
line:
|
|
17745
|
+
line: 128,
|
|
17575
17746
|
column: 22
|
|
17576
17747
|
}
|
|
17577
17748
|
},
|
|
17578
17749
|
loc: {
|
|
17579
17750
|
start: {
|
|
17580
|
-
line:
|
|
17751
|
+
line: 128,
|
|
17581
17752
|
column: 30
|
|
17582
17753
|
},
|
|
17583
17754
|
end: {
|
|
17584
|
-
line:
|
|
17755
|
+
line: 128,
|
|
17585
17756
|
column: 53
|
|
17586
17757
|
}
|
|
17587
17758
|
},
|
|
17588
|
-
line:
|
|
17759
|
+
line: 128
|
|
17589
17760
|
},
|
|
17590
17761
|
"8": {
|
|
17591
17762
|
name: "(anonymous_8)",
|
|
17592
17763
|
decl: {
|
|
17593
17764
|
start: {
|
|
17594
|
-
line:
|
|
17765
|
+
line: 137,
|
|
17595
17766
|
column: 26
|
|
17596
17767
|
},
|
|
17597
17768
|
end: {
|
|
17598
|
-
line:
|
|
17769
|
+
line: 137,
|
|
17599
17770
|
column: 27
|
|
17600
17771
|
}
|
|
17601
17772
|
},
|
|
17602
17773
|
loc: {
|
|
17603
17774
|
start: {
|
|
17604
|
-
line:
|
|
17775
|
+
line: 138,
|
|
17605
17776
|
column: 18
|
|
17606
17777
|
},
|
|
17607
17778
|
end: {
|
|
17608
|
-
line:
|
|
17779
|
+
line: 144,
|
|
17609
17780
|
column: 29
|
|
17610
17781
|
}
|
|
17611
17782
|
},
|
|
17612
|
-
line:
|
|
17783
|
+
line: 138
|
|
17613
17784
|
},
|
|
17614
17785
|
"9": {
|
|
17615
17786
|
name: "(anonymous_9)",
|
|
17616
17787
|
decl: {
|
|
17617
17788
|
start: {
|
|
17618
|
-
line:
|
|
17789
|
+
line: 141,
|
|
17619
17790
|
column: 29
|
|
17620
17791
|
},
|
|
17621
17792
|
end: {
|
|
17622
|
-
line:
|
|
17793
|
+
line: 141,
|
|
17623
17794
|
column: 30
|
|
17624
17795
|
}
|
|
17625
17796
|
},
|
|
17626
17797
|
loc: {
|
|
17627
17798
|
start: {
|
|
17628
|
-
line:
|
|
17799
|
+
line: 141,
|
|
17629
17800
|
column: 35
|
|
17630
17801
|
},
|
|
17631
17802
|
end: {
|
|
17632
|
-
line:
|
|
17803
|
+
line: 141,
|
|
17633
17804
|
column: 56
|
|
17634
17805
|
}
|
|
17635
17806
|
},
|
|
17636
|
-
line:
|
|
17807
|
+
line: 141
|
|
17637
17808
|
},
|
|
17638
17809
|
"10": {
|
|
17639
17810
|
name: "(anonymous_10)",
|
|
17640
17811
|
decl: {
|
|
17641
17812
|
start: {
|
|
17642
|
-
line:
|
|
17813
|
+
line: 149,
|
|
17643
17814
|
column: 27
|
|
17644
17815
|
},
|
|
17645
17816
|
end: {
|
|
17646
|
-
line:
|
|
17817
|
+
line: 149,
|
|
17647
17818
|
column: 28
|
|
17648
17819
|
}
|
|
17649
17820
|
},
|
|
17650
17821
|
loc: {
|
|
17651
17822
|
start: {
|
|
17652
|
-
line:
|
|
17823
|
+
line: 150,
|
|
17653
17824
|
column: 16
|
|
17654
17825
|
},
|
|
17655
17826
|
end: {
|
|
17656
|
-
line:
|
|
17827
|
+
line: 156,
|
|
17657
17828
|
column: 18
|
|
17658
17829
|
}
|
|
17659
17830
|
},
|
|
17660
|
-
line:
|
|
17831
|
+
line: 150
|
|
17661
17832
|
}
|
|
17662
17833
|
},
|
|
17663
17834
|
branchMap: {
|
|
17664
17835
|
"0": {
|
|
17665
17836
|
loc: {
|
|
17666
17837
|
start: {
|
|
17667
|
-
line:
|
|
17668
|
-
column:
|
|
17838
|
+
line: 29,
|
|
17839
|
+
column: 2
|
|
17669
17840
|
},
|
|
17670
17841
|
end: {
|
|
17671
|
-
line:
|
|
17672
|
-
column:
|
|
17842
|
+
line: 29,
|
|
17843
|
+
column: 16
|
|
17673
17844
|
}
|
|
17674
17845
|
},
|
|
17675
17846
|
type: "default-arg",
|
|
17676
17847
|
locations: [{
|
|
17677
17848
|
start: {
|
|
17678
|
-
line:
|
|
17679
|
-
column:
|
|
17849
|
+
line: 29,
|
|
17850
|
+
column: 12
|
|
17680
17851
|
},
|
|
17681
17852
|
end: {
|
|
17682
|
-
line:
|
|
17683
|
-
column:
|
|
17853
|
+
line: 29,
|
|
17854
|
+
column: 16
|
|
17684
17855
|
}
|
|
17685
17856
|
}],
|
|
17686
|
-
line:
|
|
17857
|
+
line: 29
|
|
17687
17858
|
},
|
|
17688
17859
|
"1": {
|
|
17689
17860
|
loc: {
|
|
17690
17861
|
start: {
|
|
17691
|
-
line:
|
|
17692
|
-
column:
|
|
17862
|
+
line: 30,
|
|
17863
|
+
column: 2
|
|
17693
17864
|
},
|
|
17694
17865
|
end: {
|
|
17695
|
-
line:
|
|
17696
|
-
column:
|
|
17866
|
+
line: 30,
|
|
17867
|
+
column: 25
|
|
17697
17868
|
}
|
|
17698
17869
|
},
|
|
17699
17870
|
type: "default-arg",
|
|
17700
17871
|
locations: [{
|
|
17701
17872
|
start: {
|
|
17702
|
-
line:
|
|
17703
|
-
column:
|
|
17873
|
+
line: 30,
|
|
17874
|
+
column: 21
|
|
17704
17875
|
},
|
|
17705
17876
|
end: {
|
|
17706
|
-
line:
|
|
17707
|
-
column:
|
|
17877
|
+
line: 30,
|
|
17878
|
+
column: 25
|
|
17708
17879
|
}
|
|
17709
17880
|
}],
|
|
17710
|
-
line:
|
|
17881
|
+
line: 30
|
|
17711
17882
|
},
|
|
17712
17883
|
"2": {
|
|
17713
17884
|
loc: {
|
|
17714
17885
|
start: {
|
|
17715
|
-
line:
|
|
17886
|
+
line: 52,
|
|
17716
17887
|
column: 4
|
|
17717
17888
|
},
|
|
17718
17889
|
end: {
|
|
17719
|
-
line:
|
|
17890
|
+
line: 76,
|
|
17720
17891
|
column: 5
|
|
17721
17892
|
}
|
|
17722
17893
|
},
|
|
17723
17894
|
type: "if",
|
|
17724
17895
|
locations: [{
|
|
17725
17896
|
start: {
|
|
17726
|
-
line:
|
|
17897
|
+
line: 52,
|
|
17727
17898
|
column: 4
|
|
17728
17899
|
},
|
|
17729
17900
|
end: {
|
|
17730
|
-
line:
|
|
17901
|
+
line: 76,
|
|
17731
17902
|
column: 5
|
|
17732
17903
|
}
|
|
17733
17904
|
}, {
|
|
17734
17905
|
start: {
|
|
17735
|
-
line:
|
|
17906
|
+
line: 57,
|
|
17736
17907
|
column: 11
|
|
17737
17908
|
},
|
|
17738
17909
|
end: {
|
|
17739
|
-
line:
|
|
17910
|
+
line: 76,
|
|
17740
17911
|
column: 5
|
|
17741
17912
|
}
|
|
17742
17913
|
}],
|
|
17743
|
-
line:
|
|
17914
|
+
line: 52
|
|
17744
17915
|
},
|
|
17745
17916
|
"3": {
|
|
17746
17917
|
loc: {
|
|
17747
17918
|
start: {
|
|
17748
|
-
line:
|
|
17919
|
+
line: 104,
|
|
17749
17920
|
column: 7
|
|
17750
17921
|
},
|
|
17751
17922
|
end: {
|
|
17752
|
-
line:
|
|
17923
|
+
line: 108,
|
|
17753
17924
|
column: 7
|
|
17754
17925
|
}
|
|
17755
17926
|
},
|
|
17756
17927
|
type: "binary-expr",
|
|
17757
17928
|
locations: [{
|
|
17758
17929
|
start: {
|
|
17759
|
-
line:
|
|
17930
|
+
line: 104,
|
|
17760
17931
|
column: 7
|
|
17761
17932
|
},
|
|
17762
17933
|
end: {
|
|
17763
|
-
line:
|
|
17934
|
+
line: 104,
|
|
17764
17935
|
column: 18
|
|
17765
17936
|
}
|
|
17766
17937
|
}, {
|
|
17767
17938
|
start: {
|
|
17768
|
-
line:
|
|
17939
|
+
line: 105,
|
|
17769
17940
|
column: 8
|
|
17770
17941
|
},
|
|
17771
17942
|
end: {
|
|
17772
|
-
line:
|
|
17943
|
+
line: 107,
|
|
17773
17944
|
column: 14
|
|
17774
17945
|
}
|
|
17775
17946
|
}],
|
|
17776
|
-
line:
|
|
17947
|
+
line: 104
|
|
17777
17948
|
},
|
|
17778
17949
|
"4": {
|
|
17779
17950
|
loc: {
|
|
17780
17951
|
start: {
|
|
17781
|
-
line:
|
|
17952
|
+
line: 109,
|
|
17782
17953
|
column: 7
|
|
17783
17954
|
},
|
|
17784
17955
|
end: {
|
|
17785
|
-
line:
|
|
17956
|
+
line: 116,
|
|
17786
17957
|
column: 7
|
|
17787
17958
|
}
|
|
17788
17959
|
},
|
|
17789
17960
|
type: "binary-expr",
|
|
17790
17961
|
locations: [{
|
|
17791
17962
|
start: {
|
|
17792
|
-
line:
|
|
17963
|
+
line: 109,
|
|
17793
17964
|
column: 7
|
|
17794
17965
|
},
|
|
17795
17966
|
end: {
|
|
17796
|
-
line:
|
|
17967
|
+
line: 109,
|
|
17797
17968
|
column: 34
|
|
17798
17969
|
}
|
|
17799
17970
|
}, {
|
|
17800
17971
|
start: {
|
|
17801
|
-
line:
|
|
17972
|
+
line: 109,
|
|
17802
17973
|
column: 38
|
|
17803
17974
|
},
|
|
17804
17975
|
end: {
|
|
17805
|
-
line:
|
|
17976
|
+
line: 109,
|
|
17806
17977
|
column: 50
|
|
17807
17978
|
}
|
|
17808
17979
|
}, {
|
|
17809
17980
|
start: {
|
|
17810
|
-
line:
|
|
17981
|
+
line: 110,
|
|
17811
17982
|
column: 8
|
|
17812
17983
|
},
|
|
17813
17984
|
end: {
|
|
17814
|
-
line:
|
|
17985
|
+
line: 115,
|
|
17815
17986
|
column: 14
|
|
17816
17987
|
}
|
|
17817
17988
|
}],
|
|
17818
|
-
line:
|
|
17989
|
+
line: 109
|
|
17819
17990
|
},
|
|
17820
17991
|
"5": {
|
|
17821
17992
|
loc: {
|
|
17822
17993
|
start: {
|
|
17823
|
-
line:
|
|
17994
|
+
line: 117,
|
|
17824
17995
|
column: 7
|
|
17825
17996
|
},
|
|
17826
17997
|
end: {
|
|
17827
|
-
line:
|
|
17998
|
+
line: 167,
|
|
17828
17999
|
column: 7
|
|
17829
18000
|
}
|
|
17830
18001
|
},
|
|
17831
18002
|
type: "cond-expr",
|
|
17832
18003
|
locations: [{
|
|
17833
18004
|
start: {
|
|
17834
|
-
line:
|
|
18005
|
+
line: 118,
|
|
17835
18006
|
column: 8
|
|
17836
18007
|
},
|
|
17837
18008
|
end: {
|
|
17838
|
-
line:
|
|
18009
|
+
line: 123,
|
|
17839
18010
|
column: 10
|
|
17840
18011
|
}
|
|
17841
18012
|
}, {
|
|
17842
18013
|
start: {
|
|
17843
|
-
line:
|
|
18014
|
+
line: 125,
|
|
17844
18015
|
column: 8
|
|
17845
18016
|
},
|
|
17846
18017
|
end: {
|
|
17847
|
-
line:
|
|
18018
|
+
line: 166,
|
|
17848
18019
|
column: 14
|
|
17849
18020
|
}
|
|
17850
18021
|
}],
|
|
17851
|
-
line:
|
|
18022
|
+
line: 117
|
|
17852
18023
|
}
|
|
17853
18024
|
},
|
|
17854
18025
|
s: {
|
|
@@ -17879,7 +18050,8 @@ function cov_2my1w2udyi() {
|
|
|
17879
18050
|
"24": 0,
|
|
17880
18051
|
"25": 0,
|
|
17881
18052
|
"26": 0,
|
|
17882
|
-
"27": 0
|
|
18053
|
+
"27": 0,
|
|
18054
|
+
"28": 0
|
|
17883
18055
|
},
|
|
17884
18056
|
f: {
|
|
17885
18057
|
"0": 0,
|
|
@@ -17903,7 +18075,7 @@ function cov_2my1w2udyi() {
|
|
|
17903
18075
|
"5": [0, 0]
|
|
17904
18076
|
},
|
|
17905
18077
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
17906
|
-
hash: "
|
|
18078
|
+
hash: "bed00b5694691cad842bce85480ae0581d29bbbe"
|
|
17907
18079
|
};
|
|
17908
18080
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
17909
18081
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -17925,7 +18097,8 @@ var Modal = function Modal(_ref) {
|
|
|
17925
18097
|
_ref$onClose = _ref.onClose,
|
|
17926
18098
|
onClose = _ref$onClose === void 0 ? (cov_2my1w2udyi().b[0][0]++, pure.noop) : _ref$onClose,
|
|
17927
18099
|
_ref$onUploadComplete = _ref.onUploadComplete,
|
|
17928
|
-
onUploadComplete = _ref$onUploadComplete === void 0 ? (cov_2my1w2udyi().b[1][0]++, pure.noop) : _ref$onUploadComplete
|
|
18100
|
+
onUploadComplete = _ref$onUploadComplete === void 0 ? (cov_2my1w2udyi().b[1][0]++, pure.noop) : _ref$onUploadComplete,
|
|
18101
|
+
uploadConfig = _ref.uploadConfig;
|
|
17929
18102
|
cov_2my1w2udyi().f[0]++;
|
|
17930
18103
|
var _ref2 = (cov_2my1w2udyi().s[1]++, React.useState(TABS[0].key)),
|
|
17931
18104
|
_ref3 = _slicedToArray$2(_ref2, 2),
|
|
@@ -17943,28 +18116,29 @@ var Modal = function Modal(_ref) {
|
|
|
17943
18116
|
t = _ref8.t;
|
|
17944
18117
|
var _ref9 = (cov_2my1w2udyi().s[5]++, useCreateBlob()),
|
|
17945
18118
|
createBlob = _ref9.mutate;
|
|
17946
|
-
cov_2my1w2udyi().s[6]
|
|
18119
|
+
var uploadConfigWithDefaults = (cov_2my1w2udyi().s[6]++, ramda.mergeRight(DEFAULT_UPLOAD_CONFIG, uploadConfig));
|
|
18120
|
+
cov_2my1w2udyi().s[7]++;
|
|
17947
18121
|
var handleCloseModal = function handleCloseModal() {
|
|
17948
18122
|
cov_2my1w2udyi().f[1]++;
|
|
17949
|
-
cov_2my1w2udyi().s[7]++;
|
|
17950
|
-
onClose();
|
|
17951
18123
|
cov_2my1w2udyi().s[8]++;
|
|
18124
|
+
onClose();
|
|
18125
|
+
cov_2my1w2udyi().s[9]++;
|
|
17952
18126
|
setSelectedImage({});
|
|
17953
18127
|
};
|
|
17954
|
-
cov_2my1w2udyi().s[
|
|
18128
|
+
cov_2my1w2udyi().s[10]++;
|
|
17955
18129
|
var handleImageEditComplete = function handleImageEditComplete(editedImage) {
|
|
17956
18130
|
cov_2my1w2udyi().f[2]++;
|
|
17957
|
-
cov_2my1w2udyi().s[
|
|
18131
|
+
cov_2my1w2udyi().s[11]++;
|
|
17958
18132
|
if (IS_DEVELOPMENT_OR_HEROKU_ENV) {
|
|
17959
18133
|
cov_2my1w2udyi().b[2][0]++;
|
|
17960
|
-
cov_2my1w2udyi().s[
|
|
18134
|
+
cov_2my1w2udyi().s[12]++;
|
|
17961
18135
|
onUploadComplete({
|
|
17962
18136
|
url: editedImage.metadata.url,
|
|
17963
18137
|
signedId: editedImage.signedId
|
|
17964
18138
|
});
|
|
17965
18139
|
} else {
|
|
17966
18140
|
cov_2my1w2udyi().b[2][1]++;
|
|
17967
|
-
var payload = (cov_2my1w2udyi().s[
|
|
18141
|
+
var payload = (cov_2my1w2udyi().s[13]++, {
|
|
17968
18142
|
filename: editedImage.name,
|
|
17969
18143
|
byte_size: editedImage.size,
|
|
17970
18144
|
content_type: editedImage.fileType,
|
|
@@ -17972,11 +18146,11 @@ var Modal = function Modal(_ref) {
|
|
|
17972
18146
|
metadata: editedImage,
|
|
17973
18147
|
service_name: "imagekitio"
|
|
17974
18148
|
});
|
|
17975
|
-
cov_2my1w2udyi().s[
|
|
18149
|
+
cov_2my1w2udyi().s[14]++;
|
|
17976
18150
|
createBlob(payload, {
|
|
17977
18151
|
onSuccess: function onSuccess(image) {
|
|
17978
18152
|
cov_2my1w2udyi().f[3]++;
|
|
17979
|
-
cov_2my1w2udyi().s[
|
|
18153
|
+
cov_2my1w2udyi().s[15]++;
|
|
17980
18154
|
onUploadComplete({
|
|
17981
18155
|
url: image.blobUrl,
|
|
17982
18156
|
signedId: image.signedId
|
|
@@ -17985,12 +18159,12 @@ var Modal = function Modal(_ref) {
|
|
|
17985
18159
|
onError: neetoui.Toastr.error
|
|
17986
18160
|
});
|
|
17987
18161
|
}
|
|
17988
|
-
cov_2my1w2udyi().s[
|
|
18162
|
+
cov_2my1w2udyi().s[16]++;
|
|
17989
18163
|
handleCloseModal();
|
|
17990
18164
|
};
|
|
17991
|
-
var _ref10 = (cov_2my1w2udyi().s[
|
|
17992
|
-
maxSize:
|
|
17993
|
-
acceptedTypes:
|
|
18165
|
+
var _ref10 = (cov_2my1w2udyi().s[17]++, useDropzoneWithValidation({
|
|
18166
|
+
maxSize: uploadConfigWithDefaults === null || uploadConfigWithDefaults === void 0 ? void 0 : uploadConfigWithDefaults.maxImageSize,
|
|
18167
|
+
acceptedTypes: uploadConfigWithDefaults === null || uploadConfigWithDefaults === void 0 ? void 0 : uploadConfigWithDefaults.allowedImageTypes,
|
|
17994
18168
|
onUploadComplete: setSelectedImage,
|
|
17995
18169
|
setIsUploading: setIsUploading
|
|
17996
18170
|
})),
|
|
@@ -17998,24 +18172,24 @@ var Modal = function Modal(_ref) {
|
|
|
17998
18172
|
getInputProps = _ref10.getInputProps,
|
|
17999
18173
|
isDragActive = _ref10.isDragActive,
|
|
18000
18174
|
inputRef = _ref10.inputRef;
|
|
18001
|
-
cov_2my1w2udyi().s[
|
|
18175
|
+
cov_2my1w2udyi().s[18]++;
|
|
18002
18176
|
var openFileUploadDialog = function openFileUploadDialog() {
|
|
18003
18177
|
var _inputRef$current;
|
|
18004
18178
|
cov_2my1w2udyi().f[4]++;
|
|
18005
|
-
cov_2my1w2udyi().s[
|
|
18179
|
+
cov_2my1w2udyi().s[19]++;
|
|
18006
18180
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
18007
18181
|
};
|
|
18008
|
-
var options = (cov_2my1w2udyi().s[
|
|
18182
|
+
var options = (cov_2my1w2udyi().s[20]++, createOptions([{
|
|
18009
18183
|
key: "local",
|
|
18010
18184
|
onClick: openFileUploadDialog
|
|
18011
18185
|
}]));
|
|
18012
|
-
cov_2my1w2udyi().s[
|
|
18186
|
+
cov_2my1w2udyi().s[21]++;
|
|
18013
18187
|
React.useEffect(function () {
|
|
18014
18188
|
cov_2my1w2udyi().f[5]++;
|
|
18015
|
-
cov_2my1w2udyi().s[
|
|
18189
|
+
cov_2my1w2udyi().s[22]++;
|
|
18016
18190
|
setActiveTab(TABS[0].key);
|
|
18017
18191
|
}, [isOpen]);
|
|
18018
|
-
cov_2my1w2udyi().s[
|
|
18192
|
+
cov_2my1w2udyi().s[23]++;
|
|
18019
18193
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Modal, {
|
|
18020
18194
|
className: "niu-modal",
|
|
18021
18195
|
isOpen: isOpen,
|
|
@@ -18029,7 +18203,7 @@ var Modal = function Modal(_ref) {
|
|
|
18029
18203
|
handleImageEditComplete: handleImageEditComplete,
|
|
18030
18204
|
handleReset: function handleReset() {
|
|
18031
18205
|
cov_2my1w2udyi().f[6]++;
|
|
18032
|
-
cov_2my1w2udyi().s[
|
|
18206
|
+
cov_2my1w2udyi().s[24]++;
|
|
18033
18207
|
return setSelectedImage({});
|
|
18034
18208
|
},
|
|
18035
18209
|
image: selectedImage,
|
|
@@ -18039,7 +18213,7 @@ var Modal = function Modal(_ref) {
|
|
|
18039
18213
|
}, getRootProps({
|
|
18040
18214
|
onClick: function onClick(event) {
|
|
18041
18215
|
cov_2my1w2udyi().f[7]++;
|
|
18042
|
-
cov_2my1w2udyi().s[
|
|
18216
|
+
cov_2my1w2udyi().s[25]++;
|
|
18043
18217
|
return event.stopPropagation();
|
|
18044
18218
|
}
|
|
18045
18219
|
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Modal.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
@@ -18052,13 +18226,13 @@ var Modal = function Modal(_ref) {
|
|
|
18052
18226
|
size: "small"
|
|
18053
18227
|
}, TABS.map(function (tab) {
|
|
18054
18228
|
cov_2my1w2udyi().f[8]++;
|
|
18055
|
-
cov_2my1w2udyi().s[
|
|
18229
|
+
cov_2my1w2udyi().s[26]++;
|
|
18056
18230
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Tab.Item, {
|
|
18057
18231
|
active: activeTab === tab.key,
|
|
18058
18232
|
key: tab.key,
|
|
18059
18233
|
onClick: function onClick() {
|
|
18060
18234
|
cov_2my1w2udyi().f[9]++;
|
|
18061
|
-
cov_2my1w2udyi().s[
|
|
18235
|
+
cov_2my1w2udyi().s[27]++;
|
|
18062
18236
|
return setActiveTab(tab.key);
|
|
18063
18237
|
}
|
|
18064
18238
|
}, tab.label);
|
|
@@ -18070,7 +18244,7 @@ var Modal = function Modal(_ref) {
|
|
|
18070
18244
|
onClick = _ref11.onClick,
|
|
18071
18245
|
style = _ref11.style;
|
|
18072
18246
|
cov_2my1w2udyi().f[10]++;
|
|
18073
|
-
cov_2my1w2udyi().s[
|
|
18247
|
+
cov_2my1w2udyi().s[28]++;
|
|
18074
18248
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
18075
18249
|
key: key,
|
|
18076
18250
|
label: label,
|
|
@@ -18079,74 +18253,16 @@ var Modal = function Modal(_ref) {
|
|
|
18079
18253
|
onClick: onClick
|
|
18080
18254
|
});
|
|
18081
18255
|
}))), /*#__PURE__*/React__default["default"].createElement(ImageLibrary, {
|
|
18256
|
+
setActiveTab: setActiveTab,
|
|
18082
18257
|
setIsUploading: setIsUploading,
|
|
18083
18258
|
setSelectedImage: setSelectedImage,
|
|
18084
18259
|
tab: activeTab
|
|
18085
18260
|
}))), /*#__PURE__*/React__default["default"].createElement("input", getInputProps()));
|
|
18086
18261
|
};
|
|
18087
18262
|
|
|
18088
|
-
function cov_21hcu7u8qb() {
|
|
18089
|
-
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/constants.js";
|
|
18090
|
-
var hash = "9b8c5feb3cf82f3319d7df3d5f2cd04c1d9fc7db";
|
|
18091
|
-
var global = new Function("return this")();
|
|
18092
|
-
var gcv = "__coverage__";
|
|
18093
|
-
var coverageData = {
|
|
18094
|
-
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/constants.js",
|
|
18095
|
-
statementMap: {
|
|
18096
|
-
"0": {
|
|
18097
|
-
start: {
|
|
18098
|
-
line: 1,
|
|
18099
|
-
column: 35
|
|
18100
|
-
},
|
|
18101
|
-
end: {
|
|
18102
|
-
line: 3,
|
|
18103
|
-
column: 1
|
|
18104
|
-
}
|
|
18105
|
-
},
|
|
18106
|
-
"1": {
|
|
18107
|
-
start: {
|
|
18108
|
-
line: 5,
|
|
18109
|
-
column: 30
|
|
18110
|
-
},
|
|
18111
|
-
end: {
|
|
18112
|
-
line: 5,
|
|
18113
|
-
column: 43
|
|
18114
|
-
}
|
|
18115
|
-
}
|
|
18116
|
-
},
|
|
18117
|
-
fnMap: {},
|
|
18118
|
-
branchMap: {},
|
|
18119
|
-
s: {
|
|
18120
|
-
"0": 0,
|
|
18121
|
-
"1": 0
|
|
18122
|
-
},
|
|
18123
|
-
f: {},
|
|
18124
|
-
b: {},
|
|
18125
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
18126
|
-
hash: "9b8c5feb3cf82f3319d7df3d5f2cd04c1d9fc7db"
|
|
18127
|
-
};
|
|
18128
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
18129
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
18130
|
-
coverage[path] = coverageData;
|
|
18131
|
-
}
|
|
18132
|
-
var actualCoverage = coverage[path];
|
|
18133
|
-
{
|
|
18134
|
-
// @ts-ignore
|
|
18135
|
-
cov_21hcu7u8qb = function () {
|
|
18136
|
-
return actualCoverage;
|
|
18137
|
-
};
|
|
18138
|
-
}
|
|
18139
|
-
return actualCoverage;
|
|
18140
|
-
}
|
|
18141
|
-
cov_21hcu7u8qb();
|
|
18142
|
-
var ALLOWED_IMAGE_TYPES = (cov_21hcu7u8qb().s[0]++, {
|
|
18143
|
-
"image/*": [".png", ".jpg", ".jpeg", ".svg", ".gif"]
|
|
18144
|
-
});
|
|
18145
|
-
var MAX_IMAGE_SIZE = (cov_21hcu7u8qb().s[1]++, 1048576 * 5); // 5 MB
|
|
18146
|
-
|
|
18147
18263
|
function cov_1dkqwddz5x() {
|
|
18148
18264
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/ImageUpload.jsx";
|
|
18149
|
-
var hash = "
|
|
18265
|
+
var hash = "2b5151961e013d62e1065ac1c261f6b8a9e2a9f1";
|
|
18150
18266
|
var global = new Function("return this")();
|
|
18151
18267
|
var gcv = "__coverage__";
|
|
18152
18268
|
var coverageData = {
|
|
@@ -18158,37 +18274,37 @@ function cov_1dkqwddz5x() {
|
|
|
18158
18274
|
column: 20
|
|
18159
18275
|
},
|
|
18160
18276
|
end: {
|
|
18161
|
-
line:
|
|
18277
|
+
line: 51,
|
|
18162
18278
|
column: 1
|
|
18163
18279
|
}
|
|
18164
18280
|
},
|
|
18165
18281
|
"1": {
|
|
18166
18282
|
start: {
|
|
18167
|
-
line:
|
|
18283
|
+
line: 13,
|
|
18168
18284
|
column: 2
|
|
18169
18285
|
},
|
|
18170
18286
|
end: {
|
|
18171
|
-
line:
|
|
18287
|
+
line: 50,
|
|
18172
18288
|
column: 8
|
|
18173
18289
|
}
|
|
18174
18290
|
},
|
|
18175
18291
|
"2": {
|
|
18176
18292
|
start: {
|
|
18177
|
-
line:
|
|
18293
|
+
line: 31,
|
|
18178
18294
|
column: 10
|
|
18179
18295
|
},
|
|
18180
18296
|
end: {
|
|
18181
|
-
line:
|
|
18297
|
+
line: 31,
|
|
18182
18298
|
column: 30
|
|
18183
18299
|
}
|
|
18184
18300
|
},
|
|
18185
18301
|
"3": {
|
|
18186
18302
|
start: {
|
|
18187
|
-
line:
|
|
18303
|
+
line: 32,
|
|
18188
18304
|
column: 10
|
|
18189
18305
|
},
|
|
18190
18306
|
end: {
|
|
18191
|
-
line:
|
|
18307
|
+
line: 32,
|
|
18192
18308
|
column: 38
|
|
18193
18309
|
}
|
|
18194
18310
|
}
|
|
@@ -18208,39 +18324,39 @@ function cov_1dkqwddz5x() {
|
|
|
18208
18324
|
},
|
|
18209
18325
|
loc: {
|
|
18210
18326
|
start: {
|
|
18211
|
-
line:
|
|
18327
|
+
line: 13,
|
|
18212
18328
|
column: 2
|
|
18213
18329
|
},
|
|
18214
18330
|
end: {
|
|
18215
|
-
line:
|
|
18331
|
+
line: 50,
|
|
18216
18332
|
column: 8
|
|
18217
18333
|
}
|
|
18218
18334
|
},
|
|
18219
|
-
line:
|
|
18335
|
+
line: 13
|
|
18220
18336
|
},
|
|
18221
18337
|
"1": {
|
|
18222
18338
|
name: "(anonymous_1)",
|
|
18223
18339
|
decl: {
|
|
18224
18340
|
start: {
|
|
18225
|
-
line:
|
|
18341
|
+
line: 30,
|
|
18226
18342
|
column: 17
|
|
18227
18343
|
},
|
|
18228
18344
|
end: {
|
|
18229
|
-
line:
|
|
18345
|
+
line: 30,
|
|
18230
18346
|
column: 18
|
|
18231
18347
|
}
|
|
18232
18348
|
},
|
|
18233
18349
|
loc: {
|
|
18234
18350
|
start: {
|
|
18235
|
-
line:
|
|
18351
|
+
line: 30,
|
|
18236
18352
|
column: 22
|
|
18237
18353
|
},
|
|
18238
18354
|
end: {
|
|
18239
|
-
line:
|
|
18355
|
+
line: 33,
|
|
18240
18356
|
column: 9
|
|
18241
18357
|
}
|
|
18242
18358
|
},
|
|
18243
|
-
line:
|
|
18359
|
+
line: 30
|
|
18244
18360
|
}
|
|
18245
18361
|
},
|
|
18246
18362
|
branchMap: {},
|
|
@@ -18256,7 +18372,7 @@ function cov_1dkqwddz5x() {
|
|
|
18256
18372
|
},
|
|
18257
18373
|
b: {},
|
|
18258
18374
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
18259
|
-
hash: "
|
|
18375
|
+
hash: "2b5151961e013d62e1065ac1c261f6b8a9e2a9f1"
|
|
18260
18376
|
};
|
|
18261
18377
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
18262
18378
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -18276,7 +18392,8 @@ cov_1dkqwddz5x().s[0]++;
|
|
|
18276
18392
|
var ImageUpload = function ImageUpload(_ref) {
|
|
18277
18393
|
var getRootProps = _ref.getRootProps,
|
|
18278
18394
|
getInputProps = _ref.getInputProps,
|
|
18279
|
-
setIsAssetLibraryOpen = _ref.setIsAssetLibraryOpen
|
|
18395
|
+
setIsAssetLibraryOpen = _ref.setIsAssetLibraryOpen,
|
|
18396
|
+
uploadConfig = _ref.uploadConfig;
|
|
18280
18397
|
cov_1dkqwddz5x().f[0]++;
|
|
18281
18398
|
cov_1dkqwddz5x().s[1]++;
|
|
18282
18399
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({}, getRootProps(), {
|
|
@@ -18319,7 +18436,7 @@ var ImageUpload = function ImageUpload(_ref) {
|
|
|
18319
18436
|
}, /*#__PURE__*/React__default["default"].createElement(Trans, {
|
|
18320
18437
|
i18nKey: "imageUpload.maxAllowedSize",
|
|
18321
18438
|
values: {
|
|
18322
|
-
size:
|
|
18439
|
+
size: uploadConfig === null || uploadConfig === void 0 ? void 0 : uploadConfig.maxImageSize
|
|
18323
18440
|
}
|
|
18324
18441
|
}))));
|
|
18325
18442
|
};
|
|
@@ -18451,7 +18568,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
18451
18568
|
|
|
18452
18569
|
function cov_1avu3clziw() {
|
|
18453
18570
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/index.jsx";
|
|
18454
|
-
var hash = "
|
|
18571
|
+
var hash = "fc75070de130ade042483d80750aa452c9c88eaa";
|
|
18455
18572
|
var global = new Function("return this")();
|
|
18456
18573
|
var gcv = "__coverage__";
|
|
18457
18574
|
var coverageData = {
|
|
@@ -18463,427 +18580,437 @@ function cov_1avu3clziw() {
|
|
|
18463
18580
|
column: 22
|
|
18464
18581
|
},
|
|
18465
18582
|
end: {
|
|
18466
|
-
line:
|
|
18583
|
+
line: 197,
|
|
18467
18584
|
column: 1
|
|
18468
18585
|
}
|
|
18469
18586
|
},
|
|
18470
18587
|
"1": {
|
|
18471
18588
|
start: {
|
|
18472
|
-
line:
|
|
18589
|
+
line: 25,
|
|
18473
18590
|
column: 54
|
|
18474
18591
|
},
|
|
18475
18592
|
end: {
|
|
18476
|
-
line:
|
|
18593
|
+
line: 25,
|
|
18477
18594
|
column: 69
|
|
18478
18595
|
}
|
|
18479
18596
|
},
|
|
18480
18597
|
"2": {
|
|
18481
18598
|
start: {
|
|
18482
|
-
line:
|
|
18599
|
+
line: 26,
|
|
18483
18600
|
column: 28
|
|
18484
18601
|
},
|
|
18485
18602
|
end: {
|
|
18486
|
-
line:
|
|
18603
|
+
line: 26,
|
|
18487
18604
|
column: 50
|
|
18488
18605
|
}
|
|
18489
18606
|
},
|
|
18490
18607
|
"3": {
|
|
18491
18608
|
start: {
|
|
18492
|
-
line:
|
|
18609
|
+
line: 27,
|
|
18493
18610
|
column: 40
|
|
18494
18611
|
},
|
|
18495
18612
|
end: {
|
|
18496
|
-
line:
|
|
18613
|
+
line: 27,
|
|
18497
18614
|
column: 55
|
|
18498
18615
|
}
|
|
18499
18616
|
},
|
|
18500
18617
|
"4": {
|
|
18501
18618
|
start: {
|
|
18502
|
-
line:
|
|
18619
|
+
line: 28,
|
|
18503
18620
|
column: 42
|
|
18504
18621
|
},
|
|
18505
18622
|
end: {
|
|
18506
|
-
line:
|
|
18623
|
+
line: 28,
|
|
18507
18624
|
column: 57
|
|
18508
18625
|
}
|
|
18509
18626
|
},
|
|
18510
18627
|
"5": {
|
|
18511
18628
|
start: {
|
|
18512
|
-
line:
|
|
18629
|
+
line: 29,
|
|
18513
18630
|
column: 34
|
|
18514
18631
|
},
|
|
18515
18632
|
end: {
|
|
18516
|
-
line:
|
|
18633
|
+
line: 29,
|
|
18517
18634
|
column: 46
|
|
18518
18635
|
}
|
|
18519
18636
|
},
|
|
18520
18637
|
"6": {
|
|
18521
18638
|
start: {
|
|
18522
|
-
line:
|
|
18639
|
+
line: 31,
|
|
18523
18640
|
column: 16
|
|
18524
18641
|
},
|
|
18525
18642
|
end: {
|
|
18526
|
-
line:
|
|
18643
|
+
line: 31,
|
|
18527
18644
|
column: 32
|
|
18528
18645
|
}
|
|
18529
18646
|
},
|
|
18530
18647
|
"7": {
|
|
18531
18648
|
start: {
|
|
18532
|
-
line:
|
|
18649
|
+
line: 33,
|
|
18533
18650
|
column: 33
|
|
18534
18651
|
},
|
|
18535
18652
|
end: {
|
|
18536
|
-
line:
|
|
18653
|
+
line: 33,
|
|
18537
18654
|
column: 48
|
|
18538
18655
|
}
|
|
18539
18656
|
},
|
|
18540
18657
|
"8": {
|
|
18541
18658
|
start: {
|
|
18542
|
-
line:
|
|
18659
|
+
line: 34,
|
|
18543
18660
|
column: 33
|
|
18544
18661
|
},
|
|
18545
18662
|
end: {
|
|
18546
|
-
line:
|
|
18663
|
+
line: 34,
|
|
18547
18664
|
column: 48
|
|
18548
18665
|
}
|
|
18549
18666
|
},
|
|
18550
18667
|
"9": {
|
|
18551
18668
|
start: {
|
|
18552
|
-
line:
|
|
18553
|
-
column:
|
|
18669
|
+
line: 36,
|
|
18670
|
+
column: 35
|
|
18554
18671
|
},
|
|
18555
18672
|
end: {
|
|
18556
|
-
line:
|
|
18673
|
+
line: 39,
|
|
18557
18674
|
column: 3
|
|
18558
18675
|
}
|
|
18559
18676
|
},
|
|
18560
18677
|
"10": {
|
|
18561
18678
|
start: {
|
|
18562
|
-
line:
|
|
18679
|
+
line: 41,
|
|
18680
|
+
column: 23
|
|
18681
|
+
},
|
|
18682
|
+
end: {
|
|
18683
|
+
line: 45,
|
|
18684
|
+
column: 3
|
|
18685
|
+
}
|
|
18686
|
+
},
|
|
18687
|
+
"11": {
|
|
18688
|
+
start: {
|
|
18689
|
+
line: 42,
|
|
18563
18690
|
column: 4
|
|
18564
18691
|
},
|
|
18565
18692
|
end: {
|
|
18566
|
-
line:
|
|
18693
|
+
line: 42,
|
|
18567
18694
|
column: 17
|
|
18568
18695
|
}
|
|
18569
18696
|
},
|
|
18570
|
-
"
|
|
18697
|
+
"12": {
|
|
18571
18698
|
start: {
|
|
18572
|
-
line:
|
|
18699
|
+
line: 43,
|
|
18573
18700
|
column: 4
|
|
18574
18701
|
},
|
|
18575
18702
|
end: {
|
|
18576
|
-
line:
|
|
18703
|
+
line: 43,
|
|
18577
18704
|
column: 20
|
|
18578
18705
|
}
|
|
18579
18706
|
},
|
|
18580
|
-
"
|
|
18707
|
+
"13": {
|
|
18581
18708
|
start: {
|
|
18582
|
-
line:
|
|
18709
|
+
line: 44,
|
|
18583
18710
|
column: 4
|
|
18584
18711
|
},
|
|
18585
18712
|
end: {
|
|
18586
|
-
line:
|
|
18713
|
+
line: 44,
|
|
18587
18714
|
column: 40
|
|
18588
18715
|
}
|
|
18589
18716
|
},
|
|
18590
|
-
"
|
|
18717
|
+
"14": {
|
|
18591
18718
|
start: {
|
|
18592
|
-
line:
|
|
18719
|
+
line: 47,
|
|
18593
18720
|
column: 19
|
|
18594
18721
|
},
|
|
18595
18722
|
end: {
|
|
18596
|
-
line:
|
|
18723
|
+
line: 47,
|
|
18597
18724
|
column: 49
|
|
18598
18725
|
}
|
|
18599
18726
|
},
|
|
18600
|
-
"
|
|
18727
|
+
"15": {
|
|
18601
18728
|
start: {
|
|
18602
|
-
line:
|
|
18729
|
+
line: 47,
|
|
18603
18730
|
column: 27
|
|
18604
18731
|
},
|
|
18605
18732
|
end: {
|
|
18606
|
-
line:
|
|
18733
|
+
line: 47,
|
|
18607
18734
|
column: 49
|
|
18608
18735
|
}
|
|
18609
18736
|
},
|
|
18610
|
-
"
|
|
18737
|
+
"16": {
|
|
18611
18738
|
start: {
|
|
18612
|
-
line:
|
|
18739
|
+
line: 49,
|
|
18613
18740
|
column: 24
|
|
18614
18741
|
},
|
|
18615
18742
|
end: {
|
|
18616
|
-
line:
|
|
18743
|
+
line: 57,
|
|
18617
18744
|
column: 3
|
|
18618
18745
|
}
|
|
18619
18746
|
},
|
|
18620
|
-
"
|
|
18747
|
+
"17": {
|
|
18621
18748
|
start: {
|
|
18622
|
-
line:
|
|
18749
|
+
line: 50,
|
|
18623
18750
|
column: 4
|
|
18624
18751
|
},
|
|
18625
18752
|
end: {
|
|
18626
|
-
line:
|
|
18753
|
+
line: 50,
|
|
18627
18754
|
column: 69
|
|
18628
18755
|
}
|
|
18629
18756
|
},
|
|
18630
|
-
"
|
|
18757
|
+
"18": {
|
|
18631
18758
|
start: {
|
|
18632
|
-
line:
|
|
18759
|
+
line: 51,
|
|
18633
18760
|
column: 4
|
|
18634
18761
|
},
|
|
18635
18762
|
end: {
|
|
18636
|
-
line:
|
|
18763
|
+
line: 54,
|
|
18637
18764
|
column: 7
|
|
18638
18765
|
}
|
|
18639
18766
|
},
|
|
18640
|
-
"
|
|
18767
|
+
"19": {
|
|
18641
18768
|
start: {
|
|
18642
|
-
line:
|
|
18769
|
+
line: 55,
|
|
18643
18770
|
column: 4
|
|
18644
18771
|
},
|
|
18645
18772
|
end: {
|
|
18646
|
-
line:
|
|
18773
|
+
line: 55,
|
|
18647
18774
|
column: 40
|
|
18648
18775
|
}
|
|
18649
18776
|
},
|
|
18650
|
-
"
|
|
18777
|
+
"20": {
|
|
18651
18778
|
start: {
|
|
18652
|
-
line:
|
|
18779
|
+
line: 56,
|
|
18653
18780
|
column: 4
|
|
18654
18781
|
},
|
|
18655
18782
|
end: {
|
|
18656
|
-
line:
|
|
18783
|
+
line: 56,
|
|
18657
18784
|
column: 27
|
|
18658
18785
|
}
|
|
18659
18786
|
},
|
|
18660
|
-
"
|
|
18787
|
+
"21": {
|
|
18661
18788
|
start: {
|
|
18662
|
-
line:
|
|
18789
|
+
line: 59,
|
|
18663
18790
|
column: 42
|
|
18664
18791
|
},
|
|
18665
18792
|
end: {
|
|
18666
|
-
line:
|
|
18793
|
+
line: 64,
|
|
18667
18794
|
column: 3
|
|
18668
18795
|
}
|
|
18669
18796
|
},
|
|
18670
|
-
"
|
|
18797
|
+
"22": {
|
|
18671
18798
|
start: {
|
|
18672
|
-
line:
|
|
18799
|
+
line: 60,
|
|
18673
18800
|
column: 4
|
|
18674
18801
|
},
|
|
18675
18802
|
end: {
|
|
18676
|
-
line:
|
|
18803
|
+
line: 60,
|
|
18677
18804
|
column: 20
|
|
18678
18805
|
}
|
|
18679
18806
|
},
|
|
18680
|
-
"
|
|
18807
|
+
"23": {
|
|
18681
18808
|
start: {
|
|
18682
|
-
line:
|
|
18809
|
+
line: 61,
|
|
18683
18810
|
column: 4
|
|
18684
18811
|
},
|
|
18685
18812
|
end: {
|
|
18686
|
-
line:
|
|
18813
|
+
line: 61,
|
|
18687
18814
|
column: 20
|
|
18688
18815
|
}
|
|
18689
18816
|
},
|
|
18690
|
-
"
|
|
18817
|
+
"24": {
|
|
18691
18818
|
start: {
|
|
18692
|
-
line:
|
|
18819
|
+
line: 62,
|
|
18693
18820
|
column: 4
|
|
18694
18821
|
},
|
|
18695
18822
|
end: {
|
|
18696
|
-
line:
|
|
18823
|
+
line: 62,
|
|
18697
18824
|
column: 20
|
|
18698
18825
|
}
|
|
18699
18826
|
},
|
|
18700
|
-
"
|
|
18827
|
+
"25": {
|
|
18701
18828
|
start: {
|
|
18702
|
-
line:
|
|
18829
|
+
line: 63,
|
|
18703
18830
|
column: 4
|
|
18704
18831
|
},
|
|
18705
18832
|
end: {
|
|
18706
|
-
line:
|
|
18833
|
+
line: 63,
|
|
18707
18834
|
column: 27
|
|
18708
18835
|
}
|
|
18709
18836
|
},
|
|
18710
|
-
"
|
|
18837
|
+
"26": {
|
|
18711
18838
|
start: {
|
|
18712
|
-
line:
|
|
18839
|
+
line: 66,
|
|
18713
18840
|
column: 31
|
|
18714
18841
|
},
|
|
18715
18842
|
end: {
|
|
18716
|
-
line:
|
|
18843
|
+
line: 86,
|
|
18717
18844
|
column: 3
|
|
18718
18845
|
}
|
|
18719
18846
|
},
|
|
18720
|
-
"
|
|
18847
|
+
"27": {
|
|
18721
18848
|
start: {
|
|
18722
|
-
line:
|
|
18849
|
+
line: 67,
|
|
18723
18850
|
column: 4
|
|
18724
18851
|
},
|
|
18725
18852
|
end: {
|
|
18726
|
-
line:
|
|
18853
|
+
line: 71,
|
|
18727
18854
|
column: 5
|
|
18728
18855
|
}
|
|
18729
18856
|
},
|
|
18730
|
-
"
|
|
18857
|
+
"28": {
|
|
18731
18858
|
start: {
|
|
18732
|
-
line:
|
|
18859
|
+
line: 68,
|
|
18733
18860
|
column: 6
|
|
18734
18861
|
},
|
|
18735
18862
|
end: {
|
|
18736
|
-
line:
|
|
18863
|
+
line: 68,
|
|
18737
18864
|
column: 73
|
|
18738
18865
|
}
|
|
18739
18866
|
},
|
|
18740
|
-
"
|
|
18867
|
+
"29": {
|
|
18741
18868
|
start: {
|
|
18742
|
-
line:
|
|
18869
|
+
line: 70,
|
|
18743
18870
|
column: 6
|
|
18744
18871
|
},
|
|
18745
18872
|
end: {
|
|
18746
|
-
line:
|
|
18873
|
+
line: 70,
|
|
18747
18874
|
column: 13
|
|
18748
18875
|
}
|
|
18749
18876
|
},
|
|
18750
|
-
"
|
|
18877
|
+
"30": {
|
|
18751
18878
|
start: {
|
|
18752
|
-
line:
|
|
18879
|
+
line: 73,
|
|
18753
18880
|
column: 20
|
|
18754
18881
|
},
|
|
18755
18882
|
end: {
|
|
18756
|
-
line:
|
|
18883
|
+
line: 80,
|
|
18757
18884
|
column: 5
|
|
18758
18885
|
}
|
|
18759
18886
|
},
|
|
18760
|
-
"
|
|
18887
|
+
"31": {
|
|
18761
18888
|
start: {
|
|
18762
|
-
line:
|
|
18889
|
+
line: 82,
|
|
18763
18890
|
column: 4
|
|
18764
18891
|
},
|
|
18765
18892
|
end: {
|
|
18766
|
-
line:
|
|
18893
|
+
line: 85,
|
|
18767
18894
|
column: 7
|
|
18768
18895
|
}
|
|
18769
18896
|
},
|
|
18770
|
-
"
|
|
18897
|
+
"32": {
|
|
18771
18898
|
start: {
|
|
18772
|
-
line:
|
|
18899
|
+
line: 88,
|
|
18773
18900
|
column: 21
|
|
18774
18901
|
},
|
|
18775
18902
|
end: {
|
|
18776
|
-
line:
|
|
18903
|
+
line: 99,
|
|
18777
18904
|
column: 3
|
|
18778
18905
|
}
|
|
18779
18906
|
},
|
|
18780
|
-
"
|
|
18907
|
+
"33": {
|
|
18781
18908
|
start: {
|
|
18782
|
-
line:
|
|
18909
|
+
line: 89,
|
|
18783
18910
|
column: 20
|
|
18784
18911
|
},
|
|
18785
18912
|
end: {
|
|
18786
|
-
line:
|
|
18913
|
+
line: 92,
|
|
18787
18914
|
column: 5
|
|
18788
18915
|
}
|
|
18789
18916
|
},
|
|
18790
|
-
"
|
|
18917
|
+
"34": {
|
|
18791
18918
|
start: {
|
|
18792
|
-
line:
|
|
18919
|
+
line: 94,
|
|
18793
18920
|
column: 4
|
|
18794
18921
|
},
|
|
18795
18922
|
end: {
|
|
18796
|
-
line:
|
|
18923
|
+
line: 98,
|
|
18797
18924
|
column: 7
|
|
18798
18925
|
}
|
|
18799
18926
|
},
|
|
18800
|
-
"
|
|
18927
|
+
"35": {
|
|
18801
18928
|
start: {
|
|
18802
|
-
line:
|
|
18929
|
+
line: 96,
|
|
18803
18930
|
column: 23
|
|
18804
18931
|
},
|
|
18805
18932
|
end: {
|
|
18806
|
-
line:
|
|
18933
|
+
line: 96,
|
|
18807
18934
|
column: 38
|
|
18808
18935
|
}
|
|
18809
18936
|
},
|
|
18810
|
-
"
|
|
18937
|
+
"36": {
|
|
18811
18938
|
start: {
|
|
18812
|
-
line:
|
|
18939
|
+
line: 102,
|
|
18813
18940
|
column: 4
|
|
18814
18941
|
},
|
|
18815
18942
|
end: {
|
|
18816
|
-
line:
|
|
18943
|
+
line: 107,
|
|
18817
18944
|
column: 6
|
|
18818
18945
|
}
|
|
18819
18946
|
},
|
|
18820
|
-
"
|
|
18947
|
+
"37": {
|
|
18821
18948
|
start: {
|
|
18822
|
-
line:
|
|
18949
|
+
line: 109,
|
|
18823
18950
|
column: 2
|
|
18824
18951
|
},
|
|
18825
18952
|
end: {
|
|
18826
|
-
line:
|
|
18953
|
+
line: 126,
|
|
18827
18954
|
column: 3
|
|
18828
18955
|
}
|
|
18829
18956
|
},
|
|
18830
|
-
"
|
|
18957
|
+
"38": {
|
|
18831
18958
|
start: {
|
|
18832
|
-
line:
|
|
18959
|
+
line: 110,
|
|
18833
18960
|
column: 4
|
|
18834
18961
|
},
|
|
18835
18962
|
end: {
|
|
18836
|
-
line:
|
|
18963
|
+
line: 125,
|
|
18837
18964
|
column: 6
|
|
18838
18965
|
}
|
|
18839
18966
|
},
|
|
18840
|
-
"
|
|
18967
|
+
"39": {
|
|
18841
18968
|
start: {
|
|
18842
|
-
line:
|
|
18969
|
+
line: 128,
|
|
18843
18970
|
column: 2
|
|
18844
18971
|
},
|
|
18845
18972
|
end: {
|
|
18846
|
-
line:
|
|
18973
|
+
line: 196,
|
|
18847
18974
|
column: 4
|
|
18848
18975
|
}
|
|
18849
18976
|
},
|
|
18850
|
-
"
|
|
18977
|
+
"40": {
|
|
18851
18978
|
start: {
|
|
18852
|
-
line:
|
|
18979
|
+
line: 139,
|
|
18853
18980
|
column: 29
|
|
18854
18981
|
},
|
|
18855
18982
|
end: {
|
|
18856
|
-
line:
|
|
18983
|
+
line: 139,
|
|
18857
18984
|
column: 54
|
|
18858
18985
|
}
|
|
18859
18986
|
},
|
|
18860
|
-
"
|
|
18987
|
+
"41": {
|
|
18861
18988
|
start: {
|
|
18862
|
-
line:
|
|
18989
|
+
line: 170,
|
|
18863
18990
|
column: 27
|
|
18864
18991
|
},
|
|
18865
18992
|
end: {
|
|
18866
|
-
line:
|
|
18993
|
+
line: 170,
|
|
18867
18994
|
column: 49
|
|
18868
18995
|
}
|
|
18869
18996
|
},
|
|
18870
|
-
"
|
|
18997
|
+
"42": {
|
|
18871
18998
|
start: {
|
|
18872
|
-
line:
|
|
18999
|
+
line: 173,
|
|
18873
19000
|
column: 33
|
|
18874
19001
|
},
|
|
18875
19002
|
end: {
|
|
18876
|
-
line:
|
|
19003
|
+
line: 173,
|
|
18877
19004
|
column: 55
|
|
18878
19005
|
}
|
|
18879
19006
|
},
|
|
18880
|
-
"
|
|
19007
|
+
"43": {
|
|
18881
19008
|
start: {
|
|
18882
|
-
line:
|
|
19009
|
+
line: 192,
|
|
18883
19010
|
column: 23
|
|
18884
19011
|
},
|
|
18885
19012
|
end: {
|
|
18886
|
-
line:
|
|
19013
|
+
line: 192,
|
|
18887
19014
|
column: 51
|
|
18888
19015
|
}
|
|
18889
19016
|
}
|
|
@@ -18903,349 +19030,349 @@ function cov_1avu3clziw() {
|
|
|
18903
19030
|
},
|
|
18904
19031
|
loc: {
|
|
18905
19032
|
start: {
|
|
18906
|
-
line:
|
|
18907
|
-
column:
|
|
19033
|
+
line: 24,
|
|
19034
|
+
column: 6
|
|
18908
19035
|
},
|
|
18909
19036
|
end: {
|
|
18910
|
-
line:
|
|
19037
|
+
line: 197,
|
|
18911
19038
|
column: 1
|
|
18912
19039
|
}
|
|
18913
19040
|
},
|
|
18914
|
-
line:
|
|
19041
|
+
line: 24
|
|
18915
19042
|
},
|
|
18916
19043
|
"1": {
|
|
18917
19044
|
name: "(anonymous_1)",
|
|
18918
19045
|
decl: {
|
|
18919
19046
|
start: {
|
|
18920
|
-
line:
|
|
19047
|
+
line: 41,
|
|
18921
19048
|
column: 23
|
|
18922
19049
|
},
|
|
18923
19050
|
end: {
|
|
18924
|
-
line:
|
|
19051
|
+
line: 41,
|
|
18925
19052
|
column: 24
|
|
18926
19053
|
}
|
|
18927
19054
|
},
|
|
18928
19055
|
loc: {
|
|
18929
19056
|
start: {
|
|
18930
|
-
line:
|
|
19057
|
+
line: 41,
|
|
18931
19058
|
column: 29
|
|
18932
19059
|
},
|
|
18933
19060
|
end: {
|
|
18934
|
-
line:
|
|
19061
|
+
line: 45,
|
|
18935
19062
|
column: 3
|
|
18936
19063
|
}
|
|
18937
19064
|
},
|
|
18938
|
-
line:
|
|
19065
|
+
line: 41
|
|
18939
19066
|
},
|
|
18940
19067
|
"2": {
|
|
18941
19068
|
name: "(anonymous_2)",
|
|
18942
19069
|
decl: {
|
|
18943
19070
|
start: {
|
|
18944
|
-
line:
|
|
19071
|
+
line: 47,
|
|
18945
19072
|
column: 19
|
|
18946
19073
|
},
|
|
18947
19074
|
end: {
|
|
18948
|
-
line:
|
|
19075
|
+
line: 47,
|
|
18949
19076
|
column: 20
|
|
18950
19077
|
}
|
|
18951
19078
|
},
|
|
18952
19079
|
loc: {
|
|
18953
19080
|
start: {
|
|
18954
|
-
line:
|
|
19081
|
+
line: 47,
|
|
18955
19082
|
column: 27
|
|
18956
19083
|
},
|
|
18957
19084
|
end: {
|
|
18958
|
-
line:
|
|
19085
|
+
line: 47,
|
|
18959
19086
|
column: 49
|
|
18960
19087
|
}
|
|
18961
19088
|
},
|
|
18962
|
-
line:
|
|
19089
|
+
line: 47
|
|
18963
19090
|
},
|
|
18964
19091
|
"3": {
|
|
18965
19092
|
name: "(anonymous_3)",
|
|
18966
19093
|
decl: {
|
|
18967
19094
|
start: {
|
|
18968
|
-
line:
|
|
19095
|
+
line: 49,
|
|
18969
19096
|
column: 24
|
|
18970
19097
|
},
|
|
18971
19098
|
end: {
|
|
18972
|
-
line:
|
|
19099
|
+
line: 49,
|
|
18973
19100
|
column: 25
|
|
18974
19101
|
}
|
|
18975
19102
|
},
|
|
18976
19103
|
loc: {
|
|
18977
19104
|
start: {
|
|
18978
|
-
line:
|
|
19105
|
+
line: 49,
|
|
18979
19106
|
column: 41
|
|
18980
19107
|
},
|
|
18981
19108
|
end: {
|
|
18982
|
-
line:
|
|
19109
|
+
line: 57,
|
|
18983
19110
|
column: 3
|
|
18984
19111
|
}
|
|
18985
19112
|
},
|
|
18986
|
-
line:
|
|
19113
|
+
line: 49
|
|
18987
19114
|
},
|
|
18988
19115
|
"4": {
|
|
18989
19116
|
name: "(anonymous_4)",
|
|
18990
19117
|
decl: {
|
|
18991
19118
|
start: {
|
|
18992
|
-
line:
|
|
19119
|
+
line: 59,
|
|
18993
19120
|
column: 42
|
|
18994
19121
|
},
|
|
18995
19122
|
end: {
|
|
18996
|
-
line:
|
|
19123
|
+
line: 59,
|
|
18997
19124
|
column: 43
|
|
18998
19125
|
}
|
|
18999
19126
|
},
|
|
19000
19127
|
loc: {
|
|
19001
19128
|
start: {
|
|
19002
|
-
line:
|
|
19129
|
+
line: 59,
|
|
19003
19130
|
column: 51
|
|
19004
19131
|
},
|
|
19005
19132
|
end: {
|
|
19006
|
-
line:
|
|
19133
|
+
line: 64,
|
|
19007
19134
|
column: 3
|
|
19008
19135
|
}
|
|
19009
19136
|
},
|
|
19010
|
-
line:
|
|
19137
|
+
line: 59
|
|
19011
19138
|
},
|
|
19012
19139
|
"5": {
|
|
19013
19140
|
name: "(anonymous_5)",
|
|
19014
19141
|
decl: {
|
|
19015
19142
|
start: {
|
|
19016
|
-
line:
|
|
19143
|
+
line: 66,
|
|
19017
19144
|
column: 31
|
|
19018
19145
|
},
|
|
19019
19146
|
end: {
|
|
19020
|
-
line:
|
|
19147
|
+
line: 66,
|
|
19021
19148
|
column: 32
|
|
19022
19149
|
}
|
|
19023
19150
|
},
|
|
19024
19151
|
loc: {
|
|
19025
19152
|
start: {
|
|
19026
|
-
line:
|
|
19153
|
+
line: 66,
|
|
19027
19154
|
column: 40
|
|
19028
19155
|
},
|
|
19029
19156
|
end: {
|
|
19030
|
-
line:
|
|
19157
|
+
line: 86,
|
|
19031
19158
|
column: 3
|
|
19032
19159
|
}
|
|
19033
19160
|
},
|
|
19034
|
-
line:
|
|
19161
|
+
line: 66
|
|
19035
19162
|
},
|
|
19036
19163
|
"6": {
|
|
19037
19164
|
name: "(anonymous_6)",
|
|
19038
19165
|
decl: {
|
|
19039
19166
|
start: {
|
|
19040
|
-
line:
|
|
19167
|
+
line: 88,
|
|
19041
19168
|
column: 21
|
|
19042
19169
|
},
|
|
19043
19170
|
end: {
|
|
19044
|
-
line:
|
|
19171
|
+
line: 88,
|
|
19045
19172
|
column: 22
|
|
19046
19173
|
}
|
|
19047
19174
|
},
|
|
19048
19175
|
loc: {
|
|
19049
19176
|
start: {
|
|
19050
|
-
line:
|
|
19177
|
+
line: 88,
|
|
19051
19178
|
column: 40
|
|
19052
19179
|
},
|
|
19053
19180
|
end: {
|
|
19054
|
-
line:
|
|
19181
|
+
line: 99,
|
|
19055
19182
|
column: 3
|
|
19056
19183
|
}
|
|
19057
19184
|
},
|
|
19058
|
-
line:
|
|
19185
|
+
line: 88
|
|
19059
19186
|
},
|
|
19060
19187
|
"7": {
|
|
19061
19188
|
name: "(anonymous_7)",
|
|
19062
19189
|
decl: {
|
|
19063
19190
|
start: {
|
|
19064
|
-
line:
|
|
19191
|
+
line: 96,
|
|
19065
19192
|
column: 17
|
|
19066
19193
|
},
|
|
19067
19194
|
end: {
|
|
19068
|
-
line:
|
|
19195
|
+
line: 96,
|
|
19069
19196
|
column: 18
|
|
19070
19197
|
}
|
|
19071
19198
|
},
|
|
19072
19199
|
loc: {
|
|
19073
19200
|
start: {
|
|
19074
|
-
line:
|
|
19201
|
+
line: 96,
|
|
19075
19202
|
column: 23
|
|
19076
19203
|
},
|
|
19077
19204
|
end: {
|
|
19078
|
-
line:
|
|
19205
|
+
line: 96,
|
|
19079
19206
|
column: 38
|
|
19080
19207
|
}
|
|
19081
19208
|
},
|
|
19082
|
-
line:
|
|
19209
|
+
line: 96
|
|
19083
19210
|
},
|
|
19084
19211
|
"8": {
|
|
19085
19212
|
name: "(anonymous_8)",
|
|
19086
19213
|
decl: {
|
|
19087
19214
|
start: {
|
|
19088
|
-
line:
|
|
19215
|
+
line: 139,
|
|
19089
19216
|
column: 23
|
|
19090
19217
|
},
|
|
19091
19218
|
end: {
|
|
19092
|
-
line:
|
|
19219
|
+
line: 139,
|
|
19093
19220
|
column: 24
|
|
19094
19221
|
}
|
|
19095
19222
|
},
|
|
19096
19223
|
loc: {
|
|
19097
19224
|
start: {
|
|
19098
|
-
line:
|
|
19225
|
+
line: 139,
|
|
19099
19226
|
column: 29
|
|
19100
19227
|
},
|
|
19101
19228
|
end: {
|
|
19102
|
-
line:
|
|
19229
|
+
line: 139,
|
|
19103
19230
|
column: 54
|
|
19104
19231
|
}
|
|
19105
19232
|
},
|
|
19106
|
-
line:
|
|
19233
|
+
line: 139
|
|
19107
19234
|
},
|
|
19108
19235
|
"9": {
|
|
19109
19236
|
name: "(anonymous_9)",
|
|
19110
19237
|
decl: {
|
|
19111
19238
|
start: {
|
|
19112
|
-
line:
|
|
19239
|
+
line: 170,
|
|
19113
19240
|
column: 21
|
|
19114
19241
|
},
|
|
19115
19242
|
end: {
|
|
19116
|
-
line:
|
|
19243
|
+
line: 170,
|
|
19117
19244
|
column: 22
|
|
19118
19245
|
}
|
|
19119
19246
|
},
|
|
19120
19247
|
loc: {
|
|
19121
19248
|
start: {
|
|
19122
|
-
line:
|
|
19249
|
+
line: 170,
|
|
19123
19250
|
column: 27
|
|
19124
19251
|
},
|
|
19125
19252
|
end: {
|
|
19126
|
-
line:
|
|
19253
|
+
line: 170,
|
|
19127
19254
|
column: 49
|
|
19128
19255
|
}
|
|
19129
19256
|
},
|
|
19130
|
-
line:
|
|
19257
|
+
line: 170
|
|
19131
19258
|
},
|
|
19132
19259
|
"10": {
|
|
19133
19260
|
name: "(anonymous_10)",
|
|
19134
19261
|
decl: {
|
|
19135
19262
|
start: {
|
|
19136
|
-
line:
|
|
19263
|
+
line: 173,
|
|
19137
19264
|
column: 27
|
|
19138
19265
|
},
|
|
19139
19266
|
end: {
|
|
19140
|
-
line:
|
|
19267
|
+
line: 173,
|
|
19141
19268
|
column: 28
|
|
19142
19269
|
}
|
|
19143
19270
|
},
|
|
19144
19271
|
loc: {
|
|
19145
19272
|
start: {
|
|
19146
|
-
line:
|
|
19273
|
+
line: 173,
|
|
19147
19274
|
column: 33
|
|
19148
19275
|
},
|
|
19149
19276
|
end: {
|
|
19150
|
-
line:
|
|
19277
|
+
line: 173,
|
|
19151
19278
|
column: 55
|
|
19152
19279
|
}
|
|
19153
19280
|
},
|
|
19154
|
-
line:
|
|
19281
|
+
line: 173
|
|
19155
19282
|
},
|
|
19156
19283
|
"11": {
|
|
19157
19284
|
name: "(anonymous_11)",
|
|
19158
19285
|
decl: {
|
|
19159
19286
|
start: {
|
|
19160
|
-
line:
|
|
19287
|
+
line: 192,
|
|
19161
19288
|
column: 17
|
|
19162
19289
|
},
|
|
19163
19290
|
end: {
|
|
19164
|
-
line:
|
|
19291
|
+
line: 192,
|
|
19165
19292
|
column: 18
|
|
19166
19293
|
}
|
|
19167
19294
|
},
|
|
19168
19295
|
loc: {
|
|
19169
19296
|
start: {
|
|
19170
|
-
line:
|
|
19297
|
+
line: 192,
|
|
19171
19298
|
column: 23
|
|
19172
19299
|
},
|
|
19173
19300
|
end: {
|
|
19174
|
-
line:
|
|
19301
|
+
line: 192,
|
|
19175
19302
|
column: 51
|
|
19176
19303
|
}
|
|
19177
19304
|
},
|
|
19178
|
-
line:
|
|
19305
|
+
line: 192
|
|
19179
19306
|
}
|
|
19180
19307
|
},
|
|
19181
19308
|
branchMap: {
|
|
19182
19309
|
"0": {
|
|
19183
19310
|
loc: {
|
|
19184
19311
|
start: {
|
|
19185
|
-
line:
|
|
19186
|
-
column:
|
|
19312
|
+
line: 20,
|
|
19313
|
+
column: 2
|
|
19187
19314
|
},
|
|
19188
19315
|
end: {
|
|
19189
|
-
line:
|
|
19190
|
-
column:
|
|
19316
|
+
line: 20,
|
|
19317
|
+
column: 25
|
|
19191
19318
|
}
|
|
19192
19319
|
},
|
|
19193
19320
|
type: "default-arg",
|
|
19194
19321
|
locations: [{
|
|
19195
19322
|
start: {
|
|
19196
|
-
line:
|
|
19197
|
-
column:
|
|
19323
|
+
line: 20,
|
|
19324
|
+
column: 21
|
|
19198
19325
|
},
|
|
19199
19326
|
end: {
|
|
19200
|
-
line:
|
|
19201
|
-
column:
|
|
19327
|
+
line: 20,
|
|
19328
|
+
column: 25
|
|
19202
19329
|
}
|
|
19203
19330
|
}],
|
|
19204
|
-
line:
|
|
19331
|
+
line: 20
|
|
19205
19332
|
},
|
|
19206
19333
|
"1": {
|
|
19207
19334
|
loc: {
|
|
19208
19335
|
start: {
|
|
19209
|
-
line:
|
|
19210
|
-
column:
|
|
19336
|
+
line: 21,
|
|
19337
|
+
column: 2
|
|
19211
19338
|
},
|
|
19212
19339
|
end: {
|
|
19213
|
-
line:
|
|
19214
|
-
column:
|
|
19340
|
+
line: 21,
|
|
19341
|
+
column: 16
|
|
19215
19342
|
}
|
|
19216
19343
|
},
|
|
19217
19344
|
type: "default-arg",
|
|
19218
19345
|
locations: [{
|
|
19219
19346
|
start: {
|
|
19220
|
-
line:
|
|
19221
|
-
column:
|
|
19347
|
+
line: 21,
|
|
19348
|
+
column: 14
|
|
19222
19349
|
},
|
|
19223
19350
|
end: {
|
|
19224
|
-
line:
|
|
19225
|
-
column:
|
|
19351
|
+
line: 21,
|
|
19352
|
+
column: 16
|
|
19226
19353
|
}
|
|
19227
19354
|
}],
|
|
19228
|
-
line:
|
|
19355
|
+
line: 21
|
|
19229
19356
|
},
|
|
19230
19357
|
"2": {
|
|
19231
19358
|
loc: {
|
|
19232
19359
|
start: {
|
|
19233
|
-
line:
|
|
19360
|
+
line: 67,
|
|
19234
19361
|
column: 4
|
|
19235
19362
|
},
|
|
19236
19363
|
end: {
|
|
19237
|
-
line:
|
|
19364
|
+
line: 71,
|
|
19238
19365
|
column: 5
|
|
19239
19366
|
}
|
|
19240
19367
|
},
|
|
19241
19368
|
type: "if",
|
|
19242
19369
|
locations: [{
|
|
19243
19370
|
start: {
|
|
19244
|
-
line:
|
|
19371
|
+
line: 67,
|
|
19245
19372
|
column: 4
|
|
19246
19373
|
},
|
|
19247
19374
|
end: {
|
|
19248
|
-
line:
|
|
19375
|
+
line: 71,
|
|
19249
19376
|
column: 5
|
|
19250
19377
|
}
|
|
19251
19378
|
}, {
|
|
@@ -19258,27 +19385,27 @@ function cov_1avu3clziw() {
|
|
|
19258
19385
|
column: undefined
|
|
19259
19386
|
}
|
|
19260
19387
|
}],
|
|
19261
|
-
line:
|
|
19388
|
+
line: 67
|
|
19262
19389
|
},
|
|
19263
19390
|
"3": {
|
|
19264
19391
|
loc: {
|
|
19265
19392
|
start: {
|
|
19266
|
-
line:
|
|
19393
|
+
line: 109,
|
|
19267
19394
|
column: 2
|
|
19268
19395
|
},
|
|
19269
19396
|
end: {
|
|
19270
|
-
line:
|
|
19397
|
+
line: 126,
|
|
19271
19398
|
column: 3
|
|
19272
19399
|
}
|
|
19273
19400
|
},
|
|
19274
19401
|
type: "if",
|
|
19275
19402
|
locations: [{
|
|
19276
19403
|
start: {
|
|
19277
|
-
line:
|
|
19404
|
+
line: 109,
|
|
19278
19405
|
column: 2
|
|
19279
19406
|
},
|
|
19280
19407
|
end: {
|
|
19281
|
-
line:
|
|
19408
|
+
line: 126,
|
|
19282
19409
|
column: 3
|
|
19283
19410
|
}
|
|
19284
19411
|
}, {
|
|
@@ -19291,172 +19418,181 @@ function cov_1avu3clziw() {
|
|
|
19291
19418
|
column: undefined
|
|
19292
19419
|
}
|
|
19293
19420
|
}],
|
|
19294
|
-
line:
|
|
19421
|
+
line: 109
|
|
19295
19422
|
},
|
|
19296
19423
|
"4": {
|
|
19297
19424
|
loc: {
|
|
19298
19425
|
start: {
|
|
19299
|
-
line:
|
|
19426
|
+
line: 112,
|
|
19300
19427
|
column: 9
|
|
19301
19428
|
},
|
|
19302
19429
|
end: {
|
|
19303
|
-
line:
|
|
19430
|
+
line: 123,
|
|
19304
19431
|
column: 9
|
|
19305
19432
|
}
|
|
19306
19433
|
},
|
|
19307
19434
|
type: "cond-expr",
|
|
19308
19435
|
locations: [{
|
|
19309
19436
|
start: {
|
|
19310
|
-
line:
|
|
19437
|
+
line: 113,
|
|
19311
19438
|
column: 10
|
|
19312
19439
|
},
|
|
19313
19440
|
end: {
|
|
19314
|
-
line:
|
|
19441
|
+
line: 118,
|
|
19315
19442
|
column: 16
|
|
19316
19443
|
}
|
|
19317
19444
|
}, {
|
|
19318
19445
|
start: {
|
|
19319
|
-
line:
|
|
19446
|
+
line: 120,
|
|
19320
19447
|
column: 10
|
|
19321
19448
|
},
|
|
19322
19449
|
end: {
|
|
19323
|
-
line:
|
|
19450
|
+
line: 122,
|
|
19324
19451
|
column: 16
|
|
19325
19452
|
}
|
|
19326
19453
|
}],
|
|
19327
|
-
line:
|
|
19454
|
+
line: 112
|
|
19328
19455
|
},
|
|
19329
19456
|
"5": {
|
|
19330
19457
|
loc: {
|
|
19331
19458
|
start: {
|
|
19332
|
-
line:
|
|
19459
|
+
line: 112,
|
|
19333
19460
|
column: 9
|
|
19334
19461
|
},
|
|
19335
19462
|
end: {
|
|
19336
|
-
line:
|
|
19463
|
+
line: 112,
|
|
19337
19464
|
column: 55
|
|
19338
19465
|
}
|
|
19339
19466
|
},
|
|
19340
19467
|
type: "binary-expr",
|
|
19341
19468
|
locations: [{
|
|
19342
19469
|
start: {
|
|
19343
|
-
line:
|
|
19470
|
+
line: 112,
|
|
19344
19471
|
column: 9
|
|
19345
19472
|
},
|
|
19346
19473
|
end: {
|
|
19347
|
-
line:
|
|
19474
|
+
line: 112,
|
|
19348
19475
|
column: 29
|
|
19349
19476
|
}
|
|
19350
19477
|
}, {
|
|
19351
19478
|
start: {
|
|
19352
|
-
line:
|
|
19479
|
+
line: 112,
|
|
19353
19480
|
column: 33
|
|
19354
19481
|
},
|
|
19355
19482
|
end: {
|
|
19356
|
-
line:
|
|
19483
|
+
line: 112,
|
|
19357
19484
|
column: 55
|
|
19358
19485
|
}
|
|
19359
19486
|
}],
|
|
19360
|
-
line:
|
|
19487
|
+
line: 112
|
|
19361
19488
|
},
|
|
19362
19489
|
"6": {
|
|
19363
19490
|
loc: {
|
|
19364
19491
|
start: {
|
|
19365
|
-
line:
|
|
19492
|
+
line: 130,
|
|
19366
19493
|
column: 7
|
|
19367
19494
|
},
|
|
19368
19495
|
end: {
|
|
19369
|
-
line:
|
|
19496
|
+
line: 189,
|
|
19370
19497
|
column: 7
|
|
19371
19498
|
}
|
|
19372
19499
|
},
|
|
19373
19500
|
type: "cond-expr",
|
|
19374
19501
|
locations: [{
|
|
19375
19502
|
start: {
|
|
19376
|
-
line:
|
|
19503
|
+
line: 131,
|
|
19377
19504
|
column: 8
|
|
19378
19505
|
},
|
|
19379
19506
|
end: {
|
|
19380
|
-
line:
|
|
19507
|
+
line: 181,
|
|
19381
19508
|
column: 14
|
|
19382
19509
|
}
|
|
19383
19510
|
}, {
|
|
19384
19511
|
start: {
|
|
19385
|
-
line:
|
|
19512
|
+
line: 183,
|
|
19386
19513
|
column: 8
|
|
19387
19514
|
},
|
|
19388
19515
|
end: {
|
|
19389
|
-
line:
|
|
19516
|
+
line: 188,
|
|
19390
19517
|
column: 10
|
|
19391
19518
|
}
|
|
19392
19519
|
}],
|
|
19393
|
-
line:
|
|
19520
|
+
line: 130
|
|
19394
19521
|
},
|
|
19395
19522
|
"7": {
|
|
19396
19523
|
loc: {
|
|
19397
19524
|
start: {
|
|
19398
|
-
line:
|
|
19525
|
+
line: 155,
|
|
19399
19526
|
column: 13
|
|
19400
19527
|
},
|
|
19401
19528
|
end: {
|
|
19402
|
-
line:
|
|
19529
|
+
line: 164,
|
|
19403
19530
|
column: 13
|
|
19404
19531
|
}
|
|
19405
19532
|
},
|
|
19406
19533
|
type: "binary-expr",
|
|
19407
19534
|
locations: [{
|
|
19408
19535
|
start: {
|
|
19409
|
-
line:
|
|
19536
|
+
line: 155,
|
|
19410
19537
|
column: 13
|
|
19411
19538
|
},
|
|
19412
19539
|
end: {
|
|
19413
|
-
line:
|
|
19414
|
-
column:
|
|
19540
|
+
line: 155,
|
|
19541
|
+
column: 46
|
|
19415
19542
|
}
|
|
19416
19543
|
}, {
|
|
19417
19544
|
start: {
|
|
19418
|
-
line:
|
|
19545
|
+
line: 155,
|
|
19546
|
+
column: 50
|
|
19547
|
+
},
|
|
19548
|
+
end: {
|
|
19549
|
+
line: 155,
|
|
19550
|
+
column: 70
|
|
19551
|
+
}
|
|
19552
|
+
}, {
|
|
19553
|
+
start: {
|
|
19554
|
+
line: 156,
|
|
19419
19555
|
column: 14
|
|
19420
19556
|
},
|
|
19421
19557
|
end: {
|
|
19422
|
-
line:
|
|
19558
|
+
line: 163,
|
|
19423
19559
|
column: 17
|
|
19424
19560
|
}
|
|
19425
19561
|
}],
|
|
19426
|
-
line:
|
|
19562
|
+
line: 155
|
|
19427
19563
|
},
|
|
19428
19564
|
"8": {
|
|
19429
19565
|
loc: {
|
|
19430
19566
|
start: {
|
|
19431
|
-
line:
|
|
19567
|
+
line: 177,
|
|
19432
19568
|
column: 16
|
|
19433
19569
|
},
|
|
19434
19570
|
end: {
|
|
19435
|
-
line:
|
|
19571
|
+
line: 177,
|
|
19436
19572
|
column: 73
|
|
19437
19573
|
}
|
|
19438
19574
|
},
|
|
19439
19575
|
type: "cond-expr",
|
|
19440
19576
|
locations: [{
|
|
19441
19577
|
start: {
|
|
19442
|
-
line:
|
|
19578
|
+
line: 177,
|
|
19443
19579
|
column: 47
|
|
19444
19580
|
},
|
|
19445
19581
|
end: {
|
|
19446
|
-
line:
|
|
19582
|
+
line: 177,
|
|
19447
19583
|
column: 60
|
|
19448
19584
|
}
|
|
19449
19585
|
}, {
|
|
19450
19586
|
start: {
|
|
19451
|
-
line:
|
|
19587
|
+
line: 177,
|
|
19452
19588
|
column: 63
|
|
19453
19589
|
},
|
|
19454
19590
|
end: {
|
|
19455
|
-
line:
|
|
19591
|
+
line: 177,
|
|
19456
19592
|
column: 73
|
|
19457
19593
|
}
|
|
19458
19594
|
}],
|
|
19459
|
-
line:
|
|
19595
|
+
line: 177
|
|
19460
19596
|
}
|
|
19461
19597
|
},
|
|
19462
19598
|
s: {
|
|
@@ -19502,7 +19638,8 @@ function cov_1avu3clziw() {
|
|
|
19502
19638
|
"39": 0,
|
|
19503
19639
|
"40": 0,
|
|
19504
19640
|
"41": 0,
|
|
19505
|
-
"42": 0
|
|
19641
|
+
"42": 0,
|
|
19642
|
+
"43": 0
|
|
19506
19643
|
},
|
|
19507
19644
|
f: {
|
|
19508
19645
|
"0": 0,
|
|
@@ -19526,11 +19663,11 @@ function cov_1avu3clziw() {
|
|
|
19526
19663
|
"4": [0, 0],
|
|
19527
19664
|
"5": [0, 0],
|
|
19528
19665
|
"6": [0, 0],
|
|
19529
|
-
"7": [0, 0],
|
|
19666
|
+
"7": [0, 0, 0],
|
|
19530
19667
|
"8": [0, 0]
|
|
19531
19668
|
},
|
|
19532
19669
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
19533
|
-
hash: "
|
|
19670
|
+
hash: "fc75070de130ade042483d80750aa452c9c88eaa"
|
|
19534
19671
|
};
|
|
19535
19672
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
19536
19673
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -19552,7 +19689,8 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19552
19689
|
onUploadComplete = _ref$onUploadComplete === void 0 ? (cov_1avu3clziw().b[0][0]++, pure.noop) : _ref$onUploadComplete,
|
|
19553
19690
|
_ref$className = _ref.className,
|
|
19554
19691
|
className = _ref$className === void 0 ? (cov_1avu3clziw().b[1][0]++, "") : _ref$className,
|
|
19555
|
-
src = _ref.src
|
|
19692
|
+
src = _ref.src,
|
|
19693
|
+
uploadConfig = _ref.uploadConfig;
|
|
19556
19694
|
cov_1avu3clziw().f[0]++;
|
|
19557
19695
|
var _ref2 = (cov_1avu3clziw().s[1]++, React.useState(false)),
|
|
19558
19696
|
_ref3 = _slicedToArray$2(_ref2, 2),
|
|
@@ -19582,72 +19720,73 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19582
19720
|
createBlob = _ref13.mutate;
|
|
19583
19721
|
var _ref14 = (cov_1avu3clziw().s[8]++, useUpdateBlob()),
|
|
19584
19722
|
updateBlob = _ref14.mutate;
|
|
19585
|
-
cov_1avu3clziw().s[9]
|
|
19723
|
+
var uploadConfigWithDefaults = (cov_1avu3clziw().s[9]++, ramda.mergeRight(DEFAULT_UPLOAD_CONFIG, uploadConfig));
|
|
19724
|
+
cov_1avu3clziw().s[10]++;
|
|
19586
19725
|
var handleDelete = function handleDelete() {
|
|
19587
19726
|
cov_1avu3clziw().f[1]++;
|
|
19588
|
-
cov_1avu3clziw().s[10]++;
|
|
19589
|
-
setImage({});
|
|
19590
19727
|
cov_1avu3clziw().s[11]++;
|
|
19591
|
-
|
|
19728
|
+
setImage({});
|
|
19592
19729
|
cov_1avu3clziw().s[12]++;
|
|
19730
|
+
setSignedId("");
|
|
19731
|
+
cov_1avu3clziw().s[13]++;
|
|
19593
19732
|
onChange({
|
|
19594
19733
|
url: "",
|
|
19595
19734
|
signedId: ""
|
|
19596
19735
|
});
|
|
19597
19736
|
};
|
|
19598
|
-
cov_1avu3clziw().s[
|
|
19737
|
+
cov_1avu3clziw().s[14]++;
|
|
19599
19738
|
var onChange = function onChange(file) {
|
|
19600
19739
|
cov_1avu3clziw().f[2]++;
|
|
19601
|
-
cov_1avu3clziw().s[
|
|
19740
|
+
cov_1avu3clziw().s[15]++;
|
|
19602
19741
|
return onUploadComplete(file);
|
|
19603
19742
|
};
|
|
19604
|
-
cov_1avu3clziw().s[
|
|
19743
|
+
cov_1avu3clziw().s[16]++;
|
|
19605
19744
|
var handleSuccess = function handleSuccess(attachedImage) {
|
|
19606
19745
|
cov_1avu3clziw().f[3]++;
|
|
19607
|
-
cov_1avu3clziw().s[
|
|
19746
|
+
cov_1avu3clziw().s[17]++;
|
|
19608
19747
|
setImage(ramda.mergeRight(image, {
|
|
19609
19748
|
url: attachedImage.metadata.url
|
|
19610
19749
|
}));
|
|
19611
|
-
cov_1avu3clziw().s[
|
|
19750
|
+
cov_1avu3clziw().s[18]++;
|
|
19612
19751
|
onChange({
|
|
19613
19752
|
url: attachedImage.blobUrl,
|
|
19614
19753
|
signedId: attachedImage.signedId
|
|
19615
19754
|
});
|
|
19616
|
-
cov_1avu3clziw().s[18]++;
|
|
19617
|
-
setSignedId(attachedImage.signedId);
|
|
19618
19755
|
cov_1avu3clziw().s[19]++;
|
|
19756
|
+
setSignedId(attachedImage.signedId);
|
|
19757
|
+
cov_1avu3clziw().s[20]++;
|
|
19619
19758
|
setIsEditorOpen(false);
|
|
19620
19759
|
};
|
|
19621
|
-
cov_1avu3clziw().s[
|
|
19760
|
+
cov_1avu3clziw().s[21]++;
|
|
19622
19761
|
var handleImageSelectionFromLibrary = function handleImageSelectionFromLibrary(image) {
|
|
19623
19762
|
cov_1avu3clziw().f[4]++;
|
|
19624
|
-
cov_1avu3clziw().s[21]++;
|
|
19625
|
-
setImage(image);
|
|
19626
19763
|
cov_1avu3clziw().s[22]++;
|
|
19627
|
-
|
|
19764
|
+
setImage(image);
|
|
19628
19765
|
cov_1avu3clziw().s[23]++;
|
|
19629
|
-
|
|
19766
|
+
onChange(image);
|
|
19630
19767
|
cov_1avu3clziw().s[24]++;
|
|
19768
|
+
setSignedId("");
|
|
19769
|
+
cov_1avu3clziw().s[25]++;
|
|
19631
19770
|
setIsEditorOpen(false);
|
|
19632
19771
|
};
|
|
19633
|
-
cov_1avu3clziw().s[
|
|
19772
|
+
cov_1avu3clziw().s[26]++;
|
|
19634
19773
|
var handleUplaodComplete = function handleUplaodComplete(image) {
|
|
19635
19774
|
cov_1avu3clziw().f[5]++;
|
|
19636
|
-
cov_1avu3clziw().s[
|
|
19775
|
+
cov_1avu3clziw().s[27]++;
|
|
19637
19776
|
if (IS_DEVELOPMENT_OR_HEROKU_ENV) {
|
|
19638
19777
|
cov_1avu3clziw().b[2][0]++;
|
|
19639
|
-
cov_1avu3clziw().s[
|
|
19778
|
+
cov_1avu3clziw().s[28]++;
|
|
19640
19779
|
handleSuccess(ramda.mergeRight(image, {
|
|
19641
19780
|
metadata: {
|
|
19642
19781
|
url: image.url
|
|
19643
19782
|
}
|
|
19644
19783
|
}));
|
|
19645
|
-
cov_1avu3clziw().s[
|
|
19784
|
+
cov_1avu3clziw().s[29]++;
|
|
19646
19785
|
return;
|
|
19647
19786
|
} else {
|
|
19648
19787
|
cov_1avu3clziw().b[2][1]++;
|
|
19649
19788
|
}
|
|
19650
|
-
var payload = (cov_1avu3clziw().s[
|
|
19789
|
+
var payload = (cov_1avu3clziw().s[30]++, {
|
|
19651
19790
|
filename: image.name,
|
|
19652
19791
|
byte_size: image.size,
|
|
19653
19792
|
content_type: image.fileType,
|
|
@@ -19655,13 +19794,13 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19655
19794
|
metadata: image,
|
|
19656
19795
|
service_name: "imagekitio"
|
|
19657
19796
|
});
|
|
19658
|
-
cov_1avu3clziw().s[
|
|
19797
|
+
cov_1avu3clziw().s[31]++;
|
|
19659
19798
|
createBlob(payload, {
|
|
19660
19799
|
onSuccess: handleSuccess,
|
|
19661
19800
|
onError: neetoui.Toastr.error
|
|
19662
19801
|
});
|
|
19663
19802
|
};
|
|
19664
|
-
cov_1avu3clziw().s[
|
|
19803
|
+
cov_1avu3clziw().s[32]++;
|
|
19665
19804
|
var handleEdit = /*#__PURE__*/function () {
|
|
19666
19805
|
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref15) {
|
|
19667
19806
|
var url, payload;
|
|
@@ -19670,7 +19809,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19670
19809
|
case 0:
|
|
19671
19810
|
url = _ref15.url;
|
|
19672
19811
|
cov_1avu3clziw().f[6]++;
|
|
19673
|
-
payload = (cov_1avu3clziw().s[
|
|
19812
|
+
payload = (cov_1avu3clziw().s[33]++, {
|
|
19674
19813
|
id: signedId,
|
|
19675
19814
|
payload: {
|
|
19676
19815
|
service_name: "imagekitio",
|
|
@@ -19679,12 +19818,12 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19679
19818
|
}
|
|
19680
19819
|
}
|
|
19681
19820
|
});
|
|
19682
|
-
cov_1avu3clziw().s[
|
|
19821
|
+
cov_1avu3clziw().s[34]++;
|
|
19683
19822
|
updateBlob(payload, {
|
|
19684
19823
|
onSuccess: handleSuccess,
|
|
19685
19824
|
onSettled: function onSettled() {
|
|
19686
19825
|
cov_1avu3clziw().f[7]++;
|
|
19687
|
-
cov_1avu3clziw().s[
|
|
19826
|
+
cov_1avu3clziw().s[35]++;
|
|
19688
19827
|
return setSignedId("");
|
|
19689
19828
|
},
|
|
19690
19829
|
onError: neetoui.Toastr.error
|
|
@@ -19699,9 +19838,9 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19699
19838
|
return _ref16.apply(this, arguments);
|
|
19700
19839
|
};
|
|
19701
19840
|
}();
|
|
19702
|
-
var _ref17 = (cov_1avu3clziw().s[
|
|
19703
|
-
maxSize:
|
|
19704
|
-
acceptedTypes:
|
|
19841
|
+
var _ref17 = (cov_1avu3clziw().s[36]++, useDropzoneWithValidation({
|
|
19842
|
+
maxSize: uploadConfigWithDefaults === null || uploadConfigWithDefaults === void 0 ? void 0 : uploadConfigWithDefaults.maxImageSize,
|
|
19843
|
+
acceptedTypes: uploadConfigWithDefaults === null || uploadConfigWithDefaults === void 0 ? void 0 : uploadConfigWithDefaults.allowedImageTypes,
|
|
19705
19844
|
onUploadComplete: handleUplaodComplete,
|
|
19706
19845
|
setIsUploading: setIsUploading
|
|
19707
19846
|
})),
|
|
@@ -19709,10 +19848,10 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19709
19848
|
getInputProps = _ref17.getInputProps,
|
|
19710
19849
|
uploadProgress = _ref17.uploadProgress,
|
|
19711
19850
|
inputRef = _ref17.inputRef;
|
|
19712
|
-
cov_1avu3clziw().s[
|
|
19851
|
+
cov_1avu3clziw().s[37]++;
|
|
19713
19852
|
if (isUploading) {
|
|
19714
19853
|
cov_1avu3clziw().b[3][0]++;
|
|
19715
|
-
cov_1avu3clziw().s[
|
|
19854
|
+
cov_1avu3clziw().s[38]++;
|
|
19716
19855
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19717
19856
|
className: className
|
|
19718
19857
|
}, (cov_1avu3clziw().b[5][0]++, uploadProgress !== 0) && (cov_1avu3clziw().b[5][1]++, uploadProgress !== 100) ? (cov_1avu3clziw().b[4][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -19726,7 +19865,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19726
19865
|
} else {
|
|
19727
19866
|
cov_1avu3clziw().b[3][1]++;
|
|
19728
19867
|
}
|
|
19729
|
-
cov_1avu3clziw().s[
|
|
19868
|
+
cov_1avu3clziw().s[39]++;
|
|
19730
19869
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19731
19870
|
className: className
|
|
19732
19871
|
}, isNotNilOrEmpty(image.url) ? (cov_1avu3clziw().b[6][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -19744,7 +19883,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19744
19883
|
onClick: function onClick() {
|
|
19745
19884
|
var _inputRef$current;
|
|
19746
19885
|
cov_1avu3clziw().f[8]++;
|
|
19747
|
-
cov_1avu3clziw().s[
|
|
19886
|
+
cov_1avu3clziw().s[40]++;
|
|
19748
19887
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
19749
19888
|
}
|
|
19750
19889
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -19760,7 +19899,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19760
19899
|
label: t("imageUpload.delete"),
|
|
19761
19900
|
style: "danger-text",
|
|
19762
19901
|
onClick: handleDelete
|
|
19763
|
-
}), (cov_1avu3clziw().b[7][0]++, pure.isNotEmpty(signedId)) && (cov_1avu3clziw().b[7][
|
|
19902
|
+
}), (cov_1avu3clziw().b[7][0]++, ramda.not(IS_DEVELOPMENT_OR_HEROKU_ENV)) && (cov_1avu3clziw().b[7][1]++, pure.isNotEmpty(signedId)) && (cov_1avu3clziw().b[7][2]++, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19764
19903
|
className: "neeto-ui-bg-gray-300 w-px"
|
|
19765
19904
|
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
19766
19905
|
label: t("imageUpload.edit"),
|
|
@@ -19772,13 +19911,13 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19772
19911
|
size: "large",
|
|
19773
19912
|
onClose: function onClose() {
|
|
19774
19913
|
cov_1avu3clziw().f[9]++;
|
|
19775
|
-
cov_1avu3clziw().s[
|
|
19914
|
+
cov_1avu3clziw().s[41]++;
|
|
19776
19915
|
return setIsEditorOpen(false);
|
|
19777
19916
|
}
|
|
19778
19917
|
}, /*#__PURE__*/React__default["default"].createElement(ImageEditor, {
|
|
19779
19918
|
handleReset: function handleReset() {
|
|
19780
19919
|
cov_1avu3clziw().f[10]++;
|
|
19781
|
-
cov_1avu3clziw().s[
|
|
19920
|
+
cov_1avu3clziw().s[42]++;
|
|
19782
19921
|
return setIsEditorOpen(false);
|
|
19783
19922
|
},
|
|
19784
19923
|
image: image,
|
|
@@ -19787,12 +19926,13 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19787
19926
|
})))) : (cov_1avu3clziw().b[6][1]++, /*#__PURE__*/React__default["default"].createElement(ImageUpload, {
|
|
19788
19927
|
getInputProps: getInputProps,
|
|
19789
19928
|
getRootProps: getRootProps,
|
|
19790
|
-
setIsAssetLibraryOpen: setIsAssetLibraryOpen
|
|
19929
|
+
setIsAssetLibraryOpen: setIsAssetLibraryOpen,
|
|
19930
|
+
uploadConfig: uploadConfigWithDefaults
|
|
19791
19931
|
})), /*#__PURE__*/React__default["default"].createElement(Modal, {
|
|
19792
19932
|
isOpen: isAssetLibraryOpen,
|
|
19793
19933
|
onClose: function onClose() {
|
|
19794
19934
|
cov_1avu3clziw().f[11]++;
|
|
19795
|
-
cov_1avu3clziw().s[
|
|
19935
|
+
cov_1avu3clziw().s[43]++;
|
|
19796
19936
|
return setIsAssetLibraryOpen(false);
|
|
19797
19937
|
},
|
|
19798
19938
|
onUploadComplete: handleImageSelectionFromLibrary
|