@bigbinary/neeto-form-frontend 1.0.30 → 1.0.31
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 +42 -33
- package/dist/index.cjs.js +1303 -811
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1303 -811
- package/dist/index.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24101,7 +24101,7 @@ var STAR_RATING_ICONS_MAP = (cov_5u7jgeqcn().s[5]++, {
|
|
|
24101
24101
|
|
|
24102
24102
|
function cov_2dmleb6ptc() {
|
|
24103
24103
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Dropdown.jsx";
|
|
24104
|
-
var hash = "
|
|
24104
|
+
var hash = "9926432972dd870e218f292a5e8cf35d8de9ef94";
|
|
24105
24105
|
var global = new Function("return this")();
|
|
24106
24106
|
var gcv = "__coverage__";
|
|
24107
24107
|
var coverageData = {
|
|
@@ -24113,118 +24113,118 @@ function cov_2dmleb6ptc() {
|
|
|
24113
24113
|
column: 17
|
|
24114
24114
|
},
|
|
24115
24115
|
end: {
|
|
24116
|
-
line:
|
|
24116
|
+
line: 111,
|
|
24117
24117
|
column: 1
|
|
24118
24118
|
}
|
|
24119
24119
|
},
|
|
24120
24120
|
"1": {
|
|
24121
24121
|
start: {
|
|
24122
|
-
line:
|
|
24123
|
-
column:
|
|
24122
|
+
line: 21,
|
|
24123
|
+
column: 6
|
|
24124
24124
|
},
|
|
24125
24125
|
end: {
|
|
24126
|
-
line:
|
|
24127
|
-
column:
|
|
24126
|
+
line: 21,
|
|
24127
|
+
column: 10
|
|
24128
24128
|
}
|
|
24129
24129
|
},
|
|
24130
24130
|
"2": {
|
|
24131
24131
|
start: {
|
|
24132
|
-
line:
|
|
24132
|
+
line: 22,
|
|
24133
24133
|
column: 16
|
|
24134
24134
|
},
|
|
24135
24135
|
end: {
|
|
24136
|
-
line:
|
|
24136
|
+
line: 22,
|
|
24137
24137
|
column: 32
|
|
24138
24138
|
}
|
|
24139
24139
|
},
|
|
24140
24140
|
"3": {
|
|
24141
24141
|
start: {
|
|
24142
|
-
line:
|
|
24142
|
+
line: 23,
|
|
24143
24143
|
column: 28
|
|
24144
24144
|
},
|
|
24145
24145
|
end: {
|
|
24146
|
-
line:
|
|
24146
|
+
line: 23,
|
|
24147
24147
|
column: 46
|
|
24148
24148
|
}
|
|
24149
24149
|
},
|
|
24150
24150
|
"4": {
|
|
24151
24151
|
start: {
|
|
24152
|
-
line:
|
|
24152
|
+
line: 25,
|
|
24153
24153
|
column: 29
|
|
24154
24154
|
},
|
|
24155
24155
|
end: {
|
|
24156
|
-
line:
|
|
24156
|
+
line: 28,
|
|
24157
24157
|
column: 3
|
|
24158
24158
|
}
|
|
24159
24159
|
},
|
|
24160
24160
|
"5": {
|
|
24161
24161
|
start: {
|
|
24162
|
-
line:
|
|
24162
|
+
line: 26,
|
|
24163
24163
|
column: 24
|
|
24164
24164
|
},
|
|
24165
24165
|
end: {
|
|
24166
|
-
line:
|
|
24166
|
+
line: 26,
|
|
24167
24167
|
column: 77
|
|
24168
24168
|
}
|
|
24169
24169
|
},
|
|
24170
24170
|
"6": {
|
|
24171
24171
|
start: {
|
|
24172
|
-
line:
|
|
24172
|
+
line: 27,
|
|
24173
24173
|
column: 4
|
|
24174
24174
|
},
|
|
24175
24175
|
end: {
|
|
24176
|
-
line:
|
|
24176
|
+
line: 27,
|
|
24177
24177
|
column: 60
|
|
24178
24178
|
}
|
|
24179
24179
|
},
|
|
24180
24180
|
"7": {
|
|
24181
24181
|
start: {
|
|
24182
|
-
line:
|
|
24182
|
+
line: 30,
|
|
24183
24183
|
column: 2
|
|
24184
24184
|
},
|
|
24185
24185
|
end: {
|
|
24186
|
-
line:
|
|
24186
|
+
line: 110,
|
|
24187
24187
|
column: 4
|
|
24188
24188
|
}
|
|
24189
24189
|
},
|
|
24190
24190
|
"8": {
|
|
24191
24191
|
start: {
|
|
24192
|
-
line:
|
|
24192
|
+
line: 49,
|
|
24193
24193
|
column: 12
|
|
24194
24194
|
},
|
|
24195
24195
|
end: {
|
|
24196
|
-
line:
|
|
24196
|
+
line: 96,
|
|
24197
24197
|
column: 15
|
|
24198
24198
|
}
|
|
24199
24199
|
},
|
|
24200
24200
|
"9": {
|
|
24201
24201
|
start: {
|
|
24202
|
-
line:
|
|
24202
|
+
line: 53,
|
|
24203
24203
|
column: 20
|
|
24204
24204
|
},
|
|
24205
24205
|
end: {
|
|
24206
|
-
line:
|
|
24206
|
+
line: 81,
|
|
24207
24207
|
column: 21
|
|
24208
24208
|
}
|
|
24209
24209
|
},
|
|
24210
24210
|
"10": {
|
|
24211
24211
|
start: {
|
|
24212
|
-
line:
|
|
24213
|
-
column:
|
|
24212
|
+
line: 72,
|
|
24213
|
+
column: 30
|
|
24214
24214
|
},
|
|
24215
24215
|
end: {
|
|
24216
|
-
line:
|
|
24217
|
-
column:
|
|
24216
|
+
line: 75,
|
|
24217
|
+
column: 32
|
|
24218
24218
|
}
|
|
24219
24219
|
},
|
|
24220
24220
|
"11": {
|
|
24221
24221
|
start: {
|
|
24222
|
-
line:
|
|
24223
|
-
column:
|
|
24222
|
+
line: 77,
|
|
24223
|
+
column: 43
|
|
24224
24224
|
},
|
|
24225
24225
|
end: {
|
|
24226
|
-
line:
|
|
24227
|
-
column:
|
|
24226
|
+
line: 77,
|
|
24227
|
+
column: 68
|
|
24228
24228
|
}
|
|
24229
24229
|
}
|
|
24230
24230
|
},
|
|
@@ -24247,7 +24247,7 @@ function cov_2dmleb6ptc() {
|
|
|
24247
24247
|
column: 49
|
|
24248
24248
|
},
|
|
24249
24249
|
end: {
|
|
24250
|
-
line:
|
|
24250
|
+
line: 111,
|
|
24251
24251
|
column: 1
|
|
24252
24252
|
}
|
|
24253
24253
|
},
|
|
@@ -24257,222 +24257,336 @@ function cov_2dmleb6ptc() {
|
|
|
24257
24257
|
name: "(anonymous_1)",
|
|
24258
24258
|
decl: {
|
|
24259
24259
|
start: {
|
|
24260
|
-
line:
|
|
24260
|
+
line: 25,
|
|
24261
24261
|
column: 29
|
|
24262
24262
|
},
|
|
24263
24263
|
end: {
|
|
24264
|
-
line:
|
|
24264
|
+
line: 25,
|
|
24265
24265
|
column: 30
|
|
24266
24266
|
}
|
|
24267
24267
|
},
|
|
24268
24268
|
loc: {
|
|
24269
24269
|
start: {
|
|
24270
|
-
line:
|
|
24270
|
+
line: 25,
|
|
24271
24271
|
column: 38
|
|
24272
24272
|
},
|
|
24273
24273
|
end: {
|
|
24274
|
-
line:
|
|
24274
|
+
line: 28,
|
|
24275
24275
|
column: 3
|
|
24276
24276
|
}
|
|
24277
24277
|
},
|
|
24278
|
-
line:
|
|
24278
|
+
line: 25
|
|
24279
24279
|
},
|
|
24280
24280
|
"2": {
|
|
24281
24281
|
name: "(anonymous_2)",
|
|
24282
24282
|
decl: {
|
|
24283
24283
|
start: {
|
|
24284
|
-
line:
|
|
24284
|
+
line: 48,
|
|
24285
24285
|
column: 11
|
|
24286
24286
|
},
|
|
24287
24287
|
end: {
|
|
24288
|
-
line:
|
|
24288
|
+
line: 48,
|
|
24289
24289
|
column: 12
|
|
24290
24290
|
}
|
|
24291
24291
|
},
|
|
24292
24292
|
loc: {
|
|
24293
24293
|
start: {
|
|
24294
|
-
line:
|
|
24294
|
+
line: 49,
|
|
24295
24295
|
column: 12
|
|
24296
24296
|
},
|
|
24297
24297
|
end: {
|
|
24298
|
-
line:
|
|
24298
|
+
line: 96,
|
|
24299
24299
|
column: 15
|
|
24300
24300
|
}
|
|
24301
24301
|
},
|
|
24302
|
-
line:
|
|
24302
|
+
line: 49
|
|
24303
24303
|
},
|
|
24304
24304
|
"3": {
|
|
24305
24305
|
name: "(anonymous_3)",
|
|
24306
24306
|
decl: {
|
|
24307
24307
|
start: {
|
|
24308
|
-
line:
|
|
24308
|
+
line: 52,
|
|
24309
24309
|
column: 18
|
|
24310
24310
|
},
|
|
24311
24311
|
end: {
|
|
24312
|
-
line:
|
|
24312
|
+
line: 52,
|
|
24313
24313
|
column: 19
|
|
24314
24314
|
}
|
|
24315
24315
|
},
|
|
24316
24316
|
loc: {
|
|
24317
24317
|
start: {
|
|
24318
|
-
line:
|
|
24318
|
+
line: 53,
|
|
24319
24319
|
column: 20
|
|
24320
24320
|
},
|
|
24321
24321
|
end: {
|
|
24322
|
-
line:
|
|
24322
|
+
line: 81,
|
|
24323
24323
|
column: 21
|
|
24324
24324
|
}
|
|
24325
24325
|
},
|
|
24326
|
-
line:
|
|
24326
|
+
line: 53
|
|
24327
24327
|
},
|
|
24328
24328
|
"4": {
|
|
24329
24329
|
name: "(anonymous_4)",
|
|
24330
24330
|
decl: {
|
|
24331
24331
|
start: {
|
|
24332
|
-
line:
|
|
24333
|
-
column:
|
|
24332
|
+
line: 71,
|
|
24333
|
+
column: 34
|
|
24334
24334
|
},
|
|
24335
24335
|
end: {
|
|
24336
|
-
line:
|
|
24337
|
-
column:
|
|
24336
|
+
line: 71,
|
|
24337
|
+
column: 35
|
|
24338
24338
|
}
|
|
24339
24339
|
},
|
|
24340
24340
|
loc: {
|
|
24341
24341
|
start: {
|
|
24342
|
-
line:
|
|
24343
|
-
column:
|
|
24342
|
+
line: 72,
|
|
24343
|
+
column: 30
|
|
24344
24344
|
},
|
|
24345
24345
|
end: {
|
|
24346
|
-
line:
|
|
24347
|
-
column:
|
|
24346
|
+
line: 75,
|
|
24347
|
+
column: 32
|
|
24348
24348
|
}
|
|
24349
24349
|
},
|
|
24350
|
-
line:
|
|
24350
|
+
line: 72
|
|
24351
24351
|
},
|
|
24352
24352
|
"5": {
|
|
24353
24353
|
name: "(anonymous_5)",
|
|
24354
24354
|
decl: {
|
|
24355
24355
|
start: {
|
|
24356
|
-
line:
|
|
24357
|
-
column:
|
|
24356
|
+
line: 77,
|
|
24357
|
+
column: 37
|
|
24358
24358
|
},
|
|
24359
24359
|
end: {
|
|
24360
|
-
line:
|
|
24361
|
-
column:
|
|
24360
|
+
line: 77,
|
|
24361
|
+
column: 38
|
|
24362
24362
|
}
|
|
24363
24363
|
},
|
|
24364
24364
|
loc: {
|
|
24365
24365
|
start: {
|
|
24366
|
-
line:
|
|
24367
|
-
column:
|
|
24366
|
+
line: 77,
|
|
24367
|
+
column: 43
|
|
24368
24368
|
},
|
|
24369
24369
|
end: {
|
|
24370
|
-
line:
|
|
24371
|
-
column:
|
|
24370
|
+
line: 77,
|
|
24371
|
+
column: 68
|
|
24372
24372
|
}
|
|
24373
24373
|
},
|
|
24374
|
-
line:
|
|
24374
|
+
line: 77
|
|
24375
24375
|
}
|
|
24376
24376
|
},
|
|
24377
24377
|
branchMap: {
|
|
24378
24378
|
"0": {
|
|
24379
24379
|
loc: {
|
|
24380
24380
|
start: {
|
|
24381
|
-
line:
|
|
24381
|
+
line: 19,
|
|
24382
|
+
column: 4
|
|
24383
|
+
},
|
|
24384
|
+
end: {
|
|
24385
|
+
line: 19,
|
|
24386
|
+
column: 25
|
|
24387
|
+
}
|
|
24388
|
+
},
|
|
24389
|
+
type: "default-arg",
|
|
24390
|
+
locations: [{
|
|
24391
|
+
start: {
|
|
24392
|
+
line: 19,
|
|
24393
|
+
column: 23
|
|
24394
|
+
},
|
|
24395
|
+
end: {
|
|
24396
|
+
line: 19,
|
|
24397
|
+
column: 25
|
|
24398
|
+
}
|
|
24399
|
+
}],
|
|
24400
|
+
line: 19
|
|
24401
|
+
},
|
|
24402
|
+
"1": {
|
|
24403
|
+
loc: {
|
|
24404
|
+
start: {
|
|
24405
|
+
line: 20,
|
|
24406
|
+
column: 4
|
|
24407
|
+
},
|
|
24408
|
+
end: {
|
|
24409
|
+
line: 20,
|
|
24410
|
+
column: 25
|
|
24411
|
+
}
|
|
24412
|
+
},
|
|
24413
|
+
type: "default-arg",
|
|
24414
|
+
locations: [{
|
|
24415
|
+
start: {
|
|
24416
|
+
line: 20,
|
|
24382
24417
|
column: 20
|
|
24383
24418
|
},
|
|
24384
24419
|
end: {
|
|
24385
|
-
line:
|
|
24420
|
+
line: 20,
|
|
24421
|
+
column: 25
|
|
24422
|
+
}
|
|
24423
|
+
}],
|
|
24424
|
+
line: 20
|
|
24425
|
+
},
|
|
24426
|
+
"2": {
|
|
24427
|
+
loc: {
|
|
24428
|
+
start: {
|
|
24429
|
+
line: 53,
|
|
24430
|
+
column: 20
|
|
24431
|
+
},
|
|
24432
|
+
end: {
|
|
24433
|
+
line: 81,
|
|
24386
24434
|
column: 21
|
|
24387
24435
|
}
|
|
24388
24436
|
},
|
|
24389
24437
|
type: "binary-expr",
|
|
24390
24438
|
locations: [{
|
|
24391
24439
|
start: {
|
|
24392
|
-
line:
|
|
24440
|
+
line: 53,
|
|
24393
24441
|
column: 20
|
|
24394
24442
|
},
|
|
24395
24443
|
end: {
|
|
24396
|
-
line:
|
|
24444
|
+
line: 53,
|
|
24397
24445
|
column: 36
|
|
24398
24446
|
}
|
|
24399
24447
|
}, {
|
|
24400
24448
|
start: {
|
|
24401
|
-
line:
|
|
24449
|
+
line: 54,
|
|
24402
24450
|
column: 22
|
|
24403
24451
|
},
|
|
24404
24452
|
end: {
|
|
24405
|
-
line:
|
|
24453
|
+
line: 80,
|
|
24406
24454
|
column: 28
|
|
24407
24455
|
}
|
|
24408
24456
|
}],
|
|
24409
|
-
line:
|
|
24457
|
+
line: 53
|
|
24410
24458
|
},
|
|
24411
|
-
"
|
|
24459
|
+
"3": {
|
|
24412
24460
|
loc: {
|
|
24413
24461
|
start: {
|
|
24414
|
-
line:
|
|
24462
|
+
line: 56,
|
|
24415
24463
|
column: 48
|
|
24416
24464
|
},
|
|
24417
24465
|
end: {
|
|
24418
|
-
line:
|
|
24466
|
+
line: 56,
|
|
24419
24467
|
column: 66
|
|
24420
24468
|
}
|
|
24421
24469
|
},
|
|
24422
24470
|
type: "binary-expr",
|
|
24423
24471
|
locations: [{
|
|
24424
24472
|
start: {
|
|
24425
|
-
line:
|
|
24473
|
+
line: 56,
|
|
24426
24474
|
column: 48
|
|
24427
24475
|
},
|
|
24428
24476
|
end: {
|
|
24429
|
-
line:
|
|
24477
|
+
line: 56,
|
|
24430
24478
|
column: 57
|
|
24431
24479
|
}
|
|
24432
24480
|
}, {
|
|
24433
24481
|
start: {
|
|
24434
|
-
line:
|
|
24482
|
+
line: 56,
|
|
24435
24483
|
column: 61
|
|
24436
24484
|
},
|
|
24437
24485
|
end: {
|
|
24438
|
-
line:
|
|
24486
|
+
line: 56,
|
|
24439
24487
|
column: 66
|
|
24440
24488
|
}
|
|
24441
24489
|
}],
|
|
24442
|
-
line:
|
|
24490
|
+
line: 56
|
|
24491
|
+
},
|
|
24492
|
+
"4": {
|
|
24493
|
+
loc: {
|
|
24494
|
+
start: {
|
|
24495
|
+
line: 65,
|
|
24496
|
+
column: 25
|
|
24497
|
+
},
|
|
24498
|
+
end: {
|
|
24499
|
+
line: 79,
|
|
24500
|
+
column: 25
|
|
24501
|
+
}
|
|
24502
|
+
},
|
|
24503
|
+
type: "binary-expr",
|
|
24504
|
+
locations: [{
|
|
24505
|
+
start: {
|
|
24506
|
+
line: 65,
|
|
24507
|
+
column: 25
|
|
24508
|
+
},
|
|
24509
|
+
end: {
|
|
24510
|
+
line: 65,
|
|
24511
|
+
column: 39
|
|
24512
|
+
}
|
|
24513
|
+
}, {
|
|
24514
|
+
start: {
|
|
24515
|
+
line: 66,
|
|
24516
|
+
column: 26
|
|
24517
|
+
},
|
|
24518
|
+
end: {
|
|
24519
|
+
line: 78,
|
|
24520
|
+
column: 28
|
|
24521
|
+
}
|
|
24522
|
+
}],
|
|
24523
|
+
line: 65
|
|
24524
|
+
},
|
|
24525
|
+
"5": {
|
|
24526
|
+
loc: {
|
|
24527
|
+
start: {
|
|
24528
|
+
line: 84,
|
|
24529
|
+
column: 15
|
|
24530
|
+
},
|
|
24531
|
+
end: {
|
|
24532
|
+
line: 95,
|
|
24533
|
+
column: 15
|
|
24534
|
+
}
|
|
24535
|
+
},
|
|
24536
|
+
type: "binary-expr",
|
|
24537
|
+
locations: [{
|
|
24538
|
+
start: {
|
|
24539
|
+
line: 84,
|
|
24540
|
+
column: 15
|
|
24541
|
+
},
|
|
24542
|
+
end: {
|
|
24543
|
+
line: 84,
|
|
24544
|
+
column: 29
|
|
24545
|
+
}
|
|
24546
|
+
}, {
|
|
24547
|
+
start: {
|
|
24548
|
+
line: 85,
|
|
24549
|
+
column: 16
|
|
24550
|
+
},
|
|
24551
|
+
end: {
|
|
24552
|
+
line: 94,
|
|
24553
|
+
column: 22
|
|
24554
|
+
}
|
|
24555
|
+
}],
|
|
24556
|
+
line: 84
|
|
24443
24557
|
},
|
|
24444
|
-
"
|
|
24558
|
+
"6": {
|
|
24445
24559
|
loc: {
|
|
24446
24560
|
start: {
|
|
24447
|
-
line:
|
|
24561
|
+
line: 100,
|
|
24448
24562
|
column: 7
|
|
24449
24563
|
},
|
|
24450
24564
|
end: {
|
|
24451
|
-
line:
|
|
24565
|
+
line: 108,
|
|
24452
24566
|
column: 7
|
|
24453
24567
|
}
|
|
24454
24568
|
},
|
|
24455
24569
|
type: "binary-expr",
|
|
24456
24570
|
locations: [{
|
|
24457
24571
|
start: {
|
|
24458
|
-
line:
|
|
24572
|
+
line: 100,
|
|
24459
24573
|
column: 7
|
|
24460
24574
|
},
|
|
24461
24575
|
end: {
|
|
24462
|
-
line:
|
|
24576
|
+
line: 100,
|
|
24463
24577
|
column: 18
|
|
24464
24578
|
}
|
|
24465
24579
|
}, {
|
|
24466
24580
|
start: {
|
|
24467
|
-
line:
|
|
24581
|
+
line: 101,
|
|
24468
24582
|
column: 8
|
|
24469
24583
|
},
|
|
24470
24584
|
end: {
|
|
24471
|
-
line:
|
|
24585
|
+
line: 107,
|
|
24472
24586
|
column: 14
|
|
24473
24587
|
}
|
|
24474
24588
|
}],
|
|
24475
|
-
line:
|
|
24589
|
+
line: 100
|
|
24476
24590
|
}
|
|
24477
24591
|
},
|
|
24478
24592
|
s: {
|
|
@@ -24498,12 +24612,16 @@ function cov_2dmleb6ptc() {
|
|
|
24498
24612
|
"5": 0
|
|
24499
24613
|
},
|
|
24500
24614
|
b: {
|
|
24501
|
-
"0": [0
|
|
24502
|
-
"1": [0
|
|
24503
|
-
"2": [0, 0]
|
|
24615
|
+
"0": [0],
|
|
24616
|
+
"1": [0],
|
|
24617
|
+
"2": [0, 0],
|
|
24618
|
+
"3": [0, 0],
|
|
24619
|
+
"4": [0, 0],
|
|
24620
|
+
"5": [0, 0],
|
|
24621
|
+
"6": [0, 0]
|
|
24504
24622
|
},
|
|
24505
24623
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
24506
|
-
hash: "
|
|
24624
|
+
hash: "9926432972dd870e218f292a5e8cf35d8de9ef94"
|
|
24507
24625
|
};
|
|
24508
24626
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
24509
24627
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -24526,7 +24644,11 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
24526
24644
|
isRequired = _ref.isRequired;
|
|
24527
24645
|
cov_2dmleb6ptc().f[0]++;
|
|
24528
24646
|
var _ref2 = (cov_2dmleb6ptc().s[1]++, item),
|
|
24529
|
-
optionsAttributes = _ref2.optionsAttributes
|
|
24647
|
+
optionsAttributes = _ref2.optionsAttributes,
|
|
24648
|
+
_ref2$optionLabelProp = _ref2.optionLabelProps,
|
|
24649
|
+
optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_2dmleb6ptc().b[0][0]++, {}) : _ref2$optionLabelProp,
|
|
24650
|
+
_ref2$freezeOptions = _ref2.freezeOptions,
|
|
24651
|
+
freezeOptions = _ref2$freezeOptions === void 0 ? (cov_2dmleb6ptc().b[1][0]++, false) : _ref2$freezeOptions;
|
|
24530
24652
|
var _ref3 = (cov_2dmleb6ptc().s[2]++, useTranslation()),
|
|
24531
24653
|
t = _ref3.t;
|
|
24532
24654
|
var _ref4 = (cov_2dmleb6ptc().s[3]++, useFormikContext()),
|
|
@@ -24553,9 +24675,9 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
24553
24675
|
})
|
|
24554
24676
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
24555
24677
|
className: "w-full"
|
|
24556
|
-
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
24678
|
+
}, /*#__PURE__*/React__default.createElement(Label, _extends$9({
|
|
24557
24679
|
className: "mb-1 block"
|
|
24558
|
-
}, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
24680
|
+
}, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
24559
24681
|
name: "".concat(name, ".optionsAttributes")
|
|
24560
24682
|
}, function (_ref5) {
|
|
24561
24683
|
var handlePush = _ref5.handlePush;
|
|
@@ -24567,13 +24689,14 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
24567
24689
|
var _ref6;
|
|
24568
24690
|
cov_2dmleb6ptc().f[3]++;
|
|
24569
24691
|
cov_2dmleb6ptc().s[9]++;
|
|
24570
|
-
return (cov_2dmleb6ptc().b[
|
|
24692
|
+
return (cov_2dmleb6ptc().b[2][0]++, !option._destroy) && (cov_2dmleb6ptc().b[2][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
24571
24693
|
className: "flex items-start gap-1",
|
|
24572
|
-
key: "question-option-".concat((_ref6 = (cov_2dmleb6ptc().b[
|
|
24694
|
+
key: "question-option-".concat((_ref6 = (cov_2dmleb6ptc().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2dmleb6ptc().b[3][1]++, index))
|
|
24573
24695
|
}, /*#__PURE__*/React__default.createElement(InputWithMaxLength, {
|
|
24696
|
+
disabled: freezeOptions,
|
|
24574
24697
|
name: "".concat(name, ".optionsAttributes.").concat(index, ".label"),
|
|
24575
24698
|
placeholder: "".concat(t("questions.common.questionFields.field.option"), " ").concat(index + 1)
|
|
24576
|
-
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
24699
|
+
}), (cov_2dmleb6ptc().b[4][0]++, !freezeOptions) && (cov_2dmleb6ptc().b[4][1]++, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
24577
24700
|
style: "text",
|
|
24578
24701
|
className: classnames({
|
|
24579
24702
|
invisible: index < DROPDOWN_FIELD_MIN_OPTIONS$1
|
|
@@ -24591,8 +24714,8 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
24591
24714
|
cov_2dmleb6ptc().s[11]++;
|
|
24592
24715
|
return handleRemoveOption(index);
|
|
24593
24716
|
}
|
|
24594
|
-
})));
|
|
24595
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
24717
|
+
}))));
|
|
24718
|
+
})), (cov_2dmleb6ptc().b[5][0]++, !freezeOptions) && (cov_2dmleb6ptc().b[5][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
24596
24719
|
className: "mt-3 w-full"
|
|
24597
24720
|
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
24598
24721
|
icon: Plus,
|
|
@@ -24603,8 +24726,8 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
24603
24726
|
onClick: handlePush({
|
|
24604
24727
|
label: ""
|
|
24605
24728
|
})
|
|
24606
|
-
})));
|
|
24607
|
-
})), (cov_2dmleb6ptc().b[
|
|
24729
|
+
}))));
|
|
24730
|
+
})), (cov_2dmleb6ptc().b[6][0]++, !isRequired) && (cov_2dmleb6ptc().b[6][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
24608
24731
|
className: "w-full"
|
|
24609
24732
|
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
24610
24733
|
id: "".concat(name, ".isRequired"),
|
|
@@ -24938,7 +25061,7 @@ var LongText$1 = function LongText(_ref) {
|
|
|
24938
25061
|
|
|
24939
25062
|
function cov_ezislrxf8() {
|
|
24940
25063
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/MultipleChoice.jsx";
|
|
24941
|
-
var hash = "
|
|
25064
|
+
var hash = "f398b7e5e94047f87461a57e2caf604e32e36a9d";
|
|
24942
25065
|
var global = new Function("return this")();
|
|
24943
25066
|
var gcv = "__coverage__";
|
|
24944
25067
|
var coverageData = {
|
|
@@ -24950,108 +25073,108 @@ function cov_ezislrxf8() {
|
|
|
24950
25073
|
column: 23
|
|
24951
25074
|
},
|
|
24952
25075
|
end: {
|
|
24953
|
-
line:
|
|
25076
|
+
line: 98,
|
|
24954
25077
|
column: 1
|
|
24955
25078
|
}
|
|
24956
25079
|
},
|
|
24957
25080
|
"1": {
|
|
24958
25081
|
start: {
|
|
24959
|
-
line:
|
|
24960
|
-
column:
|
|
25082
|
+
line: 19,
|
|
25083
|
+
column: 6
|
|
24961
25084
|
},
|
|
24962
25085
|
end: {
|
|
24963
|
-
line:
|
|
24964
|
-
column:
|
|
25086
|
+
line: 19,
|
|
25087
|
+
column: 10
|
|
24965
25088
|
}
|
|
24966
25089
|
},
|
|
24967
25090
|
"2": {
|
|
24968
25091
|
start: {
|
|
24969
|
-
line:
|
|
25092
|
+
line: 20,
|
|
24970
25093
|
column: 16
|
|
24971
25094
|
},
|
|
24972
25095
|
end: {
|
|
24973
|
-
line:
|
|
25096
|
+
line: 20,
|
|
24974
25097
|
column: 32
|
|
24975
25098
|
}
|
|
24976
25099
|
},
|
|
24977
25100
|
"3": {
|
|
24978
25101
|
start: {
|
|
24979
|
-
line:
|
|
25102
|
+
line: 21,
|
|
24980
25103
|
column: 28
|
|
24981
25104
|
},
|
|
24982
25105
|
end: {
|
|
24983
|
-
line:
|
|
25106
|
+
line: 21,
|
|
24984
25107
|
column: 46
|
|
24985
25108
|
}
|
|
24986
25109
|
},
|
|
24987
25110
|
"4": {
|
|
24988
25111
|
start: {
|
|
24989
|
-
line:
|
|
25112
|
+
line: 23,
|
|
24990
25113
|
column: 29
|
|
24991
25114
|
},
|
|
24992
25115
|
end: {
|
|
24993
|
-
line:
|
|
25116
|
+
line: 26,
|
|
24994
25117
|
column: 3
|
|
24995
25118
|
}
|
|
24996
25119
|
},
|
|
24997
25120
|
"5": {
|
|
24998
25121
|
start: {
|
|
24999
|
-
line:
|
|
25122
|
+
line: 24,
|
|
25000
25123
|
column: 24
|
|
25001
25124
|
},
|
|
25002
25125
|
end: {
|
|
25003
|
-
line:
|
|
25126
|
+
line: 24,
|
|
25004
25127
|
column: 77
|
|
25005
25128
|
}
|
|
25006
25129
|
},
|
|
25007
25130
|
"6": {
|
|
25008
25131
|
start: {
|
|
25009
|
-
line:
|
|
25132
|
+
line: 25,
|
|
25010
25133
|
column: 4
|
|
25011
25134
|
},
|
|
25012
25135
|
end: {
|
|
25013
|
-
line:
|
|
25136
|
+
line: 25,
|
|
25014
25137
|
column: 60
|
|
25015
25138
|
}
|
|
25016
25139
|
},
|
|
25017
25140
|
"7": {
|
|
25018
25141
|
start: {
|
|
25019
|
-
line:
|
|
25142
|
+
line: 28,
|
|
25020
25143
|
column: 2
|
|
25021
25144
|
},
|
|
25022
25145
|
end: {
|
|
25023
|
-
line:
|
|
25146
|
+
line: 97,
|
|
25024
25147
|
column: 4
|
|
25025
25148
|
}
|
|
25026
25149
|
},
|
|
25027
25150
|
"8": {
|
|
25028
25151
|
start: {
|
|
25029
|
-
line:
|
|
25152
|
+
line: 41,
|
|
25030
25153
|
column: 12
|
|
25031
25154
|
},
|
|
25032
25155
|
end: {
|
|
25033
|
-
line:
|
|
25156
|
+
line: 83,
|
|
25034
25157
|
column: 15
|
|
25035
25158
|
}
|
|
25036
25159
|
},
|
|
25037
25160
|
"9": {
|
|
25038
25161
|
start: {
|
|
25039
|
-
line:
|
|
25162
|
+
line: 48,
|
|
25040
25163
|
column: 20
|
|
25041
25164
|
},
|
|
25042
25165
|
end: {
|
|
25043
|
-
line:
|
|
25166
|
+
line: 68,
|
|
25044
25167
|
column: 21
|
|
25045
25168
|
}
|
|
25046
25169
|
},
|
|
25047
25170
|
"10": {
|
|
25048
25171
|
start: {
|
|
25049
|
-
line:
|
|
25050
|
-
column:
|
|
25172
|
+
line: 64,
|
|
25173
|
+
column: 43
|
|
25051
25174
|
},
|
|
25052
25175
|
end: {
|
|
25053
|
-
line:
|
|
25054
|
-
column:
|
|
25176
|
+
line: 64,
|
|
25177
|
+
column: 68
|
|
25055
25178
|
}
|
|
25056
25179
|
}
|
|
25057
25180
|
},
|
|
@@ -25074,7 +25197,7 @@ function cov_ezislrxf8() {
|
|
|
25074
25197
|
column: 55
|
|
25075
25198
|
},
|
|
25076
25199
|
end: {
|
|
25077
|
-
line:
|
|
25200
|
+
line: 98,
|
|
25078
25201
|
column: 1
|
|
25079
25202
|
}
|
|
25080
25203
|
},
|
|
@@ -25084,198 +25207,312 @@ function cov_ezislrxf8() {
|
|
|
25084
25207
|
name: "(anonymous_1)",
|
|
25085
25208
|
decl: {
|
|
25086
25209
|
start: {
|
|
25087
|
-
line:
|
|
25210
|
+
line: 23,
|
|
25088
25211
|
column: 29
|
|
25089
25212
|
},
|
|
25090
25213
|
end: {
|
|
25091
|
-
line:
|
|
25214
|
+
line: 23,
|
|
25092
25215
|
column: 30
|
|
25093
25216
|
}
|
|
25094
25217
|
},
|
|
25095
25218
|
loc: {
|
|
25096
25219
|
start: {
|
|
25097
|
-
line:
|
|
25220
|
+
line: 23,
|
|
25098
25221
|
column: 38
|
|
25099
25222
|
},
|
|
25100
25223
|
end: {
|
|
25101
|
-
line:
|
|
25224
|
+
line: 26,
|
|
25102
25225
|
column: 3
|
|
25103
25226
|
}
|
|
25104
25227
|
},
|
|
25105
|
-
line:
|
|
25228
|
+
line: 23
|
|
25106
25229
|
},
|
|
25107
25230
|
"2": {
|
|
25108
25231
|
name: "(anonymous_2)",
|
|
25109
25232
|
decl: {
|
|
25110
25233
|
start: {
|
|
25111
|
-
line:
|
|
25234
|
+
line: 40,
|
|
25112
25235
|
column: 11
|
|
25113
25236
|
},
|
|
25114
25237
|
end: {
|
|
25115
|
-
line:
|
|
25238
|
+
line: 40,
|
|
25116
25239
|
column: 12
|
|
25117
25240
|
}
|
|
25118
25241
|
},
|
|
25119
25242
|
loc: {
|
|
25120
25243
|
start: {
|
|
25121
|
-
line:
|
|
25244
|
+
line: 41,
|
|
25122
25245
|
column: 12
|
|
25123
25246
|
},
|
|
25124
25247
|
end: {
|
|
25125
|
-
line:
|
|
25248
|
+
line: 83,
|
|
25126
25249
|
column: 15
|
|
25127
25250
|
}
|
|
25128
25251
|
},
|
|
25129
|
-
line:
|
|
25252
|
+
line: 41
|
|
25130
25253
|
},
|
|
25131
25254
|
"3": {
|
|
25132
25255
|
name: "(anonymous_3)",
|
|
25133
25256
|
decl: {
|
|
25134
25257
|
start: {
|
|
25135
|
-
line:
|
|
25258
|
+
line: 47,
|
|
25136
25259
|
column: 18
|
|
25137
25260
|
},
|
|
25138
25261
|
end: {
|
|
25139
|
-
line:
|
|
25262
|
+
line: 47,
|
|
25140
25263
|
column: 19
|
|
25141
25264
|
}
|
|
25142
25265
|
},
|
|
25143
25266
|
loc: {
|
|
25144
25267
|
start: {
|
|
25145
|
-
line:
|
|
25268
|
+
line: 48,
|
|
25146
25269
|
column: 20
|
|
25147
25270
|
},
|
|
25148
25271
|
end: {
|
|
25149
|
-
line:
|
|
25272
|
+
line: 68,
|
|
25150
25273
|
column: 21
|
|
25151
25274
|
}
|
|
25152
25275
|
},
|
|
25153
|
-
line:
|
|
25276
|
+
line: 48
|
|
25154
25277
|
},
|
|
25155
25278
|
"4": {
|
|
25156
25279
|
name: "(anonymous_4)",
|
|
25157
25280
|
decl: {
|
|
25158
25281
|
start: {
|
|
25159
|
-
line:
|
|
25160
|
-
column:
|
|
25282
|
+
line: 64,
|
|
25283
|
+
column: 37
|
|
25161
25284
|
},
|
|
25162
25285
|
end: {
|
|
25163
|
-
line:
|
|
25164
|
-
column:
|
|
25286
|
+
line: 64,
|
|
25287
|
+
column: 38
|
|
25165
25288
|
}
|
|
25166
25289
|
},
|
|
25167
25290
|
loc: {
|
|
25168
25291
|
start: {
|
|
25169
|
-
line:
|
|
25170
|
-
column:
|
|
25292
|
+
line: 64,
|
|
25293
|
+
column: 43
|
|
25171
25294
|
},
|
|
25172
25295
|
end: {
|
|
25173
|
-
line:
|
|
25174
|
-
column:
|
|
25296
|
+
line: 64,
|
|
25297
|
+
column: 68
|
|
25175
25298
|
}
|
|
25176
25299
|
},
|
|
25177
|
-
line:
|
|
25300
|
+
line: 64
|
|
25178
25301
|
}
|
|
25179
25302
|
},
|
|
25180
25303
|
branchMap: {
|
|
25181
25304
|
"0": {
|
|
25182
25305
|
loc: {
|
|
25183
25306
|
start: {
|
|
25184
|
-
line:
|
|
25307
|
+
line: 17,
|
|
25308
|
+
column: 4
|
|
25309
|
+
},
|
|
25310
|
+
end: {
|
|
25311
|
+
line: 17,
|
|
25312
|
+
column: 25
|
|
25313
|
+
}
|
|
25314
|
+
},
|
|
25315
|
+
type: "default-arg",
|
|
25316
|
+
locations: [{
|
|
25317
|
+
start: {
|
|
25318
|
+
line: 17,
|
|
25319
|
+
column: 23
|
|
25320
|
+
},
|
|
25321
|
+
end: {
|
|
25322
|
+
line: 17,
|
|
25323
|
+
column: 25
|
|
25324
|
+
}
|
|
25325
|
+
}],
|
|
25326
|
+
line: 17
|
|
25327
|
+
},
|
|
25328
|
+
"1": {
|
|
25329
|
+
loc: {
|
|
25330
|
+
start: {
|
|
25331
|
+
line: 18,
|
|
25332
|
+
column: 4
|
|
25333
|
+
},
|
|
25334
|
+
end: {
|
|
25335
|
+
line: 18,
|
|
25336
|
+
column: 25
|
|
25337
|
+
}
|
|
25338
|
+
},
|
|
25339
|
+
type: "default-arg",
|
|
25340
|
+
locations: [{
|
|
25341
|
+
start: {
|
|
25342
|
+
line: 18,
|
|
25185
25343
|
column: 20
|
|
25186
25344
|
},
|
|
25187
25345
|
end: {
|
|
25188
|
-
line:
|
|
25346
|
+
line: 18,
|
|
25347
|
+
column: 25
|
|
25348
|
+
}
|
|
25349
|
+
}],
|
|
25350
|
+
line: 18
|
|
25351
|
+
},
|
|
25352
|
+
"2": {
|
|
25353
|
+
loc: {
|
|
25354
|
+
start: {
|
|
25355
|
+
line: 48,
|
|
25356
|
+
column: 20
|
|
25357
|
+
},
|
|
25358
|
+
end: {
|
|
25359
|
+
line: 68,
|
|
25189
25360
|
column: 21
|
|
25190
25361
|
}
|
|
25191
25362
|
},
|
|
25192
25363
|
type: "binary-expr",
|
|
25193
25364
|
locations: [{
|
|
25194
25365
|
start: {
|
|
25195
|
-
line:
|
|
25366
|
+
line: 48,
|
|
25196
25367
|
column: 20
|
|
25197
25368
|
},
|
|
25198
25369
|
end: {
|
|
25199
|
-
line:
|
|
25370
|
+
line: 48,
|
|
25200
25371
|
column: 36
|
|
25201
25372
|
}
|
|
25202
25373
|
}, {
|
|
25203
25374
|
start: {
|
|
25204
|
-
line:
|
|
25375
|
+
line: 49,
|
|
25205
25376
|
column: 22
|
|
25206
25377
|
},
|
|
25207
25378
|
end: {
|
|
25208
|
-
line:
|
|
25379
|
+
line: 67,
|
|
25380
|
+
column: 28
|
|
25381
|
+
}
|
|
25382
|
+
}],
|
|
25383
|
+
line: 48
|
|
25384
|
+
},
|
|
25385
|
+
"3": {
|
|
25386
|
+
loc: {
|
|
25387
|
+
start: {
|
|
25388
|
+
line: 51,
|
|
25389
|
+
column: 48
|
|
25390
|
+
},
|
|
25391
|
+
end: {
|
|
25392
|
+
line: 51,
|
|
25393
|
+
column: 66
|
|
25394
|
+
}
|
|
25395
|
+
},
|
|
25396
|
+
type: "binary-expr",
|
|
25397
|
+
locations: [{
|
|
25398
|
+
start: {
|
|
25399
|
+
line: 51,
|
|
25400
|
+
column: 48
|
|
25401
|
+
},
|
|
25402
|
+
end: {
|
|
25403
|
+
line: 51,
|
|
25404
|
+
column: 57
|
|
25405
|
+
}
|
|
25406
|
+
}, {
|
|
25407
|
+
start: {
|
|
25408
|
+
line: 51,
|
|
25409
|
+
column: 61
|
|
25410
|
+
},
|
|
25411
|
+
end: {
|
|
25412
|
+
line: 51,
|
|
25413
|
+
column: 66
|
|
25414
|
+
}
|
|
25415
|
+
}],
|
|
25416
|
+
line: 51
|
|
25417
|
+
},
|
|
25418
|
+
"4": {
|
|
25419
|
+
loc: {
|
|
25420
|
+
start: {
|
|
25421
|
+
line: 58,
|
|
25422
|
+
column: 25
|
|
25423
|
+
},
|
|
25424
|
+
end: {
|
|
25425
|
+
line: 66,
|
|
25426
|
+
column: 25
|
|
25427
|
+
}
|
|
25428
|
+
},
|
|
25429
|
+
type: "binary-expr",
|
|
25430
|
+
locations: [{
|
|
25431
|
+
start: {
|
|
25432
|
+
line: 58,
|
|
25433
|
+
column: 25
|
|
25434
|
+
},
|
|
25435
|
+
end: {
|
|
25436
|
+
line: 58,
|
|
25437
|
+
column: 39
|
|
25438
|
+
}
|
|
25439
|
+
}, {
|
|
25440
|
+
start: {
|
|
25441
|
+
line: 59,
|
|
25442
|
+
column: 26
|
|
25443
|
+
},
|
|
25444
|
+
end: {
|
|
25445
|
+
line: 65,
|
|
25209
25446
|
column: 28
|
|
25210
25447
|
}
|
|
25211
25448
|
}],
|
|
25212
|
-
line:
|
|
25449
|
+
line: 58
|
|
25213
25450
|
},
|
|
25214
|
-
"
|
|
25451
|
+
"5": {
|
|
25215
25452
|
loc: {
|
|
25216
25453
|
start: {
|
|
25217
|
-
line:
|
|
25218
|
-
column:
|
|
25454
|
+
line: 71,
|
|
25455
|
+
column: 15
|
|
25219
25456
|
},
|
|
25220
25457
|
end: {
|
|
25221
|
-
line:
|
|
25222
|
-
column:
|
|
25458
|
+
line: 82,
|
|
25459
|
+
column: 15
|
|
25223
25460
|
}
|
|
25224
25461
|
},
|
|
25225
25462
|
type: "binary-expr",
|
|
25226
25463
|
locations: [{
|
|
25227
25464
|
start: {
|
|
25228
|
-
line:
|
|
25229
|
-
column:
|
|
25465
|
+
line: 71,
|
|
25466
|
+
column: 15
|
|
25230
25467
|
},
|
|
25231
25468
|
end: {
|
|
25232
|
-
line:
|
|
25233
|
-
column:
|
|
25469
|
+
line: 71,
|
|
25470
|
+
column: 29
|
|
25234
25471
|
}
|
|
25235
25472
|
}, {
|
|
25236
25473
|
start: {
|
|
25237
|
-
line:
|
|
25238
|
-
column:
|
|
25474
|
+
line: 72,
|
|
25475
|
+
column: 16
|
|
25239
25476
|
},
|
|
25240
25477
|
end: {
|
|
25241
|
-
line:
|
|
25242
|
-
column:
|
|
25478
|
+
line: 81,
|
|
25479
|
+
column: 22
|
|
25243
25480
|
}
|
|
25244
25481
|
}],
|
|
25245
|
-
line:
|
|
25482
|
+
line: 71
|
|
25246
25483
|
},
|
|
25247
|
-
"
|
|
25484
|
+
"6": {
|
|
25248
25485
|
loc: {
|
|
25249
25486
|
start: {
|
|
25250
|
-
line:
|
|
25487
|
+
line: 87,
|
|
25251
25488
|
column: 7
|
|
25252
25489
|
},
|
|
25253
25490
|
end: {
|
|
25254
|
-
line:
|
|
25491
|
+
line: 95,
|
|
25255
25492
|
column: 7
|
|
25256
25493
|
}
|
|
25257
25494
|
},
|
|
25258
25495
|
type: "binary-expr",
|
|
25259
25496
|
locations: [{
|
|
25260
25497
|
start: {
|
|
25261
|
-
line:
|
|
25498
|
+
line: 87,
|
|
25262
25499
|
column: 7
|
|
25263
25500
|
},
|
|
25264
25501
|
end: {
|
|
25265
|
-
line:
|
|
25502
|
+
line: 87,
|
|
25266
25503
|
column: 18
|
|
25267
25504
|
}
|
|
25268
25505
|
}, {
|
|
25269
25506
|
start: {
|
|
25270
|
-
line:
|
|
25507
|
+
line: 88,
|
|
25271
25508
|
column: 8
|
|
25272
25509
|
},
|
|
25273
25510
|
end: {
|
|
25274
|
-
line:
|
|
25511
|
+
line: 94,
|
|
25275
25512
|
column: 14
|
|
25276
25513
|
}
|
|
25277
25514
|
}],
|
|
25278
|
-
line:
|
|
25515
|
+
line: 87
|
|
25279
25516
|
}
|
|
25280
25517
|
},
|
|
25281
25518
|
s: {
|
|
@@ -25299,12 +25536,16 @@ function cov_ezislrxf8() {
|
|
|
25299
25536
|
"4": 0
|
|
25300
25537
|
},
|
|
25301
25538
|
b: {
|
|
25302
|
-
"0": [0
|
|
25303
|
-
"1": [0
|
|
25304
|
-
"2": [0, 0]
|
|
25539
|
+
"0": [0],
|
|
25540
|
+
"1": [0],
|
|
25541
|
+
"2": [0, 0],
|
|
25542
|
+
"3": [0, 0],
|
|
25543
|
+
"4": [0, 0],
|
|
25544
|
+
"5": [0, 0],
|
|
25545
|
+
"6": [0, 0]
|
|
25305
25546
|
},
|
|
25306
25547
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
25307
|
-
hash: "
|
|
25548
|
+
hash: "f398b7e5e94047f87461a57e2caf604e32e36a9d"
|
|
25308
25549
|
};
|
|
25309
25550
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
25310
25551
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -25327,7 +25568,11 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
|
|
|
25327
25568
|
isRequired = _ref.isRequired;
|
|
25328
25569
|
cov_ezislrxf8().f[0]++;
|
|
25329
25570
|
var _ref2 = (cov_ezislrxf8().s[1]++, item),
|
|
25330
|
-
optionsAttributes = _ref2.optionsAttributes
|
|
25571
|
+
optionsAttributes = _ref2.optionsAttributes,
|
|
25572
|
+
_ref2$optionLabelProp = _ref2.optionLabelProps,
|
|
25573
|
+
optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_ezislrxf8().b[0][0]++, {}) : _ref2$optionLabelProp,
|
|
25574
|
+
_ref2$freezeOptions = _ref2.freezeOptions,
|
|
25575
|
+
freezeOptions = _ref2$freezeOptions === void 0 ? (cov_ezislrxf8().b[1][0]++, false) : _ref2$freezeOptions;
|
|
25331
25576
|
var _ref3 = (cov_ezislrxf8().s[2]++, useTranslation()),
|
|
25332
25577
|
t = _ref3.t;
|
|
25333
25578
|
var _ref4 = (cov_ezislrxf8().s[3]++, useFormikContext()),
|
|
@@ -25357,21 +25602,22 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
|
|
|
25357
25602
|
var handlePush = _ref5.handlePush;
|
|
25358
25603
|
cov_ezislrxf8().f[2]++;
|
|
25359
25604
|
cov_ezislrxf8().s[8]++;
|
|
25360
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Label, {
|
|
25605
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Label, _extends$9({
|
|
25361
25606
|
className: "mb-1 block"
|
|
25362
|
-
}, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement("div", {
|
|
25607
|
+
}, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement("div", {
|
|
25363
25608
|
className: "flex w-2/3 flex-col space-y-2"
|
|
25364
25609
|
}, optionsAttributes.map(function (option, index) {
|
|
25365
25610
|
var _ref6;
|
|
25366
25611
|
cov_ezislrxf8().f[3]++;
|
|
25367
25612
|
cov_ezislrxf8().s[9]++;
|
|
25368
|
-
return (cov_ezislrxf8().b[
|
|
25613
|
+
return (cov_ezislrxf8().b[2][0]++, !option._destroy) && (cov_ezislrxf8().b[2][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
25369
25614
|
className: "flex items-start gap-1",
|
|
25370
|
-
key: "question-option-".concat((_ref6 = (cov_ezislrxf8().b[
|
|
25615
|
+
key: "question-option-".concat((_ref6 = (cov_ezislrxf8().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_ezislrxf8().b[3][1]++, index))
|
|
25371
25616
|
}, /*#__PURE__*/React__default.createElement(InputWithMaxLength, {
|
|
25372
25617
|
required: true,
|
|
25618
|
+
disabled: freezeOptions,
|
|
25373
25619
|
name: "".concat(name, ".optionsAttributes.").concat(index, ".label")
|
|
25374
|
-
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
25620
|
+
}), (cov_ezislrxf8().b[4][0]++, !freezeOptions) && (cov_ezislrxf8().b[4][1]++, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
25375
25621
|
className: classnames({
|
|
25376
25622
|
invisible: index === 0
|
|
25377
25623
|
}),
|
|
@@ -25383,8 +25629,8 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
|
|
|
25383
25629
|
cov_ezislrxf8().s[10]++;
|
|
25384
25630
|
return handleRemoveOption(index);
|
|
25385
25631
|
}
|
|
25386
|
-
})));
|
|
25387
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
25632
|
+
}))));
|
|
25633
|
+
})), (cov_ezislrxf8().b[5][0]++, !freezeOptions) && (cov_ezislrxf8().b[5][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
25388
25634
|
className: "mt-3 w-full"
|
|
25389
25635
|
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
25390
25636
|
icon: Plus,
|
|
@@ -25395,8 +25641,8 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
|
|
|
25395
25641
|
onClick: handlePush({
|
|
25396
25642
|
label: ""
|
|
25397
25643
|
})
|
|
25398
|
-
})));
|
|
25399
|
-
})), (cov_ezislrxf8().b[
|
|
25644
|
+
}))));
|
|
25645
|
+
})), (cov_ezislrxf8().b[6][0]++, !isRequired) && (cov_ezislrxf8().b[6][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
25400
25646
|
className: "w-full"
|
|
25401
25647
|
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
25402
25648
|
id: "".concat(name, ".isRequired"),
|
|
@@ -25960,7 +26206,7 @@ var ShortText$1 = function ShortText(_ref) {
|
|
|
25960
26206
|
|
|
25961
26207
|
function cov_1p625a7ih4() {
|
|
25962
26208
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/SingleChoice.jsx";
|
|
25963
|
-
var hash = "
|
|
26209
|
+
var hash = "1011b25909b9c73b64080f90fa78d81fed144c14";
|
|
25964
26210
|
var global = new Function("return this")();
|
|
25965
26211
|
var gcv = "__coverage__";
|
|
25966
26212
|
var coverageData = {
|
|
@@ -25972,108 +26218,108 @@ function cov_1p625a7ih4() {
|
|
|
25972
26218
|
column: 21
|
|
25973
26219
|
},
|
|
25974
26220
|
end: {
|
|
25975
|
-
line:
|
|
26221
|
+
line: 106,
|
|
25976
26222
|
column: 1
|
|
25977
26223
|
}
|
|
25978
26224
|
},
|
|
25979
26225
|
"1": {
|
|
25980
26226
|
start: {
|
|
25981
|
-
line:
|
|
25982
|
-
column:
|
|
26227
|
+
line: 21,
|
|
26228
|
+
column: 6
|
|
25983
26229
|
},
|
|
25984
26230
|
end: {
|
|
25985
|
-
line:
|
|
25986
|
-
column:
|
|
26231
|
+
line: 21,
|
|
26232
|
+
column: 10
|
|
25987
26233
|
}
|
|
25988
26234
|
},
|
|
25989
26235
|
"2": {
|
|
25990
26236
|
start: {
|
|
25991
|
-
line:
|
|
26237
|
+
line: 22,
|
|
25992
26238
|
column: 16
|
|
25993
26239
|
},
|
|
25994
26240
|
end: {
|
|
25995
|
-
line:
|
|
26241
|
+
line: 22,
|
|
25996
26242
|
column: 32
|
|
25997
26243
|
}
|
|
25998
26244
|
},
|
|
25999
26245
|
"3": {
|
|
26000
26246
|
start: {
|
|
26001
|
-
line:
|
|
26247
|
+
line: 24,
|
|
26002
26248
|
column: 28
|
|
26003
26249
|
},
|
|
26004
26250
|
end: {
|
|
26005
|
-
line:
|
|
26251
|
+
line: 24,
|
|
26006
26252
|
column: 46
|
|
26007
26253
|
}
|
|
26008
26254
|
},
|
|
26009
26255
|
"4": {
|
|
26010
26256
|
start: {
|
|
26011
|
-
line:
|
|
26257
|
+
line: 26,
|
|
26012
26258
|
column: 29
|
|
26013
26259
|
},
|
|
26014
26260
|
end: {
|
|
26015
|
-
line:
|
|
26261
|
+
line: 29,
|
|
26016
26262
|
column: 3
|
|
26017
26263
|
}
|
|
26018
26264
|
},
|
|
26019
26265
|
"5": {
|
|
26020
26266
|
start: {
|
|
26021
|
-
line:
|
|
26267
|
+
line: 27,
|
|
26022
26268
|
column: 24
|
|
26023
26269
|
},
|
|
26024
26270
|
end: {
|
|
26025
|
-
line:
|
|
26271
|
+
line: 27,
|
|
26026
26272
|
column: 77
|
|
26027
26273
|
}
|
|
26028
26274
|
},
|
|
26029
26275
|
"6": {
|
|
26030
26276
|
start: {
|
|
26031
|
-
line:
|
|
26277
|
+
line: 28,
|
|
26032
26278
|
column: 4
|
|
26033
26279
|
},
|
|
26034
26280
|
end: {
|
|
26035
|
-
line:
|
|
26281
|
+
line: 28,
|
|
26036
26282
|
column: 50
|
|
26037
26283
|
}
|
|
26038
26284
|
},
|
|
26039
26285
|
"7": {
|
|
26040
26286
|
start: {
|
|
26041
|
-
line:
|
|
26287
|
+
line: 31,
|
|
26042
26288
|
column: 2
|
|
26043
26289
|
},
|
|
26044
26290
|
end: {
|
|
26045
|
-
line:
|
|
26291
|
+
line: 105,
|
|
26046
26292
|
column: 4
|
|
26047
26293
|
}
|
|
26048
26294
|
},
|
|
26049
26295
|
"8": {
|
|
26050
26296
|
start: {
|
|
26051
|
-
line:
|
|
26297
|
+
line: 44,
|
|
26052
26298
|
column: 12
|
|
26053
26299
|
},
|
|
26054
26300
|
end: {
|
|
26055
|
-
line:
|
|
26301
|
+
line: 91,
|
|
26056
26302
|
column: 15
|
|
26057
26303
|
}
|
|
26058
26304
|
},
|
|
26059
26305
|
"9": {
|
|
26060
26306
|
start: {
|
|
26061
|
-
line:
|
|
26307
|
+
line: 51,
|
|
26062
26308
|
column: 20
|
|
26063
26309
|
},
|
|
26064
26310
|
end: {
|
|
26065
|
-
line:
|
|
26311
|
+
line: 76,
|
|
26066
26312
|
column: 21
|
|
26067
26313
|
}
|
|
26068
26314
|
},
|
|
26069
26315
|
"10": {
|
|
26070
26316
|
start: {
|
|
26071
|
-
line:
|
|
26072
|
-
column:
|
|
26317
|
+
line: 72,
|
|
26318
|
+
column: 43
|
|
26073
26319
|
},
|
|
26074
26320
|
end: {
|
|
26075
|
-
line:
|
|
26076
|
-
column:
|
|
26321
|
+
line: 72,
|
|
26322
|
+
column: 68
|
|
26077
26323
|
}
|
|
26078
26324
|
}
|
|
26079
26325
|
},
|
|
@@ -26096,7 +26342,7 @@ function cov_1p625a7ih4() {
|
|
|
26096
26342
|
column: 53
|
|
26097
26343
|
},
|
|
26098
26344
|
end: {
|
|
26099
|
-
line:
|
|
26345
|
+
line: 106,
|
|
26100
26346
|
column: 1
|
|
26101
26347
|
}
|
|
26102
26348
|
},
|
|
@@ -26106,198 +26352,312 @@ function cov_1p625a7ih4() {
|
|
|
26106
26352
|
name: "(anonymous_1)",
|
|
26107
26353
|
decl: {
|
|
26108
26354
|
start: {
|
|
26109
|
-
line:
|
|
26355
|
+
line: 26,
|
|
26110
26356
|
column: 29
|
|
26111
26357
|
},
|
|
26112
26358
|
end: {
|
|
26113
|
-
line:
|
|
26359
|
+
line: 26,
|
|
26114
26360
|
column: 30
|
|
26115
26361
|
}
|
|
26116
26362
|
},
|
|
26117
26363
|
loc: {
|
|
26118
26364
|
start: {
|
|
26119
|
-
line:
|
|
26365
|
+
line: 26,
|
|
26120
26366
|
column: 38
|
|
26121
26367
|
},
|
|
26122
26368
|
end: {
|
|
26123
|
-
line:
|
|
26369
|
+
line: 29,
|
|
26124
26370
|
column: 3
|
|
26125
26371
|
}
|
|
26126
26372
|
},
|
|
26127
|
-
line:
|
|
26373
|
+
line: 26
|
|
26128
26374
|
},
|
|
26129
26375
|
"2": {
|
|
26130
26376
|
name: "(anonymous_2)",
|
|
26131
26377
|
decl: {
|
|
26132
26378
|
start: {
|
|
26133
|
-
line:
|
|
26379
|
+
line: 43,
|
|
26134
26380
|
column: 11
|
|
26135
26381
|
},
|
|
26136
26382
|
end: {
|
|
26137
|
-
line:
|
|
26383
|
+
line: 43,
|
|
26384
|
+
column: 12
|
|
26385
|
+
}
|
|
26386
|
+
},
|
|
26387
|
+
loc: {
|
|
26388
|
+
start: {
|
|
26389
|
+
line: 44,
|
|
26138
26390
|
column: 12
|
|
26391
|
+
},
|
|
26392
|
+
end: {
|
|
26393
|
+
line: 91,
|
|
26394
|
+
column: 15
|
|
26395
|
+
}
|
|
26396
|
+
},
|
|
26397
|
+
line: 44
|
|
26398
|
+
},
|
|
26399
|
+
"3": {
|
|
26400
|
+
name: "(anonymous_3)",
|
|
26401
|
+
decl: {
|
|
26402
|
+
start: {
|
|
26403
|
+
line: 50,
|
|
26404
|
+
column: 18
|
|
26405
|
+
},
|
|
26406
|
+
end: {
|
|
26407
|
+
line: 50,
|
|
26408
|
+
column: 19
|
|
26409
|
+
}
|
|
26410
|
+
},
|
|
26411
|
+
loc: {
|
|
26412
|
+
start: {
|
|
26413
|
+
line: 51,
|
|
26414
|
+
column: 20
|
|
26415
|
+
},
|
|
26416
|
+
end: {
|
|
26417
|
+
line: 76,
|
|
26418
|
+
column: 21
|
|
26419
|
+
}
|
|
26420
|
+
},
|
|
26421
|
+
line: 51
|
|
26422
|
+
},
|
|
26423
|
+
"4": {
|
|
26424
|
+
name: "(anonymous_4)",
|
|
26425
|
+
decl: {
|
|
26426
|
+
start: {
|
|
26427
|
+
line: 72,
|
|
26428
|
+
column: 37
|
|
26429
|
+
},
|
|
26430
|
+
end: {
|
|
26431
|
+
line: 72,
|
|
26432
|
+
column: 38
|
|
26433
|
+
}
|
|
26434
|
+
},
|
|
26435
|
+
loc: {
|
|
26436
|
+
start: {
|
|
26437
|
+
line: 72,
|
|
26438
|
+
column: 43
|
|
26439
|
+
},
|
|
26440
|
+
end: {
|
|
26441
|
+
line: 72,
|
|
26442
|
+
column: 68
|
|
26443
|
+
}
|
|
26444
|
+
},
|
|
26445
|
+
line: 72
|
|
26446
|
+
}
|
|
26447
|
+
},
|
|
26448
|
+
branchMap: {
|
|
26449
|
+
"0": {
|
|
26450
|
+
loc: {
|
|
26451
|
+
start: {
|
|
26452
|
+
line: 19,
|
|
26453
|
+
column: 4
|
|
26454
|
+
},
|
|
26455
|
+
end: {
|
|
26456
|
+
line: 19,
|
|
26457
|
+
column: 25
|
|
26458
|
+
}
|
|
26459
|
+
},
|
|
26460
|
+
type: "default-arg",
|
|
26461
|
+
locations: [{
|
|
26462
|
+
start: {
|
|
26463
|
+
line: 19,
|
|
26464
|
+
column: 23
|
|
26465
|
+
},
|
|
26466
|
+
end: {
|
|
26467
|
+
line: 19,
|
|
26468
|
+
column: 25
|
|
26469
|
+
}
|
|
26470
|
+
}],
|
|
26471
|
+
line: 19
|
|
26472
|
+
},
|
|
26473
|
+
"1": {
|
|
26474
|
+
loc: {
|
|
26475
|
+
start: {
|
|
26476
|
+
line: 20,
|
|
26477
|
+
column: 4
|
|
26478
|
+
},
|
|
26479
|
+
end: {
|
|
26480
|
+
line: 20,
|
|
26481
|
+
column: 25
|
|
26139
26482
|
}
|
|
26140
26483
|
},
|
|
26484
|
+
type: "default-arg",
|
|
26485
|
+
locations: [{
|
|
26486
|
+
start: {
|
|
26487
|
+
line: 20,
|
|
26488
|
+
column: 20
|
|
26489
|
+
},
|
|
26490
|
+
end: {
|
|
26491
|
+
line: 20,
|
|
26492
|
+
column: 25
|
|
26493
|
+
}
|
|
26494
|
+
}],
|
|
26495
|
+
line: 20
|
|
26496
|
+
},
|
|
26497
|
+
"2": {
|
|
26141
26498
|
loc: {
|
|
26142
26499
|
start: {
|
|
26143
|
-
line:
|
|
26144
|
-
column:
|
|
26500
|
+
line: 51,
|
|
26501
|
+
column: 20
|
|
26502
|
+
},
|
|
26503
|
+
end: {
|
|
26504
|
+
line: 76,
|
|
26505
|
+
column: 21
|
|
26506
|
+
}
|
|
26507
|
+
},
|
|
26508
|
+
type: "binary-expr",
|
|
26509
|
+
locations: [{
|
|
26510
|
+
start: {
|
|
26511
|
+
line: 51,
|
|
26512
|
+
column: 20
|
|
26513
|
+
},
|
|
26514
|
+
end: {
|
|
26515
|
+
line: 51,
|
|
26516
|
+
column: 36
|
|
26517
|
+
}
|
|
26518
|
+
}, {
|
|
26519
|
+
start: {
|
|
26520
|
+
line: 52,
|
|
26521
|
+
column: 22
|
|
26145
26522
|
},
|
|
26146
26523
|
end: {
|
|
26147
|
-
line:
|
|
26148
|
-
column:
|
|
26524
|
+
line: 75,
|
|
26525
|
+
column: 28
|
|
26149
26526
|
}
|
|
26150
|
-
},
|
|
26151
|
-
line:
|
|
26527
|
+
}],
|
|
26528
|
+
line: 51
|
|
26152
26529
|
},
|
|
26153
26530
|
"3": {
|
|
26154
|
-
name: "(anonymous_3)",
|
|
26155
|
-
decl: {
|
|
26156
|
-
start: {
|
|
26157
|
-
line: 46,
|
|
26158
|
-
column: 18
|
|
26159
|
-
},
|
|
26160
|
-
end: {
|
|
26161
|
-
line: 46,
|
|
26162
|
-
column: 19
|
|
26163
|
-
}
|
|
26164
|
-
},
|
|
26165
26531
|
loc: {
|
|
26166
26532
|
start: {
|
|
26167
|
-
line:
|
|
26168
|
-
column:
|
|
26533
|
+
line: 54,
|
|
26534
|
+
column: 48
|
|
26169
26535
|
},
|
|
26170
26536
|
end: {
|
|
26171
|
-
line:
|
|
26172
|
-
column:
|
|
26537
|
+
line: 54,
|
|
26538
|
+
column: 66
|
|
26173
26539
|
}
|
|
26174
26540
|
},
|
|
26175
|
-
|
|
26176
|
-
|
|
26177
|
-
"4": {
|
|
26178
|
-
name: "(anonymous_4)",
|
|
26179
|
-
decl: {
|
|
26541
|
+
type: "binary-expr",
|
|
26542
|
+
locations: [{
|
|
26180
26543
|
start: {
|
|
26181
|
-
line:
|
|
26182
|
-
column:
|
|
26544
|
+
line: 54,
|
|
26545
|
+
column: 48
|
|
26183
26546
|
},
|
|
26184
26547
|
end: {
|
|
26185
|
-
line:
|
|
26186
|
-
column:
|
|
26548
|
+
line: 54,
|
|
26549
|
+
column: 57
|
|
26187
26550
|
}
|
|
26188
|
-
},
|
|
26189
|
-
loc: {
|
|
26551
|
+
}, {
|
|
26190
26552
|
start: {
|
|
26191
|
-
line:
|
|
26192
|
-
column:
|
|
26553
|
+
line: 54,
|
|
26554
|
+
column: 61
|
|
26193
26555
|
},
|
|
26194
26556
|
end: {
|
|
26195
|
-
line:
|
|
26557
|
+
line: 54,
|
|
26196
26558
|
column: 66
|
|
26197
26559
|
}
|
|
26198
|
-
},
|
|
26199
|
-
line:
|
|
26200
|
-
}
|
|
26201
|
-
|
|
26202
|
-
branchMap: {
|
|
26203
|
-
"0": {
|
|
26560
|
+
}],
|
|
26561
|
+
line: 54
|
|
26562
|
+
},
|
|
26563
|
+
"4": {
|
|
26204
26564
|
loc: {
|
|
26205
26565
|
start: {
|
|
26206
|
-
line:
|
|
26207
|
-
column:
|
|
26566
|
+
line: 63,
|
|
26567
|
+
column: 25
|
|
26208
26568
|
},
|
|
26209
26569
|
end: {
|
|
26210
|
-
line:
|
|
26211
|
-
column:
|
|
26570
|
+
line: 74,
|
|
26571
|
+
column: 25
|
|
26212
26572
|
}
|
|
26213
26573
|
},
|
|
26214
26574
|
type: "binary-expr",
|
|
26215
26575
|
locations: [{
|
|
26216
26576
|
start: {
|
|
26217
|
-
line:
|
|
26218
|
-
column:
|
|
26577
|
+
line: 63,
|
|
26578
|
+
column: 25
|
|
26219
26579
|
},
|
|
26220
26580
|
end: {
|
|
26221
|
-
line:
|
|
26222
|
-
column:
|
|
26581
|
+
line: 63,
|
|
26582
|
+
column: 39
|
|
26223
26583
|
}
|
|
26224
26584
|
}, {
|
|
26225
26585
|
start: {
|
|
26226
|
-
line:
|
|
26227
|
-
column:
|
|
26586
|
+
line: 64,
|
|
26587
|
+
column: 26
|
|
26228
26588
|
},
|
|
26229
26589
|
end: {
|
|
26230
|
-
line:
|
|
26590
|
+
line: 73,
|
|
26231
26591
|
column: 28
|
|
26232
26592
|
}
|
|
26233
26593
|
}],
|
|
26234
|
-
line:
|
|
26594
|
+
line: 63
|
|
26235
26595
|
},
|
|
26236
|
-
"
|
|
26596
|
+
"5": {
|
|
26237
26597
|
loc: {
|
|
26238
26598
|
start: {
|
|
26239
|
-
line:
|
|
26240
|
-
column:
|
|
26599
|
+
line: 79,
|
|
26600
|
+
column: 15
|
|
26241
26601
|
},
|
|
26242
26602
|
end: {
|
|
26243
|
-
line:
|
|
26244
|
-
column:
|
|
26603
|
+
line: 90,
|
|
26604
|
+
column: 15
|
|
26245
26605
|
}
|
|
26246
26606
|
},
|
|
26247
26607
|
type: "binary-expr",
|
|
26248
26608
|
locations: [{
|
|
26249
26609
|
start: {
|
|
26250
|
-
line:
|
|
26251
|
-
column:
|
|
26610
|
+
line: 79,
|
|
26611
|
+
column: 15
|
|
26252
26612
|
},
|
|
26253
26613
|
end: {
|
|
26254
|
-
line:
|
|
26255
|
-
column:
|
|
26614
|
+
line: 79,
|
|
26615
|
+
column: 29
|
|
26256
26616
|
}
|
|
26257
26617
|
}, {
|
|
26258
26618
|
start: {
|
|
26259
|
-
line:
|
|
26260
|
-
column:
|
|
26619
|
+
line: 80,
|
|
26620
|
+
column: 16
|
|
26261
26621
|
},
|
|
26262
26622
|
end: {
|
|
26263
|
-
line:
|
|
26264
|
-
column:
|
|
26623
|
+
line: 89,
|
|
26624
|
+
column: 22
|
|
26265
26625
|
}
|
|
26266
26626
|
}],
|
|
26267
|
-
line:
|
|
26627
|
+
line: 79
|
|
26268
26628
|
},
|
|
26269
|
-
"
|
|
26629
|
+
"6": {
|
|
26270
26630
|
loc: {
|
|
26271
26631
|
start: {
|
|
26272
|
-
line:
|
|
26632
|
+
line: 95,
|
|
26273
26633
|
column: 7
|
|
26274
26634
|
},
|
|
26275
26635
|
end: {
|
|
26276
|
-
line:
|
|
26636
|
+
line: 103,
|
|
26277
26637
|
column: 7
|
|
26278
26638
|
}
|
|
26279
26639
|
},
|
|
26280
26640
|
type: "binary-expr",
|
|
26281
26641
|
locations: [{
|
|
26282
26642
|
start: {
|
|
26283
|
-
line:
|
|
26643
|
+
line: 95,
|
|
26284
26644
|
column: 7
|
|
26285
26645
|
},
|
|
26286
26646
|
end: {
|
|
26287
|
-
line:
|
|
26647
|
+
line: 95,
|
|
26288
26648
|
column: 18
|
|
26289
26649
|
}
|
|
26290
26650
|
}, {
|
|
26291
26651
|
start: {
|
|
26292
|
-
line:
|
|
26652
|
+
line: 96,
|
|
26293
26653
|
column: 8
|
|
26294
26654
|
},
|
|
26295
26655
|
end: {
|
|
26296
|
-
line:
|
|
26656
|
+
line: 102,
|
|
26297
26657
|
column: 14
|
|
26298
26658
|
}
|
|
26299
26659
|
}],
|
|
26300
|
-
line:
|
|
26660
|
+
line: 95
|
|
26301
26661
|
}
|
|
26302
26662
|
},
|
|
26303
26663
|
s: {
|
|
@@ -26321,12 +26681,16 @@ function cov_1p625a7ih4() {
|
|
|
26321
26681
|
"4": 0
|
|
26322
26682
|
},
|
|
26323
26683
|
b: {
|
|
26324
|
-
"0": [0
|
|
26325
|
-
"1": [0
|
|
26326
|
-
"2": [0, 0]
|
|
26684
|
+
"0": [0],
|
|
26685
|
+
"1": [0],
|
|
26686
|
+
"2": [0, 0],
|
|
26687
|
+
"3": [0, 0],
|
|
26688
|
+
"4": [0, 0],
|
|
26689
|
+
"5": [0, 0],
|
|
26690
|
+
"6": [0, 0]
|
|
26327
26691
|
},
|
|
26328
26692
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
26329
|
-
hash: "
|
|
26693
|
+
hash: "1011b25909b9c73b64080f90fa78d81fed144c14"
|
|
26330
26694
|
};
|
|
26331
26695
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
26332
26696
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -26349,7 +26713,11 @@ var SingleChoice$1 = function SingleChoice(_ref) {
|
|
|
26349
26713
|
isRequired = _ref.isRequired;
|
|
26350
26714
|
cov_1p625a7ih4().f[0]++;
|
|
26351
26715
|
var _ref2 = (cov_1p625a7ih4().s[1]++, item),
|
|
26352
|
-
optionsAttributes = _ref2.optionsAttributes
|
|
26716
|
+
optionsAttributes = _ref2.optionsAttributes,
|
|
26717
|
+
_ref2$optionLabelProp = _ref2.optionLabelProps,
|
|
26718
|
+
optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_1p625a7ih4().b[0][0]++, {}) : _ref2$optionLabelProp,
|
|
26719
|
+
_ref2$freezeOptions = _ref2.freezeOptions,
|
|
26720
|
+
freezeOptions = _ref2$freezeOptions === void 0 ? (cov_1p625a7ih4().b[1][0]++, false) : _ref2$freezeOptions;
|
|
26353
26721
|
var _ref3 = (cov_1p625a7ih4().s[2]++, useTranslation()),
|
|
26354
26722
|
t = _ref3.t;
|
|
26355
26723
|
var _ref4 = (cov_1p625a7ih4().s[3]++, useFormikContext()),
|
|
@@ -26379,21 +26747,22 @@ var SingleChoice$1 = function SingleChoice(_ref) {
|
|
|
26379
26747
|
var handlePush = _ref5.handlePush;
|
|
26380
26748
|
cov_1p625a7ih4().f[2]++;
|
|
26381
26749
|
cov_1p625a7ih4().s[8]++;
|
|
26382
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Label, {
|
|
26750
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Label, _extends$9({
|
|
26383
26751
|
className: "mb-1 block"
|
|
26384
|
-
}, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement("div", {
|
|
26752
|
+
}, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default.createElement("div", {
|
|
26385
26753
|
className: "flex w-2/3 flex-col space-y-2"
|
|
26386
26754
|
}, optionsAttributes.map(function (option, index) {
|
|
26387
26755
|
var _ref6;
|
|
26388
26756
|
cov_1p625a7ih4().f[3]++;
|
|
26389
26757
|
cov_1p625a7ih4().s[9]++;
|
|
26390
|
-
return (cov_1p625a7ih4().b[
|
|
26758
|
+
return (cov_1p625a7ih4().b[2][0]++, !option._destroy) && (cov_1p625a7ih4().b[2][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
26391
26759
|
className: "flex items-start gap-1",
|
|
26392
|
-
key: "question-option-".concat((_ref6 = (cov_1p625a7ih4().b[
|
|
26760
|
+
key: "question-option-".concat((_ref6 = (cov_1p625a7ih4().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_1p625a7ih4().b[3][1]++, index))
|
|
26393
26761
|
}, /*#__PURE__*/React__default.createElement(InputWithMaxLength, {
|
|
26762
|
+
disabled: freezeOptions,
|
|
26394
26763
|
name: "".concat(name, ".optionsAttributes.").concat(index, ".label"),
|
|
26395
26764
|
placeholder: "".concat(t("questions.common.questionFields.field.option"), " ").concat(index + 1)
|
|
26396
|
-
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
26765
|
+
}), (cov_1p625a7ih4().b[4][0]++, !freezeOptions) && (cov_1p625a7ih4().b[4][1]++, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
26397
26766
|
icon: Delete,
|
|
26398
26767
|
size: "small",
|
|
26399
26768
|
style: "text",
|
|
@@ -26405,8 +26774,8 @@ var SingleChoice$1 = function SingleChoice(_ref) {
|
|
|
26405
26774
|
cov_1p625a7ih4().s[10]++;
|
|
26406
26775
|
return handleRemoveOption(index);
|
|
26407
26776
|
}
|
|
26408
|
-
})));
|
|
26409
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
26777
|
+
}))));
|
|
26778
|
+
})), (cov_1p625a7ih4().b[5][0]++, !freezeOptions) && (cov_1p625a7ih4().b[5][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
26410
26779
|
className: "mt-3 w-full"
|
|
26411
26780
|
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
26412
26781
|
icon: Plus,
|
|
@@ -26417,8 +26786,8 @@ var SingleChoice$1 = function SingleChoice(_ref) {
|
|
|
26417
26786
|
onClick: handlePush({
|
|
26418
26787
|
label: ""
|
|
26419
26788
|
})
|
|
26420
|
-
})));
|
|
26421
|
-
})), (cov_1p625a7ih4().b[
|
|
26789
|
+
}))));
|
|
26790
|
+
})), (cov_1p625a7ih4().b[6][0]++, !isRequired) && (cov_1p625a7ih4().b[6][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
26422
26791
|
className: "w-full"
|
|
26423
26792
|
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
26424
26793
|
id: "".concat(name, ".isRequired"),
|
|
@@ -28228,7 +28597,7 @@ var Question = function Question(_ref) {
|
|
|
28228
28597
|
var questions = _ref.questions,
|
|
28229
28598
|
insert = _ref.insert,
|
|
28230
28599
|
formProps = _ref.formProps,
|
|
28231
|
-
|
|
28600
|
+
isDeletable = _ref.isDeletable,
|
|
28232
28601
|
isRequiredField = _ref.isRequiredField,
|
|
28233
28602
|
allQuestionKinds = _ref.allQuestionKinds,
|
|
28234
28603
|
getActiveKindDetails = _ref.getActiveKindDetails,
|
|
@@ -28264,8 +28633,8 @@ var Question = function Question(_ref) {
|
|
|
28264
28633
|
}), /*#__PURE__*/React__default.createElement(FormField, _extends$9({
|
|
28265
28634
|
allQuestionKinds: allQuestionKinds,
|
|
28266
28635
|
getActiveKindDetails: getActiveKindDetails,
|
|
28267
|
-
isDeletable:
|
|
28268
|
-
isRequired: isRequiredField(item
|
|
28636
|
+
isDeletable: isDeletable(item),
|
|
28637
|
+
isRequired: isRequiredField(item),
|
|
28269
28638
|
kindUniqueOn: kindUniqueOn
|
|
28270
28639
|
}, formProps(item, index, insert))));
|
|
28271
28640
|
}));
|
|
@@ -30328,10 +30697,10 @@ var List = function List(_ref) {
|
|
|
30328
30697
|
})));
|
|
30329
30698
|
};
|
|
30330
30699
|
|
|
30331
|
-
var _excluded$b = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "
|
|
30700
|
+
var _excluded$b = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
|
|
30332
30701
|
function cov_2e8k7gwd81() {
|
|
30333
30702
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
|
|
30334
|
-
var hash = "
|
|
30703
|
+
var hash = "7c11acd7f0e5fde99d6d92b950980d529a13322c";
|
|
30335
30704
|
var global = new Function("return this")();
|
|
30336
30705
|
var gcv = "__coverage__";
|
|
30337
30706
|
var coverageData = {
|
|
@@ -30343,7 +30712,7 @@ function cov_2e8k7gwd81() {
|
|
|
30343
30712
|
column: 13
|
|
30344
30713
|
},
|
|
30345
30714
|
end: {
|
|
30346
|
-
line:
|
|
30715
|
+
line: 222,
|
|
30347
30716
|
column: 1
|
|
30348
30717
|
}
|
|
30349
30718
|
},
|
|
@@ -30530,200 +30899,180 @@ function cov_2e8k7gwd81() {
|
|
|
30530
30899
|
"19": {
|
|
30531
30900
|
start: {
|
|
30532
30901
|
line: 106,
|
|
30533
|
-
column: 26
|
|
30534
|
-
},
|
|
30535
|
-
end: {
|
|
30536
|
-
line: 106,
|
|
30537
|
-
column: 63
|
|
30538
|
-
}
|
|
30539
|
-
},
|
|
30540
|
-
"20": {
|
|
30541
|
-
start: {
|
|
30542
|
-
line: 106,
|
|
30543
|
-
column: 34
|
|
30544
|
-
},
|
|
30545
|
-
end: {
|
|
30546
|
-
line: 106,
|
|
30547
|
-
column: 63
|
|
30548
|
-
}
|
|
30549
|
-
},
|
|
30550
|
-
"21": {
|
|
30551
|
-
start: {
|
|
30552
|
-
line: 108,
|
|
30553
30902
|
column: 20
|
|
30554
30903
|
},
|
|
30555
30904
|
end: {
|
|
30556
|
-
line:
|
|
30905
|
+
line: 136,
|
|
30557
30906
|
column: 4
|
|
30558
30907
|
}
|
|
30559
30908
|
},
|
|
30560
|
-
"
|
|
30909
|
+
"20": {
|
|
30561
30910
|
start: {
|
|
30562
|
-
line:
|
|
30911
|
+
line: 106,
|
|
30563
30912
|
column: 46
|
|
30564
30913
|
},
|
|
30565
30914
|
end: {
|
|
30566
|
-
line:
|
|
30915
|
+
line: 136,
|
|
30567
30916
|
column: 3
|
|
30568
30917
|
}
|
|
30569
30918
|
},
|
|
30570
|
-
"
|
|
30919
|
+
"21": {
|
|
30571
30920
|
start: {
|
|
30572
|
-
line:
|
|
30921
|
+
line: 115,
|
|
30573
30922
|
column: 6
|
|
30574
30923
|
},
|
|
30575
30924
|
end: {
|
|
30576
|
-
line:
|
|
30925
|
+
line: 115,
|
|
30577
30926
|
column: 62
|
|
30578
30927
|
}
|
|
30579
30928
|
},
|
|
30580
|
-
"
|
|
30929
|
+
"22": {
|
|
30581
30930
|
start: {
|
|
30582
|
-
line:
|
|
30931
|
+
line: 117,
|
|
30583
30932
|
column: 27
|
|
30584
30933
|
},
|
|
30585
30934
|
end: {
|
|
30586
|
-
line:
|
|
30935
|
+
line: 121,
|
|
30587
30936
|
column: 7
|
|
30588
30937
|
}
|
|
30589
30938
|
},
|
|
30590
|
-
"
|
|
30939
|
+
"23": {
|
|
30591
30940
|
start: {
|
|
30592
|
-
line:
|
|
30941
|
+
line: 123,
|
|
30593
30942
|
column: 6
|
|
30594
30943
|
},
|
|
30595
30944
|
end: {
|
|
30596
|
-
line:
|
|
30945
|
+
line: 129,
|
|
30597
30946
|
column: 8
|
|
30598
30947
|
}
|
|
30599
30948
|
},
|
|
30600
|
-
"
|
|
30949
|
+
"24": {
|
|
30601
30950
|
start: {
|
|
30602
|
-
line:
|
|
30951
|
+
line: 125,
|
|
30603
30952
|
column: 47
|
|
30604
30953
|
},
|
|
30605
30954
|
end: {
|
|
30606
|
-
line:
|
|
30955
|
+
line: 128,
|
|
30607
30956
|
column: 9
|
|
30608
30957
|
}
|
|
30609
30958
|
},
|
|
30610
|
-
"
|
|
30959
|
+
"25": {
|
|
30611
30960
|
start: {
|
|
30612
|
-
line:
|
|
30961
|
+
line: 132,
|
|
30613
30962
|
column: 6
|
|
30614
30963
|
},
|
|
30615
30964
|
end: {
|
|
30616
|
-
line:
|
|
30965
|
+
line: 132,
|
|
30617
30966
|
column: 69
|
|
30618
30967
|
}
|
|
30619
30968
|
},
|
|
30620
|
-
"
|
|
30969
|
+
"26": {
|
|
30621
30970
|
start: {
|
|
30622
|
-
line:
|
|
30971
|
+
line: 134,
|
|
30623
30972
|
column: 6
|
|
30624
30973
|
},
|
|
30625
30974
|
end: {
|
|
30626
|
-
line:
|
|
30975
|
+
line: 134,
|
|
30627
30976
|
column: 36
|
|
30628
30977
|
}
|
|
30629
30978
|
},
|
|
30630
|
-
"
|
|
30979
|
+
"27": {
|
|
30631
30980
|
start: {
|
|
30632
|
-
line:
|
|
30981
|
+
line: 138,
|
|
30633
30982
|
column: 2
|
|
30634
30983
|
},
|
|
30635
30984
|
end: {
|
|
30636
|
-
line:
|
|
30985
|
+
line: 221,
|
|
30637
30986
|
column: 4
|
|
30638
30987
|
}
|
|
30639
30988
|
},
|
|
30640
|
-
"
|
|
30989
|
+
"28": {
|
|
30641
30990
|
start: {
|
|
30642
|
-
line:
|
|
30991
|
+
line: 149,
|
|
30643
30992
|
column: 23
|
|
30644
30993
|
},
|
|
30645
30994
|
end: {
|
|
30646
|
-
line:
|
|
30995
|
+
line: 149,
|
|
30647
30996
|
column: 51
|
|
30648
30997
|
}
|
|
30649
30998
|
},
|
|
30650
|
-
"
|
|
30999
|
+
"29": {
|
|
30651
31000
|
start: {
|
|
30652
|
-
line:
|
|
31001
|
+
line: 151,
|
|
30653
31002
|
column: 32
|
|
30654
31003
|
},
|
|
30655
31004
|
end: {
|
|
30656
|
-
line:
|
|
31005
|
+
line: 154,
|
|
30657
31006
|
column: 11
|
|
30658
31007
|
}
|
|
30659
31008
|
},
|
|
30660
|
-
"
|
|
31009
|
+
"30": {
|
|
30661
31010
|
start: {
|
|
30662
|
-
line:
|
|
31011
|
+
line: 155,
|
|
30663
31012
|
column: 10
|
|
30664
31013
|
},
|
|
30665
31014
|
end: {
|
|
30666
|
-
line:
|
|
31015
|
+
line: 155,
|
|
30667
31016
|
column: 59
|
|
30668
31017
|
}
|
|
30669
31018
|
},
|
|
30670
|
-
"
|
|
31019
|
+
"31": {
|
|
30671
31020
|
start: {
|
|
30672
|
-
line:
|
|
31021
|
+
line: 156,
|
|
30673
31022
|
column: 10
|
|
30674
31023
|
},
|
|
30675
31024
|
end: {
|
|
30676
|
-
line:
|
|
31025
|
+
line: 156,
|
|
30677
31026
|
column: 39
|
|
30678
31027
|
}
|
|
30679
31028
|
},
|
|
30680
|
-
"
|
|
31029
|
+
"32": {
|
|
30681
31030
|
start: {
|
|
30682
|
-
line:
|
|
31031
|
+
line: 163,
|
|
30683
31032
|
column: 14
|
|
30684
31033
|
},
|
|
30685
31034
|
end: {
|
|
30686
|
-
line:
|
|
31035
|
+
line: 192,
|
|
30687
31036
|
column: 17
|
|
30688
31037
|
}
|
|
30689
31038
|
},
|
|
30690
|
-
"
|
|
31039
|
+
"33": {
|
|
30691
31040
|
start: {
|
|
30692
|
-
line:
|
|
31041
|
+
line: 166,
|
|
30693
31042
|
column: 20
|
|
30694
31043
|
},
|
|
30695
31044
|
end: {
|
|
30696
|
-
line:
|
|
31045
|
+
line: 171,
|
|
30697
31046
|
column: 22
|
|
30698
31047
|
}
|
|
30699
31048
|
},
|
|
30700
|
-
"
|
|
31049
|
+
"34": {
|
|
30701
31050
|
start: {
|
|
30702
|
-
line:
|
|
31051
|
+
line: 189,
|
|
30703
31052
|
column: 38
|
|
30704
31053
|
},
|
|
30705
31054
|
end: {
|
|
30706
|
-
line:
|
|
31055
|
+
line: 189,
|
|
30707
31056
|
column: 65
|
|
30708
31057
|
}
|
|
30709
31058
|
},
|
|
30710
|
-
"
|
|
31059
|
+
"35": {
|
|
30711
31060
|
start: {
|
|
30712
|
-
line:
|
|
31061
|
+
line: 201,
|
|
30713
31062
|
column: 38
|
|
30714
31063
|
},
|
|
30715
31064
|
end: {
|
|
30716
|
-
line:
|
|
31065
|
+
line: 204,
|
|
30717
31066
|
column: 17
|
|
30718
31067
|
}
|
|
30719
31068
|
},
|
|
30720
|
-
"
|
|
31069
|
+
"36": {
|
|
30721
31070
|
start: {
|
|
30722
|
-
line:
|
|
31071
|
+
line: 205,
|
|
30723
31072
|
column: 16
|
|
30724
31073
|
},
|
|
30725
31074
|
end: {
|
|
30726
|
-
line:
|
|
31075
|
+
line: 205,
|
|
30727
31076
|
column: 65
|
|
30728
31077
|
}
|
|
30729
31078
|
}
|
|
@@ -30747,7 +31096,7 @@ function cov_2e8k7gwd81() {
|
|
|
30747
31096
|
column: 6
|
|
30748
31097
|
},
|
|
30749
31098
|
end: {
|
|
30750
|
-
line:
|
|
31099
|
+
line: 222,
|
|
30751
31100
|
column: 1
|
|
30752
31101
|
}
|
|
30753
31102
|
},
|
|
@@ -30854,21 +31203,21 @@ function cov_2e8k7gwd81() {
|
|
|
30854
31203
|
decl: {
|
|
30855
31204
|
start: {
|
|
30856
31205
|
line: 106,
|
|
30857
|
-
column:
|
|
31206
|
+
column: 20
|
|
30858
31207
|
},
|
|
30859
31208
|
end: {
|
|
30860
31209
|
line: 106,
|
|
30861
|
-
column:
|
|
31210
|
+
column: 21
|
|
30862
31211
|
}
|
|
30863
31212
|
},
|
|
30864
31213
|
loc: {
|
|
30865
31214
|
start: {
|
|
30866
31215
|
line: 106,
|
|
30867
|
-
column:
|
|
31216
|
+
column: 46
|
|
30868
31217
|
},
|
|
30869
31218
|
end: {
|
|
30870
|
-
line:
|
|
30871
|
-
column:
|
|
31219
|
+
line: 136,
|
|
31220
|
+
column: 3
|
|
30872
31221
|
}
|
|
30873
31222
|
},
|
|
30874
31223
|
line: 106
|
|
@@ -30877,289 +31226,265 @@ function cov_2e8k7gwd81() {
|
|
|
30877
31226
|
name: "(anonymous_6)",
|
|
30878
31227
|
decl: {
|
|
30879
31228
|
start: {
|
|
30880
|
-
line:
|
|
30881
|
-
column: 20
|
|
30882
|
-
},
|
|
30883
|
-
end: {
|
|
30884
|
-
line: 108,
|
|
30885
|
-
column: 21
|
|
30886
|
-
}
|
|
30887
|
-
},
|
|
30888
|
-
loc: {
|
|
30889
|
-
start: {
|
|
30890
|
-
line: 108,
|
|
30891
|
-
column: 46
|
|
30892
|
-
},
|
|
30893
|
-
end: {
|
|
30894
|
-
line: 138,
|
|
30895
|
-
column: 3
|
|
30896
|
-
}
|
|
30897
|
-
},
|
|
30898
|
-
line: 108
|
|
30899
|
-
},
|
|
30900
|
-
"7": {
|
|
30901
|
-
name: "(anonymous_7)",
|
|
30902
|
-
decl: {
|
|
30903
|
-
start: {
|
|
30904
|
-
line: 116,
|
|
31229
|
+
line: 114,
|
|
30905
31230
|
column: 22
|
|
30906
31231
|
},
|
|
30907
31232
|
end: {
|
|
30908
|
-
line:
|
|
31233
|
+
line: 114,
|
|
30909
31234
|
column: 23
|
|
30910
31235
|
}
|
|
30911
31236
|
},
|
|
30912
31237
|
loc: {
|
|
30913
31238
|
start: {
|
|
30914
|
-
line:
|
|
31239
|
+
line: 115,
|
|
30915
31240
|
column: 6
|
|
30916
31241
|
},
|
|
30917
31242
|
end: {
|
|
30918
|
-
line:
|
|
31243
|
+
line: 115,
|
|
30919
31244
|
column: 62
|
|
30920
31245
|
}
|
|
30921
31246
|
},
|
|
30922
|
-
line:
|
|
31247
|
+
line: 115
|
|
30923
31248
|
},
|
|
30924
|
-
"
|
|
30925
|
-
name: "(
|
|
31249
|
+
"7": {
|
|
31250
|
+
name: "(anonymous_7)",
|
|
30926
31251
|
decl: {
|
|
30927
31252
|
start: {
|
|
30928
|
-
line:
|
|
31253
|
+
line: 116,
|
|
30929
31254
|
column: 17
|
|
30930
31255
|
},
|
|
30931
31256
|
end: {
|
|
30932
|
-
line:
|
|
31257
|
+
line: 116,
|
|
30933
31258
|
column: 18
|
|
30934
31259
|
}
|
|
30935
31260
|
},
|
|
30936
31261
|
loc: {
|
|
30937
31262
|
start: {
|
|
30938
|
-
line:
|
|
31263
|
+
line: 116,
|
|
30939
31264
|
column: 23
|
|
30940
31265
|
},
|
|
30941
31266
|
end: {
|
|
30942
|
-
line:
|
|
31267
|
+
line: 130,
|
|
30943
31268
|
column: 5
|
|
30944
31269
|
}
|
|
30945
31270
|
},
|
|
30946
|
-
line:
|
|
31271
|
+
line: 116
|
|
30947
31272
|
},
|
|
30948
|
-
"
|
|
30949
|
-
name: "(
|
|
31273
|
+
"8": {
|
|
31274
|
+
name: "(anonymous_8)",
|
|
30950
31275
|
decl: {
|
|
30951
31276
|
start: {
|
|
30952
|
-
line:
|
|
31277
|
+
line: 125,
|
|
30953
31278
|
column: 25
|
|
30954
31279
|
},
|
|
30955
31280
|
end: {
|
|
30956
|
-
line:
|
|
31281
|
+
line: 125,
|
|
30957
31282
|
column: 26
|
|
30958
31283
|
}
|
|
30959
31284
|
},
|
|
30960
31285
|
loc: {
|
|
30961
31286
|
start: {
|
|
30962
|
-
line:
|
|
31287
|
+
line: 125,
|
|
30963
31288
|
column: 47
|
|
30964
31289
|
},
|
|
30965
31290
|
end: {
|
|
30966
|
-
line:
|
|
31291
|
+
line: 128,
|
|
30967
31292
|
column: 9
|
|
30968
31293
|
}
|
|
30969
31294
|
},
|
|
30970
|
-
line:
|
|
31295
|
+
line: 125
|
|
30971
31296
|
},
|
|
30972
|
-
"
|
|
30973
|
-
name: "(
|
|
31297
|
+
"9": {
|
|
31298
|
+
name: "(anonymous_9)",
|
|
30974
31299
|
decl: {
|
|
30975
31300
|
start: {
|
|
30976
|
-
line:
|
|
31301
|
+
line: 131,
|
|
30977
31302
|
column: 14
|
|
30978
31303
|
},
|
|
30979
31304
|
end: {
|
|
30980
|
-
line:
|
|
31305
|
+
line: 131,
|
|
30981
31306
|
column: 15
|
|
30982
31307
|
}
|
|
30983
31308
|
},
|
|
30984
31309
|
loc: {
|
|
30985
31310
|
start: {
|
|
30986
|
-
line:
|
|
31311
|
+
line: 132,
|
|
30987
31312
|
column: 6
|
|
30988
31313
|
},
|
|
30989
31314
|
end: {
|
|
30990
|
-
line:
|
|
31315
|
+
line: 132,
|
|
30991
31316
|
column: 69
|
|
30992
31317
|
}
|
|
30993
31318
|
},
|
|
30994
|
-
line:
|
|
31319
|
+
line: 132
|
|
30995
31320
|
},
|
|
30996
|
-
"
|
|
30997
|
-
name: "(
|
|
31321
|
+
"10": {
|
|
31322
|
+
name: "(anonymous_10)",
|
|
30998
31323
|
decl: {
|
|
30999
31324
|
start: {
|
|
31000
|
-
line:
|
|
31325
|
+
line: 133,
|
|
31001
31326
|
column: 14
|
|
31002
31327
|
},
|
|
31003
31328
|
end: {
|
|
31004
|
-
line:
|
|
31329
|
+
line: 133,
|
|
31005
31330
|
column: 15
|
|
31006
31331
|
}
|
|
31007
31332
|
},
|
|
31008
31333
|
loc: {
|
|
31009
31334
|
start: {
|
|
31010
|
-
line:
|
|
31335
|
+
line: 133,
|
|
31011
31336
|
column: 20
|
|
31012
31337
|
},
|
|
31013
31338
|
end: {
|
|
31014
|
-
line:
|
|
31339
|
+
line: 135,
|
|
31015
31340
|
column: 5
|
|
31016
31341
|
}
|
|
31017
31342
|
},
|
|
31018
|
-
line:
|
|
31343
|
+
line: 133
|
|
31019
31344
|
},
|
|
31020
|
-
"
|
|
31021
|
-
name: "(
|
|
31345
|
+
"11": {
|
|
31346
|
+
name: "(anonymous_11)",
|
|
31022
31347
|
decl: {
|
|
31023
31348
|
start: {
|
|
31024
|
-
line:
|
|
31349
|
+
line: 149,
|
|
31025
31350
|
column: 17
|
|
31026
31351
|
},
|
|
31027
31352
|
end: {
|
|
31028
|
-
line:
|
|
31353
|
+
line: 149,
|
|
31029
31354
|
column: 18
|
|
31030
31355
|
}
|
|
31031
31356
|
},
|
|
31032
31357
|
loc: {
|
|
31033
31358
|
start: {
|
|
31034
|
-
line:
|
|
31359
|
+
line: 149,
|
|
31035
31360
|
column: 23
|
|
31036
31361
|
},
|
|
31037
31362
|
end: {
|
|
31038
|
-
line:
|
|
31363
|
+
line: 149,
|
|
31039
31364
|
column: 51
|
|
31040
31365
|
}
|
|
31041
31366
|
},
|
|
31042
|
-
line:
|
|
31367
|
+
line: 149
|
|
31043
31368
|
},
|
|
31044
|
-
"
|
|
31045
|
-
name: "(
|
|
31369
|
+
"12": {
|
|
31370
|
+
name: "(anonymous_12)",
|
|
31046
31371
|
decl: {
|
|
31047
31372
|
start: {
|
|
31048
|
-
line:
|
|
31373
|
+
line: 150,
|
|
31049
31374
|
column: 18
|
|
31050
31375
|
},
|
|
31051
31376
|
end: {
|
|
31052
|
-
line:
|
|
31377
|
+
line: 150,
|
|
31053
31378
|
column: 19
|
|
31054
31379
|
}
|
|
31055
31380
|
},
|
|
31056
31381
|
loc: {
|
|
31057
31382
|
start: {
|
|
31058
|
-
line:
|
|
31383
|
+
line: 150,
|
|
31059
31384
|
column: 24
|
|
31060
31385
|
},
|
|
31061
31386
|
end: {
|
|
31062
|
-
line:
|
|
31387
|
+
line: 157,
|
|
31063
31388
|
column: 9
|
|
31064
31389
|
}
|
|
31065
31390
|
},
|
|
31066
|
-
line:
|
|
31391
|
+
line: 150
|
|
31067
31392
|
},
|
|
31068
|
-
"
|
|
31069
|
-
name: "(
|
|
31393
|
+
"13": {
|
|
31394
|
+
name: "(anonymous_13)",
|
|
31070
31395
|
decl: {
|
|
31071
31396
|
start: {
|
|
31072
|
-
line:
|
|
31397
|
+
line: 162,
|
|
31073
31398
|
column: 13
|
|
31074
31399
|
},
|
|
31075
31400
|
end: {
|
|
31076
|
-
line:
|
|
31401
|
+
line: 162,
|
|
31077
31402
|
column: 14
|
|
31078
31403
|
}
|
|
31079
31404
|
},
|
|
31080
31405
|
loc: {
|
|
31081
31406
|
start: {
|
|
31082
|
-
line:
|
|
31407
|
+
line: 163,
|
|
31083
31408
|
column: 14
|
|
31084
31409
|
},
|
|
31085
31410
|
end: {
|
|
31086
|
-
line:
|
|
31411
|
+
line: 192,
|
|
31087
31412
|
column: 17
|
|
31088
31413
|
}
|
|
31089
31414
|
},
|
|
31090
|
-
line:
|
|
31415
|
+
line: 163
|
|
31091
31416
|
},
|
|
31092
|
-
"
|
|
31093
|
-
name: "(
|
|
31417
|
+
"14": {
|
|
31418
|
+
name: "(anonymous_14)",
|
|
31094
31419
|
decl: {
|
|
31095
31420
|
start: {
|
|
31096
|
-
line:
|
|
31421
|
+
line: 165,
|
|
31097
31422
|
column: 29
|
|
31098
31423
|
},
|
|
31099
31424
|
end: {
|
|
31100
|
-
line:
|
|
31425
|
+
line: 165,
|
|
31101
31426
|
column: 30
|
|
31102
31427
|
}
|
|
31103
31428
|
},
|
|
31104
31429
|
loc: {
|
|
31105
31430
|
start: {
|
|
31106
|
-
line:
|
|
31431
|
+
line: 166,
|
|
31107
31432
|
column: 20
|
|
31108
31433
|
},
|
|
31109
31434
|
end: {
|
|
31110
|
-
line:
|
|
31435
|
+
line: 171,
|
|
31111
31436
|
column: 22
|
|
31112
31437
|
}
|
|
31113
31438
|
},
|
|
31114
|
-
line:
|
|
31439
|
+
line: 166
|
|
31115
31440
|
},
|
|
31116
|
-
"
|
|
31117
|
-
name: "(
|
|
31441
|
+
"15": {
|
|
31442
|
+
name: "(anonymous_15)",
|
|
31118
31443
|
decl: {
|
|
31119
31444
|
start: {
|
|
31120
|
-
line:
|
|
31445
|
+
line: 189,
|
|
31121
31446
|
column: 30
|
|
31122
31447
|
},
|
|
31123
31448
|
end: {
|
|
31124
|
-
line:
|
|
31449
|
+
line: 189,
|
|
31125
31450
|
column: 31
|
|
31126
31451
|
}
|
|
31127
31452
|
},
|
|
31128
31453
|
loc: {
|
|
31129
31454
|
start: {
|
|
31130
|
-
line:
|
|
31455
|
+
line: 189,
|
|
31131
31456
|
column: 38
|
|
31132
31457
|
},
|
|
31133
31458
|
end: {
|
|
31134
|
-
line:
|
|
31459
|
+
line: 189,
|
|
31135
31460
|
column: 65
|
|
31136
31461
|
}
|
|
31137
31462
|
},
|
|
31138
|
-
line:
|
|
31463
|
+
line: 189
|
|
31139
31464
|
},
|
|
31140
|
-
"
|
|
31141
|
-
name: "(
|
|
31465
|
+
"16": {
|
|
31466
|
+
name: "(anonymous_16)",
|
|
31142
31467
|
decl: {
|
|
31143
31468
|
start: {
|
|
31144
|
-
line:
|
|
31469
|
+
line: 200,
|
|
31145
31470
|
column: 24
|
|
31146
31471
|
},
|
|
31147
31472
|
end: {
|
|
31148
|
-
line:
|
|
31473
|
+
line: 200,
|
|
31149
31474
|
column: 25
|
|
31150
31475
|
}
|
|
31151
31476
|
},
|
|
31152
31477
|
loc: {
|
|
31153
31478
|
start: {
|
|
31154
|
-
line:
|
|
31479
|
+
line: 200,
|
|
31155
31480
|
column: 32
|
|
31156
31481
|
},
|
|
31157
31482
|
end: {
|
|
31158
|
-
line:
|
|
31483
|
+
line: 206,
|
|
31159
31484
|
column: 15
|
|
31160
31485
|
}
|
|
31161
31486
|
},
|
|
31162
|
-
line:
|
|
31487
|
+
line: 200
|
|
31163
31488
|
}
|
|
31164
31489
|
},
|
|
31165
31490
|
branchMap: {
|
|
@@ -31241,266 +31566,266 @@ function cov_2e8k7gwd81() {
|
|
|
31241
31566
|
"2": {
|
|
31242
31567
|
loc: {
|
|
31243
31568
|
start: {
|
|
31244
|
-
line:
|
|
31569
|
+
line: 112,
|
|
31245
31570
|
column: 6
|
|
31246
31571
|
},
|
|
31247
31572
|
end: {
|
|
31248
|
-
line:
|
|
31573
|
+
line: 113,
|
|
31249
31574
|
column: 55
|
|
31250
31575
|
}
|
|
31251
31576
|
},
|
|
31252
31577
|
type: "binary-expr",
|
|
31253
31578
|
locations: [{
|
|
31254
31579
|
start: {
|
|
31255
|
-
line:
|
|
31580
|
+
line: 112,
|
|
31256
31581
|
column: 6
|
|
31257
31582
|
},
|
|
31258
31583
|
end: {
|
|
31259
|
-
line:
|
|
31584
|
+
line: 112,
|
|
31260
31585
|
column: 44
|
|
31261
31586
|
}
|
|
31262
31587
|
}, {
|
|
31263
31588
|
start: {
|
|
31264
|
-
line:
|
|
31589
|
+
line: 113,
|
|
31265
31590
|
column: 6
|
|
31266
31591
|
},
|
|
31267
31592
|
end: {
|
|
31268
|
-
line:
|
|
31593
|
+
line: 113,
|
|
31269
31594
|
column: 55
|
|
31270
31595
|
}
|
|
31271
31596
|
}],
|
|
31272
|
-
line:
|
|
31597
|
+
line: 112
|
|
31273
31598
|
},
|
|
31274
31599
|
"3": {
|
|
31275
31600
|
loc: {
|
|
31276
31601
|
start: {
|
|
31277
|
-
line:
|
|
31602
|
+
line: 112,
|
|
31278
31603
|
column: 21
|
|
31279
31604
|
},
|
|
31280
31605
|
end: {
|
|
31281
|
-
line:
|
|
31606
|
+
line: 112,
|
|
31282
31607
|
column: 43
|
|
31283
31608
|
}
|
|
31284
31609
|
},
|
|
31285
31610
|
type: "binary-expr",
|
|
31286
31611
|
locations: [{
|
|
31287
31612
|
start: {
|
|
31288
|
-
line:
|
|
31613
|
+
line: 112,
|
|
31289
31614
|
column: 21
|
|
31290
31615
|
},
|
|
31291
31616
|
end: {
|
|
31292
|
-
line:
|
|
31617
|
+
line: 112,
|
|
31293
31618
|
column: 32
|
|
31294
31619
|
}
|
|
31295
31620
|
}, {
|
|
31296
31621
|
start: {
|
|
31297
|
-
line:
|
|
31622
|
+
line: 112,
|
|
31298
31623
|
column: 36
|
|
31299
31624
|
},
|
|
31300
31625
|
end: {
|
|
31301
|
-
line:
|
|
31626
|
+
line: 112,
|
|
31302
31627
|
column: 43
|
|
31303
31628
|
}
|
|
31304
31629
|
}],
|
|
31305
|
-
line:
|
|
31630
|
+
line: 112
|
|
31306
31631
|
},
|
|
31307
31632
|
"4": {
|
|
31308
31633
|
loc: {
|
|
31309
31634
|
start: {
|
|
31310
|
-
line:
|
|
31635
|
+
line: 113,
|
|
31311
31636
|
column: 21
|
|
31312
31637
|
},
|
|
31313
31638
|
end: {
|
|
31314
|
-
line:
|
|
31639
|
+
line: 113,
|
|
31315
31640
|
column: 43
|
|
31316
31641
|
}
|
|
31317
31642
|
},
|
|
31318
31643
|
type: "binary-expr",
|
|
31319
31644
|
locations: [{
|
|
31320
31645
|
start: {
|
|
31321
|
-
line:
|
|
31646
|
+
line: 113,
|
|
31322
31647
|
column: 21
|
|
31323
31648
|
},
|
|
31324
31649
|
end: {
|
|
31325
|
-
line:
|
|
31650
|
+
line: 113,
|
|
31326
31651
|
column: 32
|
|
31327
31652
|
}
|
|
31328
31653
|
}, {
|
|
31329
31654
|
start: {
|
|
31330
|
-
line:
|
|
31655
|
+
line: 113,
|
|
31331
31656
|
column: 36
|
|
31332
31657
|
},
|
|
31333
31658
|
end: {
|
|
31334
|
-
line:
|
|
31659
|
+
line: 113,
|
|
31335
31660
|
column: 43
|
|
31336
31661
|
}
|
|
31337
31662
|
}],
|
|
31338
|
-
line:
|
|
31663
|
+
line: 113
|
|
31339
31664
|
},
|
|
31340
31665
|
"5": {
|
|
31341
31666
|
loc: {
|
|
31342
31667
|
start: {
|
|
31343
|
-
line:
|
|
31668
|
+
line: 115,
|
|
31344
31669
|
column: 27
|
|
31345
31670
|
},
|
|
31346
31671
|
end: {
|
|
31347
|
-
line:
|
|
31672
|
+
line: 115,
|
|
31348
31673
|
column: 49
|
|
31349
31674
|
}
|
|
31350
31675
|
},
|
|
31351
31676
|
type: "binary-expr",
|
|
31352
31677
|
locations: [{
|
|
31353
31678
|
start: {
|
|
31354
|
-
line:
|
|
31679
|
+
line: 115,
|
|
31355
31680
|
column: 27
|
|
31356
31681
|
},
|
|
31357
31682
|
end: {
|
|
31358
|
-
line:
|
|
31683
|
+
line: 115,
|
|
31359
31684
|
column: 38
|
|
31360
31685
|
}
|
|
31361
31686
|
}, {
|
|
31362
31687
|
start: {
|
|
31363
|
-
line:
|
|
31688
|
+
line: 115,
|
|
31364
31689
|
column: 42
|
|
31365
31690
|
},
|
|
31366
31691
|
end: {
|
|
31367
|
-
line:
|
|
31692
|
+
line: 115,
|
|
31368
31693
|
column: 49
|
|
31369
31694
|
}
|
|
31370
31695
|
}],
|
|
31371
|
-
line:
|
|
31696
|
+
line: 115
|
|
31372
31697
|
},
|
|
31373
31698
|
"6": {
|
|
31374
31699
|
loc: {
|
|
31375
31700
|
start: {
|
|
31376
|
-
line:
|
|
31701
|
+
line: 146,
|
|
31377
31702
|
column: 12
|
|
31378
31703
|
},
|
|
31379
31704
|
end: {
|
|
31380
|
-
line:
|
|
31705
|
+
line: 147,
|
|
31381
31706
|
column: 61
|
|
31382
31707
|
}
|
|
31383
31708
|
},
|
|
31384
31709
|
type: "binary-expr",
|
|
31385
31710
|
locations: [{
|
|
31386
31711
|
start: {
|
|
31387
|
-
line:
|
|
31712
|
+
line: 146,
|
|
31388
31713
|
column: 12
|
|
31389
31714
|
},
|
|
31390
31715
|
end: {
|
|
31391
|
-
line:
|
|
31716
|
+
line: 146,
|
|
31392
31717
|
column: 72
|
|
31393
31718
|
}
|
|
31394
31719
|
}, {
|
|
31395
31720
|
start: {
|
|
31396
|
-
line:
|
|
31721
|
+
line: 147,
|
|
31397
31722
|
column: 12
|
|
31398
31723
|
},
|
|
31399
31724
|
end: {
|
|
31400
|
-
line:
|
|
31725
|
+
line: 147,
|
|
31401
31726
|
column: 61
|
|
31402
31727
|
}
|
|
31403
31728
|
}],
|
|
31404
|
-
line:
|
|
31729
|
+
line: 146
|
|
31405
31730
|
},
|
|
31406
31731
|
"7": {
|
|
31407
31732
|
loc: {
|
|
31408
31733
|
start: {
|
|
31409
|
-
line:
|
|
31734
|
+
line: 160,
|
|
31410
31735
|
column: 9
|
|
31411
31736
|
},
|
|
31412
31737
|
end: {
|
|
31413
|
-
line:
|
|
31738
|
+
line: 209,
|
|
31414
31739
|
column: 9
|
|
31415
31740
|
}
|
|
31416
31741
|
},
|
|
31417
31742
|
type: "cond-expr",
|
|
31418
31743
|
locations: [{
|
|
31419
31744
|
start: {
|
|
31420
|
-
line:
|
|
31745
|
+
line: 161,
|
|
31421
31746
|
column: 10
|
|
31422
31747
|
},
|
|
31423
31748
|
end: {
|
|
31424
|
-
line:
|
|
31749
|
+
line: 194,
|
|
31425
31750
|
column: 23
|
|
31426
31751
|
}
|
|
31427
31752
|
}, {
|
|
31428
31753
|
start: {
|
|
31429
|
-
line:
|
|
31754
|
+
line: 196,
|
|
31430
31755
|
column: 10
|
|
31431
31756
|
},
|
|
31432
31757
|
end: {
|
|
31433
|
-
line:
|
|
31758
|
+
line: 208,
|
|
31434
31759
|
column: 29
|
|
31435
31760
|
}
|
|
31436
31761
|
}],
|
|
31437
|
-
line:
|
|
31762
|
+
line: 160
|
|
31438
31763
|
},
|
|
31439
31764
|
"8": {
|
|
31440
31765
|
loc: {
|
|
31441
31766
|
start: {
|
|
31442
|
-
line:
|
|
31767
|
+
line: 210,
|
|
31443
31768
|
column: 9
|
|
31444
31769
|
},
|
|
31445
31770
|
end: {
|
|
31446
|
-
line:
|
|
31771
|
+
line: 218,
|
|
31447
31772
|
column: 9
|
|
31448
31773
|
}
|
|
31449
31774
|
},
|
|
31450
31775
|
type: "binary-expr",
|
|
31451
31776
|
locations: [{
|
|
31452
31777
|
start: {
|
|
31453
|
-
line:
|
|
31778
|
+
line: 210,
|
|
31454
31779
|
column: 9
|
|
31455
31780
|
},
|
|
31456
31781
|
end: {
|
|
31457
|
-
line:
|
|
31782
|
+
line: 210,
|
|
31458
31783
|
column: 24
|
|
31459
31784
|
}
|
|
31460
31785
|
}, {
|
|
31461
31786
|
start: {
|
|
31462
|
-
line:
|
|
31787
|
+
line: 211,
|
|
31463
31788
|
column: 10
|
|
31464
31789
|
},
|
|
31465
31790
|
end: {
|
|
31466
|
-
line:
|
|
31791
|
+
line: 217,
|
|
31467
31792
|
column: 12
|
|
31468
31793
|
}
|
|
31469
31794
|
}],
|
|
31470
|
-
line:
|
|
31795
|
+
line: 210
|
|
31471
31796
|
},
|
|
31472
31797
|
"9": {
|
|
31473
31798
|
loc: {
|
|
31474
31799
|
start: {
|
|
31475
|
-
line:
|
|
31800
|
+
line: 214,
|
|
31476
31801
|
column: 24
|
|
31477
31802
|
},
|
|
31478
31803
|
end: {
|
|
31479
|
-
line:
|
|
31804
|
+
line: 214,
|
|
31480
31805
|
column: 46
|
|
31481
31806
|
}
|
|
31482
31807
|
},
|
|
31483
31808
|
type: "binary-expr",
|
|
31484
31809
|
locations: [{
|
|
31485
31810
|
start: {
|
|
31486
|
-
line:
|
|
31811
|
+
line: 214,
|
|
31487
31812
|
column: 24
|
|
31488
31813
|
},
|
|
31489
31814
|
end: {
|
|
31490
|
-
line:
|
|
31815
|
+
line: 214,
|
|
31491
31816
|
column: 36
|
|
31492
31817
|
}
|
|
31493
31818
|
}, {
|
|
31494
31819
|
start: {
|
|
31495
|
-
line:
|
|
31820
|
+
line: 214,
|
|
31496
31821
|
column: 40
|
|
31497
31822
|
},
|
|
31498
31823
|
end: {
|
|
31499
|
-
line:
|
|
31824
|
+
line: 214,
|
|
31500
31825
|
column: 46
|
|
31501
31826
|
}
|
|
31502
31827
|
}],
|
|
31503
|
-
line:
|
|
31828
|
+
line: 214
|
|
31504
31829
|
}
|
|
31505
31830
|
},
|
|
31506
31831
|
s: {
|
|
@@ -31540,9 +31865,7 @@ function cov_2e8k7gwd81() {
|
|
|
31540
31865
|
"33": 0,
|
|
31541
31866
|
"34": 0,
|
|
31542
31867
|
"35": 0,
|
|
31543
|
-
"36": 0
|
|
31544
|
-
"37": 0,
|
|
31545
|
-
"38": 0
|
|
31868
|
+
"36": 0
|
|
31546
31869
|
},
|
|
31547
31870
|
f: {
|
|
31548
31871
|
"0": 0,
|
|
@@ -31561,8 +31884,7 @@ function cov_2e8k7gwd81() {
|
|
|
31561
31884
|
"13": 0,
|
|
31562
31885
|
"14": 0,
|
|
31563
31886
|
"15": 0,
|
|
31564
|
-
"16": 0
|
|
31565
|
-
"17": 0
|
|
31887
|
+
"16": 0
|
|
31566
31888
|
},
|
|
31567
31889
|
b: {
|
|
31568
31890
|
"0": [0, 0, 0],
|
|
@@ -31577,7 +31899,7 @@ function cov_2e8k7gwd81() {
|
|
|
31577
31899
|
"9": [0, 0]
|
|
31578
31900
|
},
|
|
31579
31901
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
31580
|
-
hash: "
|
|
31902
|
+
hash: "7c11acd7f0e5fde99d6d92b950980d529a13322c"
|
|
31581
31903
|
};
|
|
31582
31904
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
31583
31905
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -31604,8 +31926,8 @@ var Form = function Form(_ref) {
|
|
|
31604
31926
|
showActionBlock = _ref.showActionBlock,
|
|
31605
31927
|
formId = _ref.formId,
|
|
31606
31928
|
setShouldValidate = _ref.setShouldValidate,
|
|
31607
|
-
|
|
31608
|
-
|
|
31929
|
+
isDeletable = _ref.isDeletable,
|
|
31930
|
+
isRequiredField = _ref.isRequiredField,
|
|
31609
31931
|
submitButtonProps = _ref.submitButtonProps,
|
|
31610
31932
|
cancelButtonProps = _ref.cancelButtonProps,
|
|
31611
31933
|
isKindAlreadyActive = _ref.isKindAlreadyActive,
|
|
@@ -31678,16 +32000,10 @@ var Form = function Form(_ref) {
|
|
|
31678
32000
|
setFormFieldState(assoc(id, nextFieldState));
|
|
31679
32001
|
};
|
|
31680
32002
|
cov_2e8k7gwd81().s[19]++;
|
|
31681
|
-
var isRequiredField = function isRequiredField(kind) {
|
|
31682
|
-
cov_2e8k7gwd81().f[5]++;
|
|
31683
|
-
cov_2e8k7gwd81().s[20]++;
|
|
31684
|
-
return requiredFields.includes(kind);
|
|
31685
|
-
};
|
|
31686
|
-
cov_2e8k7gwd81().s[21]++;
|
|
31687
32003
|
var formProps = function formProps(item, index, insert$1) {
|
|
31688
32004
|
var _ref10, _ref11;
|
|
31689
|
-
cov_2e8k7gwd81().f[
|
|
31690
|
-
cov_2e8k7gwd81().s[
|
|
32005
|
+
cov_2e8k7gwd81().f[5]++;
|
|
32006
|
+
cov_2e8k7gwd81().s[20]++;
|
|
31691
32007
|
return {
|
|
31692
32008
|
name: "questions.".concat(index),
|
|
31693
32009
|
questionKinds: availableQuestionKinds,
|
|
@@ -31696,35 +32012,35 @@ var Form = function Form(_ref) {
|
|
|
31696
32012
|
isExpanded: (cov_2e8k7gwd81().b[2][0]++, formFieldState[(_ref10 = (cov_2e8k7gwd81().b[3][0]++, item.nodeId)) !== null && _ref10 !== void 0 ? _ref10 : (cov_2e8k7gwd81().b[3][1]++, item.id)]) && (cov_2e8k7gwd81().b[2][1]++, formFieldState[(_ref11 = (cov_2e8k7gwd81().b[4][0]++, item.nodeId)) !== null && _ref11 !== void 0 ? _ref11 : (cov_2e8k7gwd81().b[4][1]++, item.id)].isExpanded),
|
|
31697
32013
|
onChangeExpanded: function onChangeExpanded(isExpanded) {
|
|
31698
32014
|
var _ref12;
|
|
31699
|
-
cov_2e8k7gwd81().f[
|
|
31700
|
-
cov_2e8k7gwd81().s[
|
|
32015
|
+
cov_2e8k7gwd81().f[6]++;
|
|
32016
|
+
cov_2e8k7gwd81().s[21]++;
|
|
31701
32017
|
return handleChangeExpanded((_ref12 = (cov_2e8k7gwd81().b[5][0]++, item.nodeId)) !== null && _ref12 !== void 0 ? _ref12 : (cov_2e8k7gwd81().b[5][1]++, item.id), isExpanded);
|
|
31702
32018
|
},
|
|
31703
32019
|
onDuplicate: function onDuplicate() {
|
|
31704
|
-
cov_2e8k7gwd81().f[
|
|
31705
|
-
var newQuestions = (cov_2e8k7gwd81().s[
|
|
31706
|
-
cov_2e8k7gwd81().s[
|
|
32020
|
+
cov_2e8k7gwd81().f[7]++;
|
|
32021
|
+
var newQuestions = (cov_2e8k7gwd81().s[22]++, insert(item.displayOrder, duplicateFieldData(item), values.questions));
|
|
32022
|
+
cov_2e8k7gwd81().s[23]++;
|
|
31707
32023
|
setFieldValue("questions", newQuestions.map(function (question, index) {
|
|
31708
|
-
cov_2e8k7gwd81().f[
|
|
31709
|
-
cov_2e8k7gwd81().s[
|
|
32024
|
+
cov_2e8k7gwd81().f[8]++;
|
|
32025
|
+
cov_2e8k7gwd81().s[24]++;
|
|
31710
32026
|
return _objectSpread$9(_objectSpread$9({}, question), {}, {
|
|
31711
32027
|
displayOrder: index + 1
|
|
31712
32028
|
});
|
|
31713
32029
|
}));
|
|
31714
32030
|
},
|
|
31715
32031
|
onAddNew: function onAddNew(kind) {
|
|
31716
|
-
cov_2e8k7gwd81().f[
|
|
31717
|
-
cov_2e8k7gwd81().s[
|
|
31718
|
-
return insert$1(index + 1, createFieldData(kind, isRequiredField(
|
|
32032
|
+
cov_2e8k7gwd81().f[9]++;
|
|
32033
|
+
cov_2e8k7gwd81().s[25]++;
|
|
32034
|
+
return insert$1(index + 1, createFieldData(kind, isRequiredField(item)));
|
|
31719
32035
|
},
|
|
31720
32036
|
onRemove: function onRemove() {
|
|
31721
|
-
cov_2e8k7gwd81().f[
|
|
31722
|
-
cov_2e8k7gwd81().s[
|
|
32037
|
+
cov_2e8k7gwd81().f[10]++;
|
|
32038
|
+
cov_2e8k7gwd81().s[26]++;
|
|
31723
32039
|
setDeleteQuestionIndex(index);
|
|
31724
32040
|
}
|
|
31725
32041
|
};
|
|
31726
32042
|
};
|
|
31727
|
-
cov_2e8k7gwd81().s[
|
|
32043
|
+
cov_2e8k7gwd81().s[27]++;
|
|
31728
32044
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Alert, {
|
|
31729
32045
|
isOpen: deleteQuestionIndex !== null,
|
|
31730
32046
|
message: t("questions.deleteAlert.message"),
|
|
@@ -31733,16 +32049,16 @@ var Form = function Form(_ref) {
|
|
|
31733
32049
|
label: (_ref13 = (cov_2e8k7gwd81().b[6][0]++, INDEPENDENT_LABELS_MAP[(_questions$deleteQues = questions[deleteQuestionIndex]) === null || _questions$deleteQues === void 0 ? void 0 : _questions$deleteQues.kind])) !== null && _ref13 !== void 0 ? _ref13 : (cov_2e8k7gwd81().b[6][1]++, sliceLabel((_questions$deleteQues2 = questions[deleteQuestionIndex]) === null || _questions$deleteQues2 === void 0 ? void 0 : _questions$deleteQues2.label))
|
|
31734
32050
|
}),
|
|
31735
32051
|
onClose: function onClose() {
|
|
31736
|
-
cov_2e8k7gwd81().f[
|
|
31737
|
-
cov_2e8k7gwd81().s[
|
|
32052
|
+
cov_2e8k7gwd81().f[11]++;
|
|
32053
|
+
cov_2e8k7gwd81().s[28]++;
|
|
31738
32054
|
return setDeleteQuestionIndex(null);
|
|
31739
32055
|
},
|
|
31740
32056
|
onSubmit: function onSubmit() {
|
|
31741
|
-
cov_2e8k7gwd81().f[
|
|
31742
|
-
var nextQuestions = (cov_2e8k7gwd81().s[
|
|
31743
|
-
cov_2e8k7gwd81().s[
|
|
32057
|
+
cov_2e8k7gwd81().f[12]++;
|
|
32058
|
+
var nextQuestions = (cov_2e8k7gwd81().s[29]++, formHelpers.destroyFromList(questions, deleteQuestionIndex));
|
|
32059
|
+
cov_2e8k7gwd81().s[30]++;
|
|
31744
32060
|
setFieldValue("questions", nextQuestions, false);
|
|
31745
|
-
cov_2e8k7gwd81().s[
|
|
32061
|
+
cov_2e8k7gwd81().s[31]++;
|
|
31746
32062
|
setDeleteQuestionIndex(null);
|
|
31747
32063
|
}
|
|
31748
32064
|
}), /*#__PURE__*/React__default.createElement(Form$1, _extends$9({}, formDomProps, {
|
|
@@ -31752,14 +32068,14 @@ var Form = function Form(_ref) {
|
|
|
31752
32068
|
}, function (_ref14) {
|
|
31753
32069
|
var insert = _ref14.insert,
|
|
31754
32070
|
push = _ref14.push;
|
|
31755
|
-
cov_2e8k7gwd81().f[
|
|
31756
|
-
cov_2e8k7gwd81().s[
|
|
32071
|
+
cov_2e8k7gwd81().f[13]++;
|
|
32072
|
+
cov_2e8k7gwd81().s[32]++;
|
|
31757
32073
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(DragDropContext, {
|
|
31758
32074
|
onDragEnd: function onDragEnd(_ref15) {
|
|
31759
32075
|
var source = _ref15.source,
|
|
31760
32076
|
destination = _ref15.destination;
|
|
31761
|
-
cov_2e8k7gwd81().f[
|
|
31762
|
-
cov_2e8k7gwd81().s[
|
|
32077
|
+
cov_2e8k7gwd81().f[14]++;
|
|
32078
|
+
cov_2e8k7gwd81().s[33]++;
|
|
31763
32079
|
return handleFieldDragEnd({
|
|
31764
32080
|
source: source,
|
|
31765
32081
|
destination: destination,
|
|
@@ -31772,9 +32088,9 @@ var Form = function Form(_ref) {
|
|
|
31772
32088
|
formProps: formProps,
|
|
31773
32089
|
getActiveKindDetails: getActiveKindDetails,
|
|
31774
32090
|
insert: insert,
|
|
32091
|
+
isDeletable: isDeletable,
|
|
31775
32092
|
isRequiredField: isRequiredField,
|
|
31776
32093
|
kindUniqueOn: kindUniqueOn,
|
|
31777
|
-
nonRemovableFields: nonRemovableFields,
|
|
31778
32094
|
questions: questions
|
|
31779
32095
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
31780
32096
|
className: "mb-8 w-full"
|
|
@@ -31782,8 +32098,8 @@ var Form = function Form(_ref) {
|
|
|
31782
32098
|
kindUniqueOn: kindUniqueOn,
|
|
31783
32099
|
questionKinds: availableQuestionKinds,
|
|
31784
32100
|
onSelect: function onSelect(kind) {
|
|
31785
|
-
cov_2e8k7gwd81().f[
|
|
31786
|
-
cov_2e8k7gwd81().s[
|
|
32101
|
+
cov_2e8k7gwd81().f[15]++;
|
|
32102
|
+
cov_2e8k7gwd81().s[34]++;
|
|
31787
32103
|
return push(createFieldData(kind));
|
|
31788
32104
|
}
|
|
31789
32105
|
})));
|
|
@@ -31791,9 +32107,9 @@ var Form = function Form(_ref) {
|
|
|
31791
32107
|
kindUniqueOn: kindUniqueOn,
|
|
31792
32108
|
questionKinds: availableQuestionKinds,
|
|
31793
32109
|
onSelect: function onSelect(kind) {
|
|
31794
|
-
cov_2e8k7gwd81().f[
|
|
31795
|
-
var nextQuestions = (cov_2e8k7gwd81().s[
|
|
31796
|
-
cov_2e8k7gwd81().s[
|
|
32110
|
+
cov_2e8k7gwd81().f[16]++;
|
|
32111
|
+
var nextQuestions = (cov_2e8k7gwd81().s[35]++, formHelpers.pushToList(questions, createFieldData(kind)));
|
|
32112
|
+
cov_2e8k7gwd81().s[36]++;
|
|
31797
32113
|
setFieldValue("questions", nextQuestions, false);
|
|
31798
32114
|
}
|
|
31799
32115
|
}))), (cov_2e8k7gwd81().b[8][0]++, showActionBlock) && (cov_2e8k7gwd81().b[8][1]++, /*#__PURE__*/React__default.createElement(ActionBlock, {
|
|
@@ -32155,7 +32471,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
|
|
|
32155
32471
|
|
|
32156
32472
|
function cov_2nbnnlcv5p() {
|
|
32157
32473
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
|
|
32158
|
-
var hash = "
|
|
32474
|
+
var hash = "3f91bb4f96e8987cc816d9501ef4ff5ac168630d";
|
|
32159
32475
|
var global = new Function("return this")();
|
|
32160
32476
|
var gcv = "__coverage__";
|
|
32161
32477
|
var coverageData = {
|
|
@@ -32167,93 +32483,93 @@ function cov_2nbnnlcv5p() {
|
|
|
32167
32483
|
column: 18
|
|
32168
32484
|
},
|
|
32169
32485
|
end: {
|
|
32170
|
-
line:
|
|
32486
|
+
line: 158,
|
|
32171
32487
|
column: 1
|
|
32172
32488
|
}
|
|
32173
32489
|
},
|
|
32174
32490
|
"1": {
|
|
32175
32491
|
start: {
|
|
32176
|
-
line:
|
|
32492
|
+
line: 38,
|
|
32177
32493
|
column: 54
|
|
32178
32494
|
},
|
|
32179
32495
|
end: {
|
|
32180
|
-
line:
|
|
32496
|
+
line: 38,
|
|
32181
32497
|
column: 69
|
|
32182
32498
|
}
|
|
32183
32499
|
},
|
|
32184
32500
|
"2": {
|
|
32185
32501
|
start: {
|
|
32186
|
-
line:
|
|
32502
|
+
line: 40,
|
|
32187
32503
|
column: 22
|
|
32188
32504
|
},
|
|
32189
32505
|
end: {
|
|
32190
|
-
line:
|
|
32506
|
+
line: 40,
|
|
32191
32507
|
column: 38
|
|
32192
32508
|
}
|
|
32193
32509
|
},
|
|
32194
32510
|
"3": {
|
|
32195
32511
|
start: {
|
|
32196
|
-
line:
|
|
32512
|
+
line: 42,
|
|
32197
32513
|
column: 43
|
|
32198
32514
|
},
|
|
32199
32515
|
end: {
|
|
32200
|
-
line:
|
|
32516
|
+
line: 47,
|
|
32201
32517
|
column: 4
|
|
32202
32518
|
}
|
|
32203
32519
|
},
|
|
32204
32520
|
"4": {
|
|
32205
32521
|
start: {
|
|
32206
|
-
line:
|
|
32522
|
+
line: 44,
|
|
32207
32523
|
column: 22
|
|
32208
32524
|
},
|
|
32209
32525
|
end: {
|
|
32210
|
-
line:
|
|
32526
|
+
line: 44,
|
|
32211
32527
|
column: 41
|
|
32212
32528
|
}
|
|
32213
32529
|
},
|
|
32214
32530
|
"5": {
|
|
32215
32531
|
start: {
|
|
32216
|
-
line:
|
|
32532
|
+
line: 46,
|
|
32217
32533
|
column: 6
|
|
32218
32534
|
},
|
|
32219
32535
|
end: {
|
|
32220
|
-
line:
|
|
32536
|
+
line: 46,
|
|
32221
32537
|
column: 28
|
|
32222
32538
|
}
|
|
32223
32539
|
},
|
|
32224
32540
|
"6": {
|
|
32225
32541
|
start: {
|
|
32226
|
-
line:
|
|
32542
|
+
line: 55,
|
|
32227
32543
|
column: 6
|
|
32228
32544
|
},
|
|
32229
32545
|
end: {
|
|
32230
|
-
line:
|
|
32546
|
+
line: 73,
|
|
32231
32547
|
column: 4
|
|
32232
32548
|
}
|
|
32233
32549
|
},
|
|
32234
32550
|
"7": {
|
|
32235
32551
|
start: {
|
|
32236
|
-
line:
|
|
32552
|
+
line: 57,
|
|
32237
32553
|
column: 23
|
|
32238
32554
|
},
|
|
32239
32555
|
end: {
|
|
32240
|
-
line:
|
|
32556
|
+
line: 57,
|
|
32241
32557
|
column: 39
|
|
32242
32558
|
}
|
|
32243
32559
|
},
|
|
32244
32560
|
"8": {
|
|
32245
32561
|
start: {
|
|
32246
|
-
line:
|
|
32247
|
-
column:
|
|
32562
|
+
line: 75,
|
|
32563
|
+
column: 2
|
|
32248
32564
|
},
|
|
32249
32565
|
end: {
|
|
32250
|
-
line:
|
|
32251
|
-
column:
|
|
32566
|
+
line: 81,
|
|
32567
|
+
column: 3
|
|
32252
32568
|
}
|
|
32253
32569
|
},
|
|
32254
32570
|
"9": {
|
|
32255
32571
|
start: {
|
|
32256
|
-
line:
|
|
32572
|
+
line: 76,
|
|
32257
32573
|
column: 4
|
|
32258
32574
|
},
|
|
32259
32575
|
end: {
|
|
@@ -32263,101 +32579,141 @@ function cov_2nbnnlcv5p() {
|
|
|
32263
32579
|
},
|
|
32264
32580
|
"10": {
|
|
32265
32581
|
start: {
|
|
32266
|
-
line:
|
|
32582
|
+
line: 83,
|
|
32583
|
+
column: 23
|
|
32584
|
+
},
|
|
32585
|
+
end: {
|
|
32586
|
+
line: 90,
|
|
32587
|
+
column: 6
|
|
32588
|
+
}
|
|
32589
|
+
},
|
|
32590
|
+
"11": {
|
|
32591
|
+
start: {
|
|
32592
|
+
line: 84,
|
|
32593
|
+
column: 4
|
|
32594
|
+
},
|
|
32595
|
+
end: {
|
|
32596
|
+
line: 90,
|
|
32597
|
+
column: 6
|
|
32598
|
+
}
|
|
32599
|
+
},
|
|
32600
|
+
"12": {
|
|
32601
|
+
start: {
|
|
32602
|
+
line: 92,
|
|
32267
32603
|
column: 24
|
|
32268
32604
|
},
|
|
32269
32605
|
end: {
|
|
32270
|
-
line:
|
|
32606
|
+
line: 104,
|
|
32271
32607
|
column: 3
|
|
32272
32608
|
}
|
|
32273
32609
|
},
|
|
32274
|
-
"
|
|
32610
|
+
"13": {
|
|
32275
32611
|
start: {
|
|
32276
|
-
line:
|
|
32612
|
+
line: 93,
|
|
32277
32613
|
column: 32
|
|
32278
32614
|
},
|
|
32279
32615
|
end: {
|
|
32280
|
-
line:
|
|
32616
|
+
line: 96,
|
|
32281
32617
|
column: 6
|
|
32282
32618
|
}
|
|
32283
32619
|
},
|
|
32284
|
-
"
|
|
32620
|
+
"14": {
|
|
32285
32621
|
start: {
|
|
32286
|
-
line:
|
|
32622
|
+
line: 98,
|
|
32287
32623
|
column: 4
|
|
32288
32624
|
},
|
|
32289
32625
|
end: {
|
|
32290
|
-
line:
|
|
32626
|
+
line: 103,
|
|
32291
32627
|
column: 5
|
|
32292
32628
|
}
|
|
32293
32629
|
},
|
|
32294
|
-
"
|
|
32630
|
+
"15": {
|
|
32295
32631
|
start: {
|
|
32296
|
-
line:
|
|
32632
|
+
line: 99,
|
|
32297
32633
|
column: 6
|
|
32298
32634
|
},
|
|
32299
32635
|
end: {
|
|
32300
|
-
line:
|
|
32636
|
+
line: 102,
|
|
32301
32637
|
column: 8
|
|
32302
32638
|
}
|
|
32303
32639
|
},
|
|
32304
|
-
"
|
|
32640
|
+
"16": {
|
|
32305
32641
|
start: {
|
|
32306
|
-
line:
|
|
32307
|
-
column:
|
|
32642
|
+
line: 107,
|
|
32643
|
+
column: 4
|
|
32308
32644
|
},
|
|
32309
32645
|
end: {
|
|
32310
|
-
line:
|
|
32311
|
-
column:
|
|
32646
|
+
line: 108,
|
|
32647
|
+
column: 61
|
|
32312
32648
|
}
|
|
32313
32649
|
},
|
|
32314
|
-
"
|
|
32650
|
+
"17": {
|
|
32315
32651
|
start: {
|
|
32316
|
-
line:
|
|
32652
|
+
line: 108,
|
|
32653
|
+
column: 17
|
|
32654
|
+
},
|
|
32655
|
+
end: {
|
|
32656
|
+
line: 108,
|
|
32657
|
+
column: 60
|
|
32658
|
+
}
|
|
32659
|
+
},
|
|
32660
|
+
"18": {
|
|
32661
|
+
start: {
|
|
32662
|
+
line: 111,
|
|
32317
32663
|
column: 4
|
|
32318
32664
|
},
|
|
32319
32665
|
end: {
|
|
32320
|
-
line:
|
|
32321
|
-
column:
|
|
32666
|
+
line: 111,
|
|
32667
|
+
column: 68
|
|
32322
32668
|
}
|
|
32323
32669
|
},
|
|
32324
|
-
"
|
|
32670
|
+
"19": {
|
|
32325
32671
|
start: {
|
|
32326
|
-
line:
|
|
32672
|
+
line: 111,
|
|
32673
|
+
column: 38
|
|
32674
|
+
},
|
|
32675
|
+
end: {
|
|
32676
|
+
line: 111,
|
|
32677
|
+
column: 67
|
|
32678
|
+
}
|
|
32679
|
+
},
|
|
32680
|
+
"20": {
|
|
32681
|
+
start: {
|
|
32682
|
+
line: 113,
|
|
32327
32683
|
column: 2
|
|
32328
32684
|
},
|
|
32329
32685
|
end: {
|
|
32330
|
-
line:
|
|
32686
|
+
line: 157,
|
|
32331
32687
|
column: 4
|
|
32332
32688
|
}
|
|
32333
32689
|
},
|
|
32334
|
-
"
|
|
32690
|
+
"21": {
|
|
32335
32691
|
start: {
|
|
32336
|
-
line:
|
|
32692
|
+
line: 126,
|
|
32337
32693
|
column: 10
|
|
32338
32694
|
},
|
|
32339
32695
|
end: {
|
|
32340
|
-
line:
|
|
32696
|
+
line: 148,
|
|
32341
32697
|
column: 12
|
|
32342
32698
|
}
|
|
32343
32699
|
},
|
|
32344
|
-
"
|
|
32700
|
+
"22": {
|
|
32345
32701
|
start: {
|
|
32346
|
-
line:
|
|
32702
|
+
line: 144,
|
|
32347
32703
|
column: 14
|
|
32348
32704
|
},
|
|
32349
32705
|
end: {
|
|
32350
|
-
line:
|
|
32706
|
+
line: 146,
|
|
32351
32707
|
column: 15
|
|
32352
32708
|
}
|
|
32353
32709
|
},
|
|
32354
|
-
"
|
|
32710
|
+
"23": {
|
|
32355
32711
|
start: {
|
|
32356
|
-
line:
|
|
32712
|
+
line: 145,
|
|
32357
32713
|
column: 16
|
|
32358
32714
|
},
|
|
32359
32715
|
end: {
|
|
32360
|
-
line:
|
|
32716
|
+
line: 145,
|
|
32361
32717
|
column: 49
|
|
32362
32718
|
}
|
|
32363
32719
|
}
|
|
@@ -32377,183 +32733,231 @@ function cov_2nbnnlcv5p() {
|
|
|
32377
32733
|
},
|
|
32378
32734
|
loc: {
|
|
32379
32735
|
start: {
|
|
32380
|
-
line:
|
|
32736
|
+
line: 37,
|
|
32381
32737
|
column: 6
|
|
32382
32738
|
},
|
|
32383
32739
|
end: {
|
|
32384
|
-
line:
|
|
32740
|
+
line: 158,
|
|
32385
32741
|
column: 1
|
|
32386
32742
|
}
|
|
32387
32743
|
},
|
|
32388
|
-
line:
|
|
32744
|
+
line: 37
|
|
32389
32745
|
},
|
|
32390
32746
|
"1": {
|
|
32391
32747
|
name: "(anonymous_1)",
|
|
32392
32748
|
decl: {
|
|
32393
32749
|
start: {
|
|
32394
|
-
line:
|
|
32750
|
+
line: 44,
|
|
32395
32751
|
column: 13
|
|
32396
32752
|
},
|
|
32397
32753
|
end: {
|
|
32398
|
-
line:
|
|
32754
|
+
line: 44,
|
|
32399
32755
|
column: 14
|
|
32400
32756
|
}
|
|
32401
32757
|
},
|
|
32402
32758
|
loc: {
|
|
32403
32759
|
start: {
|
|
32404
|
-
line:
|
|
32760
|
+
line: 44,
|
|
32405
32761
|
column: 22
|
|
32406
32762
|
},
|
|
32407
32763
|
end: {
|
|
32408
|
-
line:
|
|
32764
|
+
line: 44,
|
|
32409
32765
|
column: 41
|
|
32410
32766
|
}
|
|
32411
32767
|
},
|
|
32412
|
-
line:
|
|
32768
|
+
line: 44
|
|
32413
32769
|
},
|
|
32414
32770
|
"2": {
|
|
32415
32771
|
name: "(anonymous_2)",
|
|
32416
32772
|
decl: {
|
|
32417
32773
|
start: {
|
|
32418
|
-
line:
|
|
32774
|
+
line: 45,
|
|
32419
32775
|
column: 15
|
|
32420
32776
|
},
|
|
32421
32777
|
end: {
|
|
32422
|
-
line:
|
|
32778
|
+
line: 45,
|
|
32423
32779
|
column: 16
|
|
32424
32780
|
}
|
|
32425
32781
|
},
|
|
32426
32782
|
loc: {
|
|
32427
32783
|
start: {
|
|
32428
|
-
line:
|
|
32784
|
+
line: 46,
|
|
32429
32785
|
column: 6
|
|
32430
32786
|
},
|
|
32431
32787
|
end: {
|
|
32432
|
-
line:
|
|
32788
|
+
line: 46,
|
|
32433
32789
|
column: 28
|
|
32434
32790
|
}
|
|
32435
32791
|
},
|
|
32436
|
-
line:
|
|
32792
|
+
line: 46
|
|
32437
32793
|
},
|
|
32438
32794
|
"3": {
|
|
32439
32795
|
name: "(anonymous_3)",
|
|
32440
32796
|
decl: {
|
|
32441
32797
|
start: {
|
|
32442
|
-
line:
|
|
32798
|
+
line: 57,
|
|
32443
32799
|
column: 15
|
|
32444
32800
|
},
|
|
32445
32801
|
end: {
|
|
32446
|
-
line:
|
|
32802
|
+
line: 57,
|
|
32447
32803
|
column: 16
|
|
32448
32804
|
}
|
|
32449
32805
|
},
|
|
32450
32806
|
loc: {
|
|
32451
32807
|
start: {
|
|
32452
|
-
line:
|
|
32808
|
+
line: 57,
|
|
32453
32809
|
column: 23
|
|
32454
32810
|
},
|
|
32455
32811
|
end: {
|
|
32456
|
-
line:
|
|
32812
|
+
line: 57,
|
|
32457
32813
|
column: 39
|
|
32458
32814
|
}
|
|
32459
32815
|
},
|
|
32460
|
-
line:
|
|
32816
|
+
line: 57
|
|
32461
32817
|
},
|
|
32462
32818
|
"4": {
|
|
32463
32819
|
name: "(anonymous_4)",
|
|
32464
32820
|
decl: {
|
|
32465
32821
|
start: {
|
|
32466
|
-
line:
|
|
32822
|
+
line: 83,
|
|
32467
32823
|
column: 23
|
|
32468
32824
|
},
|
|
32469
32825
|
end: {
|
|
32470
|
-
line:
|
|
32826
|
+
line: 83,
|
|
32471
32827
|
column: 24
|
|
32472
32828
|
}
|
|
32473
32829
|
},
|
|
32474
32830
|
loc: {
|
|
32475
32831
|
start: {
|
|
32476
|
-
line:
|
|
32832
|
+
line: 84,
|
|
32477
32833
|
column: 4
|
|
32478
32834
|
},
|
|
32479
32835
|
end: {
|
|
32480
|
-
line:
|
|
32836
|
+
line: 90,
|
|
32481
32837
|
column: 6
|
|
32482
32838
|
}
|
|
32483
32839
|
},
|
|
32484
|
-
line:
|
|
32840
|
+
line: 84
|
|
32485
32841
|
},
|
|
32486
32842
|
"5": {
|
|
32487
32843
|
name: "(anonymous_5)",
|
|
32488
32844
|
decl: {
|
|
32489
32845
|
start: {
|
|
32490
|
-
line:
|
|
32846
|
+
line: 92,
|
|
32491
32847
|
column: 24
|
|
32492
32848
|
},
|
|
32493
32849
|
end: {
|
|
32494
|
-
line:
|
|
32850
|
+
line: 92,
|
|
32495
32851
|
column: 25
|
|
32496
32852
|
}
|
|
32497
32853
|
},
|
|
32498
32854
|
loc: {
|
|
32499
32855
|
start: {
|
|
32500
|
-
line:
|
|
32856
|
+
line: 92,
|
|
32501
32857
|
column: 37
|
|
32502
32858
|
},
|
|
32503
32859
|
end: {
|
|
32504
|
-
line:
|
|
32860
|
+
line: 104,
|
|
32505
32861
|
column: 3
|
|
32506
32862
|
}
|
|
32507
32863
|
},
|
|
32508
|
-
line:
|
|
32864
|
+
line: 92
|
|
32509
32865
|
},
|
|
32510
32866
|
"6": {
|
|
32511
32867
|
name: "(anonymous_6)",
|
|
32512
32868
|
decl: {
|
|
32513
32869
|
start: {
|
|
32514
|
-
line:
|
|
32870
|
+
line: 108,
|
|
32871
|
+
column: 5
|
|
32872
|
+
},
|
|
32873
|
+
end: {
|
|
32874
|
+
line: 108,
|
|
32875
|
+
column: 6
|
|
32876
|
+
}
|
|
32877
|
+
},
|
|
32878
|
+
loc: {
|
|
32879
|
+
start: {
|
|
32880
|
+
line: 108,
|
|
32881
|
+
column: 17
|
|
32882
|
+
},
|
|
32883
|
+
end: {
|
|
32884
|
+
line: 108,
|
|
32885
|
+
column: 60
|
|
32886
|
+
}
|
|
32887
|
+
},
|
|
32888
|
+
line: 108
|
|
32889
|
+
},
|
|
32890
|
+
"7": {
|
|
32891
|
+
name: "(anonymous_7)",
|
|
32892
|
+
decl: {
|
|
32893
|
+
start: {
|
|
32894
|
+
line: 111,
|
|
32895
|
+
column: 24
|
|
32896
|
+
},
|
|
32897
|
+
end: {
|
|
32898
|
+
line: 111,
|
|
32899
|
+
column: 25
|
|
32900
|
+
}
|
|
32901
|
+
},
|
|
32902
|
+
loc: {
|
|
32903
|
+
start: {
|
|
32904
|
+
line: 111,
|
|
32905
|
+
column: 38
|
|
32906
|
+
},
|
|
32907
|
+
end: {
|
|
32908
|
+
line: 111,
|
|
32909
|
+
column: 67
|
|
32910
|
+
}
|
|
32911
|
+
},
|
|
32912
|
+
line: 111
|
|
32913
|
+
},
|
|
32914
|
+
"8": {
|
|
32915
|
+
name: "(anonymous_8)",
|
|
32916
|
+
decl: {
|
|
32917
|
+
start: {
|
|
32918
|
+
line: 125,
|
|
32515
32919
|
column: 9
|
|
32516
32920
|
},
|
|
32517
32921
|
end: {
|
|
32518
|
-
line:
|
|
32922
|
+
line: 125,
|
|
32519
32923
|
column: 10
|
|
32520
32924
|
}
|
|
32521
32925
|
},
|
|
32522
32926
|
loc: {
|
|
32523
32927
|
start: {
|
|
32524
|
-
line:
|
|
32928
|
+
line: 126,
|
|
32525
32929
|
column: 10
|
|
32526
32930
|
},
|
|
32527
32931
|
end: {
|
|
32528
|
-
line:
|
|
32932
|
+
line: 148,
|
|
32529
32933
|
column: 12
|
|
32530
32934
|
}
|
|
32531
32935
|
},
|
|
32532
|
-
line:
|
|
32936
|
+
line: 126
|
|
32533
32937
|
},
|
|
32534
|
-
"
|
|
32535
|
-
name: "(
|
|
32938
|
+
"9": {
|
|
32939
|
+
name: "(anonymous_9)",
|
|
32536
32940
|
decl: {
|
|
32537
32941
|
start: {
|
|
32538
|
-
line:
|
|
32942
|
+
line: 143,
|
|
32539
32943
|
column: 22
|
|
32540
32944
|
},
|
|
32541
32945
|
end: {
|
|
32542
|
-
line:
|
|
32946
|
+
line: 143,
|
|
32543
32947
|
column: 23
|
|
32544
32948
|
}
|
|
32545
32949
|
},
|
|
32546
32950
|
loc: {
|
|
32547
32951
|
start: {
|
|
32548
|
-
line:
|
|
32952
|
+
line: 143,
|
|
32549
32953
|
column: 31
|
|
32550
32954
|
},
|
|
32551
32955
|
end: {
|
|
32552
|
-
line:
|
|
32956
|
+
line: 147,
|
|
32553
32957
|
column: 13
|
|
32554
32958
|
}
|
|
32555
32959
|
},
|
|
32556
|
-
line:
|
|
32960
|
+
line: 143
|
|
32557
32961
|
}
|
|
32558
32962
|
},
|
|
32559
32963
|
branchMap: {
|
|
@@ -32728,119 +33132,119 @@ function cov_2nbnnlcv5p() {
|
|
|
32728
33132
|
"7": {
|
|
32729
33133
|
loc: {
|
|
32730
33134
|
start: {
|
|
32731
|
-
line:
|
|
33135
|
+
line: 35,
|
|
32732
33136
|
column: 2
|
|
32733
33137
|
},
|
|
32734
33138
|
end: {
|
|
32735
|
-
line:
|
|
33139
|
+
line: 35,
|
|
32736
33140
|
column: 20
|
|
32737
33141
|
}
|
|
32738
33142
|
},
|
|
32739
33143
|
type: "default-arg",
|
|
32740
33144
|
locations: [{
|
|
32741
33145
|
start: {
|
|
32742
|
-
line:
|
|
33146
|
+
line: 35,
|
|
32743
33147
|
column: 15
|
|
32744
33148
|
},
|
|
32745
33149
|
end: {
|
|
32746
|
-
line:
|
|
33150
|
+
line: 35,
|
|
32747
33151
|
column: 20
|
|
32748
33152
|
}
|
|
32749
33153
|
}],
|
|
32750
|
-
line:
|
|
33154
|
+
line: 35
|
|
32751
33155
|
},
|
|
32752
33156
|
"8": {
|
|
32753
33157
|
loc: {
|
|
32754
33158
|
start: {
|
|
32755
|
-
line:
|
|
33159
|
+
line: 36,
|
|
32756
33160
|
column: 2
|
|
32757
33161
|
},
|
|
32758
33162
|
end: {
|
|
32759
|
-
line:
|
|
33163
|
+
line: 36,
|
|
32760
33164
|
column: 25
|
|
32761
33165
|
}
|
|
32762
33166
|
},
|
|
32763
33167
|
type: "default-arg",
|
|
32764
33168
|
locations: [{
|
|
32765
33169
|
start: {
|
|
32766
|
-
line:
|
|
33170
|
+
line: 36,
|
|
32767
33171
|
column: 17
|
|
32768
33172
|
},
|
|
32769
33173
|
end: {
|
|
32770
|
-
line:
|
|
33174
|
+
line: 36,
|
|
32771
33175
|
column: 25
|
|
32772
33176
|
}
|
|
32773
33177
|
}],
|
|
32774
|
-
line:
|
|
33178
|
+
line: 36
|
|
32775
33179
|
},
|
|
32776
33180
|
"9": {
|
|
32777
33181
|
loc: {
|
|
32778
33182
|
start: {
|
|
32779
|
-
line:
|
|
33183
|
+
line: 45,
|
|
32780
33184
|
column: 18
|
|
32781
33185
|
},
|
|
32782
33186
|
end: {
|
|
32783
|
-
line:
|
|
33187
|
+
line: 45,
|
|
32784
33188
|
column: 70
|
|
32785
33189
|
}
|
|
32786
33190
|
},
|
|
32787
33191
|
type: "default-arg",
|
|
32788
33192
|
locations: [{
|
|
32789
33193
|
start: {
|
|
32790
|
-
line:
|
|
33194
|
+
line: 45,
|
|
32791
33195
|
column: 27
|
|
32792
33196
|
},
|
|
32793
33197
|
end: {
|
|
32794
|
-
line:
|
|
33198
|
+
line: 45,
|
|
32795
33199
|
column: 70
|
|
32796
33200
|
}
|
|
32797
33201
|
}],
|
|
32798
|
-
line:
|
|
33202
|
+
line: 45
|
|
32799
33203
|
},
|
|
32800
33204
|
"10": {
|
|
32801
33205
|
loc: {
|
|
32802
33206
|
start: {
|
|
32803
|
-
line:
|
|
33207
|
+
line: 50,
|
|
32804
33208
|
column: 10
|
|
32805
33209
|
},
|
|
32806
33210
|
end: {
|
|
32807
|
-
line:
|
|
33211
|
+
line: 53,
|
|
32808
33212
|
column: 5
|
|
32809
33213
|
}
|
|
32810
33214
|
},
|
|
32811
33215
|
type: "default-arg",
|
|
32812
33216
|
locations: [{
|
|
32813
33217
|
start: {
|
|
32814
|
-
line:
|
|
33218
|
+
line: 50,
|
|
32815
33219
|
column: 46
|
|
32816
33220
|
},
|
|
32817
33221
|
end: {
|
|
32818
|
-
line:
|
|
33222
|
+
line: 53,
|
|
32819
33223
|
column: 5
|
|
32820
33224
|
}
|
|
32821
33225
|
}],
|
|
32822
|
-
line:
|
|
33226
|
+
line: 50
|
|
32823
33227
|
},
|
|
32824
33228
|
"11": {
|
|
32825
33229
|
loc: {
|
|
32826
33230
|
start: {
|
|
32827
|
-
line:
|
|
32828
|
-
column:
|
|
33231
|
+
line: 75,
|
|
33232
|
+
column: 2
|
|
32829
33233
|
},
|
|
32830
33234
|
end: {
|
|
32831
|
-
line:
|
|
32832
|
-
column:
|
|
33235
|
+
line: 81,
|
|
33236
|
+
column: 3
|
|
32833
33237
|
}
|
|
32834
33238
|
},
|
|
32835
33239
|
type: "if",
|
|
32836
33240
|
locations: [{
|
|
32837
33241
|
start: {
|
|
32838
|
-
line:
|
|
32839
|
-
column:
|
|
33242
|
+
line: 75,
|
|
33243
|
+
column: 2
|
|
32840
33244
|
},
|
|
32841
33245
|
end: {
|
|
32842
|
-
line:
|
|
32843
|
-
column:
|
|
33246
|
+
line: 81,
|
|
33247
|
+
column: 3
|
|
32844
33248
|
}
|
|
32845
33249
|
}, {
|
|
32846
33250
|
start: {
|
|
@@ -32852,28 +33256,70 @@ function cov_2nbnnlcv5p() {
|
|
|
32852
33256
|
column: undefined
|
|
32853
33257
|
}
|
|
32854
33258
|
}],
|
|
32855
|
-
line:
|
|
33259
|
+
line: 75
|
|
32856
33260
|
},
|
|
32857
33261
|
"12": {
|
|
32858
33262
|
loc: {
|
|
32859
33263
|
start: {
|
|
32860
|
-
line:
|
|
32861
|
-
column:
|
|
33264
|
+
line: 75,
|
|
33265
|
+
column: 6
|
|
32862
33266
|
},
|
|
32863
33267
|
end: {
|
|
32864
|
-
line:
|
|
32865
|
-
column:
|
|
33268
|
+
line: 75,
|
|
33269
|
+
column: 53
|
|
33270
|
+
}
|
|
33271
|
+
},
|
|
33272
|
+
type: "binary-expr",
|
|
33273
|
+
locations: [{
|
|
33274
|
+
start: {
|
|
33275
|
+
line: 75,
|
|
33276
|
+
column: 6
|
|
33277
|
+
},
|
|
33278
|
+
end: {
|
|
33279
|
+
line: 75,
|
|
33280
|
+
column: 15
|
|
33281
|
+
}
|
|
33282
|
+
}, {
|
|
33283
|
+
start: {
|
|
33284
|
+
line: 75,
|
|
33285
|
+
column: 20
|
|
33286
|
+
},
|
|
33287
|
+
end: {
|
|
33288
|
+
line: 75,
|
|
33289
|
+
column: 30
|
|
33290
|
+
}
|
|
33291
|
+
}, {
|
|
33292
|
+
start: {
|
|
33293
|
+
line: 75,
|
|
33294
|
+
column: 34
|
|
33295
|
+
},
|
|
33296
|
+
end: {
|
|
33297
|
+
line: 75,
|
|
33298
|
+
column: 52
|
|
33299
|
+
}
|
|
33300
|
+
}],
|
|
33301
|
+
line: 75
|
|
33302
|
+
},
|
|
33303
|
+
"13": {
|
|
33304
|
+
loc: {
|
|
33305
|
+
start: {
|
|
33306
|
+
line: 98,
|
|
33307
|
+
column: 4
|
|
33308
|
+
},
|
|
33309
|
+
end: {
|
|
33310
|
+
line: 103,
|
|
33311
|
+
column: 5
|
|
32866
33312
|
}
|
|
32867
33313
|
},
|
|
32868
33314
|
type: "if",
|
|
32869
33315
|
locations: [{
|
|
32870
33316
|
start: {
|
|
32871
|
-
line:
|
|
32872
|
-
column:
|
|
33317
|
+
line: 98,
|
|
33318
|
+
column: 4
|
|
32873
33319
|
},
|
|
32874
33320
|
end: {
|
|
32875
|
-
line:
|
|
32876
|
-
column:
|
|
33321
|
+
line: 103,
|
|
33322
|
+
column: 5
|
|
32877
33323
|
}
|
|
32878
33324
|
}, {
|
|
32879
33325
|
start: {
|
|
@@ -32885,102 +33331,126 @@ function cov_2nbnnlcv5p() {
|
|
|
32885
33331
|
column: undefined
|
|
32886
33332
|
}
|
|
32887
33333
|
}],
|
|
32888
|
-
line:
|
|
33334
|
+
line: 98
|
|
32889
33335
|
},
|
|
32890
|
-
"
|
|
33336
|
+
"14": {
|
|
32891
33337
|
loc: {
|
|
32892
33338
|
start: {
|
|
32893
|
-
line:
|
|
32894
|
-
column:
|
|
33339
|
+
line: 107,
|
|
33340
|
+
column: 4
|
|
32895
33341
|
},
|
|
32896
33342
|
end: {
|
|
32897
|
-
line:
|
|
32898
|
-
column:
|
|
33343
|
+
line: 108,
|
|
33344
|
+
column: 61
|
|
32899
33345
|
}
|
|
32900
33346
|
},
|
|
32901
33347
|
type: "binary-expr",
|
|
32902
33348
|
locations: [{
|
|
32903
33349
|
start: {
|
|
32904
|
-
line:
|
|
32905
|
-
column:
|
|
33350
|
+
line: 107,
|
|
33351
|
+
column: 4
|
|
32906
33352
|
},
|
|
32907
33353
|
end: {
|
|
32908
|
-
line:
|
|
32909
|
-
column:
|
|
33354
|
+
line: 107,
|
|
33355
|
+
column: 23
|
|
32910
33356
|
}
|
|
32911
33357
|
}, {
|
|
32912
33358
|
start: {
|
|
32913
|
-
line:
|
|
32914
|
-
column:
|
|
33359
|
+
line: 108,
|
|
33360
|
+
column: 5
|
|
32915
33361
|
},
|
|
32916
33362
|
end: {
|
|
32917
|
-
line:
|
|
32918
|
-
column:
|
|
33363
|
+
line: 108,
|
|
33364
|
+
column: 60
|
|
33365
|
+
}
|
|
33366
|
+
}],
|
|
33367
|
+
line: 107
|
|
33368
|
+
},
|
|
33369
|
+
"15": {
|
|
33370
|
+
loc: {
|
|
33371
|
+
start: {
|
|
33372
|
+
line: 111,
|
|
33373
|
+
column: 4
|
|
33374
|
+
},
|
|
33375
|
+
end: {
|
|
33376
|
+
line: 111,
|
|
33377
|
+
column: 68
|
|
33378
|
+
}
|
|
33379
|
+
},
|
|
33380
|
+
type: "binary-expr",
|
|
33381
|
+
locations: [{
|
|
33382
|
+
start: {
|
|
33383
|
+
line: 111,
|
|
33384
|
+
column: 4
|
|
33385
|
+
},
|
|
33386
|
+
end: {
|
|
33387
|
+
line: 111,
|
|
33388
|
+
column: 19
|
|
32919
33389
|
}
|
|
32920
33390
|
}, {
|
|
32921
33391
|
start: {
|
|
32922
|
-
line:
|
|
32923
|
-
column:
|
|
33392
|
+
line: 111,
|
|
33393
|
+
column: 24
|
|
32924
33394
|
},
|
|
32925
33395
|
end: {
|
|
32926
|
-
line:
|
|
32927
|
-
column:
|
|
33396
|
+
line: 111,
|
|
33397
|
+
column: 67
|
|
32928
33398
|
}
|
|
32929
33399
|
}],
|
|
32930
|
-
line:
|
|
33400
|
+
line: 111
|
|
32931
33401
|
},
|
|
32932
|
-
"
|
|
33402
|
+
"16": {
|
|
32933
33403
|
loc: {
|
|
32934
33404
|
start: {
|
|
32935
|
-
line:
|
|
33405
|
+
line: 140,
|
|
32936
33406
|
column: 14
|
|
32937
33407
|
},
|
|
32938
33408
|
end: {
|
|
32939
|
-
line:
|
|
33409
|
+
line: 140,
|
|
32940
33410
|
column: 71
|
|
32941
33411
|
}
|
|
32942
33412
|
},
|
|
32943
33413
|
type: "cond-expr",
|
|
32944
33414
|
locations: [{
|
|
32945
33415
|
start: {
|
|
32946
|
-
line:
|
|
33416
|
+
line: 140,
|
|
32947
33417
|
column: 41
|
|
32948
33418
|
},
|
|
32949
33419
|
end: {
|
|
32950
|
-
line:
|
|
33420
|
+
line: 140,
|
|
32951
33421
|
column: 54
|
|
32952
33422
|
}
|
|
32953
33423
|
}, {
|
|
32954
33424
|
start: {
|
|
32955
|
-
line:
|
|
33425
|
+
line: 140,
|
|
32956
33426
|
column: 57
|
|
32957
33427
|
},
|
|
32958
33428
|
end: {
|
|
32959
|
-
line:
|
|
33429
|
+
line: 140,
|
|
32960
33430
|
column: 71
|
|
32961
33431
|
}
|
|
32962
33432
|
}],
|
|
32963
|
-
line:
|
|
33433
|
+
line: 140
|
|
32964
33434
|
},
|
|
32965
|
-
"
|
|
33435
|
+
"17": {
|
|
32966
33436
|
loc: {
|
|
32967
33437
|
start: {
|
|
32968
|
-
line:
|
|
33438
|
+
line: 144,
|
|
32969
33439
|
column: 14
|
|
32970
33440
|
},
|
|
32971
33441
|
end: {
|
|
32972
|
-
line:
|
|
33442
|
+
line: 146,
|
|
32973
33443
|
column: 15
|
|
32974
33444
|
}
|
|
32975
33445
|
},
|
|
32976
33446
|
type: "if",
|
|
32977
33447
|
locations: [{
|
|
32978
33448
|
start: {
|
|
32979
|
-
line:
|
|
33449
|
+
line: 144,
|
|
32980
33450
|
column: 14
|
|
32981
33451
|
},
|
|
32982
33452
|
end: {
|
|
32983
|
-
line:
|
|
33453
|
+
line: 146,
|
|
32984
33454
|
column: 15
|
|
32985
33455
|
}
|
|
32986
33456
|
}, {
|
|
@@ -32993,40 +33463,40 @@ function cov_2nbnnlcv5p() {
|
|
|
32993
33463
|
column: undefined
|
|
32994
33464
|
}
|
|
32995
33465
|
}],
|
|
32996
|
-
line:
|
|
33466
|
+
line: 144
|
|
32997
33467
|
},
|
|
32998
|
-
"
|
|
33468
|
+
"18": {
|
|
32999
33469
|
loc: {
|
|
33000
33470
|
start: {
|
|
33001
|
-
line:
|
|
33471
|
+
line: 151,
|
|
33002
33472
|
column: 7
|
|
33003
33473
|
},
|
|
33004
33474
|
end: {
|
|
33005
|
-
line:
|
|
33475
|
+
line: 155,
|
|
33006
33476
|
column: 7
|
|
33007
33477
|
}
|
|
33008
33478
|
},
|
|
33009
33479
|
type: "binary-expr",
|
|
33010
33480
|
locations: [{
|
|
33011
33481
|
start: {
|
|
33012
|
-
line:
|
|
33482
|
+
line: 151,
|
|
33013
33483
|
column: 7
|
|
33014
33484
|
},
|
|
33015
33485
|
end: {
|
|
33016
|
-
line:
|
|
33486
|
+
line: 151,
|
|
33017
33487
|
column: 25
|
|
33018
33488
|
}
|
|
33019
33489
|
}, {
|
|
33020
33490
|
start: {
|
|
33021
|
-
line:
|
|
33491
|
+
line: 152,
|
|
33022
33492
|
column: 8
|
|
33023
33493
|
},
|
|
33024
33494
|
end: {
|
|
33025
|
-
line:
|
|
33495
|
+
line: 154,
|
|
33026
33496
|
column: 14
|
|
33027
33497
|
}
|
|
33028
33498
|
}],
|
|
33029
|
-
line:
|
|
33499
|
+
line: 151
|
|
33030
33500
|
}
|
|
33031
33501
|
},
|
|
33032
33502
|
s: {
|
|
@@ -33049,7 +33519,11 @@ function cov_2nbnnlcv5p() {
|
|
|
33049
33519
|
"16": 0,
|
|
33050
33520
|
"17": 0,
|
|
33051
33521
|
"18": 0,
|
|
33052
|
-
"19": 0
|
|
33522
|
+
"19": 0,
|
|
33523
|
+
"20": 0,
|
|
33524
|
+
"21": 0,
|
|
33525
|
+
"22": 0,
|
|
33526
|
+
"23": 0
|
|
33053
33527
|
},
|
|
33054
33528
|
f: {
|
|
33055
33529
|
"0": 0,
|
|
@@ -33059,7 +33533,9 @@ function cov_2nbnnlcv5p() {
|
|
|
33059
33533
|
"4": 0,
|
|
33060
33534
|
"5": 0,
|
|
33061
33535
|
"6": 0,
|
|
33062
|
-
"7": 0
|
|
33536
|
+
"7": 0,
|
|
33537
|
+
"8": 0,
|
|
33538
|
+
"9": 0
|
|
33063
33539
|
},
|
|
33064
33540
|
b: {
|
|
33065
33541
|
"0": [0],
|
|
@@ -33074,14 +33550,16 @@ function cov_2nbnnlcv5p() {
|
|
|
33074
33550
|
"9": [0],
|
|
33075
33551
|
"10": [0],
|
|
33076
33552
|
"11": [0, 0],
|
|
33077
|
-
"12": [0, 0],
|
|
33078
|
-
"13": [0, 0
|
|
33553
|
+
"12": [0, 0, 0],
|
|
33554
|
+
"13": [0, 0],
|
|
33079
33555
|
"14": [0, 0],
|
|
33080
33556
|
"15": [0, 0],
|
|
33081
|
-
"16": [0, 0]
|
|
33557
|
+
"16": [0, 0],
|
|
33558
|
+
"17": [0, 0],
|
|
33559
|
+
"18": [0, 0]
|
|
33082
33560
|
},
|
|
33083
33561
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
33084
|
-
hash: "
|
|
33562
|
+
hash: "3f91bb4f96e8987cc816d9501ef4ff5ac168630d"
|
|
33085
33563
|
};
|
|
33086
33564
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
33087
33565
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -33101,6 +33579,7 @@ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
33101
33579
|
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$a(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33102
33580
|
cov_2nbnnlcv5p().s[0]++;
|
|
33103
33581
|
var BuildForm = function BuildForm(_ref) {
|
|
33582
|
+
var _ref8, _ref9;
|
|
33104
33583
|
var id = _ref.id,
|
|
33105
33584
|
onUpdate = _ref.onUpdate,
|
|
33106
33585
|
buildRequestArgs = _ref.buildRequestArgs,
|
|
@@ -33121,6 +33600,8 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
33121
33600
|
isKindAlreadyActive = _ref$isKindAlreadyAct === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, isQuestionKindAlreadyActive) : _ref$isKindAlreadyAct,
|
|
33122
33601
|
_ref$getActiveKindDet = _ref.getActiveKindDetails,
|
|
33123
33602
|
getActiveKindDetails = _ref$getActiveKindDet === void 0 ? (cov_2nbnnlcv5p().b[6][0]++, getActiveQuestionKindDetails) : _ref$getActiveKindDet,
|
|
33603
|
+
isQuestionDeletable = _ref.isQuestionDeletable,
|
|
33604
|
+
isFieldRequired = _ref.isFieldRequired,
|
|
33124
33605
|
_ref$showLoader = _ref.showLoader,
|
|
33125
33606
|
showLoader = _ref$showLoader === void 0 ? (cov_2nbnnlcv5p().b[7][0]++, false) : _ref$showLoader,
|
|
33126
33607
|
_ref$kindUniqueOn = _ref.kindUniqueOn,
|
|
@@ -33176,9 +33657,19 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
33176
33657
|
isQuestionsLoading = _ref6$data2.isQuestionsLoading,
|
|
33177
33658
|
isLoading = _ref6.isLoading;
|
|
33178
33659
|
cov_2nbnnlcv5p().s[8]++;
|
|
33660
|
+
if ((cov_2nbnnlcv5p().b[12][0]++, isLoading) || (cov_2nbnnlcv5p().b[12][1]++, showLoader) && (cov_2nbnnlcv5p().b[12][2]++, isQuestionsLoading)) {
|
|
33661
|
+
cov_2nbnnlcv5p().b[11][0]++;
|
|
33662
|
+
cov_2nbnnlcv5p().s[9]++;
|
|
33663
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
33664
|
+
className: "flex h-full w-full items-center justify-center py-6"
|
|
33665
|
+
}, /*#__PURE__*/React__default.createElement(PageLoader, null));
|
|
33666
|
+
} else {
|
|
33667
|
+
cov_2nbnnlcv5p().b[11][1]++;
|
|
33668
|
+
}
|
|
33669
|
+
cov_2nbnnlcv5p().s[10]++;
|
|
33179
33670
|
var handleSubmit = function handleSubmit(payload) {
|
|
33180
33671
|
cov_2nbnnlcv5p().f[4]++;
|
|
33181
|
-
cov_2nbnnlcv5p().s[
|
|
33672
|
+
cov_2nbnnlcv5p().s[11]++;
|
|
33182
33673
|
return updateQuestions({
|
|
33183
33674
|
id: id,
|
|
33184
33675
|
values: _objectSpread$8({
|
|
@@ -33186,31 +33677,32 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
33186
33677
|
}, buildRequestArgs)
|
|
33187
33678
|
});
|
|
33188
33679
|
};
|
|
33189
|
-
cov_2nbnnlcv5p().s[
|
|
33680
|
+
cov_2nbnnlcv5p().s[12]++;
|
|
33190
33681
|
var onValueChange = function onValueChange(questions) {
|
|
33191
33682
|
cov_2nbnnlcv5p().f[5]++;
|
|
33192
|
-
var _ref7 = (cov_2nbnnlcv5p().s[
|
|
33683
|
+
var _ref7 = (cov_2nbnnlcv5p().s[13]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
|
|
33193
33684
|
dataUpdateCount = _ref7.dataUpdateCount;
|
|
33194
|
-
cov_2nbnnlcv5p().s[
|
|
33685
|
+
cov_2nbnnlcv5p().s[14]++;
|
|
33195
33686
|
if (dataUpdateCount > 0) {
|
|
33196
|
-
cov_2nbnnlcv5p().b[
|
|
33197
|
-
cov_2nbnnlcv5p().s[
|
|
33687
|
+
cov_2nbnnlcv5p().b[13][0]++;
|
|
33688
|
+
cov_2nbnnlcv5p().s[15]++;
|
|
33198
33689
|
queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], assoc("questions", questions));
|
|
33199
33690
|
} else {
|
|
33200
|
-
cov_2nbnnlcv5p().b[
|
|
33691
|
+
cov_2nbnnlcv5p().b[13][1]++;
|
|
33201
33692
|
}
|
|
33202
33693
|
};
|
|
33203
|
-
cov_2nbnnlcv5p().s[14]
|
|
33204
|
-
|
|
33205
|
-
cov_2nbnnlcv5p().
|
|
33206
|
-
|
|
33207
|
-
|
|
33208
|
-
|
|
33209
|
-
|
|
33210
|
-
|
|
33211
|
-
cov_2nbnnlcv5p().
|
|
33212
|
-
|
|
33213
|
-
|
|
33694
|
+
var isDeletable = (cov_2nbnnlcv5p().s[16]++, (_ref8 = (cov_2nbnnlcv5p().b[14][0]++, isQuestionDeletable)) !== null && _ref8 !== void 0 ? _ref8 : (cov_2nbnnlcv5p().b[14][1]++, function (question) {
|
|
33695
|
+
cov_2nbnnlcv5p().f[6]++;
|
|
33696
|
+
cov_2nbnnlcv5p().s[17]++;
|
|
33697
|
+
return !nonRemovableFields.includes(question.kind);
|
|
33698
|
+
}));
|
|
33699
|
+
var isRequiredField = (cov_2nbnnlcv5p().s[18]++, (_ref9 = (cov_2nbnnlcv5p().b[15][0]++, isFieldRequired)) !== null && _ref9 !== void 0 ? _ref9 : (cov_2nbnnlcv5p().b[15][1]++, function (_ref10) {
|
|
33700
|
+
var kind = _ref10.kind;
|
|
33701
|
+
cov_2nbnnlcv5p().f[7]++;
|
|
33702
|
+
cov_2nbnnlcv5p().s[19]++;
|
|
33703
|
+
return requiredFields.includes(kind);
|
|
33704
|
+
}));
|
|
33705
|
+
cov_2nbnnlcv5p().s[20]++;
|
|
33214
33706
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33215
33707
|
className: "relative"
|
|
33216
33708
|
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
@@ -33222,38 +33714,38 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
33222
33714
|
questions: questions
|
|
33223
33715
|
},
|
|
33224
33716
|
onSubmit: handleSubmit
|
|
33225
|
-
}, function (
|
|
33226
|
-
var errors =
|
|
33227
|
-
setFieldError =
|
|
33228
|
-
cov_2nbnnlcv5p().f[
|
|
33229
|
-
cov_2nbnnlcv5p().s[
|
|
33717
|
+
}, function (_ref11) {
|
|
33718
|
+
var errors = _ref11.errors,
|
|
33719
|
+
setFieldError = _ref11.setFieldError;
|
|
33720
|
+
cov_2nbnnlcv5p().f[8]++;
|
|
33721
|
+
cov_2nbnnlcv5p().s[21]++;
|
|
33230
33722
|
return /*#__PURE__*/React__default.createElement(Form, _extends$9({}, formDomProps, {
|
|
33231
33723
|
cancelButtonProps: cancelButtonProps,
|
|
33232
33724
|
formId: id,
|
|
33233
33725
|
getActiveKindDetails: getActiveKindDetails,
|
|
33726
|
+
isDeletable: isDeletable,
|
|
33234
33727
|
isKindAlreadyActive: isKindAlreadyActive,
|
|
33728
|
+
isRequiredField: isRequiredField,
|
|
33235
33729
|
kindUniqueOn: kindUniqueOn,
|
|
33236
|
-
nonRemovableFields: nonRemovableFields,
|
|
33237
|
-
requiredFields: requiredFields,
|
|
33238
33730
|
setShouldValidate: setShouldValidateForm,
|
|
33239
33731
|
showActionBlock: showActionBlock,
|
|
33240
33732
|
showAddQuestionDivider: showAddQuestionDivider,
|
|
33241
33733
|
submitButtonProps: submitButtonProps,
|
|
33242
|
-
questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[
|
|
33734
|
+
questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[16][0]++, questionKinds) : (cov_2nbnnlcv5p().b[16][1]++, QUESTION_KINDS),
|
|
33243
33735
|
onValueChange: onValueChange,
|
|
33244
33736
|
onChange: function onChange(event) {
|
|
33245
|
-
cov_2nbnnlcv5p().f[
|
|
33246
|
-
cov_2nbnnlcv5p().s[
|
|
33737
|
+
cov_2nbnnlcv5p().f[9]++;
|
|
33738
|
+
cov_2nbnnlcv5p().s[22]++;
|
|
33247
33739
|
if (!isEmpty(errors)) {
|
|
33248
|
-
cov_2nbnnlcv5p().b[
|
|
33249
|
-
cov_2nbnnlcv5p().s[
|
|
33740
|
+
cov_2nbnnlcv5p().b[17][0]++;
|
|
33741
|
+
cov_2nbnnlcv5p().s[23]++;
|
|
33250
33742
|
setFieldError(event.target.name);
|
|
33251
33743
|
} else {
|
|
33252
|
-
cov_2nbnnlcv5p().b[
|
|
33744
|
+
cov_2nbnnlcv5p().b[17][1]++;
|
|
33253
33745
|
}
|
|
33254
33746
|
}
|
|
33255
33747
|
}));
|
|
33256
|
-
}), (cov_2nbnnlcv5p().b[
|
|
33748
|
+
}), (cov_2nbnnlcv5p().b[18][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[18][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
33257
33749
|
className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
|
|
33258
33750
|
}, /*#__PURE__*/React__default.createElement(PageLoader, null))));
|
|
33259
33751
|
};
|