@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.cjs.js
CHANGED
|
@@ -7070,7 +7070,7 @@ var Trophy = function Trophy(_ref5) {
|
|
|
7070
7070
|
|
|
7071
7071
|
function cov_2qs8napxwn() {
|
|
7072
7072
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
|
|
7073
|
-
var hash = "
|
|
7073
|
+
var hash = "06c0fa99a8044bfa85dba10dcf9fa947503a23c0";
|
|
7074
7074
|
var global = new Function("return this")();
|
|
7075
7075
|
var gcv = "__coverage__";
|
|
7076
7076
|
var coverageData = {
|
|
@@ -7082,57 +7082,57 @@ function cov_2qs8napxwn() {
|
|
|
7082
7082
|
column: 29
|
|
7083
7083
|
},
|
|
7084
7084
|
end: {
|
|
7085
|
-
line:
|
|
7085
|
+
line: 39,
|
|
7086
7086
|
column: 1
|
|
7087
7087
|
}
|
|
7088
7088
|
},
|
|
7089
7089
|
"1": {
|
|
7090
7090
|
start: {
|
|
7091
|
-
line:
|
|
7091
|
+
line: 41,
|
|
7092
7092
|
column: 29
|
|
7093
7093
|
},
|
|
7094
7094
|
end: {
|
|
7095
|
-
line:
|
|
7095
|
+
line: 45,
|
|
7096
7096
|
column: 1
|
|
7097
7097
|
}
|
|
7098
7098
|
},
|
|
7099
7099
|
"2": {
|
|
7100
7100
|
start: {
|
|
7101
|
-
line:
|
|
7101
|
+
line: 47,
|
|
7102
7102
|
column: 42
|
|
7103
7103
|
},
|
|
7104
7104
|
end: {
|
|
7105
|
-
line:
|
|
7106
|
-
column:
|
|
7105
|
+
line: 47,
|
|
7106
|
+
column: 73
|
|
7107
7107
|
}
|
|
7108
7108
|
},
|
|
7109
7109
|
"3": {
|
|
7110
7110
|
start: {
|
|
7111
|
-
line:
|
|
7111
|
+
line: 49,
|
|
7112
7112
|
column: 30
|
|
7113
7113
|
},
|
|
7114
7114
|
end: {
|
|
7115
|
-
line:
|
|
7115
|
+
line: 65,
|
|
7116
7116
|
column: 1
|
|
7117
7117
|
}
|
|
7118
7118
|
},
|
|
7119
7119
|
"4": {
|
|
7120
7120
|
start: {
|
|
7121
|
-
line:
|
|
7121
|
+
line: 67,
|
|
7122
7122
|
column: 35
|
|
7123
7123
|
},
|
|
7124
7124
|
end: {
|
|
7125
|
-
line:
|
|
7125
|
+
line: 67,
|
|
7126
7126
|
column: 49
|
|
7127
7127
|
}
|
|
7128
7128
|
},
|
|
7129
7129
|
"5": {
|
|
7130
7130
|
start: {
|
|
7131
|
-
line:
|
|
7131
|
+
line: 69,
|
|
7132
7132
|
column: 25
|
|
7133
7133
|
},
|
|
7134
7134
|
end: {
|
|
7135
|
-
line:
|
|
7135
|
+
line: 75,
|
|
7136
7136
|
column: 1
|
|
7137
7137
|
}
|
|
7138
7138
|
}
|
|
@@ -7150,7 +7150,7 @@ function cov_2qs8napxwn() {
|
|
|
7150
7150
|
f: {},
|
|
7151
7151
|
b: {},
|
|
7152
7152
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7153
|
-
hash: "
|
|
7153
|
+
hash: "06c0fa99a8044bfa85dba10dcf9fa947503a23c0"
|
|
7154
7154
|
};
|
|
7155
7155
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7156
7156
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7194,6 +7194,9 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
|
|
|
7194
7194
|
DROPDOWN: {
|
|
7195
7195
|
value: "dropdown"
|
|
7196
7196
|
},
|
|
7197
|
+
PARAGRAPH: {
|
|
7198
|
+
value: "paragraph"
|
|
7199
|
+
},
|
|
7197
7200
|
TEXTAREA: {
|
|
7198
7201
|
value: "textarea"
|
|
7199
7202
|
},
|
|
@@ -7238,7 +7241,7 @@ var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
|
|
|
7238
7241
|
value: "bad"
|
|
7239
7242
|
}
|
|
7240
7243
|
});
|
|
7241
|
-
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.
|
|
7244
|
+
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.PARAGRAPH.value]);
|
|
7242
7245
|
var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
|
|
7243
7246
|
icon: SvgHappyFace,
|
|
7244
7247
|
modifier: "happy",
|
|
@@ -28500,7 +28503,7 @@ var Editor = function Editor(_ref) {
|
|
|
28500
28503
|
|
|
28501
28504
|
function cov_2j8tlu2ul5() {
|
|
28502
28505
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
|
|
28503
|
-
var hash = "
|
|
28506
|
+
var hash = "6d2a1487c3ee64be33ed78df7bbb278bf982988b";
|
|
28504
28507
|
var global = new Function("return this")();
|
|
28505
28508
|
var gcv = "__coverage__";
|
|
28506
28509
|
var coverageData = {
|
|
@@ -28563,7 +28566,7 @@ function cov_2j8tlu2ul5() {
|
|
|
28563
28566
|
},
|
|
28564
28567
|
end: {
|
|
28565
28568
|
line: 218,
|
|
28566
|
-
column:
|
|
28569
|
+
column: 63
|
|
28567
28570
|
}
|
|
28568
28571
|
}
|
|
28569
28572
|
},
|
|
@@ -28580,7 +28583,7 @@ function cov_2j8tlu2ul5() {
|
|
|
28580
28583
|
f: {},
|
|
28581
28584
|
b: {},
|
|
28582
28585
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
28583
|
-
hash: "
|
|
28586
|
+
hash: "6d2a1487c3ee64be33ed78df7bbb278bf982988b"
|
|
28584
28587
|
};
|
|
28585
28588
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
28586
28589
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -28663,7 +28666,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28663
28666
|
label: ""
|
|
28664
28667
|
}
|
|
28665
28668
|
}, {
|
|
28666
|
-
type: "
|
|
28669
|
+
type: "textarea",
|
|
28667
28670
|
label: instance.t("fields.qif"),
|
|
28668
28671
|
isSingular: false,
|
|
28669
28672
|
icon: neetoIcons.Input,
|
|
@@ -28681,7 +28684,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28681
28684
|
label: ""
|
|
28682
28685
|
}
|
|
28683
28686
|
}, {
|
|
28684
|
-
type: "
|
|
28687
|
+
type: "paragraph",
|
|
28685
28688
|
label: instance.t("fields.def"),
|
|
28686
28689
|
isSingular: false,
|
|
28687
28690
|
icon: neetoIcons.NeetoInvisible,
|
|
@@ -28788,10 +28791,10 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28788
28791
|
|
|
28789
28792
|
// To show the question type as label in accordion
|
|
28790
28793
|
var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[4]++, {
|
|
28791
|
-
|
|
28794
|
+
paragraph: "Paragraph",
|
|
28792
28795
|
termsandcondition: "Terms & conditions"
|
|
28793
28796
|
});
|
|
28794
|
-
var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["
|
|
28797
|
+
var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["paragraph", "termsandcondition"]);
|
|
28795
28798
|
|
|
28796
28799
|
function cov_xwc6pppkl() {
|
|
28797
28800
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/FormField.jsx";
|
|
@@ -33028,7 +33031,7 @@ var getActiveQuestionKindDetails = function getActiveQuestionKindDetails(_ref) {
|
|
|
33028
33031
|
|
|
33029
33032
|
function cov_13igvew484() {
|
|
33030
33033
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/validation.js";
|
|
33031
|
-
var hash = "
|
|
33034
|
+
var hash = "ab8d6004b8f3a2722a845835961287028ecee2f1";
|
|
33032
33035
|
var global = new Function("return this")();
|
|
33033
33036
|
var gcv = "__coverage__";
|
|
33034
33037
|
var coverageData = {
|
|
@@ -33036,41 +33039,41 @@ function cov_13igvew484() {
|
|
|
33036
33039
|
statementMap: {
|
|
33037
33040
|
"0": {
|
|
33038
33041
|
start: {
|
|
33039
|
-
line:
|
|
33042
|
+
line: 5,
|
|
33040
33043
|
column: 22
|
|
33041
33044
|
},
|
|
33042
33045
|
end: {
|
|
33043
|
-
line:
|
|
33046
|
+
line: 9,
|
|
33044
33047
|
column: 36
|
|
33045
33048
|
}
|
|
33046
33049
|
},
|
|
33047
33050
|
"1": {
|
|
33048
33051
|
start: {
|
|
33049
|
-
line:
|
|
33052
|
+
line: 9,
|
|
33050
33053
|
column: 5
|
|
33051
33054
|
},
|
|
33052
33055
|
end: {
|
|
33053
|
-
line:
|
|
33056
|
+
line: 9,
|
|
33054
33057
|
column: 36
|
|
33055
33058
|
}
|
|
33056
33059
|
},
|
|
33057
33060
|
"2": {
|
|
33058
33061
|
start: {
|
|
33059
|
-
line:
|
|
33062
|
+
line: 11,
|
|
33060
33063
|
column: 29
|
|
33061
33064
|
},
|
|
33062
33065
|
end: {
|
|
33063
|
-
line:
|
|
33066
|
+
line: 45,
|
|
33064
33067
|
column: 2
|
|
33065
33068
|
}
|
|
33066
33069
|
},
|
|
33067
33070
|
"3": {
|
|
33068
33071
|
start: {
|
|
33069
|
-
line:
|
|
33072
|
+
line: 21,
|
|
33070
33073
|
column: 10
|
|
33071
33074
|
},
|
|
33072
33075
|
end: {
|
|
33073
|
-
line:
|
|
33076
|
+
line: 33,
|
|
33074
33077
|
column: 34
|
|
33075
33078
|
}
|
|
33076
33079
|
}
|
|
@@ -33080,108 +33083,108 @@ function cov_13igvew484() {
|
|
|
33080
33083
|
name: "(anonymous_0)",
|
|
33081
33084
|
decl: {
|
|
33082
33085
|
start: {
|
|
33083
|
-
line:
|
|
33086
|
+
line: 5,
|
|
33084
33087
|
column: 22
|
|
33085
33088
|
},
|
|
33086
33089
|
end: {
|
|
33087
|
-
line:
|
|
33090
|
+
line: 5,
|
|
33088
33091
|
column: 23
|
|
33089
33092
|
}
|
|
33090
33093
|
},
|
|
33091
33094
|
loc: {
|
|
33092
33095
|
start: {
|
|
33093
|
-
line:
|
|
33096
|
+
line: 9,
|
|
33094
33097
|
column: 5
|
|
33095
33098
|
},
|
|
33096
33099
|
end: {
|
|
33097
|
-
line:
|
|
33100
|
+
line: 9,
|
|
33098
33101
|
column: 36
|
|
33099
33102
|
}
|
|
33100
33103
|
},
|
|
33101
|
-
line:
|
|
33104
|
+
line: 9
|
|
33102
33105
|
},
|
|
33103
33106
|
"1": {
|
|
33104
33107
|
name: "(anonymous_1)",
|
|
33105
33108
|
decl: {
|
|
33106
33109
|
start: {
|
|
33107
|
-
line:
|
|
33110
|
+
line: 20,
|
|
33108
33111
|
column: 48
|
|
33109
33112
|
},
|
|
33110
33113
|
end: {
|
|
33111
|
-
line:
|
|
33114
|
+
line: 20,
|
|
33112
33115
|
column: 49
|
|
33113
33116
|
}
|
|
33114
33117
|
},
|
|
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
|
-
line:
|
|
33128
|
+
line: 21
|
|
33126
33129
|
}
|
|
33127
33130
|
},
|
|
33128
33131
|
branchMap: {
|
|
33129
33132
|
"0": {
|
|
33130
33133
|
loc: {
|
|
33131
33134
|
start: {
|
|
33132
|
-
line:
|
|
33135
|
+
line: 6,
|
|
33133
33136
|
column: 2
|
|
33134
33137
|
},
|
|
33135
33138
|
end: {
|
|
33136
|
-
line:
|
|
33139
|
+
line: 8,
|
|
33137
33140
|
column: 4
|
|
33138
33141
|
}
|
|
33139
33142
|
},
|
|
33140
33143
|
type: "default-arg",
|
|
33141
33144
|
locations: [{
|
|
33142
33145
|
start: {
|
|
33143
|
-
line:
|
|
33146
|
+
line: 6,
|
|
33144
33147
|
column: 17
|
|
33145
33148
|
},
|
|
33146
33149
|
end: {
|
|
33147
|
-
line:
|
|
33150
|
+
line: 8,
|
|
33148
33151
|
column: 4
|
|
33149
33152
|
}
|
|
33150
33153
|
}],
|
|
33151
|
-
line:
|
|
33154
|
+
line: 6
|
|
33152
33155
|
},
|
|
33153
33156
|
"1": {
|
|
33154
33157
|
loc: {
|
|
33155
33158
|
start: {
|
|
33156
|
-
line:
|
|
33159
|
+
line: 21,
|
|
33157
33160
|
column: 10
|
|
33158
33161
|
},
|
|
33159
33162
|
end: {
|
|
33160
|
-
line:
|
|
33163
|
+
line: 33,
|
|
33161
33164
|
column: 34
|
|
33162
33165
|
}
|
|
33163
33166
|
},
|
|
33164
33167
|
type: "cond-expr",
|
|
33165
33168
|
locations: [{
|
|
33166
33169
|
start: {
|
|
33167
|
-
line:
|
|
33170
|
+
line: 22,
|
|
33168
33171
|
column: 14
|
|
33169
33172
|
},
|
|
33170
33173
|
end: {
|
|
33171
|
-
line:
|
|
33174
|
+
line: 32,
|
|
33172
33175
|
column: 15
|
|
33173
33176
|
}
|
|
33174
33177
|
}, {
|
|
33175
33178
|
start: {
|
|
33176
|
-
line:
|
|
33179
|
+
line: 33,
|
|
33177
33180
|
column: 14
|
|
33178
33181
|
},
|
|
33179
33182
|
end: {
|
|
33180
|
-
line:
|
|
33183
|
+
line: 33,
|
|
33181
33184
|
column: 34
|
|
33182
33185
|
}
|
|
33183
33186
|
}],
|
|
33184
|
-
line:
|
|
33187
|
+
line: 21
|
|
33185
33188
|
}
|
|
33186
33189
|
},
|
|
33187
33190
|
s: {
|
|
@@ -33199,7 +33202,7 @@ function cov_13igvew484() {
|
|
|
33199
33202
|
"1": [0, 0]
|
|
33200
33203
|
},
|
|
33201
33204
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
33202
|
-
hash: "
|
|
33205
|
+
hash: "ab8d6004b8f3a2722a845835961287028ecee2f1"
|
|
33203
33206
|
};
|
|
33204
33207
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
33205
33208
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -33227,7 +33230,7 @@ var requiredLabel = function requiredLabel() {
|
|
|
33227
33230
|
var formValidationSchema = (cov_13igvew484().s[2]++, yup.object().shape({
|
|
33228
33231
|
questions: yup.array().of(yup.object().shape({
|
|
33229
33232
|
label: requiredLabel().when("kind", {
|
|
33230
|
-
is: "
|
|
33233
|
+
is: "paragraph",
|
|
33231
33234
|
then: requiredLabel(instance.t("common.paragraphCantBeEmpty"))
|
|
33232
33235
|
}),
|
|
33233
33236
|
kind: yup.string().required(),
|
|
@@ -56557,7 +56560,7 @@ cov_1zuybttr1q().s[8]++;
|
|
|
56557
56560
|
var _ref9;
|
|
56558
56561
|
function cov_1y9t6ere98() {
|
|
56559
56562
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/validations.js";
|
|
56560
|
-
var hash = "
|
|
56563
|
+
var hash = "4b4662b2577f6470c2291bacfa8dd237536ee800";
|
|
56561
56564
|
var global = new Function("return this")();
|
|
56562
56565
|
var gcv = "__coverage__";
|
|
56563
56566
|
var coverageData = {
|
|
@@ -57059,107 +57062,107 @@ function cov_1y9t6ere98() {
|
|
|
57059
57062
|
column: 30
|
|
57060
57063
|
},
|
|
57061
57064
|
end: {
|
|
57062
|
-
line:
|
|
57065
|
+
line: 127,
|
|
57063
57066
|
column: 1
|
|
57064
57067
|
}
|
|
57065
57068
|
},
|
|
57066
57069
|
"50": {
|
|
57067
57070
|
start: {
|
|
57068
|
-
line:
|
|
57071
|
+
line: 130,
|
|
57069
57072
|
column: 2
|
|
57070
57073
|
},
|
|
57071
57074
|
end: {
|
|
57072
|
-
line:
|
|
57075
|
+
line: 147,
|
|
57073
57076
|
column: 3
|
|
57074
57077
|
}
|
|
57075
57078
|
},
|
|
57076
57079
|
"51": {
|
|
57077
57080
|
start: {
|
|
57078
|
-
line:
|
|
57081
|
+
line: 132,
|
|
57079
57082
|
column: 2
|
|
57080
57083
|
},
|
|
57081
57084
|
end: {
|
|
57082
|
-
line:
|
|
57085
|
+
line: 147,
|
|
57083
57086
|
column: 3
|
|
57084
57087
|
}
|
|
57085
57088
|
},
|
|
57086
57089
|
"52": {
|
|
57087
57090
|
start: {
|
|
57088
|
-
line:
|
|
57091
|
+
line: 133,
|
|
57089
57092
|
column: 4
|
|
57090
57093
|
},
|
|
57091
57094
|
end: {
|
|
57092
|
-
line:
|
|
57095
|
+
line: 146,
|
|
57093
57096
|
column: 5
|
|
57094
57097
|
}
|
|
57095
57098
|
},
|
|
57096
57099
|
"53": {
|
|
57097
57100
|
start: {
|
|
57098
|
-
line:
|
|
57101
|
+
line: 134,
|
|
57099
57102
|
column: 24
|
|
57100
57103
|
},
|
|
57101
57104
|
end: {
|
|
57102
|
-
line:
|
|
57105
|
+
line: 134,
|
|
57103
57106
|
column: 51
|
|
57104
57107
|
}
|
|
57105
57108
|
},
|
|
57106
57109
|
"54": {
|
|
57107
57110
|
start: {
|
|
57108
|
-
line:
|
|
57111
|
+
line: 135,
|
|
57109
57112
|
column: 21
|
|
57110
57113
|
},
|
|
57111
57114
|
end: {
|
|
57112
|
-
line:
|
|
57115
|
+
line: 135,
|
|
57113
57116
|
column: 78
|
|
57114
57117
|
}
|
|
57115
57118
|
},
|
|
57116
57119
|
"55": {
|
|
57117
57120
|
start: {
|
|
57118
|
-
line:
|
|
57121
|
+
line: 138,
|
|
57119
57122
|
column: 6
|
|
57120
57123
|
},
|
|
57121
57124
|
end: {
|
|
57122
|
-
line:
|
|
57125
|
+
line: 145,
|
|
57123
57126
|
column: 9
|
|
57124
57127
|
}
|
|
57125
57128
|
},
|
|
57126
57129
|
"56": {
|
|
57127
57130
|
start: {
|
|
57128
|
-
line:
|
|
57131
|
+
line: 139,
|
|
57129
57132
|
column: 8
|
|
57130
57133
|
},
|
|
57131
57134
|
end: {
|
|
57132
|
-
line:
|
|
57135
|
+
line: 144,
|
|
57133
57136
|
column: 9
|
|
57134
57137
|
}
|
|
57135
57138
|
},
|
|
57136
57139
|
"57": {
|
|
57137
57140
|
start: {
|
|
57138
|
-
line:
|
|
57141
|
+
line: 140,
|
|
57139
57142
|
column: 10
|
|
57140
57143
|
},
|
|
57141
57144
|
end: {
|
|
57142
|
-
line:
|
|
57145
|
+
line: 140,
|
|
57143
57146
|
column: 39
|
|
57144
57147
|
}
|
|
57145
57148
|
},
|
|
57146
57149
|
"58": {
|
|
57147
57150
|
start: {
|
|
57148
|
-
line:
|
|
57151
|
+
line: 141,
|
|
57149
57152
|
column: 10
|
|
57150
57153
|
},
|
|
57151
57154
|
end: {
|
|
57152
|
-
line:
|
|
57155
|
+
line: 141,
|
|
57153
57156
|
column: 29
|
|
57154
57157
|
}
|
|
57155
57158
|
},
|
|
57156
57159
|
"59": {
|
|
57157
57160
|
start: {
|
|
57158
|
-
line:
|
|
57161
|
+
line: 143,
|
|
57159
57162
|
column: 10
|
|
57160
57163
|
},
|
|
57161
57164
|
end: {
|
|
57162
|
-
line:
|
|
57165
|
+
line: 143,
|
|
57163
57166
|
column: 31
|
|
57164
57167
|
}
|
|
57165
57168
|
}
|
|
@@ -57409,73 +57412,73 @@ function cov_1y9t6ere98() {
|
|
|
57409
57412
|
name: "(anonymous_10)",
|
|
57410
57413
|
decl: {
|
|
57411
57414
|
start: {
|
|
57412
|
-
line:
|
|
57415
|
+
line: 130,
|
|
57413
57416
|
column: 2
|
|
57414
57417
|
},
|
|
57415
57418
|
end: {
|
|
57416
|
-
line:
|
|
57419
|
+
line: 130,
|
|
57417
57420
|
column: 3
|
|
57418
57421
|
}
|
|
57419
57422
|
},
|
|
57420
57423
|
loc: {
|
|
57421
57424
|
start: {
|
|
57422
|
-
line:
|
|
57425
|
+
line: 132,
|
|
57423
57426
|
column: 2
|
|
57424
57427
|
},
|
|
57425
57428
|
end: {
|
|
57426
|
-
line:
|
|
57429
|
+
line: 147,
|
|
57427
57430
|
column: 3
|
|
57428
57431
|
}
|
|
57429
57432
|
},
|
|
57430
|
-
line:
|
|
57433
|
+
line: 132
|
|
57431
57434
|
},
|
|
57432
57435
|
"11": {
|
|
57433
57436
|
name: "(anonymous_11)",
|
|
57434
57437
|
decl: {
|
|
57435
57438
|
start: {
|
|
57436
|
-
line:
|
|
57439
|
+
line: 132,
|
|
57437
57440
|
column: 2
|
|
57438
57441
|
},
|
|
57439
57442
|
end: {
|
|
57440
|
-
line:
|
|
57443
|
+
line: 132,
|
|
57441
57444
|
column: 3
|
|
57442
57445
|
}
|
|
57443
57446
|
},
|
|
57444
57447
|
loc: {
|
|
57445
57448
|
start: {
|
|
57446
|
-
line:
|
|
57449
|
+
line: 132,
|
|
57447
57450
|
column: 11
|
|
57448
57451
|
},
|
|
57449
57452
|
end: {
|
|
57450
|
-
line:
|
|
57453
|
+
line: 147,
|
|
57451
57454
|
column: 3
|
|
57452
57455
|
}
|
|
57453
57456
|
},
|
|
57454
|
-
line:
|
|
57457
|
+
line: 132
|
|
57455
57458
|
},
|
|
57456
57459
|
"12": {
|
|
57457
57460
|
name: "(anonymous_12)",
|
|
57458
57461
|
decl: {
|
|
57459
57462
|
start: {
|
|
57460
|
-
line:
|
|
57463
|
+
line: 138,
|
|
57461
57464
|
column: 25
|
|
57462
57465
|
},
|
|
57463
57466
|
end: {
|
|
57464
|
-
line:
|
|
57467
|
+
line: 138,
|
|
57465
57468
|
column: 26
|
|
57466
57469
|
}
|
|
57467
57470
|
},
|
|
57468
57471
|
loc: {
|
|
57469
57472
|
start: {
|
|
57470
|
-
line:
|
|
57473
|
+
line: 138,
|
|
57471
57474
|
column: 42
|
|
57472
57475
|
},
|
|
57473
57476
|
end: {
|
|
57474
|
-
line:
|
|
57477
|
+
line: 145,
|
|
57475
57478
|
column: 7
|
|
57476
57479
|
}
|
|
57477
57480
|
},
|
|
57478
|
-
line:
|
|
57481
|
+
line: 138
|
|
57479
57482
|
}
|
|
57480
57483
|
},
|
|
57481
57484
|
branchMap: {
|
|
@@ -57812,22 +57815,22 @@ function cov_1y9t6ere98() {
|
|
|
57812
57815
|
"10": {
|
|
57813
57816
|
loc: {
|
|
57814
57817
|
start: {
|
|
57815
|
-
line:
|
|
57818
|
+
line: 133,
|
|
57816
57819
|
column: 4
|
|
57817
57820
|
},
|
|
57818
57821
|
end: {
|
|
57819
|
-
line:
|
|
57822
|
+
line: 146,
|
|
57820
57823
|
column: 5
|
|
57821
57824
|
}
|
|
57822
57825
|
},
|
|
57823
57826
|
type: "if",
|
|
57824
57827
|
locations: [{
|
|
57825
57828
|
start: {
|
|
57826
|
-
line:
|
|
57829
|
+
line: 133,
|
|
57827
57830
|
column: 4
|
|
57828
57831
|
},
|
|
57829
57832
|
end: {
|
|
57830
|
-
line:
|
|
57833
|
+
line: 146,
|
|
57831
57834
|
column: 5
|
|
57832
57835
|
}
|
|
57833
57836
|
}, {
|
|
@@ -57840,40 +57843,40 @@ function cov_1y9t6ere98() {
|
|
|
57840
57843
|
column: undefined
|
|
57841
57844
|
}
|
|
57842
57845
|
}],
|
|
57843
|
-
line:
|
|
57846
|
+
line: 133
|
|
57844
57847
|
},
|
|
57845
57848
|
"11": {
|
|
57846
57849
|
loc: {
|
|
57847
57850
|
start: {
|
|
57848
|
-
line:
|
|
57851
|
+
line: 135,
|
|
57849
57852
|
column: 21
|
|
57850
57853
|
},
|
|
57851
57854
|
end: {
|
|
57852
|
-
line:
|
|
57855
|
+
line: 135,
|
|
57853
57856
|
column: 78
|
|
57854
57857
|
}
|
|
57855
57858
|
},
|
|
57856
57859
|
type: "binary-expr",
|
|
57857
57860
|
locations: [{
|
|
57858
57861
|
start: {
|
|
57859
|
-
line:
|
|
57862
|
+
line: 135,
|
|
57860
57863
|
column: 21
|
|
57861
57864
|
},
|
|
57862
57865
|
end: {
|
|
57863
|
-
line:
|
|
57866
|
+
line: 135,
|
|
57864
57867
|
column: 36
|
|
57865
57868
|
}
|
|
57866
57869
|
}, {
|
|
57867
57870
|
start: {
|
|
57868
|
-
line:
|
|
57871
|
+
line: 135,
|
|
57869
57872
|
column: 40
|
|
57870
57873
|
},
|
|
57871
57874
|
end: {
|
|
57872
|
-
line:
|
|
57875
|
+
line: 135,
|
|
57873
57876
|
column: 78
|
|
57874
57877
|
}
|
|
57875
57878
|
}],
|
|
57876
|
-
line:
|
|
57879
|
+
line: 135
|
|
57877
57880
|
}
|
|
57878
57881
|
},
|
|
57879
57882
|
s: {
|
|
@@ -57968,7 +57971,7 @@ function cov_1y9t6ere98() {
|
|
|
57968
57971
|
"11": [0, 0]
|
|
57969
57972
|
},
|
|
57970
57973
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
57971
|
-
hash: "
|
|
57974
|
+
hash: "4b4662b2577f6470c2291bacfa8dd237536ee800"
|
|
57972
57975
|
};
|
|
57973
57976
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
57974
57977
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -58149,7 +58152,7 @@ var validateRichTextField = function validateRichTextField(_ref8) {
|
|
|
58149
58152
|
cov_1y9t6ere98().s[48]++;
|
|
58150
58153
|
return schema;
|
|
58151
58154
|
};
|
|
58152
|
-
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));
|
|
58155
|
+
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));
|
|
58153
58156
|
cov_1y9t6ere98().s[50]++;
|
|
58154
58157
|
var validateFieldValue = function validateFieldValue(_ref10) {
|
|
58155
58158
|
var kind = _ref10.kind,
|
|
@@ -65329,7 +65332,7 @@ var TextField = function TextField(_ref) {
|
|
|
65329
65332
|
_ref3$type = _ref3.type,
|
|
65330
65333
|
type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
|
|
65331
65334
|
otherProps = _ref3.otherProps;
|
|
65332
|
-
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.
|
|
65335
|
+
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea) : (cov_h64dar2vv().b[1][1]++, FormInput));
|
|
65333
65336
|
cov_h64dar2vv().s[4]++;
|
|
65334
65337
|
return /*#__PURE__*/React__default["default"].createElement(formik.Field, {
|
|
65335
65338
|
name: (cov_h64dar2vv().b[2][0]++, name) || (cov_h64dar2vv().b[2][1]++, nodeId),
|
|
@@ -65361,7 +65364,7 @@ var TextField = function TextField(_ref) {
|
|
|
65361
65364
|
var _ref2;
|
|
65362
65365
|
function cov_1cenqfav07() {
|
|
65363
65366
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
|
|
65364
|
-
var hash = "
|
|
65367
|
+
var hash = "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27";
|
|
65365
65368
|
var global = new Function("return this")();
|
|
65366
65369
|
var gcv = "__coverage__";
|
|
65367
65370
|
var coverageData = {
|
|
@@ -65373,17 +65376,17 @@ function cov_1cenqfav07() {
|
|
|
65373
65376
|
column: 41
|
|
65374
65377
|
},
|
|
65375
65378
|
end: {
|
|
65376
|
-
line:
|
|
65379
|
+
line: 38,
|
|
65377
65380
|
column: 1
|
|
65378
65381
|
}
|
|
65379
65382
|
},
|
|
65380
65383
|
"1": {
|
|
65381
65384
|
start: {
|
|
65382
|
-
line:
|
|
65385
|
+
line: 30,
|
|
65383
65386
|
column: 4
|
|
65384
65387
|
},
|
|
65385
65388
|
end: {
|
|
65386
|
-
line:
|
|
65389
|
+
line: 30,
|
|
65387
65390
|
column: 46
|
|
65388
65391
|
}
|
|
65389
65392
|
}
|
|
@@ -65393,25 +65396,25 @@ function cov_1cenqfav07() {
|
|
|
65393
65396
|
name: "(anonymous_0)",
|
|
65394
65397
|
decl: {
|
|
65395
65398
|
start: {
|
|
65396
|
-
line:
|
|
65397
|
-
column:
|
|
65399
|
+
line: 29,
|
|
65400
|
+
column: 35
|
|
65398
65401
|
},
|
|
65399
65402
|
end: {
|
|
65400
|
-
line:
|
|
65401
|
-
column:
|
|
65403
|
+
line: 29,
|
|
65404
|
+
column: 36
|
|
65402
65405
|
}
|
|
65403
65406
|
},
|
|
65404
65407
|
loc: {
|
|
65405
65408
|
start: {
|
|
65406
|
-
line:
|
|
65409
|
+
line: 30,
|
|
65407
65410
|
column: 4
|
|
65408
65411
|
},
|
|
65409
65412
|
end: {
|
|
65410
|
-
line:
|
|
65413
|
+
line: 30,
|
|
65411
65414
|
column: 46
|
|
65412
65415
|
}
|
|
65413
65416
|
},
|
|
65414
|
-
line:
|
|
65417
|
+
line: 30
|
|
65415
65418
|
}
|
|
65416
65419
|
},
|
|
65417
65420
|
branchMap: {},
|
|
@@ -65424,7 +65427,7 @@ function cov_1cenqfav07() {
|
|
|
65424
65427
|
},
|
|
65425
65428
|
b: {},
|
|
65426
65429
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
65427
|
-
hash: "
|
|
65430
|
+
hash: "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27"
|
|
65428
65431
|
};
|
|
65429
65432
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
65430
65433
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -65440,7 +65443,7 @@ function cov_1cenqfav07() {
|
|
|
65440
65443
|
return actualCoverage;
|
|
65441
65444
|
}
|
|
65442
65445
|
cov_1cenqfav07();
|
|
65443
|
-
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.
|
|
65446
|
+
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) {
|
|
65444
65447
|
var question = _ref.question;
|
|
65445
65448
|
cov_1cenqfav07().f[0]++;
|
|
65446
65449
|
cov_1cenqfav07().s[1]++;
|