@bigbinary/neeto-form-frontend 1.0.26 → 1.0.27
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 +1 -0
- package/dist/index.cjs.js +213 -152
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +213 -152
- package/dist/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React$2 from 'react';
|
|
2
2
|
import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState, useCallback as useCallback$1, createContext, createElement, Fragment, forwardRef, Component } from 'react';
|
|
3
3
|
import { useField, useFormikContext, FieldArray, Form as Form$1, Formik, Field } from 'formik';
|
|
4
|
+
import { noop as noop$4, findBy, isPresent, findById, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
4
5
|
import PageLoader from 'neetomolecules/PageLoader';
|
|
5
6
|
import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$1 } from '@bigbinary/neetoui';
|
|
6
7
|
import { assoc, prop, isEmpty, reject, omit, insert, compose as compose$1, trim as trim$1, either, isNil, values as values$1, equals, not, times } from 'ramda';
|
|
7
8
|
import ReactDOM, { unstable_batchedUpdates as unstable_batchedUpdates$1, createPortal } from 'react-dom';
|
|
8
9
|
import axios from 'axios';
|
|
9
10
|
import { Input as Input$2, Textarea as Textarea$1, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
10
|
-
import { noop as noop$4, findBy, isPresent, findById, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
11
11
|
import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
12
12
|
import { create as create$1 } from 'zustand';
|
|
13
13
|
import classnames from 'classnames';
|
|
@@ -31964,7 +31964,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
|
|
|
31964
31964
|
|
|
31965
31965
|
function cov_2nbnnlcv5p() {
|
|
31966
31966
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
|
|
31967
|
-
var hash = "
|
|
31967
|
+
var hash = "b88e0689ba4e946eb5dc0499c0e2d153481098de";
|
|
31968
31968
|
var global = new Function("return this")();
|
|
31969
31969
|
var gcv = "__coverage__";
|
|
31970
31970
|
var coverageData = {
|
|
@@ -31972,201 +31972,201 @@ function cov_2nbnnlcv5p() {
|
|
|
31972
31972
|
statementMap: {
|
|
31973
31973
|
"0": {
|
|
31974
31974
|
start: {
|
|
31975
|
-
line:
|
|
31975
|
+
line: 17,
|
|
31976
31976
|
column: 18
|
|
31977
31977
|
},
|
|
31978
31978
|
end: {
|
|
31979
|
-
line:
|
|
31979
|
+
line: 140,
|
|
31980
31980
|
column: 1
|
|
31981
31981
|
}
|
|
31982
31982
|
},
|
|
31983
31983
|
"1": {
|
|
31984
31984
|
start: {
|
|
31985
|
-
line:
|
|
31985
|
+
line: 30,
|
|
31986
31986
|
column: 54
|
|
31987
31987
|
},
|
|
31988
31988
|
end: {
|
|
31989
|
-
line:
|
|
31989
|
+
line: 30,
|
|
31990
31990
|
column: 69
|
|
31991
31991
|
}
|
|
31992
31992
|
},
|
|
31993
31993
|
"2": {
|
|
31994
31994
|
start: {
|
|
31995
|
-
line:
|
|
31995
|
+
line: 32,
|
|
31996
31996
|
column: 22
|
|
31997
31997
|
},
|
|
31998
31998
|
end: {
|
|
31999
|
-
line:
|
|
31999
|
+
line: 32,
|
|
32000
32000
|
column: 38
|
|
32001
32001
|
}
|
|
32002
32002
|
},
|
|
32003
32003
|
"3": {
|
|
32004
32004
|
start: {
|
|
32005
|
-
line:
|
|
32005
|
+
line: 34,
|
|
32006
32006
|
column: 43
|
|
32007
32007
|
},
|
|
32008
32008
|
end: {
|
|
32009
|
-
line:
|
|
32009
|
+
line: 39,
|
|
32010
32010
|
column: 4
|
|
32011
32011
|
}
|
|
32012
32012
|
},
|
|
32013
32013
|
"4": {
|
|
32014
32014
|
start: {
|
|
32015
|
-
line:
|
|
32015
|
+
line: 36,
|
|
32016
32016
|
column: 22
|
|
32017
32017
|
},
|
|
32018
32018
|
end: {
|
|
32019
|
-
line:
|
|
32019
|
+
line: 36,
|
|
32020
32020
|
column: 41
|
|
32021
32021
|
}
|
|
32022
32022
|
},
|
|
32023
32023
|
"5": {
|
|
32024
32024
|
start: {
|
|
32025
|
-
line:
|
|
32025
|
+
line: 38,
|
|
32026
32026
|
column: 6
|
|
32027
32027
|
},
|
|
32028
32028
|
end: {
|
|
32029
|
-
line:
|
|
32029
|
+
line: 38,
|
|
32030
32030
|
column: 28
|
|
32031
32031
|
}
|
|
32032
32032
|
},
|
|
32033
32033
|
"6": {
|
|
32034
32034
|
start: {
|
|
32035
|
-
line:
|
|
32035
|
+
line: 47,
|
|
32036
32036
|
column: 6
|
|
32037
32037
|
},
|
|
32038
32038
|
end: {
|
|
32039
|
-
line:
|
|
32039
|
+
line: 65,
|
|
32040
32040
|
column: 4
|
|
32041
32041
|
}
|
|
32042
32042
|
},
|
|
32043
32043
|
"7": {
|
|
32044
32044
|
start: {
|
|
32045
|
-
line:
|
|
32045
|
+
line: 49,
|
|
32046
32046
|
column: 23
|
|
32047
32047
|
},
|
|
32048
32048
|
end: {
|
|
32049
|
-
line:
|
|
32049
|
+
line: 49,
|
|
32050
32050
|
column: 39
|
|
32051
32051
|
}
|
|
32052
32052
|
},
|
|
32053
32053
|
"8": {
|
|
32054
32054
|
start: {
|
|
32055
|
-
line:
|
|
32055
|
+
line: 67,
|
|
32056
32056
|
column: 23
|
|
32057
32057
|
},
|
|
32058
32058
|
end: {
|
|
32059
|
-
line:
|
|
32059
|
+
line: 74,
|
|
32060
32060
|
column: 6
|
|
32061
32061
|
}
|
|
32062
32062
|
},
|
|
32063
32063
|
"9": {
|
|
32064
32064
|
start: {
|
|
32065
|
-
line:
|
|
32065
|
+
line: 68,
|
|
32066
32066
|
column: 4
|
|
32067
32067
|
},
|
|
32068
32068
|
end: {
|
|
32069
|
-
line:
|
|
32069
|
+
line: 74,
|
|
32070
32070
|
column: 6
|
|
32071
32071
|
}
|
|
32072
32072
|
},
|
|
32073
32073
|
"10": {
|
|
32074
32074
|
start: {
|
|
32075
|
-
line:
|
|
32075
|
+
line: 76,
|
|
32076
32076
|
column: 24
|
|
32077
32077
|
},
|
|
32078
32078
|
end: {
|
|
32079
|
-
line:
|
|
32079
|
+
line: 88,
|
|
32080
32080
|
column: 3
|
|
32081
32081
|
}
|
|
32082
32082
|
},
|
|
32083
32083
|
"11": {
|
|
32084
32084
|
start: {
|
|
32085
|
-
line:
|
|
32085
|
+
line: 77,
|
|
32086
32086
|
column: 32
|
|
32087
32087
|
},
|
|
32088
32088
|
end: {
|
|
32089
|
-
line:
|
|
32089
|
+
line: 80,
|
|
32090
32090
|
column: 6
|
|
32091
32091
|
}
|
|
32092
32092
|
},
|
|
32093
32093
|
"12": {
|
|
32094
32094
|
start: {
|
|
32095
|
-
line:
|
|
32095
|
+
line: 82,
|
|
32096
32096
|
column: 4
|
|
32097
32097
|
},
|
|
32098
32098
|
end: {
|
|
32099
|
-
line:
|
|
32099
|
+
line: 87,
|
|
32100
32100
|
column: 5
|
|
32101
32101
|
}
|
|
32102
32102
|
},
|
|
32103
32103
|
"13": {
|
|
32104
32104
|
start: {
|
|
32105
|
-
line:
|
|
32105
|
+
line: 83,
|
|
32106
32106
|
column: 6
|
|
32107
32107
|
},
|
|
32108
32108
|
end: {
|
|
32109
|
-
line:
|
|
32109
|
+
line: 86,
|
|
32110
32110
|
column: 8
|
|
32111
32111
|
}
|
|
32112
32112
|
},
|
|
32113
32113
|
"14": {
|
|
32114
32114
|
start: {
|
|
32115
|
-
line:
|
|
32115
|
+
line: 90,
|
|
32116
32116
|
column: 2
|
|
32117
32117
|
},
|
|
32118
32118
|
end: {
|
|
32119
|
-
line:
|
|
32119
|
+
line: 96,
|
|
32120
32120
|
column: 3
|
|
32121
32121
|
}
|
|
32122
32122
|
},
|
|
32123
32123
|
"15": {
|
|
32124
32124
|
start: {
|
|
32125
|
-
line:
|
|
32125
|
+
line: 91,
|
|
32126
32126
|
column: 4
|
|
32127
32127
|
},
|
|
32128
32128
|
end: {
|
|
32129
|
-
line:
|
|
32129
|
+
line: 95,
|
|
32130
32130
|
column: 6
|
|
32131
32131
|
}
|
|
32132
32132
|
},
|
|
32133
32133
|
"16": {
|
|
32134
32134
|
start: {
|
|
32135
|
-
line:
|
|
32135
|
+
line: 98,
|
|
32136
32136
|
column: 2
|
|
32137
32137
|
},
|
|
32138
32138
|
end: {
|
|
32139
|
-
line:
|
|
32139
|
+
line: 139,
|
|
32140
32140
|
column: 4
|
|
32141
32141
|
}
|
|
32142
32142
|
},
|
|
32143
32143
|
"17": {
|
|
32144
32144
|
start: {
|
|
32145
|
-
line:
|
|
32145
|
+
line: 111,
|
|
32146
32146
|
column: 10
|
|
32147
32147
|
},
|
|
32148
32148
|
end: {
|
|
32149
|
-
line:
|
|
32149
|
+
line: 130,
|
|
32150
32150
|
column: 12
|
|
32151
32151
|
}
|
|
32152
32152
|
},
|
|
32153
32153
|
"18": {
|
|
32154
32154
|
start: {
|
|
32155
|
-
line:
|
|
32155
|
+
line: 126,
|
|
32156
32156
|
column: 14
|
|
32157
32157
|
},
|
|
32158
32158
|
end: {
|
|
32159
|
-
line:
|
|
32159
|
+
line: 128,
|
|
32160
32160
|
column: 15
|
|
32161
32161
|
}
|
|
32162
32162
|
},
|
|
32163
32163
|
"19": {
|
|
32164
32164
|
start: {
|
|
32165
|
-
line:
|
|
32165
|
+
line: 127,
|
|
32166
32166
|
column: 16
|
|
32167
32167
|
},
|
|
32168
32168
|
end: {
|
|
32169
|
-
line:
|
|
32169
|
+
line: 127,
|
|
32170
32170
|
column: 49
|
|
32171
32171
|
}
|
|
32172
32172
|
}
|
|
@@ -32176,359 +32176,383 @@ function cov_2nbnnlcv5p() {
|
|
|
32176
32176
|
name: "(anonymous_0)",
|
|
32177
32177
|
decl: {
|
|
32178
32178
|
start: {
|
|
32179
|
-
line:
|
|
32179
|
+
line: 17,
|
|
32180
32180
|
column: 18
|
|
32181
32181
|
},
|
|
32182
32182
|
end: {
|
|
32183
|
-
line:
|
|
32183
|
+
line: 17,
|
|
32184
32184
|
column: 19
|
|
32185
32185
|
}
|
|
32186
32186
|
},
|
|
32187
32187
|
loc: {
|
|
32188
32188
|
start: {
|
|
32189
|
-
line:
|
|
32189
|
+
line: 29,
|
|
32190
32190
|
column: 6
|
|
32191
32191
|
},
|
|
32192
32192
|
end: {
|
|
32193
|
-
line:
|
|
32193
|
+
line: 140,
|
|
32194
32194
|
column: 1
|
|
32195
32195
|
}
|
|
32196
32196
|
},
|
|
32197
|
-
line:
|
|
32197
|
+
line: 29
|
|
32198
32198
|
},
|
|
32199
32199
|
"1": {
|
|
32200
32200
|
name: "(anonymous_1)",
|
|
32201
32201
|
decl: {
|
|
32202
32202
|
start: {
|
|
32203
|
-
line:
|
|
32203
|
+
line: 36,
|
|
32204
32204
|
column: 13
|
|
32205
32205
|
},
|
|
32206
32206
|
end: {
|
|
32207
|
-
line:
|
|
32207
|
+
line: 36,
|
|
32208
32208
|
column: 14
|
|
32209
32209
|
}
|
|
32210
32210
|
},
|
|
32211
32211
|
loc: {
|
|
32212
32212
|
start: {
|
|
32213
|
-
line:
|
|
32213
|
+
line: 36,
|
|
32214
32214
|
column: 22
|
|
32215
32215
|
},
|
|
32216
32216
|
end: {
|
|
32217
|
-
line:
|
|
32217
|
+
line: 36,
|
|
32218
32218
|
column: 41
|
|
32219
32219
|
}
|
|
32220
32220
|
},
|
|
32221
|
-
line:
|
|
32221
|
+
line: 36
|
|
32222
32222
|
},
|
|
32223
32223
|
"2": {
|
|
32224
32224
|
name: "(anonymous_2)",
|
|
32225
32225
|
decl: {
|
|
32226
32226
|
start: {
|
|
32227
|
-
line:
|
|
32227
|
+
line: 37,
|
|
32228
32228
|
column: 15
|
|
32229
32229
|
},
|
|
32230
32230
|
end: {
|
|
32231
|
-
line:
|
|
32231
|
+
line: 37,
|
|
32232
32232
|
column: 16
|
|
32233
32233
|
}
|
|
32234
32234
|
},
|
|
32235
32235
|
loc: {
|
|
32236
32236
|
start: {
|
|
32237
|
-
line:
|
|
32237
|
+
line: 38,
|
|
32238
32238
|
column: 6
|
|
32239
32239
|
},
|
|
32240
32240
|
end: {
|
|
32241
|
-
line:
|
|
32241
|
+
line: 38,
|
|
32242
32242
|
column: 28
|
|
32243
32243
|
}
|
|
32244
32244
|
},
|
|
32245
|
-
line:
|
|
32245
|
+
line: 38
|
|
32246
32246
|
},
|
|
32247
32247
|
"3": {
|
|
32248
32248
|
name: "(anonymous_3)",
|
|
32249
32249
|
decl: {
|
|
32250
32250
|
start: {
|
|
32251
|
-
line:
|
|
32251
|
+
line: 49,
|
|
32252
32252
|
column: 15
|
|
32253
32253
|
},
|
|
32254
32254
|
end: {
|
|
32255
|
-
line:
|
|
32255
|
+
line: 49,
|
|
32256
32256
|
column: 16
|
|
32257
32257
|
}
|
|
32258
32258
|
},
|
|
32259
32259
|
loc: {
|
|
32260
32260
|
start: {
|
|
32261
|
-
line:
|
|
32261
|
+
line: 49,
|
|
32262
32262
|
column: 23
|
|
32263
32263
|
},
|
|
32264
32264
|
end: {
|
|
32265
|
-
line:
|
|
32265
|
+
line: 49,
|
|
32266
32266
|
column: 39
|
|
32267
32267
|
}
|
|
32268
32268
|
},
|
|
32269
|
-
line:
|
|
32269
|
+
line: 49
|
|
32270
32270
|
},
|
|
32271
32271
|
"4": {
|
|
32272
32272
|
name: "(anonymous_4)",
|
|
32273
32273
|
decl: {
|
|
32274
32274
|
start: {
|
|
32275
|
-
line:
|
|
32275
|
+
line: 67,
|
|
32276
32276
|
column: 23
|
|
32277
32277
|
},
|
|
32278
32278
|
end: {
|
|
32279
|
-
line:
|
|
32279
|
+
line: 67,
|
|
32280
32280
|
column: 24
|
|
32281
32281
|
}
|
|
32282
32282
|
},
|
|
32283
32283
|
loc: {
|
|
32284
32284
|
start: {
|
|
32285
|
-
line:
|
|
32285
|
+
line: 68,
|
|
32286
32286
|
column: 4
|
|
32287
32287
|
},
|
|
32288
32288
|
end: {
|
|
32289
|
-
line:
|
|
32289
|
+
line: 74,
|
|
32290
32290
|
column: 6
|
|
32291
32291
|
}
|
|
32292
32292
|
},
|
|
32293
|
-
line:
|
|
32293
|
+
line: 68
|
|
32294
32294
|
},
|
|
32295
32295
|
"5": {
|
|
32296
32296
|
name: "(anonymous_5)",
|
|
32297
32297
|
decl: {
|
|
32298
32298
|
start: {
|
|
32299
|
-
line:
|
|
32299
|
+
line: 76,
|
|
32300
32300
|
column: 24
|
|
32301
32301
|
},
|
|
32302
32302
|
end: {
|
|
32303
|
-
line:
|
|
32303
|
+
line: 76,
|
|
32304
32304
|
column: 25
|
|
32305
32305
|
}
|
|
32306
32306
|
},
|
|
32307
32307
|
loc: {
|
|
32308
32308
|
start: {
|
|
32309
|
-
line:
|
|
32309
|
+
line: 76,
|
|
32310
32310
|
column: 37
|
|
32311
32311
|
},
|
|
32312
32312
|
end: {
|
|
32313
|
-
line:
|
|
32313
|
+
line: 88,
|
|
32314
32314
|
column: 3
|
|
32315
32315
|
}
|
|
32316
32316
|
},
|
|
32317
|
-
line:
|
|
32317
|
+
line: 76
|
|
32318
32318
|
},
|
|
32319
32319
|
"6": {
|
|
32320
32320
|
name: "(anonymous_6)",
|
|
32321
32321
|
decl: {
|
|
32322
32322
|
start: {
|
|
32323
|
-
line:
|
|
32323
|
+
line: 110,
|
|
32324
32324
|
column: 9
|
|
32325
32325
|
},
|
|
32326
32326
|
end: {
|
|
32327
|
-
line:
|
|
32327
|
+
line: 110,
|
|
32328
32328
|
column: 10
|
|
32329
32329
|
}
|
|
32330
32330
|
},
|
|
32331
32331
|
loc: {
|
|
32332
32332
|
start: {
|
|
32333
|
-
line:
|
|
32333
|
+
line: 111,
|
|
32334
32334
|
column: 10
|
|
32335
32335
|
},
|
|
32336
32336
|
end: {
|
|
32337
|
-
line:
|
|
32337
|
+
line: 130,
|
|
32338
32338
|
column: 12
|
|
32339
32339
|
}
|
|
32340
32340
|
},
|
|
32341
|
-
line:
|
|
32341
|
+
line: 111
|
|
32342
32342
|
},
|
|
32343
32343
|
"7": {
|
|
32344
32344
|
name: "(anonymous_7)",
|
|
32345
32345
|
decl: {
|
|
32346
32346
|
start: {
|
|
32347
|
-
line:
|
|
32347
|
+
line: 125,
|
|
32348
32348
|
column: 22
|
|
32349
32349
|
},
|
|
32350
32350
|
end: {
|
|
32351
|
-
line:
|
|
32351
|
+
line: 125,
|
|
32352
32352
|
column: 23
|
|
32353
32353
|
}
|
|
32354
32354
|
},
|
|
32355
32355
|
loc: {
|
|
32356
32356
|
start: {
|
|
32357
|
-
line:
|
|
32357
|
+
line: 125,
|
|
32358
32358
|
column: 31
|
|
32359
32359
|
},
|
|
32360
32360
|
end: {
|
|
32361
|
-
line:
|
|
32361
|
+
line: 129,
|
|
32362
32362
|
column: 13
|
|
32363
32363
|
}
|
|
32364
32364
|
},
|
|
32365
|
-
line:
|
|
32365
|
+
line: 125
|
|
32366
32366
|
}
|
|
32367
32367
|
},
|
|
32368
32368
|
branchMap: {
|
|
32369
32369
|
"0": {
|
|
32370
32370
|
loc: {
|
|
32371
32371
|
start: {
|
|
32372
|
-
line:
|
|
32372
|
+
line: 21,
|
|
32373
32373
|
column: 2
|
|
32374
32374
|
},
|
|
32375
32375
|
end: {
|
|
32376
|
-
line:
|
|
32376
|
+
line: 21,
|
|
32377
32377
|
column: 31
|
|
32378
32378
|
}
|
|
32379
32379
|
},
|
|
32380
32380
|
type: "default-arg",
|
|
32381
32381
|
locations: [{
|
|
32382
32382
|
start: {
|
|
32383
|
-
line:
|
|
32383
|
+
line: 21,
|
|
32384
32384
|
column: 27
|
|
32385
32385
|
},
|
|
32386
32386
|
end: {
|
|
32387
|
-
line:
|
|
32387
|
+
line: 21,
|
|
32388
32388
|
column: 31
|
|
32389
32389
|
}
|
|
32390
32390
|
}],
|
|
32391
|
-
line:
|
|
32391
|
+
line: 21
|
|
32392
32392
|
},
|
|
32393
32393
|
"1": {
|
|
32394
32394
|
loc: {
|
|
32395
32395
|
start: {
|
|
32396
|
-
line:
|
|
32396
|
+
line: 22,
|
|
32397
32397
|
column: 2
|
|
32398
32398
|
},
|
|
32399
32399
|
end: {
|
|
32400
|
-
line:
|
|
32400
|
+
line: 22,
|
|
32401
32401
|
column: 25
|
|
32402
32402
|
}
|
|
32403
32403
|
},
|
|
32404
32404
|
type: "default-arg",
|
|
32405
32405
|
locations: [{
|
|
32406
32406
|
start: {
|
|
32407
|
-
line:
|
|
32407
|
+
line: 22,
|
|
32408
32408
|
column: 23
|
|
32409
32409
|
},
|
|
32410
32410
|
end: {
|
|
32411
|
-
line:
|
|
32411
|
+
line: 22,
|
|
32412
32412
|
column: 25
|
|
32413
32413
|
}
|
|
32414
32414
|
}],
|
|
32415
|
-
line:
|
|
32415
|
+
line: 22
|
|
32416
32416
|
},
|
|
32417
32417
|
"2": {
|
|
32418
32418
|
loc: {
|
|
32419
32419
|
start: {
|
|
32420
|
-
line:
|
|
32420
|
+
line: 23,
|
|
32421
32421
|
column: 2
|
|
32422
32422
|
},
|
|
32423
32423
|
end: {
|
|
32424
|
-
line:
|
|
32424
|
+
line: 23,
|
|
32425
32425
|
column: 21
|
|
32426
32426
|
}
|
|
32427
32427
|
},
|
|
32428
32428
|
type: "default-arg",
|
|
32429
32429
|
locations: [{
|
|
32430
32430
|
start: {
|
|
32431
|
-
line:
|
|
32431
|
+
line: 23,
|
|
32432
32432
|
column: 19
|
|
32433
32433
|
},
|
|
32434
32434
|
end: {
|
|
32435
|
-
line:
|
|
32435
|
+
line: 23,
|
|
32436
32436
|
column: 21
|
|
32437
32437
|
}
|
|
32438
32438
|
}],
|
|
32439
|
-
line:
|
|
32439
|
+
line: 23
|
|
32440
32440
|
},
|
|
32441
32441
|
"3": {
|
|
32442
32442
|
loc: {
|
|
32443
32443
|
start: {
|
|
32444
|
-
line:
|
|
32444
|
+
line: 25,
|
|
32445
32445
|
column: 2
|
|
32446
32446
|
},
|
|
32447
32447
|
end: {
|
|
32448
|
-
line:
|
|
32448
|
+
line: 25,
|
|
32449
32449
|
column: 24
|
|
32450
32450
|
}
|
|
32451
32451
|
},
|
|
32452
32452
|
type: "default-arg",
|
|
32453
32453
|
locations: [{
|
|
32454
32454
|
start: {
|
|
32455
|
-
line:
|
|
32455
|
+
line: 25,
|
|
32456
32456
|
column: 20
|
|
32457
32457
|
},
|
|
32458
32458
|
end: {
|
|
32459
|
-
line:
|
|
32459
|
+
line: 25,
|
|
32460
32460
|
column: 24
|
|
32461
32461
|
}
|
|
32462
32462
|
}],
|
|
32463
|
-
line:
|
|
32463
|
+
line: 25
|
|
32464
32464
|
},
|
|
32465
32465
|
"4": {
|
|
32466
32466
|
loc: {
|
|
32467
32467
|
start: {
|
|
32468
|
-
line:
|
|
32468
|
+
line: 28,
|
|
32469
|
+
column: 2
|
|
32470
|
+
},
|
|
32471
|
+
end: {
|
|
32472
|
+
line: 28,
|
|
32473
|
+
column: 20
|
|
32474
|
+
}
|
|
32475
|
+
},
|
|
32476
|
+
type: "default-arg",
|
|
32477
|
+
locations: [{
|
|
32478
|
+
start: {
|
|
32479
|
+
line: 28,
|
|
32469
32480
|
column: 18
|
|
32470
32481
|
},
|
|
32471
32482
|
end: {
|
|
32472
|
-
line:
|
|
32483
|
+
line: 28,
|
|
32484
|
+
column: 20
|
|
32485
|
+
}
|
|
32486
|
+
}],
|
|
32487
|
+
line: 28
|
|
32488
|
+
},
|
|
32489
|
+
"5": {
|
|
32490
|
+
loc: {
|
|
32491
|
+
start: {
|
|
32492
|
+
line: 37,
|
|
32493
|
+
column: 18
|
|
32494
|
+
},
|
|
32495
|
+
end: {
|
|
32496
|
+
line: 37,
|
|
32473
32497
|
column: 70
|
|
32474
32498
|
}
|
|
32475
32499
|
},
|
|
32476
32500
|
type: "default-arg",
|
|
32477
32501
|
locations: [{
|
|
32478
32502
|
start: {
|
|
32479
|
-
line:
|
|
32503
|
+
line: 37,
|
|
32480
32504
|
column: 27
|
|
32481
32505
|
},
|
|
32482
32506
|
end: {
|
|
32483
|
-
line:
|
|
32507
|
+
line: 37,
|
|
32484
32508
|
column: 70
|
|
32485
32509
|
}
|
|
32486
32510
|
}],
|
|
32487
|
-
line:
|
|
32511
|
+
line: 37
|
|
32488
32512
|
},
|
|
32489
|
-
"
|
|
32513
|
+
"6": {
|
|
32490
32514
|
loc: {
|
|
32491
32515
|
start: {
|
|
32492
|
-
line:
|
|
32516
|
+
line: 42,
|
|
32493
32517
|
column: 10
|
|
32494
32518
|
},
|
|
32495
32519
|
end: {
|
|
32496
|
-
line:
|
|
32520
|
+
line: 45,
|
|
32497
32521
|
column: 5
|
|
32498
32522
|
}
|
|
32499
32523
|
},
|
|
32500
32524
|
type: "default-arg",
|
|
32501
32525
|
locations: [{
|
|
32502
32526
|
start: {
|
|
32503
|
-
line:
|
|
32527
|
+
line: 42,
|
|
32504
32528
|
column: 46
|
|
32505
32529
|
},
|
|
32506
32530
|
end: {
|
|
32507
|
-
line:
|
|
32531
|
+
line: 45,
|
|
32508
32532
|
column: 5
|
|
32509
32533
|
}
|
|
32510
32534
|
}],
|
|
32511
|
-
line:
|
|
32535
|
+
line: 42
|
|
32512
32536
|
},
|
|
32513
|
-
"
|
|
32537
|
+
"7": {
|
|
32514
32538
|
loc: {
|
|
32515
32539
|
start: {
|
|
32516
|
-
line:
|
|
32540
|
+
line: 82,
|
|
32517
32541
|
column: 4
|
|
32518
32542
|
},
|
|
32519
32543
|
end: {
|
|
32520
|
-
line:
|
|
32544
|
+
line: 87,
|
|
32521
32545
|
column: 5
|
|
32522
32546
|
}
|
|
32523
32547
|
},
|
|
32524
32548
|
type: "if",
|
|
32525
32549
|
locations: [{
|
|
32526
32550
|
start: {
|
|
32527
|
-
line:
|
|
32551
|
+
line: 82,
|
|
32528
32552
|
column: 4
|
|
32529
32553
|
},
|
|
32530
32554
|
end: {
|
|
32531
|
-
line:
|
|
32555
|
+
line: 87,
|
|
32532
32556
|
column: 5
|
|
32533
32557
|
}
|
|
32534
32558
|
}, {
|
|
@@ -32541,27 +32565,27 @@ function cov_2nbnnlcv5p() {
|
|
|
32541
32565
|
column: undefined
|
|
32542
32566
|
}
|
|
32543
32567
|
}],
|
|
32544
|
-
line:
|
|
32568
|
+
line: 82
|
|
32545
32569
|
},
|
|
32546
|
-
"
|
|
32570
|
+
"8": {
|
|
32547
32571
|
loc: {
|
|
32548
32572
|
start: {
|
|
32549
|
-
line:
|
|
32573
|
+
line: 90,
|
|
32550
32574
|
column: 2
|
|
32551
32575
|
},
|
|
32552
32576
|
end: {
|
|
32553
|
-
line:
|
|
32577
|
+
line: 96,
|
|
32554
32578
|
column: 3
|
|
32555
32579
|
}
|
|
32556
32580
|
},
|
|
32557
32581
|
type: "if",
|
|
32558
32582
|
locations: [{
|
|
32559
32583
|
start: {
|
|
32560
|
-
line:
|
|
32584
|
+
line: 90,
|
|
32561
32585
|
column: 2
|
|
32562
32586
|
},
|
|
32563
32587
|
end: {
|
|
32564
|
-
line:
|
|
32588
|
+
line: 96,
|
|
32565
32589
|
column: 3
|
|
32566
32590
|
}
|
|
32567
32591
|
}, {
|
|
@@ -32574,27 +32598,60 @@ function cov_2nbnnlcv5p() {
|
|
|
32574
32598
|
column: undefined
|
|
32575
32599
|
}
|
|
32576
32600
|
}],
|
|
32577
|
-
line:
|
|
32601
|
+
line: 90
|
|
32578
32602
|
},
|
|
32579
|
-
"
|
|
32603
|
+
"9": {
|
|
32580
32604
|
loc: {
|
|
32581
32605
|
start: {
|
|
32582
32606
|
line: 122,
|
|
32583
32607
|
column: 14
|
|
32584
32608
|
},
|
|
32585
32609
|
end: {
|
|
32586
|
-
line:
|
|
32610
|
+
line: 122,
|
|
32611
|
+
column: 71
|
|
32612
|
+
}
|
|
32613
|
+
},
|
|
32614
|
+
type: "cond-expr",
|
|
32615
|
+
locations: [{
|
|
32616
|
+
start: {
|
|
32617
|
+
line: 122,
|
|
32618
|
+
column: 41
|
|
32619
|
+
},
|
|
32620
|
+
end: {
|
|
32621
|
+
line: 122,
|
|
32622
|
+
column: 54
|
|
32623
|
+
}
|
|
32624
|
+
}, {
|
|
32625
|
+
start: {
|
|
32626
|
+
line: 122,
|
|
32627
|
+
column: 57
|
|
32628
|
+
},
|
|
32629
|
+
end: {
|
|
32630
|
+
line: 122,
|
|
32631
|
+
column: 71
|
|
32632
|
+
}
|
|
32633
|
+
}],
|
|
32634
|
+
line: 122
|
|
32635
|
+
},
|
|
32636
|
+
"10": {
|
|
32637
|
+
loc: {
|
|
32638
|
+
start: {
|
|
32639
|
+
line: 126,
|
|
32640
|
+
column: 14
|
|
32641
|
+
},
|
|
32642
|
+
end: {
|
|
32643
|
+
line: 128,
|
|
32587
32644
|
column: 15
|
|
32588
32645
|
}
|
|
32589
32646
|
},
|
|
32590
32647
|
type: "if",
|
|
32591
32648
|
locations: [{
|
|
32592
32649
|
start: {
|
|
32593
|
-
line:
|
|
32650
|
+
line: 126,
|
|
32594
32651
|
column: 14
|
|
32595
32652
|
},
|
|
32596
32653
|
end: {
|
|
32597
|
-
line:
|
|
32654
|
+
line: 128,
|
|
32598
32655
|
column: 15
|
|
32599
32656
|
}
|
|
32600
32657
|
}, {
|
|
@@ -32607,40 +32664,40 @@ function cov_2nbnnlcv5p() {
|
|
|
32607
32664
|
column: undefined
|
|
32608
32665
|
}
|
|
32609
32666
|
}],
|
|
32610
|
-
line:
|
|
32667
|
+
line: 126
|
|
32611
32668
|
},
|
|
32612
|
-
"
|
|
32669
|
+
"11": {
|
|
32613
32670
|
loc: {
|
|
32614
32671
|
start: {
|
|
32615
|
-
line:
|
|
32672
|
+
line: 133,
|
|
32616
32673
|
column: 7
|
|
32617
32674
|
},
|
|
32618
32675
|
end: {
|
|
32619
|
-
line:
|
|
32676
|
+
line: 137,
|
|
32620
32677
|
column: 7
|
|
32621
32678
|
}
|
|
32622
32679
|
},
|
|
32623
32680
|
type: "binary-expr",
|
|
32624
32681
|
locations: [{
|
|
32625
32682
|
start: {
|
|
32626
|
-
line:
|
|
32683
|
+
line: 133,
|
|
32627
32684
|
column: 7
|
|
32628
32685
|
},
|
|
32629
32686
|
end: {
|
|
32630
|
-
line:
|
|
32687
|
+
line: 133,
|
|
32631
32688
|
column: 25
|
|
32632
32689
|
}
|
|
32633
32690
|
}, {
|
|
32634
32691
|
start: {
|
|
32635
|
-
line:
|
|
32692
|
+
line: 134,
|
|
32636
32693
|
column: 8
|
|
32637
32694
|
},
|
|
32638
32695
|
end: {
|
|
32639
|
-
line:
|
|
32696
|
+
line: 136,
|
|
32640
32697
|
column: 14
|
|
32641
32698
|
}
|
|
32642
32699
|
}],
|
|
32643
|
-
line:
|
|
32700
|
+
line: 133
|
|
32644
32701
|
}
|
|
32645
32702
|
},
|
|
32646
32703
|
s: {
|
|
@@ -32682,13 +32739,15 @@ function cov_2nbnnlcv5p() {
|
|
|
32682
32739
|
"3": [0],
|
|
32683
32740
|
"4": [0],
|
|
32684
32741
|
"5": [0],
|
|
32685
|
-
"6": [0
|
|
32742
|
+
"6": [0],
|
|
32686
32743
|
"7": [0, 0],
|
|
32687
32744
|
"8": [0, 0],
|
|
32688
|
-
"9": [0, 0]
|
|
32745
|
+
"9": [0, 0],
|
|
32746
|
+
"10": [0, 0],
|
|
32747
|
+
"11": [0, 0]
|
|
32689
32748
|
},
|
|
32690
32749
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
32691
|
-
hash: "
|
|
32750
|
+
hash: "b88e0689ba4e946eb5dc0499c0e2d153481098de"
|
|
32692
32751
|
};
|
|
32693
32752
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
32694
32753
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -32721,7 +32780,9 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
32721
32780
|
_ref$showActionBlock = _ref.showActionBlock,
|
|
32722
32781
|
showActionBlock = _ref$showActionBlock === void 0 ? (cov_2nbnnlcv5p().b[3][0]++, true) : _ref$showActionBlock,
|
|
32723
32782
|
submitButtonProps = _ref.submitButtonProps,
|
|
32724
|
-
cancelButtonProps = _ref.cancelButtonProps
|
|
32783
|
+
cancelButtonProps = _ref.cancelButtonProps,
|
|
32784
|
+
_ref$questionKinds = _ref.questionKinds,
|
|
32785
|
+
questionKinds = _ref$questionKinds === void 0 ? (cov_2nbnnlcv5p().b[4][0]++, []) : _ref$questionKinds;
|
|
32725
32786
|
cov_2nbnnlcv5p().f[0]++;
|
|
32726
32787
|
var _ref2 = (cov_2nbnnlcv5p().s[1]++, useState(false)),
|
|
32727
32788
|
_ref3 = _slicedToArray$6(_ref2, 2),
|
|
@@ -32737,7 +32798,7 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
32737
32798
|
},
|
|
32738
32799
|
onSuccess: function onSuccess(_ref5) {
|
|
32739
32800
|
var _ref5$notice = _ref5.notice,
|
|
32740
|
-
notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[
|
|
32801
|
+
notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, "Questions have been updated successfully!") : _ref5$notice;
|
|
32741
32802
|
cov_2nbnnlcv5p().f[2]++;
|
|
32742
32803
|
cov_2nbnnlcv5p().s[5]++;
|
|
32743
32804
|
return Toastr.success(notice);
|
|
@@ -32765,7 +32826,7 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
32765
32826
|
}
|
|
32766
32827
|
})),
|
|
32767
32828
|
_ref6$data = _ref6.data,
|
|
32768
|
-
_ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[
|
|
32829
|
+
_ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[6][0]++, {
|
|
32769
32830
|
title: "",
|
|
32770
32831
|
questions: []
|
|
32771
32832
|
}) : _ref6$data,
|
|
@@ -32790,22 +32851,22 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
32790
32851
|
dataUpdateCount = _ref7.dataUpdateCount;
|
|
32791
32852
|
cov_2nbnnlcv5p().s[12]++;
|
|
32792
32853
|
if (dataUpdateCount > 0) {
|
|
32793
|
-
cov_2nbnnlcv5p().b[
|
|
32854
|
+
cov_2nbnnlcv5p().b[7][0]++;
|
|
32794
32855
|
cov_2nbnnlcv5p().s[13]++;
|
|
32795
32856
|
queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], assoc("questions", questions));
|
|
32796
32857
|
} else {
|
|
32797
|
-
cov_2nbnnlcv5p().b[
|
|
32858
|
+
cov_2nbnnlcv5p().b[7][1]++;
|
|
32798
32859
|
}
|
|
32799
32860
|
};
|
|
32800
32861
|
cov_2nbnnlcv5p().s[14]++;
|
|
32801
32862
|
if (isLoading) {
|
|
32802
|
-
cov_2nbnnlcv5p().b[
|
|
32863
|
+
cov_2nbnnlcv5p().b[8][0]++;
|
|
32803
32864
|
cov_2nbnnlcv5p().s[15]++;
|
|
32804
32865
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
32805
32866
|
className: "flex h-full w-full items-center justify-center py-6"
|
|
32806
32867
|
}, /*#__PURE__*/React__default.createElement(PageLoader, null));
|
|
32807
32868
|
} else {
|
|
32808
|
-
cov_2nbnnlcv5p().b[
|
|
32869
|
+
cov_2nbnnlcv5p().b[8][1]++;
|
|
32809
32870
|
}
|
|
32810
32871
|
cov_2nbnnlcv5p().s[16]++;
|
|
32811
32872
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32828,26 +32889,26 @@ var BuildForm = function BuildForm(_ref) {
|
|
|
32828
32889
|
cancelButtonProps: cancelButtonProps,
|
|
32829
32890
|
formId: id,
|
|
32830
32891
|
nonRemovableFields: nonRemovableFields,
|
|
32831
|
-
questionKinds: QUESTION_KINDS,
|
|
32832
32892
|
requiredFields: requiredFields,
|
|
32833
32893
|
setShouldValidate: setShouldValidateForm,
|
|
32834
32894
|
showActionBlock: showActionBlock,
|
|
32835
32895
|
showAddQuestionDivider: showAddQuestionDivider,
|
|
32836
32896
|
submitButtonProps: submitButtonProps,
|
|
32897
|
+
questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[9][0]++, questionKinds) : (cov_2nbnnlcv5p().b[9][1]++, QUESTION_KINDS),
|
|
32837
32898
|
onValueChange: onValueChange,
|
|
32838
32899
|
onChange: function onChange(event) {
|
|
32839
32900
|
cov_2nbnnlcv5p().f[7]++;
|
|
32840
32901
|
cov_2nbnnlcv5p().s[18]++;
|
|
32841
32902
|
if (!isEmpty(errors)) {
|
|
32842
|
-
cov_2nbnnlcv5p().b[
|
|
32903
|
+
cov_2nbnnlcv5p().b[10][0]++;
|
|
32843
32904
|
cov_2nbnnlcv5p().s[19]++;
|
|
32844
32905
|
setFieldError(event.target.name);
|
|
32845
32906
|
} else {
|
|
32846
|
-
cov_2nbnnlcv5p().b[
|
|
32907
|
+
cov_2nbnnlcv5p().b[10][1]++;
|
|
32847
32908
|
}
|
|
32848
32909
|
}
|
|
32849
32910
|
}));
|
|
32850
|
-
}), (cov_2nbnnlcv5p().b[
|
|
32911
|
+
}), (cov_2nbnnlcv5p().b[11][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[11][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
32851
32912
|
className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
|
|
32852
32913
|
}, /*#__PURE__*/React__default.createElement(PageLoader, null))));
|
|
32853
32914
|
};
|