@bigbinary/neeto-form-frontend 1.0.38 → 1.0.39
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 +123 -120
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +123 -120
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7031,7 +7031,7 @@ var Trophy = function Trophy(_ref5) {
|
|
|
7031
7031
|
|
|
7032
7032
|
function cov_2qs8napxwn() {
|
|
7033
7033
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
|
|
7034
|
-
var hash = "
|
|
7034
|
+
var hash = "06c0fa99a8044bfa85dba10dcf9fa947503a23c0";
|
|
7035
7035
|
var global = new Function("return this")();
|
|
7036
7036
|
var gcv = "__coverage__";
|
|
7037
7037
|
var coverageData = {
|
|
@@ -7043,57 +7043,57 @@ function cov_2qs8napxwn() {
|
|
|
7043
7043
|
column: 29
|
|
7044
7044
|
},
|
|
7045
7045
|
end: {
|
|
7046
|
-
line:
|
|
7046
|
+
line: 39,
|
|
7047
7047
|
column: 1
|
|
7048
7048
|
}
|
|
7049
7049
|
},
|
|
7050
7050
|
"1": {
|
|
7051
7051
|
start: {
|
|
7052
|
-
line:
|
|
7052
|
+
line: 41,
|
|
7053
7053
|
column: 29
|
|
7054
7054
|
},
|
|
7055
7055
|
end: {
|
|
7056
|
-
line:
|
|
7056
|
+
line: 45,
|
|
7057
7057
|
column: 1
|
|
7058
7058
|
}
|
|
7059
7059
|
},
|
|
7060
7060
|
"2": {
|
|
7061
7061
|
start: {
|
|
7062
|
-
line:
|
|
7062
|
+
line: 47,
|
|
7063
7063
|
column: 42
|
|
7064
7064
|
},
|
|
7065
7065
|
end: {
|
|
7066
|
-
line:
|
|
7067
|
-
column:
|
|
7066
|
+
line: 47,
|
|
7067
|
+
column: 73
|
|
7068
7068
|
}
|
|
7069
7069
|
},
|
|
7070
7070
|
"3": {
|
|
7071
7071
|
start: {
|
|
7072
|
-
line:
|
|
7072
|
+
line: 49,
|
|
7073
7073
|
column: 30
|
|
7074
7074
|
},
|
|
7075
7075
|
end: {
|
|
7076
|
-
line:
|
|
7076
|
+
line: 65,
|
|
7077
7077
|
column: 1
|
|
7078
7078
|
}
|
|
7079
7079
|
},
|
|
7080
7080
|
"4": {
|
|
7081
7081
|
start: {
|
|
7082
|
-
line:
|
|
7082
|
+
line: 67,
|
|
7083
7083
|
column: 35
|
|
7084
7084
|
},
|
|
7085
7085
|
end: {
|
|
7086
|
-
line:
|
|
7086
|
+
line: 67,
|
|
7087
7087
|
column: 49
|
|
7088
7088
|
}
|
|
7089
7089
|
},
|
|
7090
7090
|
"5": {
|
|
7091
7091
|
start: {
|
|
7092
|
-
line:
|
|
7092
|
+
line: 69,
|
|
7093
7093
|
column: 25
|
|
7094
7094
|
},
|
|
7095
7095
|
end: {
|
|
7096
|
-
line:
|
|
7096
|
+
line: 75,
|
|
7097
7097
|
column: 1
|
|
7098
7098
|
}
|
|
7099
7099
|
}
|
|
@@ -7111,7 +7111,7 @@ function cov_2qs8napxwn() {
|
|
|
7111
7111
|
f: {},
|
|
7112
7112
|
b: {},
|
|
7113
7113
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7114
|
-
hash: "
|
|
7114
|
+
hash: "06c0fa99a8044bfa85dba10dcf9fa947503a23c0"
|
|
7115
7115
|
};
|
|
7116
7116
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7117
7117
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7155,6 +7155,9 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
|
|
|
7155
7155
|
DROPDOWN: {
|
|
7156
7156
|
value: "dropdown"
|
|
7157
7157
|
},
|
|
7158
|
+
PARAGRAPH: {
|
|
7159
|
+
value: "paragraph"
|
|
7160
|
+
},
|
|
7158
7161
|
TEXTAREA: {
|
|
7159
7162
|
value: "textarea"
|
|
7160
7163
|
},
|
|
@@ -7199,7 +7202,7 @@ var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
|
|
|
7199
7202
|
value: "bad"
|
|
7200
7203
|
}
|
|
7201
7204
|
});
|
|
7202
|
-
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.
|
|
7205
|
+
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.PARAGRAPH.value]);
|
|
7203
7206
|
var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
|
|
7204
7207
|
icon: SvgHappyFace,
|
|
7205
7208
|
modifier: "happy",
|
|
@@ -28461,7 +28464,7 @@ var Editor = function Editor(_ref) {
|
|
|
28461
28464
|
|
|
28462
28465
|
function cov_2j8tlu2ul5() {
|
|
28463
28466
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
|
|
28464
|
-
var hash = "
|
|
28467
|
+
var hash = "6d2a1487c3ee64be33ed78df7bbb278bf982988b";
|
|
28465
28468
|
var global = new Function("return this")();
|
|
28466
28469
|
var gcv = "__coverage__";
|
|
28467
28470
|
var coverageData = {
|
|
@@ -28524,7 +28527,7 @@ function cov_2j8tlu2ul5() {
|
|
|
28524
28527
|
},
|
|
28525
28528
|
end: {
|
|
28526
28529
|
line: 218,
|
|
28527
|
-
column:
|
|
28530
|
+
column: 63
|
|
28528
28531
|
}
|
|
28529
28532
|
}
|
|
28530
28533
|
},
|
|
@@ -28541,7 +28544,7 @@ function cov_2j8tlu2ul5() {
|
|
|
28541
28544
|
f: {},
|
|
28542
28545
|
b: {},
|
|
28543
28546
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
28544
|
-
hash: "
|
|
28547
|
+
hash: "6d2a1487c3ee64be33ed78df7bbb278bf982988b"
|
|
28545
28548
|
};
|
|
28546
28549
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
28547
28550
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -28624,7 +28627,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28624
28627
|
label: ""
|
|
28625
28628
|
}
|
|
28626
28629
|
}, {
|
|
28627
|
-
type: "
|
|
28630
|
+
type: "textarea",
|
|
28628
28631
|
label: instance.t("fields.qif"),
|
|
28629
28632
|
isSingular: false,
|
|
28630
28633
|
icon: Input$2,
|
|
@@ -28642,7 +28645,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28642
28645
|
label: ""
|
|
28643
28646
|
}
|
|
28644
28647
|
}, {
|
|
28645
|
-
type: "
|
|
28648
|
+
type: "paragraph",
|
|
28646
28649
|
label: instance.t("fields.def"),
|
|
28647
28650
|
isSingular: false,
|
|
28648
28651
|
icon: NeetoInvisible,
|
|
@@ -28749,10 +28752,10 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28749
28752
|
|
|
28750
28753
|
// To show the question type as label in accordion
|
|
28751
28754
|
var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[4]++, {
|
|
28752
|
-
|
|
28755
|
+
paragraph: "Paragraph",
|
|
28753
28756
|
termsandcondition: "Terms & conditions"
|
|
28754
28757
|
});
|
|
28755
|
-
var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["
|
|
28758
|
+
var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["paragraph", "termsandcondition"]);
|
|
28756
28759
|
|
|
28757
28760
|
function cov_xwc6pppkl() {
|
|
28758
28761
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/FormField.jsx";
|
|
@@ -32989,7 +32992,7 @@ var getActiveQuestionKindDetails = function getActiveQuestionKindDetails(_ref) {
|
|
|
32989
32992
|
|
|
32990
32993
|
function cov_13igvew484() {
|
|
32991
32994
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/validation.js";
|
|
32992
|
-
var hash = "
|
|
32995
|
+
var hash = "ab8d6004b8f3a2722a845835961287028ecee2f1";
|
|
32993
32996
|
var global = new Function("return this")();
|
|
32994
32997
|
var gcv = "__coverage__";
|
|
32995
32998
|
var coverageData = {
|
|
@@ -32997,41 +33000,41 @@ function cov_13igvew484() {
|
|
|
32997
33000
|
statementMap: {
|
|
32998
33001
|
"0": {
|
|
32999
33002
|
start: {
|
|
33000
|
-
line:
|
|
33003
|
+
line: 5,
|
|
33001
33004
|
column: 22
|
|
33002
33005
|
},
|
|
33003
33006
|
end: {
|
|
33004
|
-
line:
|
|
33007
|
+
line: 9,
|
|
33005
33008
|
column: 36
|
|
33006
33009
|
}
|
|
33007
33010
|
},
|
|
33008
33011
|
"1": {
|
|
33009
33012
|
start: {
|
|
33010
|
-
line:
|
|
33013
|
+
line: 9,
|
|
33011
33014
|
column: 5
|
|
33012
33015
|
},
|
|
33013
33016
|
end: {
|
|
33014
|
-
line:
|
|
33017
|
+
line: 9,
|
|
33015
33018
|
column: 36
|
|
33016
33019
|
}
|
|
33017
33020
|
},
|
|
33018
33021
|
"2": {
|
|
33019
33022
|
start: {
|
|
33020
|
-
line:
|
|
33023
|
+
line: 11,
|
|
33021
33024
|
column: 29
|
|
33022
33025
|
},
|
|
33023
33026
|
end: {
|
|
33024
|
-
line:
|
|
33027
|
+
line: 45,
|
|
33025
33028
|
column: 2
|
|
33026
33029
|
}
|
|
33027
33030
|
},
|
|
33028
33031
|
"3": {
|
|
33029
33032
|
start: {
|
|
33030
|
-
line:
|
|
33033
|
+
line: 21,
|
|
33031
33034
|
column: 10
|
|
33032
33035
|
},
|
|
33033
33036
|
end: {
|
|
33034
|
-
line:
|
|
33037
|
+
line: 33,
|
|
33035
33038
|
column: 34
|
|
33036
33039
|
}
|
|
33037
33040
|
}
|
|
@@ -33041,108 +33044,108 @@ function cov_13igvew484() {
|
|
|
33041
33044
|
name: "(anonymous_0)",
|
|
33042
33045
|
decl: {
|
|
33043
33046
|
start: {
|
|
33044
|
-
line:
|
|
33047
|
+
line: 5,
|
|
33045
33048
|
column: 22
|
|
33046
33049
|
},
|
|
33047
33050
|
end: {
|
|
33048
|
-
line:
|
|
33051
|
+
line: 5,
|
|
33049
33052
|
column: 23
|
|
33050
33053
|
}
|
|
33051
33054
|
},
|
|
33052
33055
|
loc: {
|
|
33053
33056
|
start: {
|
|
33054
|
-
line:
|
|
33057
|
+
line: 9,
|
|
33055
33058
|
column: 5
|
|
33056
33059
|
},
|
|
33057
33060
|
end: {
|
|
33058
|
-
line:
|
|
33061
|
+
line: 9,
|
|
33059
33062
|
column: 36
|
|
33060
33063
|
}
|
|
33061
33064
|
},
|
|
33062
|
-
line:
|
|
33065
|
+
line: 9
|
|
33063
33066
|
},
|
|
33064
33067
|
"1": {
|
|
33065
33068
|
name: "(anonymous_1)",
|
|
33066
33069
|
decl: {
|
|
33067
33070
|
start: {
|
|
33068
|
-
line:
|
|
33071
|
+
line: 20,
|
|
33069
33072
|
column: 48
|
|
33070
33073
|
},
|
|
33071
33074
|
end: {
|
|
33072
|
-
line:
|
|
33075
|
+
line: 20,
|
|
33073
33076
|
column: 49
|
|
33074
33077
|
}
|
|
33075
33078
|
},
|
|
33076
33079
|
loc: {
|
|
33077
33080
|
start: {
|
|
33078
|
-
line:
|
|
33081
|
+
line: 21,
|
|
33079
33082
|
column: 10
|
|
33080
33083
|
},
|
|
33081
33084
|
end: {
|
|
33082
|
-
line:
|
|
33085
|
+
line: 33,
|
|
33083
33086
|
column: 34
|
|
33084
33087
|
}
|
|
33085
33088
|
},
|
|
33086
|
-
line:
|
|
33089
|
+
line: 21
|
|
33087
33090
|
}
|
|
33088
33091
|
},
|
|
33089
33092
|
branchMap: {
|
|
33090
33093
|
"0": {
|
|
33091
33094
|
loc: {
|
|
33092
33095
|
start: {
|
|
33093
|
-
line:
|
|
33096
|
+
line: 6,
|
|
33094
33097
|
column: 2
|
|
33095
33098
|
},
|
|
33096
33099
|
end: {
|
|
33097
|
-
line:
|
|
33100
|
+
line: 8,
|
|
33098
33101
|
column: 4
|
|
33099
33102
|
}
|
|
33100
33103
|
},
|
|
33101
33104
|
type: "default-arg",
|
|
33102
33105
|
locations: [{
|
|
33103
33106
|
start: {
|
|
33104
|
-
line:
|
|
33107
|
+
line: 6,
|
|
33105
33108
|
column: 17
|
|
33106
33109
|
},
|
|
33107
33110
|
end: {
|
|
33108
|
-
line:
|
|
33111
|
+
line: 8,
|
|
33109
33112
|
column: 4
|
|
33110
33113
|
}
|
|
33111
33114
|
}],
|
|
33112
|
-
line:
|
|
33115
|
+
line: 6
|
|
33113
33116
|
},
|
|
33114
33117
|
"1": {
|
|
33115
33118
|
loc: {
|
|
33116
33119
|
start: {
|
|
33117
|
-
line:
|
|
33120
|
+
line: 21,
|
|
33118
33121
|
column: 10
|
|
33119
33122
|
},
|
|
33120
33123
|
end: {
|
|
33121
|
-
line:
|
|
33124
|
+
line: 33,
|
|
33122
33125
|
column: 34
|
|
33123
33126
|
}
|
|
33124
33127
|
},
|
|
33125
33128
|
type: "cond-expr",
|
|
33126
33129
|
locations: [{
|
|
33127
33130
|
start: {
|
|
33128
|
-
line:
|
|
33131
|
+
line: 22,
|
|
33129
33132
|
column: 14
|
|
33130
33133
|
},
|
|
33131
33134
|
end: {
|
|
33132
|
-
line:
|
|
33135
|
+
line: 32,
|
|
33133
33136
|
column: 15
|
|
33134
33137
|
}
|
|
33135
33138
|
}, {
|
|
33136
33139
|
start: {
|
|
33137
|
-
line:
|
|
33140
|
+
line: 33,
|
|
33138
33141
|
column: 14
|
|
33139
33142
|
},
|
|
33140
33143
|
end: {
|
|
33141
|
-
line:
|
|
33144
|
+
line: 33,
|
|
33142
33145
|
column: 34
|
|
33143
33146
|
}
|
|
33144
33147
|
}],
|
|
33145
|
-
line:
|
|
33148
|
+
line: 21
|
|
33146
33149
|
}
|
|
33147
33150
|
},
|
|
33148
33151
|
s: {
|
|
@@ -33160,7 +33163,7 @@ function cov_13igvew484() {
|
|
|
33160
33163
|
"1": [0, 0]
|
|
33161
33164
|
},
|
|
33162
33165
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
33163
|
-
hash: "
|
|
33166
|
+
hash: "ab8d6004b8f3a2722a845835961287028ecee2f1"
|
|
33164
33167
|
};
|
|
33165
33168
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
33166
33169
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -33188,7 +33191,7 @@ var requiredLabel = function requiredLabel() {
|
|
|
33188
33191
|
var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
|
|
33189
33192
|
questions: array().of(object().shape({
|
|
33190
33193
|
label: requiredLabel().when("kind", {
|
|
33191
|
-
is: "
|
|
33194
|
+
is: "paragraph",
|
|
33192
33195
|
then: requiredLabel(instance.t("common.paragraphCantBeEmpty"))
|
|
33193
33196
|
}),
|
|
33194
33197
|
kind: string().required(),
|
|
@@ -56518,7 +56521,7 @@ cov_1zuybttr1q().s[8]++;
|
|
|
56518
56521
|
var _ref9;
|
|
56519
56522
|
function cov_1y9t6ere98() {
|
|
56520
56523
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/validations.js";
|
|
56521
|
-
var hash = "
|
|
56524
|
+
var hash = "4b4662b2577f6470c2291bacfa8dd237536ee800";
|
|
56522
56525
|
var global = new Function("return this")();
|
|
56523
56526
|
var gcv = "__coverage__";
|
|
56524
56527
|
var coverageData = {
|
|
@@ -57020,107 +57023,107 @@ function cov_1y9t6ere98() {
|
|
|
57020
57023
|
column: 30
|
|
57021
57024
|
},
|
|
57022
57025
|
end: {
|
|
57023
|
-
line:
|
|
57026
|
+
line: 127,
|
|
57024
57027
|
column: 1
|
|
57025
57028
|
}
|
|
57026
57029
|
},
|
|
57027
57030
|
"50": {
|
|
57028
57031
|
start: {
|
|
57029
|
-
line:
|
|
57032
|
+
line: 130,
|
|
57030
57033
|
column: 2
|
|
57031
57034
|
},
|
|
57032
57035
|
end: {
|
|
57033
|
-
line:
|
|
57036
|
+
line: 147,
|
|
57034
57037
|
column: 3
|
|
57035
57038
|
}
|
|
57036
57039
|
},
|
|
57037
57040
|
"51": {
|
|
57038
57041
|
start: {
|
|
57039
|
-
line:
|
|
57042
|
+
line: 132,
|
|
57040
57043
|
column: 2
|
|
57041
57044
|
},
|
|
57042
57045
|
end: {
|
|
57043
|
-
line:
|
|
57046
|
+
line: 147,
|
|
57044
57047
|
column: 3
|
|
57045
57048
|
}
|
|
57046
57049
|
},
|
|
57047
57050
|
"52": {
|
|
57048
57051
|
start: {
|
|
57049
|
-
line:
|
|
57052
|
+
line: 133,
|
|
57050
57053
|
column: 4
|
|
57051
57054
|
},
|
|
57052
57055
|
end: {
|
|
57053
|
-
line:
|
|
57056
|
+
line: 146,
|
|
57054
57057
|
column: 5
|
|
57055
57058
|
}
|
|
57056
57059
|
},
|
|
57057
57060
|
"53": {
|
|
57058
57061
|
start: {
|
|
57059
|
-
line:
|
|
57062
|
+
line: 134,
|
|
57060
57063
|
column: 24
|
|
57061
57064
|
},
|
|
57062
57065
|
end: {
|
|
57063
|
-
line:
|
|
57066
|
+
line: 134,
|
|
57064
57067
|
column: 51
|
|
57065
57068
|
}
|
|
57066
57069
|
},
|
|
57067
57070
|
"54": {
|
|
57068
57071
|
start: {
|
|
57069
|
-
line:
|
|
57072
|
+
line: 135,
|
|
57070
57073
|
column: 21
|
|
57071
57074
|
},
|
|
57072
57075
|
end: {
|
|
57073
|
-
line:
|
|
57076
|
+
line: 135,
|
|
57074
57077
|
column: 78
|
|
57075
57078
|
}
|
|
57076
57079
|
},
|
|
57077
57080
|
"55": {
|
|
57078
57081
|
start: {
|
|
57079
|
-
line:
|
|
57082
|
+
line: 138,
|
|
57080
57083
|
column: 6
|
|
57081
57084
|
},
|
|
57082
57085
|
end: {
|
|
57083
|
-
line:
|
|
57086
|
+
line: 145,
|
|
57084
57087
|
column: 9
|
|
57085
57088
|
}
|
|
57086
57089
|
},
|
|
57087
57090
|
"56": {
|
|
57088
57091
|
start: {
|
|
57089
|
-
line:
|
|
57092
|
+
line: 139,
|
|
57090
57093
|
column: 8
|
|
57091
57094
|
},
|
|
57092
57095
|
end: {
|
|
57093
|
-
line:
|
|
57096
|
+
line: 144,
|
|
57094
57097
|
column: 9
|
|
57095
57098
|
}
|
|
57096
57099
|
},
|
|
57097
57100
|
"57": {
|
|
57098
57101
|
start: {
|
|
57099
|
-
line:
|
|
57102
|
+
line: 140,
|
|
57100
57103
|
column: 10
|
|
57101
57104
|
},
|
|
57102
57105
|
end: {
|
|
57103
|
-
line:
|
|
57106
|
+
line: 140,
|
|
57104
57107
|
column: 39
|
|
57105
57108
|
}
|
|
57106
57109
|
},
|
|
57107
57110
|
"58": {
|
|
57108
57111
|
start: {
|
|
57109
|
-
line:
|
|
57112
|
+
line: 141,
|
|
57110
57113
|
column: 10
|
|
57111
57114
|
},
|
|
57112
57115
|
end: {
|
|
57113
|
-
line:
|
|
57116
|
+
line: 141,
|
|
57114
57117
|
column: 29
|
|
57115
57118
|
}
|
|
57116
57119
|
},
|
|
57117
57120
|
"59": {
|
|
57118
57121
|
start: {
|
|
57119
|
-
line:
|
|
57122
|
+
line: 143,
|
|
57120
57123
|
column: 10
|
|
57121
57124
|
},
|
|
57122
57125
|
end: {
|
|
57123
|
-
line:
|
|
57126
|
+
line: 143,
|
|
57124
57127
|
column: 31
|
|
57125
57128
|
}
|
|
57126
57129
|
}
|
|
@@ -57370,73 +57373,73 @@ function cov_1y9t6ere98() {
|
|
|
57370
57373
|
name: "(anonymous_10)",
|
|
57371
57374
|
decl: {
|
|
57372
57375
|
start: {
|
|
57373
|
-
line:
|
|
57376
|
+
line: 130,
|
|
57374
57377
|
column: 2
|
|
57375
57378
|
},
|
|
57376
57379
|
end: {
|
|
57377
|
-
line:
|
|
57380
|
+
line: 130,
|
|
57378
57381
|
column: 3
|
|
57379
57382
|
}
|
|
57380
57383
|
},
|
|
57381
57384
|
loc: {
|
|
57382
57385
|
start: {
|
|
57383
|
-
line:
|
|
57386
|
+
line: 132,
|
|
57384
57387
|
column: 2
|
|
57385
57388
|
},
|
|
57386
57389
|
end: {
|
|
57387
|
-
line:
|
|
57390
|
+
line: 147,
|
|
57388
57391
|
column: 3
|
|
57389
57392
|
}
|
|
57390
57393
|
},
|
|
57391
|
-
line:
|
|
57394
|
+
line: 132
|
|
57392
57395
|
},
|
|
57393
57396
|
"11": {
|
|
57394
57397
|
name: "(anonymous_11)",
|
|
57395
57398
|
decl: {
|
|
57396
57399
|
start: {
|
|
57397
|
-
line:
|
|
57400
|
+
line: 132,
|
|
57398
57401
|
column: 2
|
|
57399
57402
|
},
|
|
57400
57403
|
end: {
|
|
57401
|
-
line:
|
|
57404
|
+
line: 132,
|
|
57402
57405
|
column: 3
|
|
57403
57406
|
}
|
|
57404
57407
|
},
|
|
57405
57408
|
loc: {
|
|
57406
57409
|
start: {
|
|
57407
|
-
line:
|
|
57410
|
+
line: 132,
|
|
57408
57411
|
column: 11
|
|
57409
57412
|
},
|
|
57410
57413
|
end: {
|
|
57411
|
-
line:
|
|
57414
|
+
line: 147,
|
|
57412
57415
|
column: 3
|
|
57413
57416
|
}
|
|
57414
57417
|
},
|
|
57415
|
-
line:
|
|
57418
|
+
line: 132
|
|
57416
57419
|
},
|
|
57417
57420
|
"12": {
|
|
57418
57421
|
name: "(anonymous_12)",
|
|
57419
57422
|
decl: {
|
|
57420
57423
|
start: {
|
|
57421
|
-
line:
|
|
57424
|
+
line: 138,
|
|
57422
57425
|
column: 25
|
|
57423
57426
|
},
|
|
57424
57427
|
end: {
|
|
57425
|
-
line:
|
|
57428
|
+
line: 138,
|
|
57426
57429
|
column: 26
|
|
57427
57430
|
}
|
|
57428
57431
|
},
|
|
57429
57432
|
loc: {
|
|
57430
57433
|
start: {
|
|
57431
|
-
line:
|
|
57434
|
+
line: 138,
|
|
57432
57435
|
column: 42
|
|
57433
57436
|
},
|
|
57434
57437
|
end: {
|
|
57435
|
-
line:
|
|
57438
|
+
line: 145,
|
|
57436
57439
|
column: 7
|
|
57437
57440
|
}
|
|
57438
57441
|
},
|
|
57439
|
-
line:
|
|
57442
|
+
line: 138
|
|
57440
57443
|
}
|
|
57441
57444
|
},
|
|
57442
57445
|
branchMap: {
|
|
@@ -57773,22 +57776,22 @@ function cov_1y9t6ere98() {
|
|
|
57773
57776
|
"10": {
|
|
57774
57777
|
loc: {
|
|
57775
57778
|
start: {
|
|
57776
|
-
line:
|
|
57779
|
+
line: 133,
|
|
57777
57780
|
column: 4
|
|
57778
57781
|
},
|
|
57779
57782
|
end: {
|
|
57780
|
-
line:
|
|
57783
|
+
line: 146,
|
|
57781
57784
|
column: 5
|
|
57782
57785
|
}
|
|
57783
57786
|
},
|
|
57784
57787
|
type: "if",
|
|
57785
57788
|
locations: [{
|
|
57786
57789
|
start: {
|
|
57787
|
-
line:
|
|
57790
|
+
line: 133,
|
|
57788
57791
|
column: 4
|
|
57789
57792
|
},
|
|
57790
57793
|
end: {
|
|
57791
|
-
line:
|
|
57794
|
+
line: 146,
|
|
57792
57795
|
column: 5
|
|
57793
57796
|
}
|
|
57794
57797
|
}, {
|
|
@@ -57801,40 +57804,40 @@ function cov_1y9t6ere98() {
|
|
|
57801
57804
|
column: undefined
|
|
57802
57805
|
}
|
|
57803
57806
|
}],
|
|
57804
|
-
line:
|
|
57807
|
+
line: 133
|
|
57805
57808
|
},
|
|
57806
57809
|
"11": {
|
|
57807
57810
|
loc: {
|
|
57808
57811
|
start: {
|
|
57809
|
-
line:
|
|
57812
|
+
line: 135,
|
|
57810
57813
|
column: 21
|
|
57811
57814
|
},
|
|
57812
57815
|
end: {
|
|
57813
|
-
line:
|
|
57816
|
+
line: 135,
|
|
57814
57817
|
column: 78
|
|
57815
57818
|
}
|
|
57816
57819
|
},
|
|
57817
57820
|
type: "binary-expr",
|
|
57818
57821
|
locations: [{
|
|
57819
57822
|
start: {
|
|
57820
|
-
line:
|
|
57823
|
+
line: 135,
|
|
57821
57824
|
column: 21
|
|
57822
57825
|
},
|
|
57823
57826
|
end: {
|
|
57824
|
-
line:
|
|
57827
|
+
line: 135,
|
|
57825
57828
|
column: 36
|
|
57826
57829
|
}
|
|
57827
57830
|
}, {
|
|
57828
57831
|
start: {
|
|
57829
|
-
line:
|
|
57832
|
+
line: 135,
|
|
57830
57833
|
column: 40
|
|
57831
57834
|
},
|
|
57832
57835
|
end: {
|
|
57833
|
-
line:
|
|
57836
|
+
line: 135,
|
|
57834
57837
|
column: 78
|
|
57835
57838
|
}
|
|
57836
57839
|
}],
|
|
57837
|
-
line:
|
|
57840
|
+
line: 135
|
|
57838
57841
|
}
|
|
57839
57842
|
},
|
|
57840
57843
|
s: {
|
|
@@ -57929,7 +57932,7 @@ function cov_1y9t6ere98() {
|
|
|
57929
57932
|
"11": [0, 0]
|
|
57930
57933
|
},
|
|
57931
57934
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
57932
|
-
hash: "
|
|
57935
|
+
hash: "4b4662b2577f6470c2291bacfa8dd237536ee800"
|
|
57933
57936
|
};
|
|
57934
57937
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
57935
57938
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -58110,7 +58113,7 @@ var validateRichTextField = function validateRichTextField(_ref8) {
|
|
|
58110
58113
|
cov_1y9t6ere98().s[48]++;
|
|
58111
58114
|
return schema;
|
|
58112
58115
|
};
|
|
58113
|
-
var fieldKindValidatorMap = (cov_1y9t6ere98().s[49]++, (_ref9 = {}, _defineProperty$a(_ref9, QUESTION_KIND.EMAIL.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.PHONE.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXT.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.NAME.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.QUESTION.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.DROPDOWN.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RADIO.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.CHECKBOX.value, validateMultiChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RATING.value, validateRatingField), _defineProperty$a(_ref9, QUESTION_KIND.TERMS.value, validateTermsField), _defineProperty$a(_ref9, QUESTION_KIND.DATE.value, validateDateField), _defineProperty$a(_ref9, QUESTION_KIND.STAR_RATING.value, validateStarRatingField), _defineProperty$a(_ref9, QUESTION_KIND.ADDITIONAL_GUESTS.value, validateMultiEmailField), _defineProperty$a(_ref9, QUESTION_KIND.RICH_TEXT.value, validateRichTextField), _ref9));
|
|
58116
|
+
var fieldKindValidatorMap = (cov_1y9t6ere98().s[49]++, (_ref9 = {}, _defineProperty$a(_ref9, QUESTION_KIND.EMAIL.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.PHONE.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXT.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.NAME.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.QUESTION.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXTAREA.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.DROPDOWN.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RADIO.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.CHECKBOX.value, validateMultiChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RATING.value, validateRatingField), _defineProperty$a(_ref9, QUESTION_KIND.TERMS.value, validateTermsField), _defineProperty$a(_ref9, QUESTION_KIND.DATE.value, validateDateField), _defineProperty$a(_ref9, QUESTION_KIND.STAR_RATING.value, validateStarRatingField), _defineProperty$a(_ref9, QUESTION_KIND.ADDITIONAL_GUESTS.value, validateMultiEmailField), _defineProperty$a(_ref9, QUESTION_KIND.RICH_TEXT.value, validateRichTextField), _ref9));
|
|
58114
58117
|
cov_1y9t6ere98().s[50]++;
|
|
58115
58118
|
var validateFieldValue = function validateFieldValue(_ref10) {
|
|
58116
58119
|
var kind = _ref10.kind,
|
|
@@ -65290,7 +65293,7 @@ var TextField = function TextField(_ref) {
|
|
|
65290
65293
|
_ref3$type = _ref3.type,
|
|
65291
65294
|
type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
|
|
65292
65295
|
otherProps = _ref3.otherProps;
|
|
65293
|
-
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.
|
|
65296
|
+
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea) : (cov_h64dar2vv().b[1][1]++, FormInput));
|
|
65294
65297
|
cov_h64dar2vv().s[4]++;
|
|
65295
65298
|
return /*#__PURE__*/React__default.createElement(Field, {
|
|
65296
65299
|
name: (cov_h64dar2vv().b[2][0]++, name) || (cov_h64dar2vv().b[2][1]++, nodeId),
|
|
@@ -65322,7 +65325,7 @@ var TextField = function TextField(_ref) {
|
|
|
65322
65325
|
var _ref2;
|
|
65323
65326
|
function cov_1cenqfav07() {
|
|
65324
65327
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
|
|
65325
|
-
var hash = "
|
|
65328
|
+
var hash = "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27";
|
|
65326
65329
|
var global = new Function("return this")();
|
|
65327
65330
|
var gcv = "__coverage__";
|
|
65328
65331
|
var coverageData = {
|
|
@@ -65334,17 +65337,17 @@ function cov_1cenqfav07() {
|
|
|
65334
65337
|
column: 41
|
|
65335
65338
|
},
|
|
65336
65339
|
end: {
|
|
65337
|
-
line:
|
|
65340
|
+
line: 38,
|
|
65338
65341
|
column: 1
|
|
65339
65342
|
}
|
|
65340
65343
|
},
|
|
65341
65344
|
"1": {
|
|
65342
65345
|
start: {
|
|
65343
|
-
line:
|
|
65346
|
+
line: 30,
|
|
65344
65347
|
column: 4
|
|
65345
65348
|
},
|
|
65346
65349
|
end: {
|
|
65347
|
-
line:
|
|
65350
|
+
line: 30,
|
|
65348
65351
|
column: 46
|
|
65349
65352
|
}
|
|
65350
65353
|
}
|
|
@@ -65354,25 +65357,25 @@ function cov_1cenqfav07() {
|
|
|
65354
65357
|
name: "(anonymous_0)",
|
|
65355
65358
|
decl: {
|
|
65356
65359
|
start: {
|
|
65357
|
-
line:
|
|
65358
|
-
column:
|
|
65360
|
+
line: 29,
|
|
65361
|
+
column: 35
|
|
65359
65362
|
},
|
|
65360
65363
|
end: {
|
|
65361
|
-
line:
|
|
65362
|
-
column:
|
|
65364
|
+
line: 29,
|
|
65365
|
+
column: 36
|
|
65363
65366
|
}
|
|
65364
65367
|
},
|
|
65365
65368
|
loc: {
|
|
65366
65369
|
start: {
|
|
65367
|
-
line:
|
|
65370
|
+
line: 30,
|
|
65368
65371
|
column: 4
|
|
65369
65372
|
},
|
|
65370
65373
|
end: {
|
|
65371
|
-
line:
|
|
65374
|
+
line: 30,
|
|
65372
65375
|
column: 46
|
|
65373
65376
|
}
|
|
65374
65377
|
},
|
|
65375
|
-
line:
|
|
65378
|
+
line: 30
|
|
65376
65379
|
}
|
|
65377
65380
|
},
|
|
65378
65381
|
branchMap: {},
|
|
@@ -65385,7 +65388,7 @@ function cov_1cenqfav07() {
|
|
|
65385
65388
|
},
|
|
65386
65389
|
b: {},
|
|
65387
65390
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
65388
|
-
hash: "
|
|
65391
|
+
hash: "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27"
|
|
65389
65392
|
};
|
|
65390
65393
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
65391
65394
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -65401,7 +65404,7 @@ function cov_1cenqfav07() {
|
|
|
65401
65404
|
return actualCoverage;
|
|
65402
65405
|
}
|
|
65403
65406
|
cov_1cenqfav07();
|
|
65404
|
-
var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$a(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$a(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$a(_ref2, QUESTION_KIND.
|
|
65407
|
+
var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$a(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$a(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$a(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
|
|
65405
65408
|
var question = _ref.question;
|
|
65406
65409
|
cov_1cenqfav07().f[0]++;
|
|
65407
65410
|
cov_1cenqfav07().s[1]++;
|