@bigbinary/neeto-form-frontend 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +265 -143
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +265 -143
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7514,6 +7514,155 @@ var useUpdateSubmission = function useUpdateSubmission(options) {
|
|
|
7514
7514
|
}));
|
|
7515
7515
|
};
|
|
7516
7516
|
|
|
7517
|
+
function cov_mbp79m7m4() {
|
|
7518
|
+
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/constants.js";
|
|
7519
|
+
var hash = "631e837964fe5ad9ac2dca205fbf66d83b2a4115";
|
|
7520
|
+
var global = new Function("return this")();
|
|
7521
|
+
var gcv = "__coverage__";
|
|
7522
|
+
var coverageData = {
|
|
7523
|
+
path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/constants.js",
|
|
7524
|
+
statementMap: {
|
|
7525
|
+
"0": {
|
|
7526
|
+
start: {
|
|
7527
|
+
line: 3,
|
|
7528
|
+
column: 30
|
|
7529
|
+
},
|
|
7530
|
+
end: {
|
|
7531
|
+
line: 113,
|
|
7532
|
+
column: 1
|
|
7533
|
+
}
|
|
7534
|
+
},
|
|
7535
|
+
"1": {
|
|
7536
|
+
start: {
|
|
7537
|
+
line: 115,
|
|
7538
|
+
column: 25
|
|
7539
|
+
},
|
|
7540
|
+
end: {
|
|
7541
|
+
line: 115,
|
|
7542
|
+
column: 58
|
|
7543
|
+
}
|
|
7544
|
+
}
|
|
7545
|
+
},
|
|
7546
|
+
fnMap: {},
|
|
7547
|
+
branchMap: {},
|
|
7548
|
+
s: {
|
|
7549
|
+
"0": 0,
|
|
7550
|
+
"1": 0
|
|
7551
|
+
},
|
|
7552
|
+
f: {},
|
|
7553
|
+
b: {},
|
|
7554
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7555
|
+
hash: "631e837964fe5ad9ac2dca205fbf66d83b2a4115"
|
|
7556
|
+
};
|
|
7557
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
7558
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
7559
|
+
coverage[path] = coverageData;
|
|
7560
|
+
}
|
|
7561
|
+
var actualCoverage = coverage[path];
|
|
7562
|
+
{
|
|
7563
|
+
// @ts-ignore
|
|
7564
|
+
cov_mbp79m7m4 = function () {
|
|
7565
|
+
return actualCoverage;
|
|
7566
|
+
};
|
|
7567
|
+
}
|
|
7568
|
+
return actualCoverage;
|
|
7569
|
+
}
|
|
7570
|
+
cov_mbp79m7m4();
|
|
7571
|
+
(cov_mbp79m7m4().s[0]++, {
|
|
7572
|
+
questions: [{
|
|
7573
|
+
id: "bb101126-4183-4ddf-adff-7563a2be0b19",
|
|
7574
|
+
kind: "paragraph",
|
|
7575
|
+
displayOrder: 1,
|
|
7576
|
+
displayKind: "Description Field",
|
|
7577
|
+
label: t$1("neetoForm.common.fillTheFormToChat"),
|
|
7578
|
+
placeholder: "",
|
|
7579
|
+
isRequired: false,
|
|
7580
|
+
options: [],
|
|
7581
|
+
nodeId: "bb101126-4183-4ddf-adff-7563a2be0b19"
|
|
7582
|
+
}, {
|
|
7583
|
+
id: "a8e0178e-44df-465e-8acb-ef5d1c08d541",
|
|
7584
|
+
kind: "email",
|
|
7585
|
+
displayOrder: 2,
|
|
7586
|
+
displayKind: "Email Input Field",
|
|
7587
|
+
label: t$1("neetoForm.common.email"),
|
|
7588
|
+
placeholder: "",
|
|
7589
|
+
isRequired: true,
|
|
7590
|
+
options: [],
|
|
7591
|
+
nodeId: "a8e0178e-44df-465e-8acb-ef5d1c08d541"
|
|
7592
|
+
}, {
|
|
7593
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f6",
|
|
7594
|
+
label: t$1("neetoForm.common.selectOne"),
|
|
7595
|
+
isRequired: false,
|
|
7596
|
+
options: [{
|
|
7597
|
+
label: "ABC",
|
|
7598
|
+
id: "ABC"
|
|
7599
|
+
}, {
|
|
7600
|
+
label: "EFG",
|
|
7601
|
+
id: "EFG"
|
|
7602
|
+
}, {
|
|
7603
|
+
label: "QWE",
|
|
7604
|
+
id: "QWE"
|
|
7605
|
+
}],
|
|
7606
|
+
kind: "checkbox",
|
|
7607
|
+
nodeId: "f32ad8aa-039a-4b70-b3af-b97ed6fc67a6"
|
|
7608
|
+
}, {
|
|
7609
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62wew",
|
|
7610
|
+
label: t$1("neetoForm.common.rate"),
|
|
7611
|
+
isRequired: true,
|
|
7612
|
+
highestRatingLabel: "",
|
|
7613
|
+
averageRatingLabel: "",
|
|
7614
|
+
lowestRatingLabel: "",
|
|
7615
|
+
kind: "rating",
|
|
7616
|
+
nodeId: "236a8cb3-b86d-4c30-9c18-f0d69788f6bc"
|
|
7617
|
+
}, {
|
|
7618
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8as",
|
|
7619
|
+
label: t$1("neetoForm.common.phone"),
|
|
7620
|
+
kind: "phone",
|
|
7621
|
+
nodeId: "5dd3be53-ec99-48e2-bf21-298b6108cb00"
|
|
7622
|
+
}, {
|
|
7623
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f32",
|
|
7624
|
+
label: t$1("neetoForm.common.select"),
|
|
7625
|
+
isRequired: false,
|
|
7626
|
+
options: [{
|
|
7627
|
+
label: "A",
|
|
7628
|
+
id: "A"
|
|
7629
|
+
}, {
|
|
7630
|
+
label: "B",
|
|
7631
|
+
id: "B"
|
|
7632
|
+
}, {
|
|
7633
|
+
label: "C",
|
|
7634
|
+
id: "C"
|
|
7635
|
+
}],
|
|
7636
|
+
kind: "dropdown",
|
|
7637
|
+
nodeId: "e65f27ea-a9b9-45b1-a8de-efb27a5b3e72"
|
|
7638
|
+
}, {
|
|
7639
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f8",
|
|
7640
|
+
label: "Nice",
|
|
7641
|
+
kind: "paragraph",
|
|
7642
|
+
nodeId: "15507c92-4bb5-4428-bc2b-0a7b078a144a"
|
|
7643
|
+
}, {
|
|
7644
|
+
id: "a7d3e47d-f7a2-4bf9-aaea-d301addw2d8f9",
|
|
7645
|
+
label: t$1("neetoForm.common.singleChoice"),
|
|
7646
|
+
isRequired: false,
|
|
7647
|
+
options: [{
|
|
7648
|
+
label: "A",
|
|
7649
|
+
id: "A"
|
|
7650
|
+
}, {
|
|
7651
|
+
label: "B",
|
|
7652
|
+
id: "B"
|
|
7653
|
+
}, {
|
|
7654
|
+
label: "C",
|
|
7655
|
+
id: "C"
|
|
7656
|
+
}],
|
|
7657
|
+
kind: "radio",
|
|
7658
|
+
nodeId: "37683bae-da1b-4890-ade9-0664006dc57d"
|
|
7659
|
+
}]
|
|
7660
|
+
});
|
|
7661
|
+
var THUMBS_UP = (cov_mbp79m7m4().s[1]++, {
|
|
7662
|
+
icon: "👍",
|
|
7663
|
+
className: "w-20"
|
|
7664
|
+
});
|
|
7665
|
+
|
|
7517
7666
|
function cov_16b5hyh40v() {
|
|
7518
7667
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/common/helpers/form.js";
|
|
7519
7668
|
var hash = "987746111ffb0997187da2da6e6bc4c4eb79e03d";
|
|
@@ -29813,7 +29962,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
|
|
|
29813
29962
|
|
|
29814
29963
|
function cov_2nbnnlcv5p() {
|
|
29815
29964
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
|
|
29816
|
-
var hash = "
|
|
29965
|
+
var hash = "586f1e4ea09a0f3f1bd98abee7fc2f2b618eecf5";
|
|
29817
29966
|
var global = new Function("return this")();
|
|
29818
29967
|
var gcv = "__coverage__";
|
|
29819
29968
|
var coverageData = {
|
|
@@ -29821,7 +29970,7 @@ function cov_2nbnnlcv5p() {
|
|
|
29821
29970
|
statementMap: {
|
|
29822
29971
|
"0": {
|
|
29823
29972
|
start: {
|
|
29824
|
-
line:
|
|
29973
|
+
line: 21,
|
|
29825
29974
|
column: 18
|
|
29826
29975
|
},
|
|
29827
29976
|
end: {
|
|
@@ -29831,17 +29980,17 @@ function cov_2nbnnlcv5p() {
|
|
|
29831
29980
|
},
|
|
29832
29981
|
"1": {
|
|
29833
29982
|
start: {
|
|
29834
|
-
line:
|
|
29983
|
+
line: 42,
|
|
29835
29984
|
column: 22
|
|
29836
29985
|
},
|
|
29837
29986
|
end: {
|
|
29838
|
-
line:
|
|
29987
|
+
line: 42,
|
|
29839
29988
|
column: 38
|
|
29840
29989
|
}
|
|
29841
29990
|
},
|
|
29842
29991
|
"2": {
|
|
29843
29992
|
start: {
|
|
29844
|
-
line:
|
|
29993
|
+
line: 44,
|
|
29845
29994
|
column: 43
|
|
29846
29995
|
},
|
|
29847
29996
|
end: {
|
|
@@ -29851,22 +30000,22 @@ function cov_2nbnnlcv5p() {
|
|
|
29851
30000
|
},
|
|
29852
30001
|
"3": {
|
|
29853
30002
|
start: {
|
|
29854
|
-
line:
|
|
30003
|
+
line: 46,
|
|
29855
30004
|
column: 22
|
|
29856
30005
|
},
|
|
29857
30006
|
end: {
|
|
29858
|
-
line:
|
|
30007
|
+
line: 46,
|
|
29859
30008
|
column: 41
|
|
29860
30009
|
}
|
|
29861
30010
|
},
|
|
29862
30011
|
"4": {
|
|
29863
30012
|
start: {
|
|
29864
30013
|
line: 47,
|
|
29865
|
-
column:
|
|
30014
|
+
column: 21
|
|
29866
30015
|
},
|
|
29867
30016
|
end: {
|
|
29868
30017
|
line: 47,
|
|
29869
|
-
column:
|
|
30018
|
+
column: 50
|
|
29870
30019
|
}
|
|
29871
30020
|
},
|
|
29872
30021
|
"5": {
|
|
@@ -30085,17 +30234,17 @@ function cov_2nbnnlcv5p() {
|
|
|
30085
30234
|
name: "(anonymous_0)",
|
|
30086
30235
|
decl: {
|
|
30087
30236
|
start: {
|
|
30088
|
-
line:
|
|
30237
|
+
line: 21,
|
|
30089
30238
|
column: 18
|
|
30090
30239
|
},
|
|
30091
30240
|
end: {
|
|
30092
|
-
line:
|
|
30241
|
+
line: 21,
|
|
30093
30242
|
column: 19
|
|
30094
30243
|
}
|
|
30095
30244
|
},
|
|
30096
30245
|
loc: {
|
|
30097
30246
|
start: {
|
|
30098
|
-
line:
|
|
30247
|
+
line: 41,
|
|
30099
30248
|
column: 6
|
|
30100
30249
|
},
|
|
30101
30250
|
end: {
|
|
@@ -30103,52 +30252,52 @@ function cov_2nbnnlcv5p() {
|
|
|
30103
30252
|
column: 1
|
|
30104
30253
|
}
|
|
30105
30254
|
},
|
|
30106
|
-
line:
|
|
30255
|
+
line: 41
|
|
30107
30256
|
},
|
|
30108
30257
|
"1": {
|
|
30109
30258
|
name: "(anonymous_1)",
|
|
30110
30259
|
decl: {
|
|
30111
30260
|
start: {
|
|
30112
|
-
line:
|
|
30261
|
+
line: 46,
|
|
30113
30262
|
column: 13
|
|
30114
30263
|
},
|
|
30115
30264
|
end: {
|
|
30116
|
-
line:
|
|
30265
|
+
line: 46,
|
|
30117
30266
|
column: 14
|
|
30118
30267
|
}
|
|
30119
30268
|
},
|
|
30120
30269
|
loc: {
|
|
30121
30270
|
start: {
|
|
30122
|
-
line:
|
|
30271
|
+
line: 46,
|
|
30123
30272
|
column: 22
|
|
30124
30273
|
},
|
|
30125
30274
|
end: {
|
|
30126
|
-
line:
|
|
30275
|
+
line: 46,
|
|
30127
30276
|
column: 41
|
|
30128
30277
|
}
|
|
30129
30278
|
},
|
|
30130
|
-
line:
|
|
30279
|
+
line: 46
|
|
30131
30280
|
},
|
|
30132
30281
|
"2": {
|
|
30133
30282
|
name: "(anonymous_2)",
|
|
30134
30283
|
decl: {
|
|
30135
30284
|
start: {
|
|
30136
|
-
line:
|
|
30285
|
+
line: 47,
|
|
30137
30286
|
column: 15
|
|
30138
30287
|
},
|
|
30139
30288
|
end: {
|
|
30140
|
-
line:
|
|
30289
|
+
line: 47,
|
|
30141
30290
|
column: 16
|
|
30142
30291
|
}
|
|
30143
30292
|
},
|
|
30144
30293
|
loc: {
|
|
30145
30294
|
start: {
|
|
30146
30295
|
line: 47,
|
|
30147
|
-
column:
|
|
30296
|
+
column: 21
|
|
30148
30297
|
},
|
|
30149
30298
|
end: {
|
|
30150
30299
|
line: 47,
|
|
30151
|
-
column:
|
|
30300
|
+
column: 50
|
|
30152
30301
|
}
|
|
30153
30302
|
},
|
|
30154
30303
|
line: 47
|
|
@@ -30350,268 +30499,244 @@ function cov_2nbnnlcv5p() {
|
|
|
30350
30499
|
"0": {
|
|
30351
30500
|
loc: {
|
|
30352
30501
|
start: {
|
|
30353
|
-
line:
|
|
30502
|
+
line: 25,
|
|
30354
30503
|
column: 2
|
|
30355
30504
|
},
|
|
30356
30505
|
end: {
|
|
30357
|
-
line:
|
|
30506
|
+
line: 25,
|
|
30358
30507
|
column: 31
|
|
30359
30508
|
}
|
|
30360
30509
|
},
|
|
30361
30510
|
type: "default-arg",
|
|
30362
30511
|
locations: [{
|
|
30363
30512
|
start: {
|
|
30364
|
-
line:
|
|
30513
|
+
line: 25,
|
|
30365
30514
|
column: 27
|
|
30366
30515
|
},
|
|
30367
30516
|
end: {
|
|
30368
|
-
line:
|
|
30517
|
+
line: 25,
|
|
30369
30518
|
column: 31
|
|
30370
30519
|
}
|
|
30371
30520
|
}],
|
|
30372
|
-
line:
|
|
30521
|
+
line: 25
|
|
30373
30522
|
},
|
|
30374
30523
|
"1": {
|
|
30375
30524
|
loc: {
|
|
30376
30525
|
start: {
|
|
30377
|
-
line:
|
|
30526
|
+
line: 26,
|
|
30378
30527
|
column: 2
|
|
30379
30528
|
},
|
|
30380
30529
|
end: {
|
|
30381
|
-
line:
|
|
30530
|
+
line: 26,
|
|
30382
30531
|
column: 25
|
|
30383
30532
|
}
|
|
30384
30533
|
},
|
|
30385
30534
|
type: "default-arg",
|
|
30386
30535
|
locations: [{
|
|
30387
30536
|
start: {
|
|
30388
|
-
line:
|
|
30537
|
+
line: 26,
|
|
30389
30538
|
column: 23
|
|
30390
30539
|
},
|
|
30391
30540
|
end: {
|
|
30392
|
-
line:
|
|
30541
|
+
line: 26,
|
|
30393
30542
|
column: 25
|
|
30394
30543
|
}
|
|
30395
30544
|
}],
|
|
30396
|
-
line:
|
|
30545
|
+
line: 26
|
|
30397
30546
|
},
|
|
30398
30547
|
"2": {
|
|
30399
30548
|
loc: {
|
|
30400
30549
|
start: {
|
|
30401
|
-
line:
|
|
30550
|
+
line: 27,
|
|
30402
30551
|
column: 2
|
|
30403
30552
|
},
|
|
30404
30553
|
end: {
|
|
30405
|
-
line:
|
|
30554
|
+
line: 27,
|
|
30406
30555
|
column: 21
|
|
30407
30556
|
}
|
|
30408
30557
|
},
|
|
30409
30558
|
type: "default-arg",
|
|
30410
30559
|
locations: [{
|
|
30411
30560
|
start: {
|
|
30412
|
-
line:
|
|
30561
|
+
line: 27,
|
|
30413
30562
|
column: 19
|
|
30414
30563
|
},
|
|
30415
30564
|
end: {
|
|
30416
|
-
line:
|
|
30565
|
+
line: 27,
|
|
30417
30566
|
column: 21
|
|
30418
30567
|
}
|
|
30419
30568
|
}],
|
|
30420
|
-
line:
|
|
30569
|
+
line: 27
|
|
30421
30570
|
},
|
|
30422
30571
|
"3": {
|
|
30423
30572
|
loc: {
|
|
30424
30573
|
start: {
|
|
30425
|
-
line:
|
|
30574
|
+
line: 29,
|
|
30426
30575
|
column: 2
|
|
30427
30576
|
},
|
|
30428
30577
|
end: {
|
|
30429
|
-
line:
|
|
30578
|
+
line: 29,
|
|
30430
30579
|
column: 24
|
|
30431
30580
|
}
|
|
30432
30581
|
},
|
|
30433
30582
|
type: "default-arg",
|
|
30434
30583
|
locations: [{
|
|
30435
30584
|
start: {
|
|
30436
|
-
line:
|
|
30585
|
+
line: 29,
|
|
30437
30586
|
column: 20
|
|
30438
30587
|
},
|
|
30439
30588
|
end: {
|
|
30440
|
-
line:
|
|
30589
|
+
line: 29,
|
|
30441
30590
|
column: 24
|
|
30442
30591
|
}
|
|
30443
30592
|
}],
|
|
30444
|
-
line:
|
|
30593
|
+
line: 29
|
|
30445
30594
|
},
|
|
30446
30595
|
"4": {
|
|
30447
30596
|
loc: {
|
|
30448
30597
|
start: {
|
|
30449
|
-
line:
|
|
30598
|
+
line: 32,
|
|
30450
30599
|
column: 2
|
|
30451
30600
|
},
|
|
30452
30601
|
end: {
|
|
30453
|
-
line:
|
|
30602
|
+
line: 32,
|
|
30454
30603
|
column: 20
|
|
30455
30604
|
}
|
|
30456
30605
|
},
|
|
30457
30606
|
type: "default-arg",
|
|
30458
30607
|
locations: [{
|
|
30459
30608
|
start: {
|
|
30460
|
-
line:
|
|
30609
|
+
line: 32,
|
|
30461
30610
|
column: 18
|
|
30462
30611
|
},
|
|
30463
30612
|
end: {
|
|
30464
|
-
line:
|
|
30613
|
+
line: 32,
|
|
30465
30614
|
column: 20
|
|
30466
30615
|
}
|
|
30467
30616
|
}],
|
|
30468
|
-
line:
|
|
30617
|
+
line: 32
|
|
30469
30618
|
},
|
|
30470
30619
|
"5": {
|
|
30471
30620
|
loc: {
|
|
30472
30621
|
start: {
|
|
30473
|
-
line:
|
|
30622
|
+
line: 33,
|
|
30474
30623
|
column: 2
|
|
30475
30624
|
},
|
|
30476
30625
|
end: {
|
|
30477
|
-
line:
|
|
30626
|
+
line: 33,
|
|
30478
30627
|
column: 51
|
|
30479
30628
|
}
|
|
30480
30629
|
},
|
|
30481
30630
|
type: "default-arg",
|
|
30482
30631
|
locations: [{
|
|
30483
30632
|
start: {
|
|
30484
|
-
line:
|
|
30633
|
+
line: 33,
|
|
30485
30634
|
column: 24
|
|
30486
30635
|
},
|
|
30487
30636
|
end: {
|
|
30488
|
-
line:
|
|
30637
|
+
line: 33,
|
|
30489
30638
|
column: 51
|
|
30490
30639
|
}
|
|
30491
30640
|
}],
|
|
30492
|
-
line:
|
|
30641
|
+
line: 33
|
|
30493
30642
|
},
|
|
30494
30643
|
"6": {
|
|
30495
30644
|
loc: {
|
|
30496
30645
|
start: {
|
|
30497
|
-
line:
|
|
30646
|
+
line: 34,
|
|
30498
30647
|
column: 2
|
|
30499
30648
|
},
|
|
30500
30649
|
end: {
|
|
30501
|
-
line:
|
|
30650
|
+
line: 34,
|
|
30502
30651
|
column: 53
|
|
30503
30652
|
}
|
|
30504
30653
|
},
|
|
30505
30654
|
type: "default-arg",
|
|
30506
30655
|
locations: [{
|
|
30507
30656
|
start: {
|
|
30508
|
-
line:
|
|
30657
|
+
line: 34,
|
|
30509
30658
|
column: 25
|
|
30510
30659
|
},
|
|
30511
30660
|
end: {
|
|
30512
|
-
line:
|
|
30661
|
+
line: 34,
|
|
30513
30662
|
column: 53
|
|
30514
30663
|
}
|
|
30515
30664
|
}],
|
|
30516
|
-
line:
|
|
30665
|
+
line: 34
|
|
30517
30666
|
},
|
|
30518
30667
|
"7": {
|
|
30519
30668
|
loc: {
|
|
30520
30669
|
start: {
|
|
30521
|
-
line:
|
|
30670
|
+
line: 38,
|
|
30522
30671
|
column: 2
|
|
30523
30672
|
},
|
|
30524
30673
|
end: {
|
|
30525
|
-
line:
|
|
30674
|
+
line: 38,
|
|
30526
30675
|
column: 20
|
|
30527
30676
|
}
|
|
30528
30677
|
},
|
|
30529
30678
|
type: "default-arg",
|
|
30530
30679
|
locations: [{
|
|
30531
30680
|
start: {
|
|
30532
|
-
line:
|
|
30681
|
+
line: 38,
|
|
30533
30682
|
column: 15
|
|
30534
30683
|
},
|
|
30535
30684
|
end: {
|
|
30536
|
-
line:
|
|
30685
|
+
line: 38,
|
|
30537
30686
|
column: 20
|
|
30538
30687
|
}
|
|
30539
30688
|
}],
|
|
30540
|
-
line:
|
|
30689
|
+
line: 38
|
|
30541
30690
|
},
|
|
30542
30691
|
"8": {
|
|
30543
30692
|
loc: {
|
|
30544
30693
|
start: {
|
|
30545
|
-
line:
|
|
30694
|
+
line: 39,
|
|
30546
30695
|
column: 2
|
|
30547
30696
|
},
|
|
30548
30697
|
end: {
|
|
30549
|
-
line:
|
|
30698
|
+
line: 39,
|
|
30550
30699
|
column: 25
|
|
30551
30700
|
}
|
|
30552
30701
|
},
|
|
30553
30702
|
type: "default-arg",
|
|
30554
30703
|
locations: [{
|
|
30555
30704
|
start: {
|
|
30556
|
-
line:
|
|
30705
|
+
line: 39,
|
|
30557
30706
|
column: 17
|
|
30558
30707
|
},
|
|
30559
30708
|
end: {
|
|
30560
|
-
line:
|
|
30709
|
+
line: 39,
|
|
30561
30710
|
column: 25
|
|
30562
30711
|
}
|
|
30563
30712
|
}],
|
|
30564
|
-
line:
|
|
30713
|
+
line: 39
|
|
30565
30714
|
},
|
|
30566
30715
|
"9": {
|
|
30567
30716
|
loc: {
|
|
30568
30717
|
start: {
|
|
30569
|
-
line:
|
|
30718
|
+
line: 40,
|
|
30570
30719
|
column: 2
|
|
30571
30720
|
},
|
|
30572
30721
|
end: {
|
|
30573
|
-
line:
|
|
30722
|
+
line: 40,
|
|
30574
30723
|
column: 31
|
|
30575
30724
|
}
|
|
30576
30725
|
},
|
|
30577
30726
|
type: "default-arg",
|
|
30578
30727
|
locations: [{
|
|
30579
30728
|
start: {
|
|
30580
|
-
line:
|
|
30729
|
+
line: 40,
|
|
30581
30730
|
column: 26
|
|
30582
30731
|
},
|
|
30583
30732
|
end: {
|
|
30584
|
-
line:
|
|
30733
|
+
line: 40,
|
|
30585
30734
|
column: 31
|
|
30586
30735
|
}
|
|
30587
30736
|
}],
|
|
30588
|
-
line:
|
|
30737
|
+
line: 40
|
|
30589
30738
|
},
|
|
30590
30739
|
"10": {
|
|
30591
|
-
loc: {
|
|
30592
|
-
start: {
|
|
30593
|
-
line: 46,
|
|
30594
|
-
column: 18
|
|
30595
|
-
},
|
|
30596
|
-
end: {
|
|
30597
|
-
line: 46,
|
|
30598
|
-
column: 70
|
|
30599
|
-
}
|
|
30600
|
-
},
|
|
30601
|
-
type: "default-arg",
|
|
30602
|
-
locations: [{
|
|
30603
|
-
start: {
|
|
30604
|
-
line: 46,
|
|
30605
|
-
column: 27
|
|
30606
|
-
},
|
|
30607
|
-
end: {
|
|
30608
|
-
line: 46,
|
|
30609
|
-
column: 70
|
|
30610
|
-
}
|
|
30611
|
-
}],
|
|
30612
|
-
line: 46
|
|
30613
|
-
},
|
|
30614
|
-
"11": {
|
|
30615
30740
|
loc: {
|
|
30616
30741
|
start: {
|
|
30617
30742
|
line: 51,
|
|
@@ -30635,7 +30760,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30635
30760
|
}],
|
|
30636
30761
|
line: 51
|
|
30637
30762
|
},
|
|
30638
|
-
"
|
|
30763
|
+
"11": {
|
|
30639
30764
|
loc: {
|
|
30640
30765
|
start: {
|
|
30641
30766
|
line: 76,
|
|
@@ -30668,7 +30793,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30668
30793
|
}],
|
|
30669
30794
|
line: 76
|
|
30670
30795
|
},
|
|
30671
|
-
"
|
|
30796
|
+
"12": {
|
|
30672
30797
|
loc: {
|
|
30673
30798
|
start: {
|
|
30674
30799
|
line: 76,
|
|
@@ -30710,7 +30835,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30710
30835
|
}],
|
|
30711
30836
|
line: 76
|
|
30712
30837
|
},
|
|
30713
|
-
"
|
|
30838
|
+
"13": {
|
|
30714
30839
|
loc: {
|
|
30715
30840
|
start: {
|
|
30716
30841
|
line: 99,
|
|
@@ -30743,7 +30868,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30743
30868
|
}],
|
|
30744
30869
|
line: 99
|
|
30745
30870
|
},
|
|
30746
|
-
"
|
|
30871
|
+
"14": {
|
|
30747
30872
|
loc: {
|
|
30748
30873
|
start: {
|
|
30749
30874
|
line: 108,
|
|
@@ -30776,7 +30901,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30776
30901
|
}],
|
|
30777
30902
|
line: 108
|
|
30778
30903
|
},
|
|
30779
|
-
"
|
|
30904
|
+
"15": {
|
|
30780
30905
|
loc: {
|
|
30781
30906
|
start: {
|
|
30782
30907
|
line: 112,
|
|
@@ -30809,7 +30934,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30809
30934
|
}],
|
|
30810
30935
|
line: 112
|
|
30811
30936
|
},
|
|
30812
|
-
"
|
|
30937
|
+
"16": {
|
|
30813
30938
|
loc: {
|
|
30814
30939
|
start: {
|
|
30815
30940
|
line: 114,
|
|
@@ -30842,7 +30967,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30842
30967
|
}],
|
|
30843
30968
|
line: 114
|
|
30844
30969
|
},
|
|
30845
|
-
"
|
|
30970
|
+
"17": {
|
|
30846
30971
|
loc: {
|
|
30847
30972
|
start: {
|
|
30848
30973
|
line: 116,
|
|
@@ -30875,7 +31000,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30875
31000
|
}],
|
|
30876
31001
|
line: 116
|
|
30877
31002
|
},
|
|
30878
|
-
"
|
|
31003
|
+
"18": {
|
|
30879
31004
|
loc: {
|
|
30880
31005
|
start: {
|
|
30881
31006
|
line: 145,
|
|
@@ -30908,7 +31033,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30908
31033
|
}],
|
|
30909
31034
|
line: 145
|
|
30910
31035
|
},
|
|
30911
|
-
"
|
|
31036
|
+
"19": {
|
|
30912
31037
|
loc: {
|
|
30913
31038
|
start: {
|
|
30914
31039
|
line: 149,
|
|
@@ -30941,7 +31066,7 @@ function cov_2nbnnlcv5p() {
|
|
|
30941
31066
|
}],
|
|
30942
31067
|
line: 149
|
|
30943
31068
|
},
|
|
30944
|
-
"
|
|
31069
|
+
"20": {
|
|
30945
31070
|
loc: {
|
|
30946
31071
|
start: {
|
|
30947
31072
|
line: 156,
|
|
@@ -31028,20 +31153,19 @@ function cov_2nbnnlcv5p() {
|
|
|
31028
31153
|
"8": [0],
|
|
31029
31154
|
"9": [0],
|
|
31030
31155
|
"10": [0],
|
|
31031
|
-
"11": [0],
|
|
31032
|
-
"12": [0, 0],
|
|
31033
|
-
"13": [0, 0
|
|
31156
|
+
"11": [0, 0],
|
|
31157
|
+
"12": [0, 0, 0],
|
|
31158
|
+
"13": [0, 0],
|
|
31034
31159
|
"14": [0, 0],
|
|
31035
31160
|
"15": [0, 0],
|
|
31036
31161
|
"16": [0, 0],
|
|
31037
31162
|
"17": [0, 0],
|
|
31038
31163
|
"18": [0, 0],
|
|
31039
31164
|
"19": [0, 0],
|
|
31040
|
-
"20": [0, 0]
|
|
31041
|
-
"21": [0, 0]
|
|
31165
|
+
"20": [0, 0]
|
|
31042
31166
|
},
|
|
31043
31167
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
31044
|
-
hash: "
|
|
31168
|
+
hash: "586f1e4ea09a0f3f1bd98abee7fc2f2b618eecf5"
|
|
31045
31169
|
};
|
|
31046
31170
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
31047
31171
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -31061,7 +31185,7 @@ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
31061
31185
|
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31062
31186
|
cov_2nbnnlcv5p().s[0]++;
|
|
31063
31187
|
var BuildForm = function BuildForm(_ref) {
|
|
31064
|
-
var
|
|
31188
|
+
var _ref5, _ref6, _ref8;
|
|
31065
31189
|
var id = _ref.id,
|
|
31066
31190
|
onUpdate = _ref.onUpdate,
|
|
31067
31191
|
buildRequestArgs = _ref.buildRequestArgs,
|
|
@@ -31100,16 +31224,14 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
31100
31224
|
cov_2nbnnlcv5p().s[3]++;
|
|
31101
31225
|
return Toastr.error(error);
|
|
31102
31226
|
},
|
|
31103
|
-
onSuccess: function onSuccess(
|
|
31104
|
-
var _ref3$notice = _ref3.notice,
|
|
31105
|
-
notice = _ref3$notice === void 0 ? (cov_2nbnnlcv5p().b[10][0]++, "Questions have been updated successfully!") : _ref3$notice;
|
|
31227
|
+
onSuccess: function onSuccess() {
|
|
31106
31228
|
cov_2nbnnlcv5p().f[2]++;
|
|
31107
31229
|
cov_2nbnnlcv5p().s[4]++;
|
|
31108
|
-
return Toastr.success(
|
|
31230
|
+
return Toastr.success("", THUMBS_UP);
|
|
31109
31231
|
}
|
|
31110
31232
|
})),
|
|
31111
31233
|
updateQuestions = _ref2.mutateAsync;
|
|
31112
|
-
var
|
|
31234
|
+
var _ref3 = (cov_2nbnnlcv5p().s[5]++, useForm({
|
|
31113
31235
|
formId: id,
|
|
31114
31236
|
onSuccess: function onSuccess(data) {
|
|
31115
31237
|
cov_2nbnnlcv5p().f[3]++;
|
|
@@ -31129,23 +31251,23 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
31129
31251
|
}]
|
|
31130
31252
|
}
|
|
31131
31253
|
})),
|
|
31132
|
-
|
|
31133
|
-
|
|
31254
|
+
_ref3$data = _ref3.data,
|
|
31255
|
+
_ref3$data2 = _ref3$data === void 0 ? (cov_2nbnnlcv5p().b[10][0]++, {
|
|
31134
31256
|
title: "",
|
|
31135
31257
|
questions: []
|
|
31136
|
-
}) :
|
|
31137
|
-
questions =
|
|
31138
|
-
isQuestionsLoading =
|
|
31139
|
-
isLoading =
|
|
31258
|
+
}) : _ref3$data,
|
|
31259
|
+
questions = _ref3$data2.questions,
|
|
31260
|
+
isQuestionsLoading = _ref3$data2.isQuestionsLoading,
|
|
31261
|
+
isLoading = _ref3.isLoading;
|
|
31140
31262
|
cov_2nbnnlcv5p().s[7]++;
|
|
31141
|
-
if ((cov_2nbnnlcv5p().b[
|
|
31142
|
-
cov_2nbnnlcv5p().b[
|
|
31263
|
+
if ((cov_2nbnnlcv5p().b[12][0]++, isLoading) || (cov_2nbnnlcv5p().b[12][1]++, showLoader) && (cov_2nbnnlcv5p().b[12][2]++, isQuestionsLoading)) {
|
|
31264
|
+
cov_2nbnnlcv5p().b[11][0]++;
|
|
31143
31265
|
cov_2nbnnlcv5p().s[8]++;
|
|
31144
31266
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
31145
31267
|
className: "flex h-full w-full items-center justify-center py-6"
|
|
31146
31268
|
}, /*#__PURE__*/React__default.createElement(PageLoader, null));
|
|
31147
31269
|
} else {
|
|
31148
|
-
cov_2nbnnlcv5p().b[
|
|
31270
|
+
cov_2nbnnlcv5p().b[11][1]++;
|
|
31149
31271
|
}
|
|
31150
31272
|
cov_2nbnnlcv5p().s[9]++;
|
|
31151
31273
|
var handleSubmit = function handleSubmit(payload) {
|
|
@@ -31161,34 +31283,34 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
31161
31283
|
cov_2nbnnlcv5p().s[11]++;
|
|
31162
31284
|
var onValueChange = function onValueChange(questions) {
|
|
31163
31285
|
cov_2nbnnlcv5p().f[5]++;
|
|
31164
|
-
var
|
|
31165
|
-
dataUpdateCount =
|
|
31286
|
+
var _ref4 = (cov_2nbnnlcv5p().s[12]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
|
|
31287
|
+
dataUpdateCount = _ref4.dataUpdateCount;
|
|
31166
31288
|
cov_2nbnnlcv5p().s[13]++;
|
|
31167
31289
|
if (dataUpdateCount > 0) {
|
|
31168
|
-
cov_2nbnnlcv5p().b[
|
|
31290
|
+
cov_2nbnnlcv5p().b[13][0]++;
|
|
31169
31291
|
cov_2nbnnlcv5p().s[14]++;
|
|
31170
31292
|
queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], assoc("questions", questions));
|
|
31171
31293
|
} else {
|
|
31172
|
-
cov_2nbnnlcv5p().b[
|
|
31294
|
+
cov_2nbnnlcv5p().b[13][1]++;
|
|
31173
31295
|
}
|
|
31174
31296
|
};
|
|
31175
|
-
var isDeletable = (cov_2nbnnlcv5p().s[15]++, (
|
|
31297
|
+
var isDeletable = (cov_2nbnnlcv5p().s[15]++, (_ref5 = (cov_2nbnnlcv5p().b[14][0]++, isQuestionDeletable)) !== null && _ref5 !== void 0 ? _ref5 : (cov_2nbnnlcv5p().b[14][1]++, function (question) {
|
|
31176
31298
|
cov_2nbnnlcv5p().f[6]++;
|
|
31177
31299
|
cov_2nbnnlcv5p().s[16]++;
|
|
31178
31300
|
return !nonRemovableFields.includes(question.kind);
|
|
31179
31301
|
}));
|
|
31180
|
-
var isRequiredField = (cov_2nbnnlcv5p().s[17]++, (
|
|
31181
|
-
var kind =
|
|
31302
|
+
var isRequiredField = (cov_2nbnnlcv5p().s[17]++, (_ref6 = (cov_2nbnnlcv5p().b[15][0]++, isFieldRequired)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2nbnnlcv5p().b[15][1]++, function (_ref7) {
|
|
31303
|
+
var kind = _ref7.kind;
|
|
31182
31304
|
cov_2nbnnlcv5p().f[7]++;
|
|
31183
31305
|
cov_2nbnnlcv5p().s[18]++;
|
|
31184
31306
|
return requiredFields.includes(kind);
|
|
31185
31307
|
}));
|
|
31186
|
-
var isDisabledFieldLabel = (cov_2nbnnlcv5p().s[19]++, (
|
|
31308
|
+
var isDisabledFieldLabel = (cov_2nbnnlcv5p().s[19]++, (_ref8 = (cov_2nbnnlcv5p().b[16][0]++, isFieldLabelDisabled)) !== null && _ref8 !== void 0 ? _ref8 : (cov_2nbnnlcv5p().b[16][1]++, function () {
|
|
31187
31309
|
cov_2nbnnlcv5p().f[8]++;
|
|
31188
31310
|
cov_2nbnnlcv5p().s[20]++;
|
|
31189
31311
|
return false;
|
|
31190
31312
|
}));
|
|
31191
|
-
var defaultQuestionKinds = (cov_2nbnnlcv5p().s[21]++, allowAdditionalGuests ? (cov_2nbnnlcv5p().b[
|
|
31313
|
+
var defaultQuestionKinds = (cov_2nbnnlcv5p().s[21]++, allowAdditionalGuests ? (cov_2nbnnlcv5p().b[17][0]++, QUESTION_KINDS) : (cov_2nbnnlcv5p().b[17][1]++, removeBy({
|
|
31192
31314
|
type: QUESTION_KIND.ADDITIONAL_GUESTS.value
|
|
31193
31315
|
}, QUESTION_KINDS)));
|
|
31194
31316
|
cov_2nbnnlcv5p().s[22]++;
|
|
@@ -31201,9 +31323,9 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
31201
31323
|
questions: questions
|
|
31202
31324
|
},
|
|
31203
31325
|
onSubmit: handleSubmit
|
|
31204
|
-
}, function (
|
|
31205
|
-
var errors =
|
|
31206
|
-
setFieldError =
|
|
31326
|
+
}, function (_ref9) {
|
|
31327
|
+
var errors = _ref9.errors,
|
|
31328
|
+
setFieldError = _ref9.setFieldError;
|
|
31207
31329
|
cov_2nbnnlcv5p().f[9]++;
|
|
31208
31330
|
cov_2nbnnlcv5p().s[23]++;
|
|
31209
31331
|
return /*#__PURE__*/React__default.createElement(Form, _extends$8({}, formDomProps, {
|
|
@@ -31218,21 +31340,21 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
31218
31340
|
showActionBlock: showActionBlock,
|
|
31219
31341
|
showAddQuestionDivider: showAddQuestionDivider,
|
|
31220
31342
|
submitButtonProps: submitButtonProps,
|
|
31221
|
-
questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[
|
|
31343
|
+
questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[18][0]++, questionKinds) : (cov_2nbnnlcv5p().b[18][1]++, defaultQuestionKinds),
|
|
31222
31344
|
onValueChange: onValueChange,
|
|
31223
31345
|
onChange: function onChange(event) {
|
|
31224
31346
|
cov_2nbnnlcv5p().f[10]++;
|
|
31225
31347
|
cov_2nbnnlcv5p().s[24]++;
|
|
31226
31348
|
if (!isEmpty(errors)) {
|
|
31227
|
-
cov_2nbnnlcv5p().b[
|
|
31349
|
+
cov_2nbnnlcv5p().b[19][0]++;
|
|
31228
31350
|
cov_2nbnnlcv5p().s[25]++;
|
|
31229
31351
|
setFieldError(event.target.name);
|
|
31230
31352
|
} else {
|
|
31231
|
-
cov_2nbnnlcv5p().b[
|
|
31353
|
+
cov_2nbnnlcv5p().b[19][1]++;
|
|
31232
31354
|
}
|
|
31233
31355
|
}
|
|
31234
31356
|
}));
|
|
31235
|
-
}), (cov_2nbnnlcv5p().b[
|
|
31357
|
+
}), (cov_2nbnnlcv5p().b[20][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[20][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
31236
31358
|
className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
|
|
31237
31359
|
}, /*#__PURE__*/React__default.createElement(PageLoader, null))));
|
|
31238
31360
|
};
|