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