@bigbinary/neeto-form-frontend 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -24140,7 +24140,7 @@ var STAR_RATING_ICONS_MAP = (cov_5u7jgeqcn().s[5]++, {
24140
24140
 
24141
24141
  function cov_2dmleb6ptc() {
24142
24142
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Dropdown.jsx";
24143
- var hash = "3b4fafeb624738114200ce00b52b1f84c919c005";
24143
+ var hash = "9926432972dd870e218f292a5e8cf35d8de9ef94";
24144
24144
  var global = new Function("return this")();
24145
24145
  var gcv = "__coverage__";
24146
24146
  var coverageData = {
@@ -24152,118 +24152,118 @@ function cov_2dmleb6ptc() {
24152
24152
  column: 17
24153
24153
  },
24154
24154
  end: {
24155
- line: 102,
24155
+ line: 111,
24156
24156
  column: 1
24157
24157
  }
24158
24158
  },
24159
24159
  "1": {
24160
24160
  start: {
24161
- line: 17,
24162
- column: 32
24161
+ line: 21,
24162
+ column: 6
24163
24163
  },
24164
24164
  end: {
24165
- line: 17,
24166
- column: 36
24165
+ line: 21,
24166
+ column: 10
24167
24167
  }
24168
24168
  },
24169
24169
  "2": {
24170
24170
  start: {
24171
- line: 18,
24171
+ line: 22,
24172
24172
  column: 16
24173
24173
  },
24174
24174
  end: {
24175
- line: 18,
24175
+ line: 22,
24176
24176
  column: 32
24177
24177
  }
24178
24178
  },
24179
24179
  "3": {
24180
24180
  start: {
24181
- line: 19,
24181
+ line: 23,
24182
24182
  column: 28
24183
24183
  },
24184
24184
  end: {
24185
- line: 19,
24185
+ line: 23,
24186
24186
  column: 46
24187
24187
  }
24188
24188
  },
24189
24189
  "4": {
24190
24190
  start: {
24191
- line: 21,
24191
+ line: 25,
24192
24192
  column: 29
24193
24193
  },
24194
24194
  end: {
24195
- line: 24,
24195
+ line: 28,
24196
24196
  column: 3
24197
24197
  }
24198
24198
  },
24199
24199
  "5": {
24200
24200
  start: {
24201
- line: 22,
24201
+ line: 26,
24202
24202
  column: 24
24203
24203
  },
24204
24204
  end: {
24205
- line: 22,
24205
+ line: 26,
24206
24206
  column: 77
24207
24207
  }
24208
24208
  },
24209
24209
  "6": {
24210
24210
  start: {
24211
- line: 23,
24211
+ line: 27,
24212
24212
  column: 4
24213
24213
  },
24214
24214
  end: {
24215
- line: 23,
24215
+ line: 27,
24216
24216
  column: 60
24217
24217
  }
24218
24218
  },
24219
24219
  "7": {
24220
24220
  start: {
24221
- line: 26,
24221
+ line: 30,
24222
24222
  column: 2
24223
24223
  },
24224
24224
  end: {
24225
- line: 101,
24225
+ line: 110,
24226
24226
  column: 4
24227
24227
  }
24228
24228
  },
24229
24229
  "8": {
24230
24230
  start: {
24231
- line: 45,
24231
+ line: 49,
24232
24232
  column: 12
24233
24233
  },
24234
24234
  end: {
24235
- line: 87,
24235
+ line: 96,
24236
24236
  column: 15
24237
24237
  }
24238
24238
  },
24239
24239
  "9": {
24240
24240
  start: {
24241
- line: 49,
24241
+ line: 53,
24242
24242
  column: 20
24243
24243
  },
24244
24244
  end: {
24245
- line: 74,
24245
+ line: 81,
24246
24246
  column: 21
24247
24247
  }
24248
24248
  },
24249
24249
  "10": {
24250
24250
  start: {
24251
- line: 66,
24252
- column: 28
24251
+ line: 72,
24252
+ column: 30
24253
24253
  },
24254
24254
  end: {
24255
- line: 69,
24256
- column: 30
24255
+ line: 75,
24256
+ column: 32
24257
24257
  }
24258
24258
  },
24259
24259
  "11": {
24260
24260
  start: {
24261
- line: 71,
24262
- column: 41
24261
+ line: 77,
24262
+ column: 43
24263
24263
  },
24264
24264
  end: {
24265
- line: 71,
24266
- column: 66
24265
+ line: 77,
24266
+ column: 68
24267
24267
  }
24268
24268
  }
24269
24269
  },
@@ -24286,7 +24286,7 @@ function cov_2dmleb6ptc() {
24286
24286
  column: 49
24287
24287
  },
24288
24288
  end: {
24289
- line: 102,
24289
+ line: 111,
24290
24290
  column: 1
24291
24291
  }
24292
24292
  },
@@ -24296,222 +24296,336 @@ function cov_2dmleb6ptc() {
24296
24296
  name: "(anonymous_1)",
24297
24297
  decl: {
24298
24298
  start: {
24299
- line: 21,
24299
+ line: 25,
24300
24300
  column: 29
24301
24301
  },
24302
24302
  end: {
24303
- line: 21,
24303
+ line: 25,
24304
24304
  column: 30
24305
24305
  }
24306
24306
  },
24307
24307
  loc: {
24308
24308
  start: {
24309
- line: 21,
24309
+ line: 25,
24310
24310
  column: 38
24311
24311
  },
24312
24312
  end: {
24313
- line: 24,
24313
+ line: 28,
24314
24314
  column: 3
24315
24315
  }
24316
24316
  },
24317
- line: 21
24317
+ line: 25
24318
24318
  },
24319
24319
  "2": {
24320
24320
  name: "(anonymous_2)",
24321
24321
  decl: {
24322
24322
  start: {
24323
- line: 44,
24323
+ line: 48,
24324
24324
  column: 11
24325
24325
  },
24326
24326
  end: {
24327
- line: 44,
24327
+ line: 48,
24328
24328
  column: 12
24329
24329
  }
24330
24330
  },
24331
24331
  loc: {
24332
24332
  start: {
24333
- line: 45,
24333
+ line: 49,
24334
24334
  column: 12
24335
24335
  },
24336
24336
  end: {
24337
- line: 87,
24337
+ line: 96,
24338
24338
  column: 15
24339
24339
  }
24340
24340
  },
24341
- line: 45
24341
+ line: 49
24342
24342
  },
24343
24343
  "3": {
24344
24344
  name: "(anonymous_3)",
24345
24345
  decl: {
24346
24346
  start: {
24347
- line: 48,
24347
+ line: 52,
24348
24348
  column: 18
24349
24349
  },
24350
24350
  end: {
24351
- line: 48,
24351
+ line: 52,
24352
24352
  column: 19
24353
24353
  }
24354
24354
  },
24355
24355
  loc: {
24356
24356
  start: {
24357
- line: 49,
24357
+ line: 53,
24358
24358
  column: 20
24359
24359
  },
24360
24360
  end: {
24361
- line: 74,
24361
+ line: 81,
24362
24362
  column: 21
24363
24363
  }
24364
24364
  },
24365
- line: 49
24365
+ line: 53
24366
24366
  },
24367
24367
  "4": {
24368
24368
  name: "(anonymous_4)",
24369
24369
  decl: {
24370
24370
  start: {
24371
- line: 65,
24372
- column: 32
24371
+ line: 71,
24372
+ column: 34
24373
24373
  },
24374
24374
  end: {
24375
- line: 65,
24376
- column: 33
24375
+ line: 71,
24376
+ column: 35
24377
24377
  }
24378
24378
  },
24379
24379
  loc: {
24380
24380
  start: {
24381
- line: 66,
24382
- column: 28
24381
+ line: 72,
24382
+ column: 30
24383
24383
  },
24384
24384
  end: {
24385
- line: 69,
24386
- column: 30
24385
+ line: 75,
24386
+ column: 32
24387
24387
  }
24388
24388
  },
24389
- line: 66
24389
+ line: 72
24390
24390
  },
24391
24391
  "5": {
24392
24392
  name: "(anonymous_5)",
24393
24393
  decl: {
24394
24394
  start: {
24395
- line: 71,
24396
- column: 35
24395
+ line: 77,
24396
+ column: 37
24397
24397
  },
24398
24398
  end: {
24399
- line: 71,
24400
- column: 36
24399
+ line: 77,
24400
+ column: 38
24401
24401
  }
24402
24402
  },
24403
24403
  loc: {
24404
24404
  start: {
24405
- line: 71,
24406
- column: 41
24405
+ line: 77,
24406
+ column: 43
24407
24407
  },
24408
24408
  end: {
24409
- line: 71,
24410
- column: 66
24409
+ line: 77,
24410
+ column: 68
24411
24411
  }
24412
24412
  },
24413
- line: 71
24413
+ line: 77
24414
24414
  }
24415
24415
  },
24416
24416
  branchMap: {
24417
24417
  "0": {
24418
24418
  loc: {
24419
24419
  start: {
24420
- line: 49,
24420
+ line: 19,
24421
+ column: 4
24422
+ },
24423
+ end: {
24424
+ line: 19,
24425
+ column: 25
24426
+ }
24427
+ },
24428
+ type: "default-arg",
24429
+ locations: [{
24430
+ start: {
24431
+ line: 19,
24432
+ column: 23
24433
+ },
24434
+ end: {
24435
+ line: 19,
24436
+ column: 25
24437
+ }
24438
+ }],
24439
+ line: 19
24440
+ },
24441
+ "1": {
24442
+ loc: {
24443
+ start: {
24444
+ line: 20,
24445
+ column: 4
24446
+ },
24447
+ end: {
24448
+ line: 20,
24449
+ column: 25
24450
+ }
24451
+ },
24452
+ type: "default-arg",
24453
+ locations: [{
24454
+ start: {
24455
+ line: 20,
24421
24456
  column: 20
24422
24457
  },
24423
24458
  end: {
24424
- line: 74,
24459
+ line: 20,
24460
+ column: 25
24461
+ }
24462
+ }],
24463
+ line: 20
24464
+ },
24465
+ "2": {
24466
+ loc: {
24467
+ start: {
24468
+ line: 53,
24469
+ column: 20
24470
+ },
24471
+ end: {
24472
+ line: 81,
24425
24473
  column: 21
24426
24474
  }
24427
24475
  },
24428
24476
  type: "binary-expr",
24429
24477
  locations: [{
24430
24478
  start: {
24431
- line: 49,
24479
+ line: 53,
24432
24480
  column: 20
24433
24481
  },
24434
24482
  end: {
24435
- line: 49,
24483
+ line: 53,
24436
24484
  column: 36
24437
24485
  }
24438
24486
  }, {
24439
24487
  start: {
24440
- line: 50,
24488
+ line: 54,
24441
24489
  column: 22
24442
24490
  },
24443
24491
  end: {
24444
- line: 73,
24492
+ line: 80,
24445
24493
  column: 28
24446
24494
  }
24447
24495
  }],
24448
- line: 49
24496
+ line: 53
24449
24497
  },
24450
- "1": {
24498
+ "3": {
24451
24499
  loc: {
24452
24500
  start: {
24453
- line: 52,
24501
+ line: 56,
24454
24502
  column: 48
24455
24503
  },
24456
24504
  end: {
24457
- line: 52,
24505
+ line: 56,
24458
24506
  column: 66
24459
24507
  }
24460
24508
  },
24461
24509
  type: "binary-expr",
24462
24510
  locations: [{
24463
24511
  start: {
24464
- line: 52,
24512
+ line: 56,
24465
24513
  column: 48
24466
24514
  },
24467
24515
  end: {
24468
- line: 52,
24516
+ line: 56,
24469
24517
  column: 57
24470
24518
  }
24471
24519
  }, {
24472
24520
  start: {
24473
- line: 52,
24521
+ line: 56,
24474
24522
  column: 61
24475
24523
  },
24476
24524
  end: {
24477
- line: 52,
24525
+ line: 56,
24478
24526
  column: 66
24479
24527
  }
24480
24528
  }],
24481
- line: 52
24529
+ line: 56
24482
24530
  },
24483
- "2": {
24531
+ "4": {
24484
24532
  loc: {
24485
24533
  start: {
24486
- line: 91,
24534
+ line: 65,
24535
+ column: 25
24536
+ },
24537
+ end: {
24538
+ line: 79,
24539
+ column: 25
24540
+ }
24541
+ },
24542
+ type: "binary-expr",
24543
+ locations: [{
24544
+ start: {
24545
+ line: 65,
24546
+ column: 25
24547
+ },
24548
+ end: {
24549
+ line: 65,
24550
+ column: 39
24551
+ }
24552
+ }, {
24553
+ start: {
24554
+ line: 66,
24555
+ column: 26
24556
+ },
24557
+ end: {
24558
+ line: 78,
24559
+ column: 28
24560
+ }
24561
+ }],
24562
+ line: 65
24563
+ },
24564
+ "5": {
24565
+ loc: {
24566
+ start: {
24567
+ line: 84,
24568
+ column: 15
24569
+ },
24570
+ end: {
24571
+ line: 95,
24572
+ column: 15
24573
+ }
24574
+ },
24575
+ type: "binary-expr",
24576
+ locations: [{
24577
+ start: {
24578
+ line: 84,
24579
+ column: 15
24580
+ },
24581
+ end: {
24582
+ line: 84,
24583
+ column: 29
24584
+ }
24585
+ }, {
24586
+ start: {
24587
+ line: 85,
24588
+ column: 16
24589
+ },
24590
+ end: {
24591
+ line: 94,
24592
+ column: 22
24593
+ }
24594
+ }],
24595
+ line: 84
24596
+ },
24597
+ "6": {
24598
+ loc: {
24599
+ start: {
24600
+ line: 100,
24487
24601
  column: 7
24488
24602
  },
24489
24603
  end: {
24490
- line: 99,
24604
+ line: 108,
24491
24605
  column: 7
24492
24606
  }
24493
24607
  },
24494
24608
  type: "binary-expr",
24495
24609
  locations: [{
24496
24610
  start: {
24497
- line: 91,
24611
+ line: 100,
24498
24612
  column: 7
24499
24613
  },
24500
24614
  end: {
24501
- line: 91,
24615
+ line: 100,
24502
24616
  column: 18
24503
24617
  }
24504
24618
  }, {
24505
24619
  start: {
24506
- line: 92,
24620
+ line: 101,
24507
24621
  column: 8
24508
24622
  },
24509
24623
  end: {
24510
- line: 98,
24624
+ line: 107,
24511
24625
  column: 14
24512
24626
  }
24513
24627
  }],
24514
- line: 91
24628
+ line: 100
24515
24629
  }
24516
24630
  },
24517
24631
  s: {
@@ -24537,12 +24651,16 @@ function cov_2dmleb6ptc() {
24537
24651
  "5": 0
24538
24652
  },
24539
24653
  b: {
24540
- "0": [0, 0],
24541
- "1": [0, 0],
24542
- "2": [0, 0]
24654
+ "0": [0],
24655
+ "1": [0],
24656
+ "2": [0, 0],
24657
+ "3": [0, 0],
24658
+ "4": [0, 0],
24659
+ "5": [0, 0],
24660
+ "6": [0, 0]
24543
24661
  },
24544
24662
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
24545
- hash: "3b4fafeb624738114200ce00b52b1f84c919c005"
24663
+ hash: "9926432972dd870e218f292a5e8cf35d8de9ef94"
24546
24664
  };
24547
24665
  var coverage = global[gcv] || (global[gcv] = {});
24548
24666
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -24565,7 +24683,11 @@ var Dropdown$1 = function Dropdown(_ref) {
24565
24683
  isRequired = _ref.isRequired;
24566
24684
  cov_2dmleb6ptc().f[0]++;
24567
24685
  var _ref2 = (cov_2dmleb6ptc().s[1]++, item),
24568
- optionsAttributes = _ref2.optionsAttributes;
24686
+ optionsAttributes = _ref2.optionsAttributes,
24687
+ _ref2$optionLabelProp = _ref2.optionLabelProps,
24688
+ optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_2dmleb6ptc().b[0][0]++, {}) : _ref2$optionLabelProp,
24689
+ _ref2$freezeOptions = _ref2.freezeOptions,
24690
+ freezeOptions = _ref2$freezeOptions === void 0 ? (cov_2dmleb6ptc().b[1][0]++, false) : _ref2$freezeOptions;
24569
24691
  var _ref3 = (cov_2dmleb6ptc().s[2]++, useTranslation()),
24570
24692
  t = _ref3.t;
24571
24693
  var _ref4 = (cov_2dmleb6ptc().s[3]++, formik.useFormikContext()),
@@ -24592,9 +24714,9 @@ var Dropdown$1 = function Dropdown(_ref) {
24592
24714
  })
24593
24715
  })), /*#__PURE__*/React__default["default"].createElement("div", {
24594
24716
  className: "w-full"
24595
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
24717
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, _extends$9({
24596
24718
  className: "mb-1 block"
24597
- }, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
24719
+ }, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
24598
24720
  name: "".concat(name, ".optionsAttributes")
24599
24721
  }, function (_ref5) {
24600
24722
  var handlePush = _ref5.handlePush;
@@ -24606,13 +24728,14 @@ var Dropdown$1 = function Dropdown(_ref) {
24606
24728
  var _ref6;
24607
24729
  cov_2dmleb6ptc().f[3]++;
24608
24730
  cov_2dmleb6ptc().s[9]++;
24609
- return (cov_2dmleb6ptc().b[0][0]++, !option._destroy) && (cov_2dmleb6ptc().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
24731
+ return (cov_2dmleb6ptc().b[2][0]++, !option._destroy) && (cov_2dmleb6ptc().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
24610
24732
  className: "flex items-start gap-1",
24611
- key: "question-option-".concat((_ref6 = (cov_2dmleb6ptc().b[1][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2dmleb6ptc().b[1][1]++, index))
24733
+ key: "question-option-".concat((_ref6 = (cov_2dmleb6ptc().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2dmleb6ptc().b[3][1]++, index))
24612
24734
  }, /*#__PURE__*/React__default["default"].createElement(InputWithMaxLength, {
24735
+ disabled: freezeOptions,
24613
24736
  name: "".concat(name, ".optionsAttributes.").concat(index, ".label"),
24614
24737
  placeholder: "".concat(t("questions.common.questionFields.field.option"), " ").concat(index + 1)
24615
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
24738
+ }), (cov_2dmleb6ptc().b[4][0]++, !freezeOptions) && (cov_2dmleb6ptc().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
24616
24739
  style: "text",
24617
24740
  className: classnames__default["default"]({
24618
24741
  invisible: index < DROPDOWN_FIELD_MIN_OPTIONS$1
@@ -24630,8 +24753,8 @@ var Dropdown$1 = function Dropdown(_ref) {
24630
24753
  cov_2dmleb6ptc().s[11]++;
24631
24754
  return handleRemoveOption(index);
24632
24755
  }
24633
- })));
24634
- })), /*#__PURE__*/React__default["default"].createElement("div", {
24756
+ }))));
24757
+ })), (cov_2dmleb6ptc().b[5][0]++, !freezeOptions) && (cov_2dmleb6ptc().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
24635
24758
  className: "mt-3 w-full"
24636
24759
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
24637
24760
  icon: neetoIcons.Plus,
@@ -24642,8 +24765,8 @@ var Dropdown$1 = function Dropdown(_ref) {
24642
24765
  onClick: handlePush({
24643
24766
  label: ""
24644
24767
  })
24645
- })));
24646
- })), (cov_2dmleb6ptc().b[2][0]++, !isRequired) && (cov_2dmleb6ptc().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
24768
+ }))));
24769
+ })), (cov_2dmleb6ptc().b[6][0]++, !isRequired) && (cov_2dmleb6ptc().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
24647
24770
  className: "w-full"
24648
24771
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Checkbox, {
24649
24772
  id: "".concat(name, ".isRequired"),
@@ -24977,7 +25100,7 @@ var LongText$1 = function LongText(_ref) {
24977
25100
 
24978
25101
  function cov_ezislrxf8() {
24979
25102
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/MultipleChoice.jsx";
24980
- var hash = "300d57d30f9824378975d70f6442fded08432f5e";
25103
+ var hash = "f398b7e5e94047f87461a57e2caf604e32e36a9d";
24981
25104
  var global = new Function("return this")();
24982
25105
  var gcv = "__coverage__";
24983
25106
  var coverageData = {
@@ -24989,108 +25112,108 @@ function cov_ezislrxf8() {
24989
25112
  column: 23
24990
25113
  },
24991
25114
  end: {
24992
- line: 89,
25115
+ line: 98,
24993
25116
  column: 1
24994
25117
  }
24995
25118
  },
24996
25119
  "1": {
24997
25120
  start: {
24998
- line: 15,
24999
- column: 32
25121
+ line: 19,
25122
+ column: 6
25000
25123
  },
25001
25124
  end: {
25002
- line: 15,
25003
- column: 36
25125
+ line: 19,
25126
+ column: 10
25004
25127
  }
25005
25128
  },
25006
25129
  "2": {
25007
25130
  start: {
25008
- line: 16,
25131
+ line: 20,
25009
25132
  column: 16
25010
25133
  },
25011
25134
  end: {
25012
- line: 16,
25135
+ line: 20,
25013
25136
  column: 32
25014
25137
  }
25015
25138
  },
25016
25139
  "3": {
25017
25140
  start: {
25018
- line: 17,
25141
+ line: 21,
25019
25142
  column: 28
25020
25143
  },
25021
25144
  end: {
25022
- line: 17,
25145
+ line: 21,
25023
25146
  column: 46
25024
25147
  }
25025
25148
  },
25026
25149
  "4": {
25027
25150
  start: {
25028
- line: 19,
25151
+ line: 23,
25029
25152
  column: 29
25030
25153
  },
25031
25154
  end: {
25032
- line: 22,
25155
+ line: 26,
25033
25156
  column: 3
25034
25157
  }
25035
25158
  },
25036
25159
  "5": {
25037
25160
  start: {
25038
- line: 20,
25161
+ line: 24,
25039
25162
  column: 24
25040
25163
  },
25041
25164
  end: {
25042
- line: 20,
25165
+ line: 24,
25043
25166
  column: 77
25044
25167
  }
25045
25168
  },
25046
25169
  "6": {
25047
25170
  start: {
25048
- line: 21,
25171
+ line: 25,
25049
25172
  column: 4
25050
25173
  },
25051
25174
  end: {
25052
- line: 21,
25175
+ line: 25,
25053
25176
  column: 60
25054
25177
  }
25055
25178
  },
25056
25179
  "7": {
25057
25180
  start: {
25058
- line: 24,
25181
+ line: 28,
25059
25182
  column: 2
25060
25183
  },
25061
25184
  end: {
25062
- line: 88,
25185
+ line: 97,
25063
25186
  column: 4
25064
25187
  }
25065
25188
  },
25066
25189
  "8": {
25067
25190
  start: {
25068
- line: 37,
25191
+ line: 41,
25069
25192
  column: 12
25070
25193
  },
25071
25194
  end: {
25072
- line: 74,
25195
+ line: 83,
25073
25196
  column: 15
25074
25197
  }
25075
25198
  },
25076
25199
  "9": {
25077
25200
  start: {
25078
- line: 44,
25201
+ line: 48,
25079
25202
  column: 20
25080
25203
  },
25081
25204
  end: {
25082
- line: 61,
25205
+ line: 68,
25083
25206
  column: 21
25084
25207
  }
25085
25208
  },
25086
25209
  "10": {
25087
25210
  start: {
25088
- line: 58,
25089
- column: 41
25211
+ line: 64,
25212
+ column: 43
25090
25213
  },
25091
25214
  end: {
25092
- line: 58,
25093
- column: 66
25215
+ line: 64,
25216
+ column: 68
25094
25217
  }
25095
25218
  }
25096
25219
  },
@@ -25113,7 +25236,7 @@ function cov_ezislrxf8() {
25113
25236
  column: 55
25114
25237
  },
25115
25238
  end: {
25116
- line: 89,
25239
+ line: 98,
25117
25240
  column: 1
25118
25241
  }
25119
25242
  },
@@ -25123,198 +25246,312 @@ function cov_ezislrxf8() {
25123
25246
  name: "(anonymous_1)",
25124
25247
  decl: {
25125
25248
  start: {
25126
- line: 19,
25249
+ line: 23,
25127
25250
  column: 29
25128
25251
  },
25129
25252
  end: {
25130
- line: 19,
25253
+ line: 23,
25131
25254
  column: 30
25132
25255
  }
25133
25256
  },
25134
25257
  loc: {
25135
25258
  start: {
25136
- line: 19,
25259
+ line: 23,
25137
25260
  column: 38
25138
25261
  },
25139
25262
  end: {
25140
- line: 22,
25263
+ line: 26,
25141
25264
  column: 3
25142
25265
  }
25143
25266
  },
25144
- line: 19
25267
+ line: 23
25145
25268
  },
25146
25269
  "2": {
25147
25270
  name: "(anonymous_2)",
25148
25271
  decl: {
25149
25272
  start: {
25150
- line: 36,
25273
+ line: 40,
25151
25274
  column: 11
25152
25275
  },
25153
25276
  end: {
25154
- line: 36,
25277
+ line: 40,
25155
25278
  column: 12
25156
25279
  }
25157
25280
  },
25158
25281
  loc: {
25159
25282
  start: {
25160
- line: 37,
25283
+ line: 41,
25161
25284
  column: 12
25162
25285
  },
25163
25286
  end: {
25164
- line: 74,
25287
+ line: 83,
25165
25288
  column: 15
25166
25289
  }
25167
25290
  },
25168
- line: 37
25291
+ line: 41
25169
25292
  },
25170
25293
  "3": {
25171
25294
  name: "(anonymous_3)",
25172
25295
  decl: {
25173
25296
  start: {
25174
- line: 43,
25297
+ line: 47,
25175
25298
  column: 18
25176
25299
  },
25177
25300
  end: {
25178
- line: 43,
25301
+ line: 47,
25179
25302
  column: 19
25180
25303
  }
25181
25304
  },
25182
25305
  loc: {
25183
25306
  start: {
25184
- line: 44,
25307
+ line: 48,
25185
25308
  column: 20
25186
25309
  },
25187
25310
  end: {
25188
- line: 61,
25311
+ line: 68,
25189
25312
  column: 21
25190
25313
  }
25191
25314
  },
25192
- line: 44
25315
+ line: 48
25193
25316
  },
25194
25317
  "4": {
25195
25318
  name: "(anonymous_4)",
25196
25319
  decl: {
25197
25320
  start: {
25198
- line: 58,
25199
- column: 35
25321
+ line: 64,
25322
+ column: 37
25200
25323
  },
25201
25324
  end: {
25202
- line: 58,
25203
- column: 36
25325
+ line: 64,
25326
+ column: 38
25204
25327
  }
25205
25328
  },
25206
25329
  loc: {
25207
25330
  start: {
25208
- line: 58,
25209
- column: 41
25331
+ line: 64,
25332
+ column: 43
25210
25333
  },
25211
25334
  end: {
25212
- line: 58,
25213
- column: 66
25335
+ line: 64,
25336
+ column: 68
25214
25337
  }
25215
25338
  },
25216
- line: 58
25339
+ line: 64
25217
25340
  }
25218
25341
  },
25219
25342
  branchMap: {
25220
25343
  "0": {
25221
25344
  loc: {
25222
25345
  start: {
25223
- line: 44,
25346
+ line: 17,
25347
+ column: 4
25348
+ },
25349
+ end: {
25350
+ line: 17,
25351
+ column: 25
25352
+ }
25353
+ },
25354
+ type: "default-arg",
25355
+ locations: [{
25356
+ start: {
25357
+ line: 17,
25358
+ column: 23
25359
+ },
25360
+ end: {
25361
+ line: 17,
25362
+ column: 25
25363
+ }
25364
+ }],
25365
+ line: 17
25366
+ },
25367
+ "1": {
25368
+ loc: {
25369
+ start: {
25370
+ line: 18,
25371
+ column: 4
25372
+ },
25373
+ end: {
25374
+ line: 18,
25375
+ column: 25
25376
+ }
25377
+ },
25378
+ type: "default-arg",
25379
+ locations: [{
25380
+ start: {
25381
+ line: 18,
25224
25382
  column: 20
25225
25383
  },
25226
25384
  end: {
25227
- line: 61,
25385
+ line: 18,
25386
+ column: 25
25387
+ }
25388
+ }],
25389
+ line: 18
25390
+ },
25391
+ "2": {
25392
+ loc: {
25393
+ start: {
25394
+ line: 48,
25395
+ column: 20
25396
+ },
25397
+ end: {
25398
+ line: 68,
25228
25399
  column: 21
25229
25400
  }
25230
25401
  },
25231
25402
  type: "binary-expr",
25232
25403
  locations: [{
25233
25404
  start: {
25234
- line: 44,
25405
+ line: 48,
25235
25406
  column: 20
25236
25407
  },
25237
25408
  end: {
25238
- line: 44,
25409
+ line: 48,
25239
25410
  column: 36
25240
25411
  }
25241
25412
  }, {
25242
25413
  start: {
25243
- line: 45,
25414
+ line: 49,
25244
25415
  column: 22
25245
25416
  },
25246
25417
  end: {
25247
- line: 60,
25418
+ line: 67,
25248
25419
  column: 28
25249
25420
  }
25250
25421
  }],
25251
- line: 44
25422
+ line: 48
25252
25423
  },
25253
- "1": {
25424
+ "3": {
25254
25425
  loc: {
25255
25426
  start: {
25256
- line: 47,
25427
+ line: 51,
25257
25428
  column: 48
25258
25429
  },
25259
25430
  end: {
25260
- line: 47,
25431
+ line: 51,
25261
25432
  column: 66
25262
25433
  }
25263
25434
  },
25264
25435
  type: "binary-expr",
25265
25436
  locations: [{
25266
25437
  start: {
25267
- line: 47,
25438
+ line: 51,
25268
25439
  column: 48
25269
25440
  },
25270
25441
  end: {
25271
- line: 47,
25442
+ line: 51,
25272
25443
  column: 57
25273
25444
  }
25274
25445
  }, {
25275
25446
  start: {
25276
- line: 47,
25447
+ line: 51,
25277
25448
  column: 61
25278
25449
  },
25279
25450
  end: {
25280
- line: 47,
25451
+ line: 51,
25281
25452
  column: 66
25282
25453
  }
25283
25454
  }],
25284
- line: 47
25455
+ line: 51
25285
25456
  },
25286
- "2": {
25457
+ "4": {
25287
25458
  loc: {
25288
25459
  start: {
25289
- line: 78,
25460
+ line: 58,
25461
+ column: 25
25462
+ },
25463
+ end: {
25464
+ line: 66,
25465
+ column: 25
25466
+ }
25467
+ },
25468
+ type: "binary-expr",
25469
+ locations: [{
25470
+ start: {
25471
+ line: 58,
25472
+ column: 25
25473
+ },
25474
+ end: {
25475
+ line: 58,
25476
+ column: 39
25477
+ }
25478
+ }, {
25479
+ start: {
25480
+ line: 59,
25481
+ column: 26
25482
+ },
25483
+ end: {
25484
+ line: 65,
25485
+ column: 28
25486
+ }
25487
+ }],
25488
+ line: 58
25489
+ },
25490
+ "5": {
25491
+ loc: {
25492
+ start: {
25493
+ line: 71,
25494
+ column: 15
25495
+ },
25496
+ end: {
25497
+ line: 82,
25498
+ column: 15
25499
+ }
25500
+ },
25501
+ type: "binary-expr",
25502
+ locations: [{
25503
+ start: {
25504
+ line: 71,
25505
+ column: 15
25506
+ },
25507
+ end: {
25508
+ line: 71,
25509
+ column: 29
25510
+ }
25511
+ }, {
25512
+ start: {
25513
+ line: 72,
25514
+ column: 16
25515
+ },
25516
+ end: {
25517
+ line: 81,
25518
+ column: 22
25519
+ }
25520
+ }],
25521
+ line: 71
25522
+ },
25523
+ "6": {
25524
+ loc: {
25525
+ start: {
25526
+ line: 87,
25290
25527
  column: 7
25291
25528
  },
25292
25529
  end: {
25293
- line: 86,
25530
+ line: 95,
25294
25531
  column: 7
25295
25532
  }
25296
25533
  },
25297
25534
  type: "binary-expr",
25298
25535
  locations: [{
25299
25536
  start: {
25300
- line: 78,
25537
+ line: 87,
25301
25538
  column: 7
25302
25539
  },
25303
25540
  end: {
25304
- line: 78,
25541
+ line: 87,
25305
25542
  column: 18
25306
25543
  }
25307
25544
  }, {
25308
25545
  start: {
25309
- line: 79,
25546
+ line: 88,
25310
25547
  column: 8
25311
25548
  },
25312
25549
  end: {
25313
- line: 85,
25550
+ line: 94,
25314
25551
  column: 14
25315
25552
  }
25316
25553
  }],
25317
- line: 78
25554
+ line: 87
25318
25555
  }
25319
25556
  },
25320
25557
  s: {
@@ -25338,12 +25575,16 @@ function cov_ezislrxf8() {
25338
25575
  "4": 0
25339
25576
  },
25340
25577
  b: {
25341
- "0": [0, 0],
25342
- "1": [0, 0],
25343
- "2": [0, 0]
25578
+ "0": [0],
25579
+ "1": [0],
25580
+ "2": [0, 0],
25581
+ "3": [0, 0],
25582
+ "4": [0, 0],
25583
+ "5": [0, 0],
25584
+ "6": [0, 0]
25344
25585
  },
25345
25586
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
25346
- hash: "300d57d30f9824378975d70f6442fded08432f5e"
25587
+ hash: "f398b7e5e94047f87461a57e2caf604e32e36a9d"
25347
25588
  };
25348
25589
  var coverage = global[gcv] || (global[gcv] = {});
25349
25590
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -25366,7 +25607,11 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
25366
25607
  isRequired = _ref.isRequired;
25367
25608
  cov_ezislrxf8().f[0]++;
25368
25609
  var _ref2 = (cov_ezislrxf8().s[1]++, item),
25369
- optionsAttributes = _ref2.optionsAttributes;
25610
+ optionsAttributes = _ref2.optionsAttributes,
25611
+ _ref2$optionLabelProp = _ref2.optionLabelProps,
25612
+ optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_ezislrxf8().b[0][0]++, {}) : _ref2$optionLabelProp,
25613
+ _ref2$freezeOptions = _ref2.freezeOptions,
25614
+ freezeOptions = _ref2$freezeOptions === void 0 ? (cov_ezislrxf8().b[1][0]++, false) : _ref2$freezeOptions;
25370
25615
  var _ref3 = (cov_ezislrxf8().s[2]++, useTranslation()),
25371
25616
  t = _ref3.t;
25372
25617
  var _ref4 = (cov_ezislrxf8().s[3]++, formik.useFormikContext()),
@@ -25396,21 +25641,22 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
25396
25641
  var handlePush = _ref5.handlePush;
25397
25642
  cov_ezislrxf8().f[2]++;
25398
25643
  cov_ezislrxf8().s[8]++;
25399
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
25644
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, _extends$9({
25400
25645
  className: "mb-1 block"
25401
- }, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement("div", {
25646
+ }, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement("div", {
25402
25647
  className: "flex w-2/3 flex-col space-y-2"
25403
25648
  }, optionsAttributes.map(function (option, index) {
25404
25649
  var _ref6;
25405
25650
  cov_ezislrxf8().f[3]++;
25406
25651
  cov_ezislrxf8().s[9]++;
25407
- return (cov_ezislrxf8().b[0][0]++, !option._destroy) && (cov_ezislrxf8().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
25652
+ return (cov_ezislrxf8().b[2][0]++, !option._destroy) && (cov_ezislrxf8().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
25408
25653
  className: "flex items-start gap-1",
25409
- key: "question-option-".concat((_ref6 = (cov_ezislrxf8().b[1][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_ezislrxf8().b[1][1]++, index))
25654
+ key: "question-option-".concat((_ref6 = (cov_ezislrxf8().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_ezislrxf8().b[3][1]++, index))
25410
25655
  }, /*#__PURE__*/React__default["default"].createElement(InputWithMaxLength, {
25411
25656
  required: true,
25657
+ disabled: freezeOptions,
25412
25658
  name: "".concat(name, ".optionsAttributes.").concat(index, ".label")
25413
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
25659
+ }), (cov_ezislrxf8().b[4][0]++, !freezeOptions) && (cov_ezislrxf8().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
25414
25660
  className: classnames__default["default"]({
25415
25661
  invisible: index === 0
25416
25662
  }),
@@ -25422,8 +25668,8 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
25422
25668
  cov_ezislrxf8().s[10]++;
25423
25669
  return handleRemoveOption(index);
25424
25670
  }
25425
- })));
25426
- })), /*#__PURE__*/React__default["default"].createElement("div", {
25671
+ }))));
25672
+ })), (cov_ezislrxf8().b[5][0]++, !freezeOptions) && (cov_ezislrxf8().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
25427
25673
  className: "mt-3 w-full"
25428
25674
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
25429
25675
  icon: neetoIcons.Plus,
@@ -25434,8 +25680,8 @@ var MultipleChoice$1 = function MultipleChoice(_ref) {
25434
25680
  onClick: handlePush({
25435
25681
  label: ""
25436
25682
  })
25437
- })));
25438
- })), (cov_ezislrxf8().b[2][0]++, !isRequired) && (cov_ezislrxf8().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
25683
+ }))));
25684
+ })), (cov_ezislrxf8().b[6][0]++, !isRequired) && (cov_ezislrxf8().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
25439
25685
  className: "w-full"
25440
25686
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Checkbox, {
25441
25687
  id: "".concat(name, ".isRequired"),
@@ -25999,7 +26245,7 @@ var ShortText$1 = function ShortText(_ref) {
25999
26245
 
26000
26246
  function cov_1p625a7ih4() {
26001
26247
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/SingleChoice.jsx";
26002
- var hash = "99213ff7d9beb4d434106a0d7d544e0e50ca3b81";
26248
+ var hash = "1011b25909b9c73b64080f90fa78d81fed144c14";
26003
26249
  var global = new Function("return this")();
26004
26250
  var gcv = "__coverage__";
26005
26251
  var coverageData = {
@@ -26011,108 +26257,108 @@ function cov_1p625a7ih4() {
26011
26257
  column: 21
26012
26258
  },
26013
26259
  end: {
26014
- line: 96,
26260
+ line: 106,
26015
26261
  column: 1
26016
26262
  }
26017
26263
  },
26018
26264
  "1": {
26019
26265
  start: {
26020
- line: 17,
26021
- column: 32
26266
+ line: 21,
26267
+ column: 6
26022
26268
  },
26023
26269
  end: {
26024
- line: 17,
26025
- column: 36
26270
+ line: 21,
26271
+ column: 10
26026
26272
  }
26027
26273
  },
26028
26274
  "2": {
26029
26275
  start: {
26030
- line: 18,
26276
+ line: 22,
26031
26277
  column: 16
26032
26278
  },
26033
26279
  end: {
26034
- line: 18,
26280
+ line: 22,
26035
26281
  column: 32
26036
26282
  }
26037
26283
  },
26038
26284
  "3": {
26039
26285
  start: {
26040
- line: 20,
26286
+ line: 24,
26041
26287
  column: 28
26042
26288
  },
26043
26289
  end: {
26044
- line: 20,
26290
+ line: 24,
26045
26291
  column: 46
26046
26292
  }
26047
26293
  },
26048
26294
  "4": {
26049
26295
  start: {
26050
- line: 22,
26296
+ line: 26,
26051
26297
  column: 29
26052
26298
  },
26053
26299
  end: {
26054
- line: 25,
26300
+ line: 29,
26055
26301
  column: 3
26056
26302
  }
26057
26303
  },
26058
26304
  "5": {
26059
26305
  start: {
26060
- line: 23,
26306
+ line: 27,
26061
26307
  column: 24
26062
26308
  },
26063
26309
  end: {
26064
- line: 23,
26310
+ line: 27,
26065
26311
  column: 77
26066
26312
  }
26067
26313
  },
26068
26314
  "6": {
26069
26315
  start: {
26070
- line: 24,
26316
+ line: 28,
26071
26317
  column: 4
26072
26318
  },
26073
26319
  end: {
26074
- line: 24,
26320
+ line: 28,
26075
26321
  column: 50
26076
26322
  }
26077
26323
  },
26078
26324
  "7": {
26079
26325
  start: {
26080
- line: 27,
26326
+ line: 31,
26081
26327
  column: 2
26082
26328
  },
26083
26329
  end: {
26084
- line: 95,
26330
+ line: 105,
26085
26331
  column: 4
26086
26332
  }
26087
26333
  },
26088
26334
  "8": {
26089
26335
  start: {
26090
- line: 40,
26336
+ line: 44,
26091
26337
  column: 12
26092
26338
  },
26093
26339
  end: {
26094
- line: 81,
26340
+ line: 91,
26095
26341
  column: 15
26096
26342
  }
26097
26343
  },
26098
26344
  "9": {
26099
26345
  start: {
26100
- line: 47,
26346
+ line: 51,
26101
26347
  column: 20
26102
26348
  },
26103
26349
  end: {
26104
- line: 68,
26350
+ line: 76,
26105
26351
  column: 21
26106
26352
  }
26107
26353
  },
26108
26354
  "10": {
26109
26355
  start: {
26110
- line: 65,
26111
- column: 41
26356
+ line: 72,
26357
+ column: 43
26112
26358
  },
26113
26359
  end: {
26114
- line: 65,
26115
- column: 66
26360
+ line: 72,
26361
+ column: 68
26116
26362
  }
26117
26363
  }
26118
26364
  },
@@ -26135,7 +26381,7 @@ function cov_1p625a7ih4() {
26135
26381
  column: 53
26136
26382
  },
26137
26383
  end: {
26138
- line: 96,
26384
+ line: 106,
26139
26385
  column: 1
26140
26386
  }
26141
26387
  },
@@ -26145,198 +26391,312 @@ function cov_1p625a7ih4() {
26145
26391
  name: "(anonymous_1)",
26146
26392
  decl: {
26147
26393
  start: {
26148
- line: 22,
26394
+ line: 26,
26149
26395
  column: 29
26150
26396
  },
26151
26397
  end: {
26152
- line: 22,
26398
+ line: 26,
26153
26399
  column: 30
26154
26400
  }
26155
26401
  },
26156
26402
  loc: {
26157
26403
  start: {
26158
- line: 22,
26404
+ line: 26,
26159
26405
  column: 38
26160
26406
  },
26161
26407
  end: {
26162
- line: 25,
26408
+ line: 29,
26163
26409
  column: 3
26164
26410
  }
26165
26411
  },
26166
- line: 22
26412
+ line: 26
26167
26413
  },
26168
26414
  "2": {
26169
26415
  name: "(anonymous_2)",
26170
26416
  decl: {
26171
26417
  start: {
26172
- line: 39,
26418
+ line: 43,
26173
26419
  column: 11
26174
26420
  },
26175
26421
  end: {
26176
- line: 39,
26422
+ line: 43,
26177
26423
  column: 12
26178
26424
  }
26179
26425
  },
26180
26426
  loc: {
26181
26427
  start: {
26182
- line: 40,
26428
+ line: 44,
26183
26429
  column: 12
26184
26430
  },
26185
26431
  end: {
26186
- line: 81,
26432
+ line: 91,
26187
26433
  column: 15
26188
26434
  }
26189
26435
  },
26190
- line: 40
26436
+ line: 44
26191
26437
  },
26192
26438
  "3": {
26193
26439
  name: "(anonymous_3)",
26194
26440
  decl: {
26195
26441
  start: {
26196
- line: 46,
26442
+ line: 50,
26197
26443
  column: 18
26198
26444
  },
26199
26445
  end: {
26200
- line: 46,
26446
+ line: 50,
26201
26447
  column: 19
26202
26448
  }
26203
26449
  },
26204
26450
  loc: {
26205
26451
  start: {
26206
- line: 47,
26452
+ line: 51,
26207
26453
  column: 20
26208
26454
  },
26209
26455
  end: {
26210
- line: 68,
26456
+ line: 76,
26211
26457
  column: 21
26212
26458
  }
26213
26459
  },
26214
- line: 47
26460
+ line: 51
26215
26461
  },
26216
26462
  "4": {
26217
26463
  name: "(anonymous_4)",
26218
26464
  decl: {
26219
26465
  start: {
26220
- line: 65,
26221
- column: 35
26466
+ line: 72,
26467
+ column: 37
26222
26468
  },
26223
26469
  end: {
26224
- line: 65,
26225
- column: 36
26470
+ line: 72,
26471
+ column: 38
26226
26472
  }
26227
26473
  },
26228
26474
  loc: {
26229
26475
  start: {
26230
- line: 65,
26231
- column: 41
26476
+ line: 72,
26477
+ column: 43
26232
26478
  },
26233
26479
  end: {
26234
- line: 65,
26235
- column: 66
26480
+ line: 72,
26481
+ column: 68
26236
26482
  }
26237
26483
  },
26238
- line: 65
26484
+ line: 72
26239
26485
  }
26240
26486
  },
26241
26487
  branchMap: {
26242
26488
  "0": {
26243
26489
  loc: {
26244
26490
  start: {
26245
- line: 47,
26491
+ line: 19,
26492
+ column: 4
26493
+ },
26494
+ end: {
26495
+ line: 19,
26496
+ column: 25
26497
+ }
26498
+ },
26499
+ type: "default-arg",
26500
+ locations: [{
26501
+ start: {
26502
+ line: 19,
26503
+ column: 23
26504
+ },
26505
+ end: {
26506
+ line: 19,
26507
+ column: 25
26508
+ }
26509
+ }],
26510
+ line: 19
26511
+ },
26512
+ "1": {
26513
+ loc: {
26514
+ start: {
26515
+ line: 20,
26516
+ column: 4
26517
+ },
26518
+ end: {
26519
+ line: 20,
26520
+ column: 25
26521
+ }
26522
+ },
26523
+ type: "default-arg",
26524
+ locations: [{
26525
+ start: {
26526
+ line: 20,
26246
26527
  column: 20
26247
26528
  },
26248
26529
  end: {
26249
- line: 68,
26530
+ line: 20,
26531
+ column: 25
26532
+ }
26533
+ }],
26534
+ line: 20
26535
+ },
26536
+ "2": {
26537
+ loc: {
26538
+ start: {
26539
+ line: 51,
26540
+ column: 20
26541
+ },
26542
+ end: {
26543
+ line: 76,
26250
26544
  column: 21
26251
26545
  }
26252
26546
  },
26253
26547
  type: "binary-expr",
26254
26548
  locations: [{
26255
26549
  start: {
26256
- line: 47,
26550
+ line: 51,
26257
26551
  column: 20
26258
26552
  },
26259
26553
  end: {
26260
- line: 47,
26554
+ line: 51,
26261
26555
  column: 36
26262
26556
  }
26263
26557
  }, {
26264
26558
  start: {
26265
- line: 48,
26559
+ line: 52,
26266
26560
  column: 22
26267
26561
  },
26268
26562
  end: {
26269
- line: 67,
26563
+ line: 75,
26270
26564
  column: 28
26271
26565
  }
26272
26566
  }],
26273
- line: 47
26567
+ line: 51
26274
26568
  },
26275
- "1": {
26569
+ "3": {
26276
26570
  loc: {
26277
26571
  start: {
26278
- line: 50,
26572
+ line: 54,
26279
26573
  column: 48
26280
26574
  },
26281
26575
  end: {
26282
- line: 50,
26576
+ line: 54,
26283
26577
  column: 66
26284
26578
  }
26285
26579
  },
26286
26580
  type: "binary-expr",
26287
26581
  locations: [{
26288
26582
  start: {
26289
- line: 50,
26583
+ line: 54,
26290
26584
  column: 48
26291
26585
  },
26292
26586
  end: {
26293
- line: 50,
26587
+ line: 54,
26294
26588
  column: 57
26295
26589
  }
26296
26590
  }, {
26297
26591
  start: {
26298
- line: 50,
26592
+ line: 54,
26299
26593
  column: 61
26300
26594
  },
26301
26595
  end: {
26302
- line: 50,
26596
+ line: 54,
26303
26597
  column: 66
26304
26598
  }
26305
26599
  }],
26306
- line: 50
26600
+ line: 54
26307
26601
  },
26308
- "2": {
26602
+ "4": {
26309
26603
  loc: {
26310
26604
  start: {
26311
- line: 85,
26605
+ line: 63,
26606
+ column: 25
26607
+ },
26608
+ end: {
26609
+ line: 74,
26610
+ column: 25
26611
+ }
26612
+ },
26613
+ type: "binary-expr",
26614
+ locations: [{
26615
+ start: {
26616
+ line: 63,
26617
+ column: 25
26618
+ },
26619
+ end: {
26620
+ line: 63,
26621
+ column: 39
26622
+ }
26623
+ }, {
26624
+ start: {
26625
+ line: 64,
26626
+ column: 26
26627
+ },
26628
+ end: {
26629
+ line: 73,
26630
+ column: 28
26631
+ }
26632
+ }],
26633
+ line: 63
26634
+ },
26635
+ "5": {
26636
+ loc: {
26637
+ start: {
26638
+ line: 79,
26639
+ column: 15
26640
+ },
26641
+ end: {
26642
+ line: 90,
26643
+ column: 15
26644
+ }
26645
+ },
26646
+ type: "binary-expr",
26647
+ locations: [{
26648
+ start: {
26649
+ line: 79,
26650
+ column: 15
26651
+ },
26652
+ end: {
26653
+ line: 79,
26654
+ column: 29
26655
+ }
26656
+ }, {
26657
+ start: {
26658
+ line: 80,
26659
+ column: 16
26660
+ },
26661
+ end: {
26662
+ line: 89,
26663
+ column: 22
26664
+ }
26665
+ }],
26666
+ line: 79
26667
+ },
26668
+ "6": {
26669
+ loc: {
26670
+ start: {
26671
+ line: 95,
26312
26672
  column: 7
26313
26673
  },
26314
26674
  end: {
26315
- line: 93,
26675
+ line: 103,
26316
26676
  column: 7
26317
26677
  }
26318
26678
  },
26319
26679
  type: "binary-expr",
26320
26680
  locations: [{
26321
26681
  start: {
26322
- line: 85,
26682
+ line: 95,
26323
26683
  column: 7
26324
26684
  },
26325
26685
  end: {
26326
- line: 85,
26686
+ line: 95,
26327
26687
  column: 18
26328
26688
  }
26329
26689
  }, {
26330
26690
  start: {
26331
- line: 86,
26691
+ line: 96,
26332
26692
  column: 8
26333
26693
  },
26334
26694
  end: {
26335
- line: 92,
26695
+ line: 102,
26336
26696
  column: 14
26337
26697
  }
26338
26698
  }],
26339
- line: 85
26699
+ line: 95
26340
26700
  }
26341
26701
  },
26342
26702
  s: {
@@ -26360,12 +26720,16 @@ function cov_1p625a7ih4() {
26360
26720
  "4": 0
26361
26721
  },
26362
26722
  b: {
26363
- "0": [0, 0],
26364
- "1": [0, 0],
26365
- "2": [0, 0]
26723
+ "0": [0],
26724
+ "1": [0],
26725
+ "2": [0, 0],
26726
+ "3": [0, 0],
26727
+ "4": [0, 0],
26728
+ "5": [0, 0],
26729
+ "6": [0, 0]
26366
26730
  },
26367
26731
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
26368
- hash: "99213ff7d9beb4d434106a0d7d544e0e50ca3b81"
26732
+ hash: "1011b25909b9c73b64080f90fa78d81fed144c14"
26369
26733
  };
26370
26734
  var coverage = global[gcv] || (global[gcv] = {});
26371
26735
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -26388,7 +26752,11 @@ var SingleChoice$1 = function SingleChoice(_ref) {
26388
26752
  isRequired = _ref.isRequired;
26389
26753
  cov_1p625a7ih4().f[0]++;
26390
26754
  var _ref2 = (cov_1p625a7ih4().s[1]++, item),
26391
- optionsAttributes = _ref2.optionsAttributes;
26755
+ optionsAttributes = _ref2.optionsAttributes,
26756
+ _ref2$optionLabelProp = _ref2.optionLabelProps,
26757
+ optionLabelProps = _ref2$optionLabelProp === void 0 ? (cov_1p625a7ih4().b[0][0]++, {}) : _ref2$optionLabelProp,
26758
+ _ref2$freezeOptions = _ref2.freezeOptions,
26759
+ freezeOptions = _ref2$freezeOptions === void 0 ? (cov_1p625a7ih4().b[1][0]++, false) : _ref2$freezeOptions;
26392
26760
  var _ref3 = (cov_1p625a7ih4().s[2]++, useTranslation()),
26393
26761
  t = _ref3.t;
26394
26762
  var _ref4 = (cov_1p625a7ih4().s[3]++, formik.useFormikContext()),
@@ -26418,21 +26786,22 @@ var SingleChoice$1 = function SingleChoice(_ref) {
26418
26786
  var handlePush = _ref5.handlePush;
26419
26787
  cov_1p625a7ih4().f[2]++;
26420
26788
  cov_1p625a7ih4().s[8]++;
26421
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
26789
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, _extends$9({
26422
26790
  className: "mb-1 block"
26423
- }, t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement("div", {
26791
+ }, optionLabelProps), t("questions.common.questionFields.field.options")), /*#__PURE__*/React__default["default"].createElement("div", {
26424
26792
  className: "flex w-2/3 flex-col space-y-2"
26425
26793
  }, optionsAttributes.map(function (option, index) {
26426
26794
  var _ref6;
26427
26795
  cov_1p625a7ih4().f[3]++;
26428
26796
  cov_1p625a7ih4().s[9]++;
26429
- return (cov_1p625a7ih4().b[0][0]++, !option._destroy) && (cov_1p625a7ih4().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
26797
+ return (cov_1p625a7ih4().b[2][0]++, !option._destroy) && (cov_1p625a7ih4().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
26430
26798
  className: "flex items-start gap-1",
26431
- key: "question-option-".concat((_ref6 = (cov_1p625a7ih4().b[1][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_1p625a7ih4().b[1][1]++, index))
26799
+ key: "question-option-".concat((_ref6 = (cov_1p625a7ih4().b[3][0]++, option.id)) !== null && _ref6 !== void 0 ? _ref6 : (cov_1p625a7ih4().b[3][1]++, index))
26432
26800
  }, /*#__PURE__*/React__default["default"].createElement(InputWithMaxLength, {
26801
+ disabled: freezeOptions,
26433
26802
  name: "".concat(name, ".optionsAttributes.").concat(index, ".label"),
26434
26803
  placeholder: "".concat(t("questions.common.questionFields.field.option"), " ").concat(index + 1)
26435
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
26804
+ }), (cov_1p625a7ih4().b[4][0]++, !freezeOptions) && (cov_1p625a7ih4().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
26436
26805
  icon: neetoIcons.Delete,
26437
26806
  size: "small",
26438
26807
  style: "text",
@@ -26444,8 +26813,8 @@ var SingleChoice$1 = function SingleChoice(_ref) {
26444
26813
  cov_1p625a7ih4().s[10]++;
26445
26814
  return handleRemoveOption(index);
26446
26815
  }
26447
- })));
26448
- })), /*#__PURE__*/React__default["default"].createElement("div", {
26816
+ }))));
26817
+ })), (cov_1p625a7ih4().b[5][0]++, !freezeOptions) && (cov_1p625a7ih4().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
26449
26818
  className: "mt-3 w-full"
26450
26819
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
26451
26820
  icon: neetoIcons.Plus,
@@ -26456,8 +26825,8 @@ var SingleChoice$1 = function SingleChoice(_ref) {
26456
26825
  onClick: handlePush({
26457
26826
  label: ""
26458
26827
  })
26459
- })));
26460
- })), (cov_1p625a7ih4().b[2][0]++, !isRequired) && (cov_1p625a7ih4().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
26828
+ }))));
26829
+ })), (cov_1p625a7ih4().b[6][0]++, !isRequired) && (cov_1p625a7ih4().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
26461
26830
  className: "w-full"
26462
26831
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Checkbox, {
26463
26832
  id: "".concat(name, ".isRequired"),
@@ -27422,7 +27791,7 @@ var Editor = function Editor(_ref) {
27422
27791
 
27423
27792
  function cov_2j8tlu2ul5() {
27424
27793
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
27425
- var hash = "66ba5b083c318d90b5ba09aa05088ee51337bf74";
27794
+ var hash = "cf06aa225404e0ebe444d6f1219d393c9ffc9417";
27426
27795
  var global = new Function("return this")();
27427
27796
  var gcv = "__coverage__";
27428
27797
  var coverageData = {
@@ -27464,27 +27833,27 @@ function cov_2j8tlu2ul5() {
27464
27833
  column: 30
27465
27834
  },
27466
27835
  end: {
27467
- line: 190,
27836
+ line: 177,
27468
27837
  column: 1
27469
27838
  }
27470
27839
  },
27471
27840
  "4": {
27472
27841
  start: {
27473
- line: 193,
27842
+ line: 180,
27474
27843
  column: 38
27475
27844
  },
27476
27845
  end: {
27477
- line: 196,
27846
+ line: 183,
27478
27847
  column: 1
27479
27848
  }
27480
27849
  },
27481
27850
  "5": {
27482
27851
  start: {
27483
- line: 198,
27852
+ line: 185,
27484
27853
  column: 29
27485
27854
  },
27486
27855
  end: {
27487
- line: 198,
27856
+ line: 185,
27488
27857
  column: 62
27489
27858
  }
27490
27859
  }
@@ -27502,7 +27871,7 @@ function cov_2j8tlu2ul5() {
27502
27871
  f: {},
27503
27872
  b: {},
27504
27873
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27505
- hash: "66ba5b083c318d90b5ba09aa05088ee51337bf74"
27874
+ hash: "cf06aa225404e0ebe444d6f1219d393c9ffc9417"
27506
27875
  };
27507
27876
  var coverage = global[gcv] || (global[gcv] = {});
27508
27877
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27540,8 +27909,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27540
27909
  component: Email,
27541
27910
  defaults: {
27542
27911
  label: ""
27543
- },
27544
- metadata: {}
27912
+ }
27545
27913
  }, {
27546
27914
  type: "phone",
27547
27915
  label: instance.t("fields.pif"),
@@ -27551,8 +27919,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27551
27919
  component: Phone,
27552
27920
  defaults: {
27553
27921
  label: ""
27554
- },
27555
- metadata: {}
27922
+ }
27556
27923
  }, {
27557
27924
  type: "name",
27558
27925
  label: instance.t("fields.nif"),
@@ -27562,8 +27929,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27562
27929
  component: ShortText,
27563
27930
  defaults: {
27564
27931
  label: ""
27565
- },
27566
- metadata: {}
27932
+ }
27567
27933
  }, {
27568
27934
  type: "text",
27569
27935
  label: instance.t("fields.tif"),
@@ -27573,8 +27939,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27573
27939
  component: ShortText,
27574
27940
  defaults: {
27575
27941
  label: ""
27576
- },
27577
- metadata: {}
27942
+ }
27578
27943
  }, {
27579
27944
  type: "question",
27580
27945
  label: instance.t("fields.qif"),
@@ -27583,8 +27948,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27583
27948
  component: LongText,
27584
27949
  defaults: {
27585
27950
  label: ""
27586
- },
27587
- metadata: {}
27951
+ }
27588
27952
  }, {
27589
27953
  type: "textarea",
27590
27954
  label: instance.t("fields.def"),
@@ -27593,8 +27957,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27593
27957
  component: Editor,
27594
27958
  defaults: {
27595
27959
  label: ""
27596
- },
27597
- metadata: {}
27960
+ }
27598
27961
  }, {
27599
27962
  type: "checkbox",
27600
27963
  label: instance.t("fields.mcf"),
@@ -27607,8 +27970,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27607
27970
  optionsAttributes: [{
27608
27971
  label: ""
27609
27972
  }]
27610
- },
27611
- metadata: {}
27973
+ }
27612
27974
  }, {
27613
27975
  type: "radio",
27614
27976
  label: instance.t("fields.scf"),
@@ -27621,8 +27983,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27621
27983
  optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27622
27984
  label: ""
27623
27985
  })
27624
- },
27625
- metadata: {}
27986
+ }
27626
27987
  }, {
27627
27988
  type: "dropdown",
27628
27989
  label: instance.t("fields.drf"),
@@ -27635,8 +27996,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27635
27996
  optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27636
27997
  label: ""
27637
27998
  })
27638
- },
27639
- metadata: {}
27999
+ }
27640
28000
  }, {
27641
28001
  type: "star_rating",
27642
28002
  label: instance.t("fields.rif"),
@@ -27648,8 +28008,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27648
28008
  isRequired: true,
27649
28009
  count: 5,
27650
28010
  shape: "star"
27651
- },
27652
- metadata: {}
28011
+ }
27653
28012
  }, {
27654
28013
  type: "rating",
27655
28014
  label: instance.t("fields.fbf"),
@@ -27662,8 +28021,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27662
28021
  highestRatingLabel: "",
27663
28022
  averageRatingLabel: "",
27664
28023
  lowestRatingLabel: ""
27665
- },
27666
- metadata: {}
28024
+ }
27667
28025
  }, {
27668
28026
  type: "termsandcondition",
27669
28027
  label: instance.t("fields.tcf"),
@@ -27675,8 +28033,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27675
28033
  privacyPolicyLink: "",
27676
28034
  isRequired: true,
27677
28035
  label: instance.t("common.agreeTermsAndConditions")
27678
- },
27679
- metadata: {}
28036
+ }
27680
28037
  }, {
27681
28038
  type: "date",
27682
28039
  label: instance.t("fields.date"),
@@ -27686,8 +28043,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27686
28043
  defaults: {
27687
28044
  label: "",
27688
28045
  isRequired: true
27689
- },
27690
- metadata: {}
28046
+ }
27691
28047
  }]);
27692
28048
 
27693
28049
  // To show the question type as label in accordion
@@ -28280,7 +28636,7 @@ var Question = function Question(_ref) {
28280
28636
  var questions = _ref.questions,
28281
28637
  insert = _ref.insert,
28282
28638
  formProps = _ref.formProps,
28283
- nonRemovableFields = _ref.nonRemovableFields,
28639
+ isDeletable = _ref.isDeletable,
28284
28640
  isRequiredField = _ref.isRequiredField,
28285
28641
  allQuestionKinds = _ref.allQuestionKinds,
28286
28642
  getActiveKindDetails = _ref.getActiveKindDetails,
@@ -28316,8 +28672,8 @@ var Question = function Question(_ref) {
28316
28672
  }), /*#__PURE__*/React__default["default"].createElement(FormField, _extends$9({
28317
28673
  allQuestionKinds: allQuestionKinds,
28318
28674
  getActiveKindDetails: getActiveKindDetails,
28319
- isDeletable: !nonRemovableFields.includes(item.kind),
28320
- isRequired: isRequiredField(item.kind),
28675
+ isDeletable: isDeletable(item),
28676
+ isRequired: isRequiredField(item),
28321
28677
  kindUniqueOn: kindUniqueOn
28322
28678
  }, formProps(item, index, insert))));
28323
28679
  }));
@@ -30380,10 +30736,10 @@ var List = function List(_ref) {
30380
30736
  })));
30381
30737
  };
30382
30738
 
30383
- var _excluded$b = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "nonRemovableFields", "requiredFields", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
30739
+ var _excluded$b = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
30384
30740
  function cov_2e8k7gwd81() {
30385
30741
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
30386
- var hash = "d4de1ee8731b034d1b63d5d5a31a2eeef7a285ee";
30742
+ var hash = "7c11acd7f0e5fde99d6d92b950980d529a13322c";
30387
30743
  var global = new Function("return this")();
30388
30744
  var gcv = "__coverage__";
30389
30745
  var coverageData = {
@@ -30395,7 +30751,7 @@ function cov_2e8k7gwd81() {
30395
30751
  column: 13
30396
30752
  },
30397
30753
  end: {
30398
- line: 224,
30754
+ line: 222,
30399
30755
  column: 1
30400
30756
  }
30401
30757
  },
@@ -30582,200 +30938,180 @@ function cov_2e8k7gwd81() {
30582
30938
  "19": {
30583
30939
  start: {
30584
30940
  line: 106,
30585
- column: 26
30586
- },
30587
- end: {
30588
- line: 106,
30589
- column: 63
30590
- }
30591
- },
30592
- "20": {
30593
- start: {
30594
- line: 106,
30595
- column: 34
30596
- },
30597
- end: {
30598
- line: 106,
30599
- column: 63
30600
- }
30601
- },
30602
- "21": {
30603
- start: {
30604
- line: 108,
30605
30941
  column: 20
30606
30942
  },
30607
30943
  end: {
30608
- line: 138,
30944
+ line: 136,
30609
30945
  column: 4
30610
30946
  }
30611
30947
  },
30612
- "22": {
30948
+ "20": {
30613
30949
  start: {
30614
- line: 108,
30950
+ line: 106,
30615
30951
  column: 46
30616
30952
  },
30617
30953
  end: {
30618
- line: 138,
30954
+ line: 136,
30619
30955
  column: 3
30620
30956
  }
30621
30957
  },
30622
- "23": {
30958
+ "21": {
30623
30959
  start: {
30624
- line: 117,
30960
+ line: 115,
30625
30961
  column: 6
30626
30962
  },
30627
30963
  end: {
30628
- line: 117,
30964
+ line: 115,
30629
30965
  column: 62
30630
30966
  }
30631
30967
  },
30632
- "24": {
30968
+ "22": {
30633
30969
  start: {
30634
- line: 119,
30970
+ line: 117,
30635
30971
  column: 27
30636
30972
  },
30637
30973
  end: {
30638
- line: 123,
30974
+ line: 121,
30639
30975
  column: 7
30640
30976
  }
30641
30977
  },
30642
- "25": {
30978
+ "23": {
30643
30979
  start: {
30644
- line: 125,
30980
+ line: 123,
30645
30981
  column: 6
30646
30982
  },
30647
30983
  end: {
30648
- line: 131,
30984
+ line: 129,
30649
30985
  column: 8
30650
30986
  }
30651
30987
  },
30652
- "26": {
30988
+ "24": {
30653
30989
  start: {
30654
- line: 127,
30990
+ line: 125,
30655
30991
  column: 47
30656
30992
  },
30657
30993
  end: {
30658
- line: 130,
30994
+ line: 128,
30659
30995
  column: 9
30660
30996
  }
30661
30997
  },
30662
- "27": {
30998
+ "25": {
30663
30999
  start: {
30664
- line: 134,
31000
+ line: 132,
30665
31001
  column: 6
30666
31002
  },
30667
31003
  end: {
30668
- line: 134,
31004
+ line: 132,
30669
31005
  column: 69
30670
31006
  }
30671
31007
  },
30672
- "28": {
31008
+ "26": {
30673
31009
  start: {
30674
- line: 136,
31010
+ line: 134,
30675
31011
  column: 6
30676
31012
  },
30677
31013
  end: {
30678
- line: 136,
31014
+ line: 134,
30679
31015
  column: 36
30680
31016
  }
30681
31017
  },
30682
- "29": {
31018
+ "27": {
30683
31019
  start: {
30684
- line: 140,
31020
+ line: 138,
30685
31021
  column: 2
30686
31022
  },
30687
31023
  end: {
30688
- line: 223,
31024
+ line: 221,
30689
31025
  column: 4
30690
31026
  }
30691
31027
  },
30692
- "30": {
31028
+ "28": {
30693
31029
  start: {
30694
- line: 151,
31030
+ line: 149,
30695
31031
  column: 23
30696
31032
  },
30697
31033
  end: {
30698
- line: 151,
31034
+ line: 149,
30699
31035
  column: 51
30700
31036
  }
30701
31037
  },
30702
- "31": {
31038
+ "29": {
30703
31039
  start: {
30704
- line: 153,
31040
+ line: 151,
30705
31041
  column: 32
30706
31042
  },
30707
31043
  end: {
30708
- line: 156,
31044
+ line: 154,
30709
31045
  column: 11
30710
31046
  }
30711
31047
  },
30712
- "32": {
31048
+ "30": {
30713
31049
  start: {
30714
- line: 157,
31050
+ line: 155,
30715
31051
  column: 10
30716
31052
  },
30717
31053
  end: {
30718
- line: 157,
31054
+ line: 155,
30719
31055
  column: 59
30720
31056
  }
30721
31057
  },
30722
- "33": {
31058
+ "31": {
30723
31059
  start: {
30724
- line: 158,
31060
+ line: 156,
30725
31061
  column: 10
30726
31062
  },
30727
31063
  end: {
30728
- line: 158,
31064
+ line: 156,
30729
31065
  column: 39
30730
31066
  }
30731
31067
  },
30732
- "34": {
31068
+ "32": {
30733
31069
  start: {
30734
- line: 165,
31070
+ line: 163,
30735
31071
  column: 14
30736
31072
  },
30737
31073
  end: {
30738
- line: 194,
31074
+ line: 192,
30739
31075
  column: 17
30740
31076
  }
30741
31077
  },
30742
- "35": {
31078
+ "33": {
30743
31079
  start: {
30744
- line: 168,
31080
+ line: 166,
30745
31081
  column: 20
30746
31082
  },
30747
31083
  end: {
30748
- line: 173,
31084
+ line: 171,
30749
31085
  column: 22
30750
31086
  }
30751
31087
  },
30752
- "36": {
31088
+ "34": {
30753
31089
  start: {
30754
- line: 191,
31090
+ line: 189,
30755
31091
  column: 38
30756
31092
  },
30757
31093
  end: {
30758
- line: 191,
31094
+ line: 189,
30759
31095
  column: 65
30760
31096
  }
30761
31097
  },
30762
- "37": {
31098
+ "35": {
30763
31099
  start: {
30764
- line: 203,
31100
+ line: 201,
30765
31101
  column: 38
30766
31102
  },
30767
31103
  end: {
30768
- line: 206,
31104
+ line: 204,
30769
31105
  column: 17
30770
31106
  }
30771
31107
  },
30772
- "38": {
31108
+ "36": {
30773
31109
  start: {
30774
- line: 207,
31110
+ line: 205,
30775
31111
  column: 16
30776
31112
  },
30777
31113
  end: {
30778
- line: 207,
31114
+ line: 205,
30779
31115
  column: 65
30780
31116
  }
30781
31117
  }
@@ -30799,7 +31135,7 @@ function cov_2e8k7gwd81() {
30799
31135
  column: 6
30800
31136
  },
30801
31137
  end: {
30802
- line: 224,
31138
+ line: 222,
30803
31139
  column: 1
30804
31140
  }
30805
31141
  },
@@ -30906,21 +31242,21 @@ function cov_2e8k7gwd81() {
30906
31242
  decl: {
30907
31243
  start: {
30908
31244
  line: 106,
30909
- column: 26
31245
+ column: 20
30910
31246
  },
30911
31247
  end: {
30912
31248
  line: 106,
30913
- column: 27
31249
+ column: 21
30914
31250
  }
30915
31251
  },
30916
31252
  loc: {
30917
31253
  start: {
30918
31254
  line: 106,
30919
- column: 34
31255
+ column: 46
30920
31256
  },
30921
31257
  end: {
30922
- line: 106,
30923
- column: 63
31258
+ line: 136,
31259
+ column: 3
30924
31260
  }
30925
31261
  },
30926
31262
  line: 106
@@ -30929,289 +31265,265 @@ function cov_2e8k7gwd81() {
30929
31265
  name: "(anonymous_6)",
30930
31266
  decl: {
30931
31267
  start: {
30932
- line: 108,
30933
- column: 20
30934
- },
30935
- end: {
30936
- line: 108,
30937
- column: 21
30938
- }
30939
- },
30940
- loc: {
30941
- start: {
30942
- line: 108,
30943
- column: 46
30944
- },
30945
- end: {
30946
- line: 138,
30947
- column: 3
30948
- }
30949
- },
30950
- line: 108
30951
- },
30952
- "7": {
30953
- name: "(anonymous_7)",
30954
- decl: {
30955
- start: {
30956
- line: 116,
31268
+ line: 114,
30957
31269
  column: 22
30958
31270
  },
30959
31271
  end: {
30960
- line: 116,
31272
+ line: 114,
30961
31273
  column: 23
30962
31274
  }
30963
31275
  },
30964
31276
  loc: {
30965
31277
  start: {
30966
- line: 117,
31278
+ line: 115,
30967
31279
  column: 6
30968
31280
  },
30969
31281
  end: {
30970
- line: 117,
31282
+ line: 115,
30971
31283
  column: 62
30972
31284
  }
30973
31285
  },
30974
- line: 117
31286
+ line: 115
30975
31287
  },
30976
- "8": {
30977
- name: "(anonymous_8)",
31288
+ "7": {
31289
+ name: "(anonymous_7)",
30978
31290
  decl: {
30979
31291
  start: {
30980
- line: 118,
31292
+ line: 116,
30981
31293
  column: 17
30982
31294
  },
30983
31295
  end: {
30984
- line: 118,
31296
+ line: 116,
30985
31297
  column: 18
30986
31298
  }
30987
31299
  },
30988
31300
  loc: {
30989
31301
  start: {
30990
- line: 118,
31302
+ line: 116,
30991
31303
  column: 23
30992
31304
  },
30993
31305
  end: {
30994
- line: 132,
31306
+ line: 130,
30995
31307
  column: 5
30996
31308
  }
30997
31309
  },
30998
- line: 118
31310
+ line: 116
30999
31311
  },
31000
- "9": {
31001
- name: "(anonymous_9)",
31312
+ "8": {
31313
+ name: "(anonymous_8)",
31002
31314
  decl: {
31003
31315
  start: {
31004
- line: 127,
31316
+ line: 125,
31005
31317
  column: 25
31006
31318
  },
31007
31319
  end: {
31008
- line: 127,
31320
+ line: 125,
31009
31321
  column: 26
31010
31322
  }
31011
31323
  },
31012
31324
  loc: {
31013
31325
  start: {
31014
- line: 127,
31326
+ line: 125,
31015
31327
  column: 47
31016
31328
  },
31017
31329
  end: {
31018
- line: 130,
31330
+ line: 128,
31019
31331
  column: 9
31020
31332
  }
31021
31333
  },
31022
- line: 127
31334
+ line: 125
31023
31335
  },
31024
- "10": {
31025
- name: "(anonymous_10)",
31336
+ "9": {
31337
+ name: "(anonymous_9)",
31026
31338
  decl: {
31027
31339
  start: {
31028
- line: 133,
31340
+ line: 131,
31029
31341
  column: 14
31030
31342
  },
31031
31343
  end: {
31032
- line: 133,
31344
+ line: 131,
31033
31345
  column: 15
31034
31346
  }
31035
31347
  },
31036
31348
  loc: {
31037
31349
  start: {
31038
- line: 134,
31350
+ line: 132,
31039
31351
  column: 6
31040
31352
  },
31041
31353
  end: {
31042
- line: 134,
31354
+ line: 132,
31043
31355
  column: 69
31044
31356
  }
31045
31357
  },
31046
- line: 134
31358
+ line: 132
31047
31359
  },
31048
- "11": {
31049
- name: "(anonymous_11)",
31360
+ "10": {
31361
+ name: "(anonymous_10)",
31050
31362
  decl: {
31051
31363
  start: {
31052
- line: 135,
31364
+ line: 133,
31053
31365
  column: 14
31054
31366
  },
31055
31367
  end: {
31056
- line: 135,
31368
+ line: 133,
31057
31369
  column: 15
31058
31370
  }
31059
31371
  },
31060
31372
  loc: {
31061
31373
  start: {
31062
- line: 135,
31374
+ line: 133,
31063
31375
  column: 20
31064
31376
  },
31065
31377
  end: {
31066
- line: 137,
31378
+ line: 135,
31067
31379
  column: 5
31068
31380
  }
31069
31381
  },
31070
- line: 135
31382
+ line: 133
31071
31383
  },
31072
- "12": {
31073
- name: "(anonymous_12)",
31384
+ "11": {
31385
+ name: "(anonymous_11)",
31074
31386
  decl: {
31075
31387
  start: {
31076
- line: 151,
31388
+ line: 149,
31077
31389
  column: 17
31078
31390
  },
31079
31391
  end: {
31080
- line: 151,
31392
+ line: 149,
31081
31393
  column: 18
31082
31394
  }
31083
31395
  },
31084
31396
  loc: {
31085
31397
  start: {
31086
- line: 151,
31398
+ line: 149,
31087
31399
  column: 23
31088
31400
  },
31089
31401
  end: {
31090
- line: 151,
31402
+ line: 149,
31091
31403
  column: 51
31092
31404
  }
31093
31405
  },
31094
- line: 151
31406
+ line: 149
31095
31407
  },
31096
- "13": {
31097
- name: "(anonymous_13)",
31408
+ "12": {
31409
+ name: "(anonymous_12)",
31098
31410
  decl: {
31099
31411
  start: {
31100
- line: 152,
31412
+ line: 150,
31101
31413
  column: 18
31102
31414
  },
31103
31415
  end: {
31104
- line: 152,
31416
+ line: 150,
31105
31417
  column: 19
31106
31418
  }
31107
31419
  },
31108
31420
  loc: {
31109
31421
  start: {
31110
- line: 152,
31422
+ line: 150,
31111
31423
  column: 24
31112
31424
  },
31113
31425
  end: {
31114
- line: 159,
31426
+ line: 157,
31115
31427
  column: 9
31116
31428
  }
31117
31429
  },
31118
- line: 152
31430
+ line: 150
31119
31431
  },
31120
- "14": {
31121
- name: "(anonymous_14)",
31432
+ "13": {
31433
+ name: "(anonymous_13)",
31122
31434
  decl: {
31123
31435
  start: {
31124
- line: 164,
31436
+ line: 162,
31125
31437
  column: 13
31126
31438
  },
31127
31439
  end: {
31128
- line: 164,
31440
+ line: 162,
31129
31441
  column: 14
31130
31442
  }
31131
31443
  },
31132
31444
  loc: {
31133
31445
  start: {
31134
- line: 165,
31446
+ line: 163,
31135
31447
  column: 14
31136
31448
  },
31137
31449
  end: {
31138
- line: 194,
31450
+ line: 192,
31139
31451
  column: 17
31140
31452
  }
31141
31453
  },
31142
- line: 165
31454
+ line: 163
31143
31455
  },
31144
- "15": {
31145
- name: "(anonymous_15)",
31456
+ "14": {
31457
+ name: "(anonymous_14)",
31146
31458
  decl: {
31147
31459
  start: {
31148
- line: 167,
31460
+ line: 165,
31149
31461
  column: 29
31150
31462
  },
31151
31463
  end: {
31152
- line: 167,
31464
+ line: 165,
31153
31465
  column: 30
31154
31466
  }
31155
31467
  },
31156
31468
  loc: {
31157
31469
  start: {
31158
- line: 168,
31470
+ line: 166,
31159
31471
  column: 20
31160
31472
  },
31161
31473
  end: {
31162
- line: 173,
31474
+ line: 171,
31163
31475
  column: 22
31164
31476
  }
31165
31477
  },
31166
- line: 168
31478
+ line: 166
31167
31479
  },
31168
- "16": {
31169
- name: "(anonymous_16)",
31480
+ "15": {
31481
+ name: "(anonymous_15)",
31170
31482
  decl: {
31171
31483
  start: {
31172
- line: 191,
31484
+ line: 189,
31173
31485
  column: 30
31174
31486
  },
31175
31487
  end: {
31176
- line: 191,
31488
+ line: 189,
31177
31489
  column: 31
31178
31490
  }
31179
31491
  },
31180
31492
  loc: {
31181
31493
  start: {
31182
- line: 191,
31494
+ line: 189,
31183
31495
  column: 38
31184
31496
  },
31185
31497
  end: {
31186
- line: 191,
31498
+ line: 189,
31187
31499
  column: 65
31188
31500
  }
31189
31501
  },
31190
- line: 191
31502
+ line: 189
31191
31503
  },
31192
- "17": {
31193
- name: "(anonymous_17)",
31504
+ "16": {
31505
+ name: "(anonymous_16)",
31194
31506
  decl: {
31195
31507
  start: {
31196
- line: 202,
31508
+ line: 200,
31197
31509
  column: 24
31198
31510
  },
31199
31511
  end: {
31200
- line: 202,
31512
+ line: 200,
31201
31513
  column: 25
31202
31514
  }
31203
31515
  },
31204
31516
  loc: {
31205
31517
  start: {
31206
- line: 202,
31518
+ line: 200,
31207
31519
  column: 32
31208
31520
  },
31209
31521
  end: {
31210
- line: 208,
31522
+ line: 206,
31211
31523
  column: 15
31212
31524
  }
31213
31525
  },
31214
- line: 202
31526
+ line: 200
31215
31527
  }
31216
31528
  },
31217
31529
  branchMap: {
@@ -31293,266 +31605,266 @@ function cov_2e8k7gwd81() {
31293
31605
  "2": {
31294
31606
  loc: {
31295
31607
  start: {
31296
- line: 114,
31608
+ line: 112,
31297
31609
  column: 6
31298
31610
  },
31299
31611
  end: {
31300
- line: 115,
31612
+ line: 113,
31301
31613
  column: 55
31302
31614
  }
31303
31615
  },
31304
31616
  type: "binary-expr",
31305
31617
  locations: [{
31306
31618
  start: {
31307
- line: 114,
31619
+ line: 112,
31308
31620
  column: 6
31309
31621
  },
31310
31622
  end: {
31311
- line: 114,
31623
+ line: 112,
31312
31624
  column: 44
31313
31625
  }
31314
31626
  }, {
31315
31627
  start: {
31316
- line: 115,
31628
+ line: 113,
31317
31629
  column: 6
31318
31630
  },
31319
31631
  end: {
31320
- line: 115,
31632
+ line: 113,
31321
31633
  column: 55
31322
31634
  }
31323
31635
  }],
31324
- line: 114
31636
+ line: 112
31325
31637
  },
31326
31638
  "3": {
31327
31639
  loc: {
31328
31640
  start: {
31329
- line: 114,
31641
+ line: 112,
31330
31642
  column: 21
31331
31643
  },
31332
31644
  end: {
31333
- line: 114,
31645
+ line: 112,
31334
31646
  column: 43
31335
31647
  }
31336
31648
  },
31337
31649
  type: "binary-expr",
31338
31650
  locations: [{
31339
31651
  start: {
31340
- line: 114,
31652
+ line: 112,
31341
31653
  column: 21
31342
31654
  },
31343
31655
  end: {
31344
- line: 114,
31656
+ line: 112,
31345
31657
  column: 32
31346
31658
  }
31347
31659
  }, {
31348
31660
  start: {
31349
- line: 114,
31661
+ line: 112,
31350
31662
  column: 36
31351
31663
  },
31352
31664
  end: {
31353
- line: 114,
31665
+ line: 112,
31354
31666
  column: 43
31355
31667
  }
31356
31668
  }],
31357
- line: 114
31669
+ line: 112
31358
31670
  },
31359
31671
  "4": {
31360
31672
  loc: {
31361
31673
  start: {
31362
- line: 115,
31674
+ line: 113,
31363
31675
  column: 21
31364
31676
  },
31365
31677
  end: {
31366
- line: 115,
31678
+ line: 113,
31367
31679
  column: 43
31368
31680
  }
31369
31681
  },
31370
31682
  type: "binary-expr",
31371
31683
  locations: [{
31372
31684
  start: {
31373
- line: 115,
31685
+ line: 113,
31374
31686
  column: 21
31375
31687
  },
31376
31688
  end: {
31377
- line: 115,
31689
+ line: 113,
31378
31690
  column: 32
31379
31691
  }
31380
31692
  }, {
31381
31693
  start: {
31382
- line: 115,
31694
+ line: 113,
31383
31695
  column: 36
31384
31696
  },
31385
31697
  end: {
31386
- line: 115,
31698
+ line: 113,
31387
31699
  column: 43
31388
31700
  }
31389
31701
  }],
31390
- line: 115
31702
+ line: 113
31391
31703
  },
31392
31704
  "5": {
31393
31705
  loc: {
31394
31706
  start: {
31395
- line: 117,
31707
+ line: 115,
31396
31708
  column: 27
31397
31709
  },
31398
31710
  end: {
31399
- line: 117,
31711
+ line: 115,
31400
31712
  column: 49
31401
31713
  }
31402
31714
  },
31403
31715
  type: "binary-expr",
31404
31716
  locations: [{
31405
31717
  start: {
31406
- line: 117,
31718
+ line: 115,
31407
31719
  column: 27
31408
31720
  },
31409
31721
  end: {
31410
- line: 117,
31722
+ line: 115,
31411
31723
  column: 38
31412
31724
  }
31413
31725
  }, {
31414
31726
  start: {
31415
- line: 117,
31727
+ line: 115,
31416
31728
  column: 42
31417
31729
  },
31418
31730
  end: {
31419
- line: 117,
31731
+ line: 115,
31420
31732
  column: 49
31421
31733
  }
31422
31734
  }],
31423
- line: 117
31735
+ line: 115
31424
31736
  },
31425
31737
  "6": {
31426
31738
  loc: {
31427
31739
  start: {
31428
- line: 148,
31740
+ line: 146,
31429
31741
  column: 12
31430
31742
  },
31431
31743
  end: {
31432
- line: 149,
31744
+ line: 147,
31433
31745
  column: 61
31434
31746
  }
31435
31747
  },
31436
31748
  type: "binary-expr",
31437
31749
  locations: [{
31438
31750
  start: {
31439
- line: 148,
31751
+ line: 146,
31440
31752
  column: 12
31441
31753
  },
31442
31754
  end: {
31443
- line: 148,
31755
+ line: 146,
31444
31756
  column: 72
31445
31757
  }
31446
31758
  }, {
31447
31759
  start: {
31448
- line: 149,
31760
+ line: 147,
31449
31761
  column: 12
31450
31762
  },
31451
31763
  end: {
31452
- line: 149,
31764
+ line: 147,
31453
31765
  column: 61
31454
31766
  }
31455
31767
  }],
31456
- line: 148
31768
+ line: 146
31457
31769
  },
31458
31770
  "7": {
31459
31771
  loc: {
31460
31772
  start: {
31461
- line: 162,
31773
+ line: 160,
31462
31774
  column: 9
31463
31775
  },
31464
31776
  end: {
31465
- line: 211,
31777
+ line: 209,
31466
31778
  column: 9
31467
31779
  }
31468
31780
  },
31469
31781
  type: "cond-expr",
31470
31782
  locations: [{
31471
31783
  start: {
31472
- line: 163,
31784
+ line: 161,
31473
31785
  column: 10
31474
31786
  },
31475
31787
  end: {
31476
- line: 196,
31788
+ line: 194,
31477
31789
  column: 23
31478
31790
  }
31479
31791
  }, {
31480
31792
  start: {
31481
- line: 198,
31793
+ line: 196,
31482
31794
  column: 10
31483
31795
  },
31484
31796
  end: {
31485
- line: 210,
31797
+ line: 208,
31486
31798
  column: 29
31487
31799
  }
31488
31800
  }],
31489
- line: 162
31801
+ line: 160
31490
31802
  },
31491
31803
  "8": {
31492
31804
  loc: {
31493
31805
  start: {
31494
- line: 212,
31806
+ line: 210,
31495
31807
  column: 9
31496
31808
  },
31497
31809
  end: {
31498
- line: 220,
31810
+ line: 218,
31499
31811
  column: 9
31500
31812
  }
31501
31813
  },
31502
31814
  type: "binary-expr",
31503
31815
  locations: [{
31504
31816
  start: {
31505
- line: 212,
31817
+ line: 210,
31506
31818
  column: 9
31507
31819
  },
31508
31820
  end: {
31509
- line: 212,
31821
+ line: 210,
31510
31822
  column: 24
31511
31823
  }
31512
31824
  }, {
31513
31825
  start: {
31514
- line: 213,
31826
+ line: 211,
31515
31827
  column: 10
31516
31828
  },
31517
31829
  end: {
31518
- line: 219,
31830
+ line: 217,
31519
31831
  column: 12
31520
31832
  }
31521
31833
  }],
31522
- line: 212
31834
+ line: 210
31523
31835
  },
31524
31836
  "9": {
31525
31837
  loc: {
31526
31838
  start: {
31527
- line: 216,
31839
+ line: 214,
31528
31840
  column: 24
31529
31841
  },
31530
31842
  end: {
31531
- line: 216,
31843
+ line: 214,
31532
31844
  column: 46
31533
31845
  }
31534
31846
  },
31535
31847
  type: "binary-expr",
31536
31848
  locations: [{
31537
31849
  start: {
31538
- line: 216,
31850
+ line: 214,
31539
31851
  column: 24
31540
31852
  },
31541
31853
  end: {
31542
- line: 216,
31854
+ line: 214,
31543
31855
  column: 36
31544
31856
  }
31545
31857
  }, {
31546
31858
  start: {
31547
- line: 216,
31859
+ line: 214,
31548
31860
  column: 40
31549
31861
  },
31550
31862
  end: {
31551
- line: 216,
31863
+ line: 214,
31552
31864
  column: 46
31553
31865
  }
31554
31866
  }],
31555
- line: 216
31867
+ line: 214
31556
31868
  }
31557
31869
  },
31558
31870
  s: {
@@ -31592,9 +31904,7 @@ function cov_2e8k7gwd81() {
31592
31904
  "33": 0,
31593
31905
  "34": 0,
31594
31906
  "35": 0,
31595
- "36": 0,
31596
- "37": 0,
31597
- "38": 0
31907
+ "36": 0
31598
31908
  },
31599
31909
  f: {
31600
31910
  "0": 0,
@@ -31613,8 +31923,7 @@ function cov_2e8k7gwd81() {
31613
31923
  "13": 0,
31614
31924
  "14": 0,
31615
31925
  "15": 0,
31616
- "16": 0,
31617
- "17": 0
31926
+ "16": 0
31618
31927
  },
31619
31928
  b: {
31620
31929
  "0": [0, 0, 0],
@@ -31629,7 +31938,7 @@ function cov_2e8k7gwd81() {
31629
31938
  "9": [0, 0]
31630
31939
  },
31631
31940
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
31632
- hash: "d4de1ee8731b034d1b63d5d5a31a2eeef7a285ee"
31941
+ hash: "7c11acd7f0e5fde99d6d92b950980d529a13322c"
31633
31942
  };
31634
31943
  var coverage = global[gcv] || (global[gcv] = {});
31635
31944
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -31656,8 +31965,8 @@ var Form = function Form(_ref) {
31656
31965
  showActionBlock = _ref.showActionBlock,
31657
31966
  formId = _ref.formId,
31658
31967
  setShouldValidate = _ref.setShouldValidate,
31659
- nonRemovableFields = _ref.nonRemovableFields,
31660
- requiredFields = _ref.requiredFields,
31968
+ isDeletable = _ref.isDeletable,
31969
+ isRequiredField = _ref.isRequiredField,
31661
31970
  submitButtonProps = _ref.submitButtonProps,
31662
31971
  cancelButtonProps = _ref.cancelButtonProps,
31663
31972
  isKindAlreadyActive = _ref.isKindAlreadyActive,
@@ -31730,16 +32039,10 @@ var Form = function Form(_ref) {
31730
32039
  setFormFieldState(ramda.assoc(id, nextFieldState));
31731
32040
  };
31732
32041
  cov_2e8k7gwd81().s[19]++;
31733
- var isRequiredField = function isRequiredField(kind) {
31734
- cov_2e8k7gwd81().f[5]++;
31735
- cov_2e8k7gwd81().s[20]++;
31736
- return requiredFields.includes(kind);
31737
- };
31738
- cov_2e8k7gwd81().s[21]++;
31739
32042
  var formProps = function formProps(item, index, insert) {
31740
32043
  var _ref10, _ref11;
31741
- cov_2e8k7gwd81().f[6]++;
31742
- cov_2e8k7gwd81().s[22]++;
32044
+ cov_2e8k7gwd81().f[5]++;
32045
+ cov_2e8k7gwd81().s[20]++;
31743
32046
  return {
31744
32047
  name: "questions.".concat(index),
31745
32048
  questionKinds: availableQuestionKinds,
@@ -31748,35 +32051,35 @@ var Form = function Form(_ref) {
31748
32051
  isExpanded: (cov_2e8k7gwd81().b[2][0]++, formFieldState[(_ref10 = (cov_2e8k7gwd81().b[3][0]++, item.nodeId)) !== null && _ref10 !== void 0 ? _ref10 : (cov_2e8k7gwd81().b[3][1]++, item.id)]) && (cov_2e8k7gwd81().b[2][1]++, formFieldState[(_ref11 = (cov_2e8k7gwd81().b[4][0]++, item.nodeId)) !== null && _ref11 !== void 0 ? _ref11 : (cov_2e8k7gwd81().b[4][1]++, item.id)].isExpanded),
31749
32052
  onChangeExpanded: function onChangeExpanded(isExpanded) {
31750
32053
  var _ref12;
31751
- cov_2e8k7gwd81().f[7]++;
31752
- cov_2e8k7gwd81().s[23]++;
32054
+ cov_2e8k7gwd81().f[6]++;
32055
+ cov_2e8k7gwd81().s[21]++;
31753
32056
  return handleChangeExpanded((_ref12 = (cov_2e8k7gwd81().b[5][0]++, item.nodeId)) !== null && _ref12 !== void 0 ? _ref12 : (cov_2e8k7gwd81().b[5][1]++, item.id), isExpanded);
31754
32057
  },
31755
32058
  onDuplicate: function onDuplicate() {
31756
- cov_2e8k7gwd81().f[8]++;
31757
- var newQuestions = (cov_2e8k7gwd81().s[24]++, ramda.insert(item.displayOrder, duplicateFieldData(item), values.questions));
31758
- cov_2e8k7gwd81().s[25]++;
32059
+ cov_2e8k7gwd81().f[7]++;
32060
+ var newQuestions = (cov_2e8k7gwd81().s[22]++, ramda.insert(item.displayOrder, duplicateFieldData(item), values.questions));
32061
+ cov_2e8k7gwd81().s[23]++;
31759
32062
  setFieldValue("questions", newQuestions.map(function (question, index) {
31760
- cov_2e8k7gwd81().f[9]++;
31761
- cov_2e8k7gwd81().s[26]++;
32063
+ cov_2e8k7gwd81().f[8]++;
32064
+ cov_2e8k7gwd81().s[24]++;
31762
32065
  return _objectSpread$9(_objectSpread$9({}, question), {}, {
31763
32066
  displayOrder: index + 1
31764
32067
  });
31765
32068
  }));
31766
32069
  },
31767
32070
  onAddNew: function onAddNew(kind) {
31768
- cov_2e8k7gwd81().f[10]++;
31769
- cov_2e8k7gwd81().s[27]++;
31770
- return insert(index + 1, createFieldData(kind, isRequiredField(kind)));
32071
+ cov_2e8k7gwd81().f[9]++;
32072
+ cov_2e8k7gwd81().s[25]++;
32073
+ return insert(index + 1, createFieldData(kind, isRequiredField(item)));
31771
32074
  },
31772
32075
  onRemove: function onRemove() {
31773
- cov_2e8k7gwd81().f[11]++;
31774
- cov_2e8k7gwd81().s[28]++;
32076
+ cov_2e8k7gwd81().f[10]++;
32077
+ cov_2e8k7gwd81().s[26]++;
31775
32078
  setDeleteQuestionIndex(index);
31776
32079
  }
31777
32080
  };
31778
32081
  };
31779
- cov_2e8k7gwd81().s[29]++;
32082
+ cov_2e8k7gwd81().s[27]++;
31780
32083
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
31781
32084
  isOpen: deleteQuestionIndex !== null,
31782
32085
  message: t("questions.deleteAlert.message"),
@@ -31785,16 +32088,16 @@ var Form = function Form(_ref) {
31785
32088
  label: (_ref13 = (cov_2e8k7gwd81().b[6][0]++, INDEPENDENT_LABELS_MAP[(_questions$deleteQues = questions[deleteQuestionIndex]) === null || _questions$deleteQues === void 0 ? void 0 : _questions$deleteQues.kind])) !== null && _ref13 !== void 0 ? _ref13 : (cov_2e8k7gwd81().b[6][1]++, sliceLabel((_questions$deleteQues2 = questions[deleteQuestionIndex]) === null || _questions$deleteQues2 === void 0 ? void 0 : _questions$deleteQues2.label))
31786
32089
  }),
31787
32090
  onClose: function onClose() {
31788
- cov_2e8k7gwd81().f[12]++;
31789
- cov_2e8k7gwd81().s[30]++;
32091
+ cov_2e8k7gwd81().f[11]++;
32092
+ cov_2e8k7gwd81().s[28]++;
31790
32093
  return setDeleteQuestionIndex(null);
31791
32094
  },
31792
32095
  onSubmit: function onSubmit() {
31793
- cov_2e8k7gwd81().f[13]++;
31794
- var nextQuestions = (cov_2e8k7gwd81().s[31]++, formHelpers.destroyFromList(questions, deleteQuestionIndex));
31795
- cov_2e8k7gwd81().s[32]++;
32096
+ cov_2e8k7gwd81().f[12]++;
32097
+ var nextQuestions = (cov_2e8k7gwd81().s[29]++, formHelpers.destroyFromList(questions, deleteQuestionIndex));
32098
+ cov_2e8k7gwd81().s[30]++;
31796
32099
  setFieldValue("questions", nextQuestions, false);
31797
- cov_2e8k7gwd81().s[33]++;
32100
+ cov_2e8k7gwd81().s[31]++;
31798
32101
  setDeleteQuestionIndex(null);
31799
32102
  }
31800
32103
  }), /*#__PURE__*/React__default["default"].createElement(formik.Form, _extends$9({}, formDomProps, {
@@ -31804,14 +32107,14 @@ var Form = function Form(_ref) {
31804
32107
  }, function (_ref14) {
31805
32108
  var insert = _ref14.insert,
31806
32109
  push = _ref14.push;
31807
- cov_2e8k7gwd81().f[14]++;
31808
- cov_2e8k7gwd81().s[34]++;
32110
+ cov_2e8k7gwd81().f[13]++;
32111
+ cov_2e8k7gwd81().s[32]++;
31809
32112
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(DragDropContext, {
31810
32113
  onDragEnd: function onDragEnd(_ref15) {
31811
32114
  var source = _ref15.source,
31812
32115
  destination = _ref15.destination;
31813
- cov_2e8k7gwd81().f[15]++;
31814
- cov_2e8k7gwd81().s[35]++;
32116
+ cov_2e8k7gwd81().f[14]++;
32117
+ cov_2e8k7gwd81().s[33]++;
31815
32118
  return handleFieldDragEnd({
31816
32119
  source: source,
31817
32120
  destination: destination,
@@ -31824,9 +32127,9 @@ var Form = function Form(_ref) {
31824
32127
  formProps: formProps,
31825
32128
  getActiveKindDetails: getActiveKindDetails,
31826
32129
  insert: insert,
32130
+ isDeletable: isDeletable,
31827
32131
  isRequiredField: isRequiredField,
31828
32132
  kindUniqueOn: kindUniqueOn,
31829
- nonRemovableFields: nonRemovableFields,
31830
32133
  questions: questions
31831
32134
  })), /*#__PURE__*/React__default["default"].createElement("div", {
31832
32135
  className: "mb-8 w-full"
@@ -31834,8 +32137,8 @@ var Form = function Form(_ref) {
31834
32137
  kindUniqueOn: kindUniqueOn,
31835
32138
  questionKinds: availableQuestionKinds,
31836
32139
  onSelect: function onSelect(kind) {
31837
- cov_2e8k7gwd81().f[16]++;
31838
- cov_2e8k7gwd81().s[36]++;
32140
+ cov_2e8k7gwd81().f[15]++;
32141
+ cov_2e8k7gwd81().s[34]++;
31839
32142
  return push(createFieldData(kind));
31840
32143
  }
31841
32144
  })));
@@ -31843,9 +32146,9 @@ var Form = function Form(_ref) {
31843
32146
  kindUniqueOn: kindUniqueOn,
31844
32147
  questionKinds: availableQuestionKinds,
31845
32148
  onSelect: function onSelect(kind) {
31846
- cov_2e8k7gwd81().f[17]++;
31847
- var nextQuestions = (cov_2e8k7gwd81().s[37]++, formHelpers.pushToList(questions, createFieldData(kind)));
31848
- cov_2e8k7gwd81().s[38]++;
32149
+ cov_2e8k7gwd81().f[16]++;
32150
+ var nextQuestions = (cov_2e8k7gwd81().s[35]++, formHelpers.pushToList(questions, createFieldData(kind)));
32151
+ cov_2e8k7gwd81().s[36]++;
31849
32152
  setFieldValue("questions", nextQuestions, false);
31850
32153
  }
31851
32154
  }))), (cov_2e8k7gwd81().b[8][0]++, showActionBlock) && (cov_2e8k7gwd81().b[8][1]++, /*#__PURE__*/React__default["default"].createElement(formik$1.ActionBlock, {
@@ -32207,7 +32510,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, yup.object().shape({
32207
32510
 
32208
32511
  function cov_2nbnnlcv5p() {
32209
32512
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
32210
- var hash = "9bf2679d6e35d9ba293532d06fb53c83addc07f7";
32513
+ var hash = "3f91bb4f96e8987cc816d9501ef4ff5ac168630d";
32211
32514
  var global = new Function("return this")();
32212
32515
  var gcv = "__coverage__";
32213
32516
  var coverageData = {
@@ -32219,93 +32522,93 @@ function cov_2nbnnlcv5p() {
32219
32522
  column: 18
32220
32523
  },
32221
32524
  end: {
32222
- line: 149,
32525
+ line: 158,
32223
32526
  column: 1
32224
32527
  }
32225
32528
  },
32226
32529
  "1": {
32227
32530
  start: {
32228
- line: 36,
32531
+ line: 38,
32229
32532
  column: 54
32230
32533
  },
32231
32534
  end: {
32232
- line: 36,
32535
+ line: 38,
32233
32536
  column: 69
32234
32537
  }
32235
32538
  },
32236
32539
  "2": {
32237
32540
  start: {
32238
- line: 38,
32541
+ line: 40,
32239
32542
  column: 22
32240
32543
  },
32241
32544
  end: {
32242
- line: 38,
32545
+ line: 40,
32243
32546
  column: 38
32244
32547
  }
32245
32548
  },
32246
32549
  "3": {
32247
32550
  start: {
32248
- line: 40,
32551
+ line: 42,
32249
32552
  column: 43
32250
32553
  },
32251
32554
  end: {
32252
- line: 45,
32555
+ line: 47,
32253
32556
  column: 4
32254
32557
  }
32255
32558
  },
32256
32559
  "4": {
32257
32560
  start: {
32258
- line: 42,
32561
+ line: 44,
32259
32562
  column: 22
32260
32563
  },
32261
32564
  end: {
32262
- line: 42,
32565
+ line: 44,
32263
32566
  column: 41
32264
32567
  }
32265
32568
  },
32266
32569
  "5": {
32267
32570
  start: {
32268
- line: 44,
32571
+ line: 46,
32269
32572
  column: 6
32270
32573
  },
32271
32574
  end: {
32272
- line: 44,
32575
+ line: 46,
32273
32576
  column: 28
32274
32577
  }
32275
32578
  },
32276
32579
  "6": {
32277
32580
  start: {
32278
- line: 53,
32581
+ line: 55,
32279
32582
  column: 6
32280
32583
  },
32281
32584
  end: {
32282
- line: 71,
32585
+ line: 73,
32283
32586
  column: 4
32284
32587
  }
32285
32588
  },
32286
32589
  "7": {
32287
32590
  start: {
32288
- line: 55,
32591
+ line: 57,
32289
32592
  column: 23
32290
32593
  },
32291
32594
  end: {
32292
- line: 55,
32595
+ line: 57,
32293
32596
  column: 39
32294
32597
  }
32295
32598
  },
32296
32599
  "8": {
32297
32600
  start: {
32298
- line: 73,
32299
- column: 23
32601
+ line: 75,
32602
+ column: 2
32300
32603
  },
32301
32604
  end: {
32302
- line: 80,
32303
- column: 6
32605
+ line: 81,
32606
+ column: 3
32304
32607
  }
32305
32608
  },
32306
32609
  "9": {
32307
32610
  start: {
32308
- line: 74,
32611
+ line: 76,
32309
32612
  column: 4
32310
32613
  },
32311
32614
  end: {
@@ -32315,101 +32618,141 @@ function cov_2nbnnlcv5p() {
32315
32618
  },
32316
32619
  "10": {
32317
32620
  start: {
32318
- line: 82,
32621
+ line: 83,
32622
+ column: 23
32623
+ },
32624
+ end: {
32625
+ line: 90,
32626
+ column: 6
32627
+ }
32628
+ },
32629
+ "11": {
32630
+ start: {
32631
+ line: 84,
32632
+ column: 4
32633
+ },
32634
+ end: {
32635
+ line: 90,
32636
+ column: 6
32637
+ }
32638
+ },
32639
+ "12": {
32640
+ start: {
32641
+ line: 92,
32319
32642
  column: 24
32320
32643
  },
32321
32644
  end: {
32322
- line: 94,
32645
+ line: 104,
32323
32646
  column: 3
32324
32647
  }
32325
32648
  },
32326
- "11": {
32649
+ "13": {
32327
32650
  start: {
32328
- line: 83,
32651
+ line: 93,
32329
32652
  column: 32
32330
32653
  },
32331
32654
  end: {
32332
- line: 86,
32655
+ line: 96,
32333
32656
  column: 6
32334
32657
  }
32335
32658
  },
32336
- "12": {
32659
+ "14": {
32337
32660
  start: {
32338
- line: 88,
32661
+ line: 98,
32339
32662
  column: 4
32340
32663
  },
32341
32664
  end: {
32342
- line: 93,
32665
+ line: 103,
32343
32666
  column: 5
32344
32667
  }
32345
32668
  },
32346
- "13": {
32669
+ "15": {
32347
32670
  start: {
32348
- line: 89,
32671
+ line: 99,
32349
32672
  column: 6
32350
32673
  },
32351
32674
  end: {
32352
- line: 92,
32675
+ line: 102,
32353
32676
  column: 8
32354
32677
  }
32355
32678
  },
32356
- "14": {
32679
+ "16": {
32357
32680
  start: {
32358
- line: 96,
32359
- column: 2
32681
+ line: 107,
32682
+ column: 4
32360
32683
  },
32361
32684
  end: {
32362
- line: 102,
32363
- column: 3
32685
+ line: 108,
32686
+ column: 61
32364
32687
  }
32365
32688
  },
32366
- "15": {
32689
+ "17": {
32367
32690
  start: {
32368
- line: 97,
32691
+ line: 108,
32692
+ column: 17
32693
+ },
32694
+ end: {
32695
+ line: 108,
32696
+ column: 60
32697
+ }
32698
+ },
32699
+ "18": {
32700
+ start: {
32701
+ line: 111,
32369
32702
  column: 4
32370
32703
  },
32371
32704
  end: {
32372
- line: 101,
32373
- column: 6
32705
+ line: 111,
32706
+ column: 68
32374
32707
  }
32375
32708
  },
32376
- "16": {
32709
+ "19": {
32377
32710
  start: {
32378
- line: 104,
32711
+ line: 111,
32712
+ column: 38
32713
+ },
32714
+ end: {
32715
+ line: 111,
32716
+ column: 67
32717
+ }
32718
+ },
32719
+ "20": {
32720
+ start: {
32721
+ line: 113,
32379
32722
  column: 2
32380
32723
  },
32381
32724
  end: {
32382
- line: 148,
32725
+ line: 157,
32383
32726
  column: 4
32384
32727
  }
32385
32728
  },
32386
- "17": {
32729
+ "21": {
32387
32730
  start: {
32388
- line: 117,
32731
+ line: 126,
32389
32732
  column: 10
32390
32733
  },
32391
32734
  end: {
32392
- line: 139,
32735
+ line: 148,
32393
32736
  column: 12
32394
32737
  }
32395
32738
  },
32396
- "18": {
32739
+ "22": {
32397
32740
  start: {
32398
- line: 135,
32741
+ line: 144,
32399
32742
  column: 14
32400
32743
  },
32401
32744
  end: {
32402
- line: 137,
32745
+ line: 146,
32403
32746
  column: 15
32404
32747
  }
32405
32748
  },
32406
- "19": {
32749
+ "23": {
32407
32750
  start: {
32408
- line: 136,
32751
+ line: 145,
32409
32752
  column: 16
32410
32753
  },
32411
32754
  end: {
32412
- line: 136,
32755
+ line: 145,
32413
32756
  column: 49
32414
32757
  }
32415
32758
  }
@@ -32429,183 +32772,231 @@ function cov_2nbnnlcv5p() {
32429
32772
  },
32430
32773
  loc: {
32431
32774
  start: {
32432
- line: 35,
32775
+ line: 37,
32433
32776
  column: 6
32434
32777
  },
32435
32778
  end: {
32436
- line: 149,
32779
+ line: 158,
32437
32780
  column: 1
32438
32781
  }
32439
32782
  },
32440
- line: 35
32783
+ line: 37
32441
32784
  },
32442
32785
  "1": {
32443
32786
  name: "(anonymous_1)",
32444
32787
  decl: {
32445
32788
  start: {
32446
- line: 42,
32789
+ line: 44,
32447
32790
  column: 13
32448
32791
  },
32449
32792
  end: {
32450
- line: 42,
32793
+ line: 44,
32451
32794
  column: 14
32452
32795
  }
32453
32796
  },
32454
32797
  loc: {
32455
32798
  start: {
32456
- line: 42,
32799
+ line: 44,
32457
32800
  column: 22
32458
32801
  },
32459
32802
  end: {
32460
- line: 42,
32803
+ line: 44,
32461
32804
  column: 41
32462
32805
  }
32463
32806
  },
32464
- line: 42
32807
+ line: 44
32465
32808
  },
32466
32809
  "2": {
32467
32810
  name: "(anonymous_2)",
32468
32811
  decl: {
32469
32812
  start: {
32470
- line: 43,
32813
+ line: 45,
32471
32814
  column: 15
32472
32815
  },
32473
32816
  end: {
32474
- line: 43,
32817
+ line: 45,
32475
32818
  column: 16
32476
32819
  }
32477
32820
  },
32478
32821
  loc: {
32479
32822
  start: {
32480
- line: 44,
32823
+ line: 46,
32481
32824
  column: 6
32482
32825
  },
32483
32826
  end: {
32484
- line: 44,
32827
+ line: 46,
32485
32828
  column: 28
32486
32829
  }
32487
32830
  },
32488
- line: 44
32831
+ line: 46
32489
32832
  },
32490
32833
  "3": {
32491
32834
  name: "(anonymous_3)",
32492
32835
  decl: {
32493
32836
  start: {
32494
- line: 55,
32837
+ line: 57,
32495
32838
  column: 15
32496
32839
  },
32497
32840
  end: {
32498
- line: 55,
32841
+ line: 57,
32499
32842
  column: 16
32500
32843
  }
32501
32844
  },
32502
32845
  loc: {
32503
32846
  start: {
32504
- line: 55,
32847
+ line: 57,
32505
32848
  column: 23
32506
32849
  },
32507
32850
  end: {
32508
- line: 55,
32851
+ line: 57,
32509
32852
  column: 39
32510
32853
  }
32511
32854
  },
32512
- line: 55
32855
+ line: 57
32513
32856
  },
32514
32857
  "4": {
32515
32858
  name: "(anonymous_4)",
32516
32859
  decl: {
32517
32860
  start: {
32518
- line: 73,
32861
+ line: 83,
32519
32862
  column: 23
32520
32863
  },
32521
32864
  end: {
32522
- line: 73,
32865
+ line: 83,
32523
32866
  column: 24
32524
32867
  }
32525
32868
  },
32526
32869
  loc: {
32527
32870
  start: {
32528
- line: 74,
32871
+ line: 84,
32529
32872
  column: 4
32530
32873
  },
32531
32874
  end: {
32532
- line: 80,
32875
+ line: 90,
32533
32876
  column: 6
32534
32877
  }
32535
32878
  },
32536
- line: 74
32879
+ line: 84
32537
32880
  },
32538
32881
  "5": {
32539
32882
  name: "(anonymous_5)",
32540
32883
  decl: {
32541
32884
  start: {
32542
- line: 82,
32885
+ line: 92,
32543
32886
  column: 24
32544
32887
  },
32545
32888
  end: {
32546
- line: 82,
32889
+ line: 92,
32547
32890
  column: 25
32548
32891
  }
32549
32892
  },
32550
32893
  loc: {
32551
32894
  start: {
32552
- line: 82,
32895
+ line: 92,
32553
32896
  column: 37
32554
32897
  },
32555
32898
  end: {
32556
- line: 94,
32899
+ line: 104,
32557
32900
  column: 3
32558
32901
  }
32559
32902
  },
32560
- line: 82
32903
+ line: 92
32561
32904
  },
32562
32905
  "6": {
32563
32906
  name: "(anonymous_6)",
32564
32907
  decl: {
32565
32908
  start: {
32566
- line: 116,
32909
+ line: 108,
32910
+ column: 5
32911
+ },
32912
+ end: {
32913
+ line: 108,
32914
+ column: 6
32915
+ }
32916
+ },
32917
+ loc: {
32918
+ start: {
32919
+ line: 108,
32920
+ column: 17
32921
+ },
32922
+ end: {
32923
+ line: 108,
32924
+ column: 60
32925
+ }
32926
+ },
32927
+ line: 108
32928
+ },
32929
+ "7": {
32930
+ name: "(anonymous_7)",
32931
+ decl: {
32932
+ start: {
32933
+ line: 111,
32934
+ column: 24
32935
+ },
32936
+ end: {
32937
+ line: 111,
32938
+ column: 25
32939
+ }
32940
+ },
32941
+ loc: {
32942
+ start: {
32943
+ line: 111,
32944
+ column: 38
32945
+ },
32946
+ end: {
32947
+ line: 111,
32948
+ column: 67
32949
+ }
32950
+ },
32951
+ line: 111
32952
+ },
32953
+ "8": {
32954
+ name: "(anonymous_8)",
32955
+ decl: {
32956
+ start: {
32957
+ line: 125,
32567
32958
  column: 9
32568
32959
  },
32569
32960
  end: {
32570
- line: 116,
32961
+ line: 125,
32571
32962
  column: 10
32572
32963
  }
32573
32964
  },
32574
32965
  loc: {
32575
32966
  start: {
32576
- line: 117,
32967
+ line: 126,
32577
32968
  column: 10
32578
32969
  },
32579
32970
  end: {
32580
- line: 139,
32971
+ line: 148,
32581
32972
  column: 12
32582
32973
  }
32583
32974
  },
32584
- line: 117
32975
+ line: 126
32585
32976
  },
32586
- "7": {
32587
- name: "(anonymous_7)",
32977
+ "9": {
32978
+ name: "(anonymous_9)",
32588
32979
  decl: {
32589
32980
  start: {
32590
- line: 134,
32981
+ line: 143,
32591
32982
  column: 22
32592
32983
  },
32593
32984
  end: {
32594
- line: 134,
32985
+ line: 143,
32595
32986
  column: 23
32596
32987
  }
32597
32988
  },
32598
32989
  loc: {
32599
32990
  start: {
32600
- line: 134,
32991
+ line: 143,
32601
32992
  column: 31
32602
32993
  },
32603
32994
  end: {
32604
- line: 138,
32995
+ line: 147,
32605
32996
  column: 13
32606
32997
  }
32607
32998
  },
32608
- line: 134
32999
+ line: 143
32609
33000
  }
32610
33001
  },
32611
33002
  branchMap: {
@@ -32780,119 +33171,119 @@ function cov_2nbnnlcv5p() {
32780
33171
  "7": {
32781
33172
  loc: {
32782
33173
  start: {
32783
- line: 33,
33174
+ line: 35,
32784
33175
  column: 2
32785
33176
  },
32786
33177
  end: {
32787
- line: 33,
33178
+ line: 35,
32788
33179
  column: 20
32789
33180
  }
32790
33181
  },
32791
33182
  type: "default-arg",
32792
33183
  locations: [{
32793
33184
  start: {
32794
- line: 33,
33185
+ line: 35,
32795
33186
  column: 15
32796
33187
  },
32797
33188
  end: {
32798
- line: 33,
33189
+ line: 35,
32799
33190
  column: 20
32800
33191
  }
32801
33192
  }],
32802
- line: 33
33193
+ line: 35
32803
33194
  },
32804
33195
  "8": {
32805
33196
  loc: {
32806
33197
  start: {
32807
- line: 34,
33198
+ line: 36,
32808
33199
  column: 2
32809
33200
  },
32810
33201
  end: {
32811
- line: 34,
33202
+ line: 36,
32812
33203
  column: 25
32813
33204
  }
32814
33205
  },
32815
33206
  type: "default-arg",
32816
33207
  locations: [{
32817
33208
  start: {
32818
- line: 34,
33209
+ line: 36,
32819
33210
  column: 17
32820
33211
  },
32821
33212
  end: {
32822
- line: 34,
33213
+ line: 36,
32823
33214
  column: 25
32824
33215
  }
32825
33216
  }],
32826
- line: 34
33217
+ line: 36
32827
33218
  },
32828
33219
  "9": {
32829
33220
  loc: {
32830
33221
  start: {
32831
- line: 43,
33222
+ line: 45,
32832
33223
  column: 18
32833
33224
  },
32834
33225
  end: {
32835
- line: 43,
33226
+ line: 45,
32836
33227
  column: 70
32837
33228
  }
32838
33229
  },
32839
33230
  type: "default-arg",
32840
33231
  locations: [{
32841
33232
  start: {
32842
- line: 43,
33233
+ line: 45,
32843
33234
  column: 27
32844
33235
  },
32845
33236
  end: {
32846
- line: 43,
33237
+ line: 45,
32847
33238
  column: 70
32848
33239
  }
32849
33240
  }],
32850
- line: 43
33241
+ line: 45
32851
33242
  },
32852
33243
  "10": {
32853
33244
  loc: {
32854
33245
  start: {
32855
- line: 48,
33246
+ line: 50,
32856
33247
  column: 10
32857
33248
  },
32858
33249
  end: {
32859
- line: 51,
33250
+ line: 53,
32860
33251
  column: 5
32861
33252
  }
32862
33253
  },
32863
33254
  type: "default-arg",
32864
33255
  locations: [{
32865
33256
  start: {
32866
- line: 48,
33257
+ line: 50,
32867
33258
  column: 46
32868
33259
  },
32869
33260
  end: {
32870
- line: 51,
33261
+ line: 53,
32871
33262
  column: 5
32872
33263
  }
32873
33264
  }],
32874
- line: 48
33265
+ line: 50
32875
33266
  },
32876
33267
  "11": {
32877
33268
  loc: {
32878
33269
  start: {
32879
- line: 88,
32880
- column: 4
33270
+ line: 75,
33271
+ column: 2
32881
33272
  },
32882
33273
  end: {
32883
- line: 93,
32884
- column: 5
33274
+ line: 81,
33275
+ column: 3
32885
33276
  }
32886
33277
  },
32887
33278
  type: "if",
32888
33279
  locations: [{
32889
33280
  start: {
32890
- line: 88,
32891
- column: 4
33281
+ line: 75,
33282
+ column: 2
32892
33283
  },
32893
33284
  end: {
32894
- line: 93,
32895
- column: 5
33285
+ line: 81,
33286
+ column: 3
32896
33287
  }
32897
33288
  }, {
32898
33289
  start: {
@@ -32904,28 +33295,70 @@ function cov_2nbnnlcv5p() {
32904
33295
  column: undefined
32905
33296
  }
32906
33297
  }],
32907
- line: 88
33298
+ line: 75
32908
33299
  },
32909
33300
  "12": {
32910
33301
  loc: {
32911
33302
  start: {
32912
- line: 96,
32913
- column: 2
33303
+ line: 75,
33304
+ column: 6
32914
33305
  },
32915
33306
  end: {
32916
- line: 102,
32917
- column: 3
33307
+ line: 75,
33308
+ column: 53
33309
+ }
33310
+ },
33311
+ type: "binary-expr",
33312
+ locations: [{
33313
+ start: {
33314
+ line: 75,
33315
+ column: 6
33316
+ },
33317
+ end: {
33318
+ line: 75,
33319
+ column: 15
33320
+ }
33321
+ }, {
33322
+ start: {
33323
+ line: 75,
33324
+ column: 20
33325
+ },
33326
+ end: {
33327
+ line: 75,
33328
+ column: 30
33329
+ }
33330
+ }, {
33331
+ start: {
33332
+ line: 75,
33333
+ column: 34
33334
+ },
33335
+ end: {
33336
+ line: 75,
33337
+ column: 52
33338
+ }
33339
+ }],
33340
+ line: 75
33341
+ },
33342
+ "13": {
33343
+ loc: {
33344
+ start: {
33345
+ line: 98,
33346
+ column: 4
33347
+ },
33348
+ end: {
33349
+ line: 103,
33350
+ column: 5
32918
33351
  }
32919
33352
  },
32920
33353
  type: "if",
32921
33354
  locations: [{
32922
33355
  start: {
32923
- line: 96,
32924
- column: 2
33356
+ line: 98,
33357
+ column: 4
32925
33358
  },
32926
33359
  end: {
32927
- line: 102,
32928
- column: 3
33360
+ line: 103,
33361
+ column: 5
32929
33362
  }
32930
33363
  }, {
32931
33364
  start: {
@@ -32937,102 +33370,126 @@ function cov_2nbnnlcv5p() {
32937
33370
  column: undefined
32938
33371
  }
32939
33372
  }],
32940
- line: 96
33373
+ line: 98
32941
33374
  },
32942
- "13": {
33375
+ "14": {
32943
33376
  loc: {
32944
33377
  start: {
32945
- line: 96,
32946
- column: 6
33378
+ line: 107,
33379
+ column: 4
32947
33380
  },
32948
33381
  end: {
32949
- line: 96,
32950
- column: 53
33382
+ line: 108,
33383
+ column: 61
32951
33384
  }
32952
33385
  },
32953
33386
  type: "binary-expr",
32954
33387
  locations: [{
32955
33388
  start: {
32956
- line: 96,
32957
- column: 6
33389
+ line: 107,
33390
+ column: 4
32958
33391
  },
32959
33392
  end: {
32960
- line: 96,
32961
- column: 15
33393
+ line: 107,
33394
+ column: 23
32962
33395
  }
32963
33396
  }, {
32964
33397
  start: {
32965
- line: 96,
32966
- column: 20
33398
+ line: 108,
33399
+ column: 5
32967
33400
  },
32968
33401
  end: {
32969
- line: 96,
32970
- column: 30
33402
+ line: 108,
33403
+ column: 60
33404
+ }
33405
+ }],
33406
+ line: 107
33407
+ },
33408
+ "15": {
33409
+ loc: {
33410
+ start: {
33411
+ line: 111,
33412
+ column: 4
33413
+ },
33414
+ end: {
33415
+ line: 111,
33416
+ column: 68
33417
+ }
33418
+ },
33419
+ type: "binary-expr",
33420
+ locations: [{
33421
+ start: {
33422
+ line: 111,
33423
+ column: 4
33424
+ },
33425
+ end: {
33426
+ line: 111,
33427
+ column: 19
32971
33428
  }
32972
33429
  }, {
32973
33430
  start: {
32974
- line: 96,
32975
- column: 34
33431
+ line: 111,
33432
+ column: 24
32976
33433
  },
32977
33434
  end: {
32978
- line: 96,
32979
- column: 52
33435
+ line: 111,
33436
+ column: 67
32980
33437
  }
32981
33438
  }],
32982
- line: 96
33439
+ line: 111
32983
33440
  },
32984
- "14": {
33441
+ "16": {
32985
33442
  loc: {
32986
33443
  start: {
32987
- line: 131,
33444
+ line: 140,
32988
33445
  column: 14
32989
33446
  },
32990
33447
  end: {
32991
- line: 131,
33448
+ line: 140,
32992
33449
  column: 71
32993
33450
  }
32994
33451
  },
32995
33452
  type: "cond-expr",
32996
33453
  locations: [{
32997
33454
  start: {
32998
- line: 131,
33455
+ line: 140,
32999
33456
  column: 41
33000
33457
  },
33001
33458
  end: {
33002
- line: 131,
33459
+ line: 140,
33003
33460
  column: 54
33004
33461
  }
33005
33462
  }, {
33006
33463
  start: {
33007
- line: 131,
33464
+ line: 140,
33008
33465
  column: 57
33009
33466
  },
33010
33467
  end: {
33011
- line: 131,
33468
+ line: 140,
33012
33469
  column: 71
33013
33470
  }
33014
33471
  }],
33015
- line: 131
33472
+ line: 140
33016
33473
  },
33017
- "15": {
33474
+ "17": {
33018
33475
  loc: {
33019
33476
  start: {
33020
- line: 135,
33477
+ line: 144,
33021
33478
  column: 14
33022
33479
  },
33023
33480
  end: {
33024
- line: 137,
33481
+ line: 146,
33025
33482
  column: 15
33026
33483
  }
33027
33484
  },
33028
33485
  type: "if",
33029
33486
  locations: [{
33030
33487
  start: {
33031
- line: 135,
33488
+ line: 144,
33032
33489
  column: 14
33033
33490
  },
33034
33491
  end: {
33035
- line: 137,
33492
+ line: 146,
33036
33493
  column: 15
33037
33494
  }
33038
33495
  }, {
@@ -33045,40 +33502,40 @@ function cov_2nbnnlcv5p() {
33045
33502
  column: undefined
33046
33503
  }
33047
33504
  }],
33048
- line: 135
33505
+ line: 144
33049
33506
  },
33050
- "16": {
33507
+ "18": {
33051
33508
  loc: {
33052
33509
  start: {
33053
- line: 142,
33510
+ line: 151,
33054
33511
  column: 7
33055
33512
  },
33056
33513
  end: {
33057
- line: 146,
33514
+ line: 155,
33058
33515
  column: 7
33059
33516
  }
33060
33517
  },
33061
33518
  type: "binary-expr",
33062
33519
  locations: [{
33063
33520
  start: {
33064
- line: 142,
33521
+ line: 151,
33065
33522
  column: 7
33066
33523
  },
33067
33524
  end: {
33068
- line: 142,
33525
+ line: 151,
33069
33526
  column: 25
33070
33527
  }
33071
33528
  }, {
33072
33529
  start: {
33073
- line: 143,
33530
+ line: 152,
33074
33531
  column: 8
33075
33532
  },
33076
33533
  end: {
33077
- line: 145,
33534
+ line: 154,
33078
33535
  column: 14
33079
33536
  }
33080
33537
  }],
33081
- line: 142
33538
+ line: 151
33082
33539
  }
33083
33540
  },
33084
33541
  s: {
@@ -33101,7 +33558,11 @@ function cov_2nbnnlcv5p() {
33101
33558
  "16": 0,
33102
33559
  "17": 0,
33103
33560
  "18": 0,
33104
- "19": 0
33561
+ "19": 0,
33562
+ "20": 0,
33563
+ "21": 0,
33564
+ "22": 0,
33565
+ "23": 0
33105
33566
  },
33106
33567
  f: {
33107
33568
  "0": 0,
@@ -33111,7 +33572,9 @@ function cov_2nbnnlcv5p() {
33111
33572
  "4": 0,
33112
33573
  "5": 0,
33113
33574
  "6": 0,
33114
- "7": 0
33575
+ "7": 0,
33576
+ "8": 0,
33577
+ "9": 0
33115
33578
  },
33116
33579
  b: {
33117
33580
  "0": [0],
@@ -33126,14 +33589,16 @@ function cov_2nbnnlcv5p() {
33126
33589
  "9": [0],
33127
33590
  "10": [0],
33128
33591
  "11": [0, 0],
33129
- "12": [0, 0],
33130
- "13": [0, 0, 0],
33592
+ "12": [0, 0, 0],
33593
+ "13": [0, 0],
33131
33594
  "14": [0, 0],
33132
33595
  "15": [0, 0],
33133
- "16": [0, 0]
33596
+ "16": [0, 0],
33597
+ "17": [0, 0],
33598
+ "18": [0, 0]
33134
33599
  },
33135
33600
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33136
- hash: "9bf2679d6e35d9ba293532d06fb53c83addc07f7"
33601
+ hash: "3f91bb4f96e8987cc816d9501ef4ff5ac168630d"
33137
33602
  };
33138
33603
  var coverage = global[gcv] || (global[gcv] = {});
33139
33604
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -33153,6 +33618,7 @@ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if
33153
33618
  function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$a(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
33154
33619
  cov_2nbnnlcv5p().s[0]++;
33155
33620
  var BuildForm = function BuildForm(_ref) {
33621
+ var _ref8, _ref9;
33156
33622
  var id = _ref.id,
33157
33623
  onUpdate = _ref.onUpdate,
33158
33624
  buildRequestArgs = _ref.buildRequestArgs,
@@ -33173,6 +33639,8 @@ var BuildForm = function BuildForm(_ref) {
33173
33639
  isKindAlreadyActive = _ref$isKindAlreadyAct === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, isQuestionKindAlreadyActive) : _ref$isKindAlreadyAct,
33174
33640
  _ref$getActiveKindDet = _ref.getActiveKindDetails,
33175
33641
  getActiveKindDetails = _ref$getActiveKindDet === void 0 ? (cov_2nbnnlcv5p().b[6][0]++, getActiveQuestionKindDetails) : _ref$getActiveKindDet,
33642
+ isQuestionDeletable = _ref.isQuestionDeletable,
33643
+ isFieldRequired = _ref.isFieldRequired,
33176
33644
  _ref$showLoader = _ref.showLoader,
33177
33645
  showLoader = _ref$showLoader === void 0 ? (cov_2nbnnlcv5p().b[7][0]++, false) : _ref$showLoader,
33178
33646
  _ref$kindUniqueOn = _ref.kindUniqueOn,
@@ -33228,9 +33696,19 @@ var BuildForm = function BuildForm(_ref) {
33228
33696
  isQuestionsLoading = _ref6$data2.isQuestionsLoading,
33229
33697
  isLoading = _ref6.isLoading;
33230
33698
  cov_2nbnnlcv5p().s[8]++;
33699
+ if ((cov_2nbnnlcv5p().b[12][0]++, isLoading) || (cov_2nbnnlcv5p().b[12][1]++, showLoader) && (cov_2nbnnlcv5p().b[12][2]++, isQuestionsLoading)) {
33700
+ cov_2nbnnlcv5p().b[11][0]++;
33701
+ cov_2nbnnlcv5p().s[9]++;
33702
+ return /*#__PURE__*/React__default["default"].createElement("div", {
33703
+ className: "flex h-full w-full items-center justify-center py-6"
33704
+ }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null));
33705
+ } else {
33706
+ cov_2nbnnlcv5p().b[11][1]++;
33707
+ }
33708
+ cov_2nbnnlcv5p().s[10]++;
33231
33709
  var handleSubmit = function handleSubmit(payload) {
33232
33710
  cov_2nbnnlcv5p().f[4]++;
33233
- cov_2nbnnlcv5p().s[9]++;
33711
+ cov_2nbnnlcv5p().s[11]++;
33234
33712
  return updateQuestions({
33235
33713
  id: id,
33236
33714
  values: _objectSpread$8({
@@ -33238,31 +33716,32 @@ var BuildForm = function BuildForm(_ref) {
33238
33716
  }, buildRequestArgs)
33239
33717
  });
33240
33718
  };
33241
- cov_2nbnnlcv5p().s[10]++;
33719
+ cov_2nbnnlcv5p().s[12]++;
33242
33720
  var onValueChange = function onValueChange(questions) {
33243
33721
  cov_2nbnnlcv5p().f[5]++;
33244
- var _ref7 = (cov_2nbnnlcv5p().s[11]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
33722
+ var _ref7 = (cov_2nbnnlcv5p().s[13]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
33245
33723
  dataUpdateCount = _ref7.dataUpdateCount;
33246
- cov_2nbnnlcv5p().s[12]++;
33724
+ cov_2nbnnlcv5p().s[14]++;
33247
33725
  if (dataUpdateCount > 0) {
33248
- cov_2nbnnlcv5p().b[11][0]++;
33249
- cov_2nbnnlcv5p().s[13]++;
33726
+ cov_2nbnnlcv5p().b[13][0]++;
33727
+ cov_2nbnnlcv5p().s[15]++;
33250
33728
  queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], ramda.assoc("questions", questions));
33251
33729
  } else {
33252
- cov_2nbnnlcv5p().b[11][1]++;
33730
+ cov_2nbnnlcv5p().b[13][1]++;
33253
33731
  }
33254
33732
  };
33255
- cov_2nbnnlcv5p().s[14]++;
33256
- if ((cov_2nbnnlcv5p().b[13][0]++, isLoading) || (cov_2nbnnlcv5p().b[13][1]++, showLoader) && (cov_2nbnnlcv5p().b[13][2]++, isQuestionsLoading)) {
33257
- cov_2nbnnlcv5p().b[12][0]++;
33258
- cov_2nbnnlcv5p().s[15]++;
33259
- return /*#__PURE__*/React__default["default"].createElement("div", {
33260
- className: "flex h-full w-full items-center justify-center py-6"
33261
- }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null));
33262
- } else {
33263
- cov_2nbnnlcv5p().b[12][1]++;
33264
- }
33265
- cov_2nbnnlcv5p().s[16]++;
33733
+ var isDeletable = (cov_2nbnnlcv5p().s[16]++, (_ref8 = (cov_2nbnnlcv5p().b[14][0]++, isQuestionDeletable)) !== null && _ref8 !== void 0 ? _ref8 : (cov_2nbnnlcv5p().b[14][1]++, function (question) {
33734
+ cov_2nbnnlcv5p().f[6]++;
33735
+ cov_2nbnnlcv5p().s[17]++;
33736
+ return !nonRemovableFields.includes(question.kind);
33737
+ }));
33738
+ var isRequiredField = (cov_2nbnnlcv5p().s[18]++, (_ref9 = (cov_2nbnnlcv5p().b[15][0]++, isFieldRequired)) !== null && _ref9 !== void 0 ? _ref9 : (cov_2nbnnlcv5p().b[15][1]++, function (_ref10) {
33739
+ var kind = _ref10.kind;
33740
+ cov_2nbnnlcv5p().f[7]++;
33741
+ cov_2nbnnlcv5p().s[19]++;
33742
+ return requiredFields.includes(kind);
33743
+ }));
33744
+ cov_2nbnnlcv5p().s[20]++;
33266
33745
  return /*#__PURE__*/React__default["default"].createElement("div", {
33267
33746
  className: "relative"
33268
33747
  }, /*#__PURE__*/React__default["default"].createElement(formik.Formik, {
@@ -33274,38 +33753,38 @@ var BuildForm = function BuildForm(_ref) {
33274
33753
  questions: questions
33275
33754
  },
33276
33755
  onSubmit: handleSubmit
33277
- }, function (_ref8) {
33278
- var errors = _ref8.errors,
33279
- setFieldError = _ref8.setFieldError;
33280
- cov_2nbnnlcv5p().f[6]++;
33281
- cov_2nbnnlcv5p().s[17]++;
33756
+ }, function (_ref11) {
33757
+ var errors = _ref11.errors,
33758
+ setFieldError = _ref11.setFieldError;
33759
+ cov_2nbnnlcv5p().f[8]++;
33760
+ cov_2nbnnlcv5p().s[21]++;
33282
33761
  return /*#__PURE__*/React__default["default"].createElement(Form, _extends$9({}, formDomProps, {
33283
33762
  cancelButtonProps: cancelButtonProps,
33284
33763
  formId: id,
33285
33764
  getActiveKindDetails: getActiveKindDetails,
33765
+ isDeletable: isDeletable,
33286
33766
  isKindAlreadyActive: isKindAlreadyActive,
33767
+ isRequiredField: isRequiredField,
33287
33768
  kindUniqueOn: kindUniqueOn,
33288
- nonRemovableFields: nonRemovableFields,
33289
- requiredFields: requiredFields,
33290
33769
  setShouldValidate: setShouldValidateForm,
33291
33770
  showActionBlock: showActionBlock,
33292
33771
  showAddQuestionDivider: showAddQuestionDivider,
33293
33772
  submitButtonProps: submitButtonProps,
33294
- questionKinds: pure.isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[14][0]++, questionKinds) : (cov_2nbnnlcv5p().b[14][1]++, QUESTION_KINDS),
33773
+ questionKinds: pure.isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[16][0]++, questionKinds) : (cov_2nbnnlcv5p().b[16][1]++, QUESTION_KINDS),
33295
33774
  onValueChange: onValueChange,
33296
33775
  onChange: function onChange(event) {
33297
- cov_2nbnnlcv5p().f[7]++;
33298
- cov_2nbnnlcv5p().s[18]++;
33776
+ cov_2nbnnlcv5p().f[9]++;
33777
+ cov_2nbnnlcv5p().s[22]++;
33299
33778
  if (!ramda.isEmpty(errors)) {
33300
- cov_2nbnnlcv5p().b[15][0]++;
33301
- cov_2nbnnlcv5p().s[19]++;
33779
+ cov_2nbnnlcv5p().b[17][0]++;
33780
+ cov_2nbnnlcv5p().s[23]++;
33302
33781
  setFieldError(event.target.name);
33303
33782
  } else {
33304
- cov_2nbnnlcv5p().b[15][1]++;
33783
+ cov_2nbnnlcv5p().b[17][1]++;
33305
33784
  }
33306
33785
  }
33307
33786
  }));
33308
- }), (cov_2nbnnlcv5p().b[16][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[16][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
33787
+ }), (cov_2nbnnlcv5p().b[18][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[18][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
33309
33788
  className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
33310
33789
  }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null))));
33311
33790
  };
@@ -46061,7 +46540,7 @@ cov_1zuybttr1q().s[8]++;
46061
46540
  var _ref7;
46062
46541
  function cov_1y9t6ere98() {
46063
46542
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/validations.js";
46064
- var hash = "d1ecc3936dc48fb7362ad34ab9e6e02e86c5ff20";
46543
+ var hash = "caddab36f5d99d8486ee83ca1f16c9afcc3b5825";
46065
46544
  var global = new Function("return this")();
46066
46545
  var gcv = "__coverage__";
46067
46546
  var coverageData = {
@@ -46413,7 +46892,7 @@ function cov_1y9t6ere98() {
46413
46892
  column: 26
46414
46893
  },
46415
46894
  end: {
46416
- line: 77,
46895
+ line: 82,
46417
46896
  column: 1
46418
46897
  }
46419
46898
  },
@@ -46424,7 +46903,7 @@ function cov_1y9t6ere98() {
46424
46903
  },
46425
46904
  end: {
46426
46905
  line: 73,
46427
- column: 71
46906
+ column: 50
46428
46907
  }
46429
46908
  },
46430
46909
  "36": {
@@ -46433,137 +46912,137 @@ function cov_1y9t6ere98() {
46433
46912
  column: 2
46434
46913
  },
46435
46914
  end: {
46436
- line: 74,
46437
- column: 73
46915
+ line: 79,
46916
+ column: 3
46438
46917
  }
46439
46918
  },
46440
46919
  "37": {
46441
46920
  start: {
46442
- line: 74,
46443
- column: 18
46921
+ line: 75,
46922
+ column: 4
46444
46923
  },
46445
46924
  end: {
46446
- line: 74,
46447
- column: 73
46925
+ line: 78,
46926
+ column: 46
46448
46927
  }
46449
46928
  },
46450
46929
  "38": {
46451
46930
  start: {
46452
- line: 76,
46931
+ line: 81,
46453
46932
  column: 2
46454
46933
  },
46455
46934
  end: {
46456
- line: 76,
46935
+ line: 81,
46457
46936
  column: 16
46458
46937
  }
46459
46938
  },
46460
46939
  "39": {
46461
46940
  start: {
46462
- line: 79,
46941
+ line: 84,
46463
46942
  column: 30
46464
46943
  },
46465
46944
  end: {
46466
- line: 92,
46945
+ line: 97,
46467
46946
  column: 1
46468
46947
  }
46469
46948
  },
46470
46949
  "40": {
46471
46950
  start: {
46472
- line: 95,
46951
+ line: 100,
46473
46952
  column: 2
46474
46953
  },
46475
46954
  end: {
46476
- line: 112,
46955
+ line: 117,
46477
46956
  column: 3
46478
46957
  }
46479
46958
  },
46480
46959
  "41": {
46481
46960
  start: {
46482
- line: 97,
46961
+ line: 102,
46483
46962
  column: 2
46484
46963
  },
46485
46964
  end: {
46486
- line: 112,
46965
+ line: 117,
46487
46966
  column: 3
46488
46967
  }
46489
46968
  },
46490
46969
  "42": {
46491
46970
  start: {
46492
- line: 98,
46971
+ line: 103,
46493
46972
  column: 4
46494
46973
  },
46495
46974
  end: {
46496
- line: 111,
46975
+ line: 116,
46497
46976
  column: 5
46498
46977
  }
46499
46978
  },
46500
46979
  "43": {
46501
46980
  start: {
46502
- line: 99,
46981
+ line: 104,
46503
46982
  column: 24
46504
46983
  },
46505
46984
  end: {
46506
- line: 99,
46985
+ line: 104,
46507
46986
  column: 51
46508
46987
  }
46509
46988
  },
46510
46989
  "44": {
46511
46990
  start: {
46512
- line: 100,
46991
+ line: 105,
46513
46992
  column: 21
46514
46993
  },
46515
46994
  end: {
46516
- line: 100,
46995
+ line: 105,
46517
46996
  column: 59
46518
46997
  }
46519
46998
  },
46520
46999
  "45": {
46521
47000
  start: {
46522
- line: 103,
47001
+ line: 108,
46523
47002
  column: 6
46524
47003
  },
46525
47004
  end: {
46526
- line: 110,
47005
+ line: 115,
46527
47006
  column: 9
46528
47007
  }
46529
47008
  },
46530
47009
  "46": {
46531
47010
  start: {
46532
- line: 104,
47011
+ line: 109,
46533
47012
  column: 8
46534
47013
  },
46535
47014
  end: {
46536
- line: 109,
47015
+ line: 114,
46537
47016
  column: 9
46538
47017
  }
46539
47018
  },
46540
47019
  "47": {
46541
47020
  start: {
46542
- line: 105,
47021
+ line: 110,
46543
47022
  column: 10
46544
47023
  },
46545
47024
  end: {
46546
- line: 105,
47025
+ line: 110,
46547
47026
  column: 39
46548
47027
  }
46549
47028
  },
46550
47029
  "48": {
46551
47030
  start: {
46552
- line: 106,
47031
+ line: 111,
46553
47032
  column: 10
46554
47033
  },
46555
47034
  end: {
46556
- line: 106,
47035
+ line: 111,
46557
47036
  column: 29
46558
47037
  }
46559
47038
  },
46560
47039
  "49": {
46561
47040
  start: {
46562
- line: 108,
47041
+ line: 113,
46563
47042
  column: 10
46564
47043
  },
46565
47044
  end: {
46566
- line: 108,
47045
+ line: 113,
46567
47046
  column: 31
46568
47047
  }
46569
47048
  }
@@ -46755,7 +47234,7 @@ function cov_1y9t6ere98() {
46755
47234
  column: 53
46756
47235
  },
46757
47236
  end: {
46758
- line: 77,
47237
+ line: 82,
46759
47238
  column: 1
46760
47239
  }
46761
47240
  },
@@ -46765,73 +47244,73 @@ function cov_1y9t6ere98() {
46765
47244
  name: "(anonymous_8)",
46766
47245
  decl: {
46767
47246
  start: {
46768
- line: 95,
47247
+ line: 100,
46769
47248
  column: 2
46770
47249
  },
46771
47250
  end: {
46772
- line: 95,
47251
+ line: 100,
46773
47252
  column: 3
46774
47253
  }
46775
47254
  },
46776
47255
  loc: {
46777
47256
  start: {
46778
- line: 97,
47257
+ line: 102,
46779
47258
  column: 2
46780
47259
  },
46781
47260
  end: {
46782
- line: 112,
47261
+ line: 117,
46783
47262
  column: 3
46784
47263
  }
46785
47264
  },
46786
- line: 97
47265
+ line: 102
46787
47266
  },
46788
47267
  "9": {
46789
47268
  name: "(anonymous_9)",
46790
47269
  decl: {
46791
47270
  start: {
46792
- line: 97,
47271
+ line: 102,
46793
47272
  column: 2
46794
47273
  },
46795
47274
  end: {
46796
- line: 97,
47275
+ line: 102,
46797
47276
  column: 3
46798
47277
  }
46799
47278
  },
46800
47279
  loc: {
46801
47280
  start: {
46802
- line: 97,
47281
+ line: 102,
46803
47282
  column: 11
46804
47283
  },
46805
47284
  end: {
46806
- line: 112,
47285
+ line: 117,
46807
47286
  column: 3
46808
47287
  }
46809
47288
  },
46810
- line: 97
47289
+ line: 102
46811
47290
  },
46812
47291
  "10": {
46813
47292
  name: "(anonymous_10)",
46814
47293
  decl: {
46815
47294
  start: {
46816
- line: 103,
47295
+ line: 108,
46817
47296
  column: 25
46818
47297
  },
46819
47298
  end: {
46820
- line: 103,
47299
+ line: 108,
46821
47300
  column: 26
46822
47301
  }
46823
47302
  },
46824
47303
  loc: {
46825
47304
  start: {
46826
- line: 103,
47305
+ line: 108,
46827
47306
  column: 42
46828
47307
  },
46829
47308
  end: {
46830
- line: 110,
47309
+ line: 115,
46831
47310
  column: 7
46832
47311
  }
46833
47312
  },
46834
- line: 103
47313
+ line: 108
46835
47314
  }
46836
47315
  },
46837
47316
  branchMap: {
@@ -47106,8 +47585,8 @@ function cov_1y9t6ere98() {
47106
47585
  column: 2
47107
47586
  },
47108
47587
  end: {
47109
- line: 74,
47110
- column: 73
47588
+ line: 79,
47589
+ column: 3
47111
47590
  }
47112
47591
  },
47113
47592
  type: "if",
@@ -47117,8 +47596,8 @@ function cov_1y9t6ere98() {
47117
47596
  column: 2
47118
47597
  },
47119
47598
  end: {
47120
- line: 74,
47121
- column: 73
47599
+ line: 79,
47600
+ column: 3
47122
47601
  }
47123
47602
  }, {
47124
47603
  start: {
@@ -47135,22 +47614,22 @@ function cov_1y9t6ere98() {
47135
47614
  "9": {
47136
47615
  loc: {
47137
47616
  start: {
47138
- line: 98,
47617
+ line: 103,
47139
47618
  column: 4
47140
47619
  },
47141
47620
  end: {
47142
- line: 111,
47621
+ line: 116,
47143
47622
  column: 5
47144
47623
  }
47145
47624
  },
47146
47625
  type: "if",
47147
47626
  locations: [{
47148
47627
  start: {
47149
- line: 98,
47628
+ line: 103,
47150
47629
  column: 4
47151
47630
  },
47152
47631
  end: {
47153
- line: 111,
47632
+ line: 116,
47154
47633
  column: 5
47155
47634
  }
47156
47635
  }, {
@@ -47163,7 +47642,7 @@ function cov_1y9t6ere98() {
47163
47642
  column: undefined
47164
47643
  }
47165
47644
  }],
47166
- line: 98
47645
+ line: 103
47167
47646
  }
47168
47647
  },
47169
47648
  s: {
@@ -47244,7 +47723,7 @@ function cov_1y9t6ere98() {
47244
47723
  "9": [0, 0]
47245
47724
  },
47246
47725
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
47247
- hash: "d1ecc3936dc48fb7362ad34ab9e6e02e86c5ff20"
47726
+ hash: "caddab36f5d99d8486ee83ca1f16c9afcc3b5825"
47248
47727
  };
47249
47728
  var coverage = global[gcv] || (global[gcv] = {});
47250
47729
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -47380,12 +47859,12 @@ var validateDateField = function validateDateField(_ref6) {
47380
47859
  var label = _ref6.label,
47381
47860
  isRequired = _ref6.isRequired;
47382
47861
  cov_1y9t6ere98().f[7]++;
47383
- var schema = (cov_1y9t6ere98().s[35]++, yup__namespace.date().typeError(getInvalidTypeError(label, "date")));
47862
+ var schema = (cov_1y9t6ere98().s[35]++, yup__namespace.date().typeError("").nullable());
47384
47863
  cov_1y9t6ere98().s[36]++;
47385
47864
  if (isRequired) {
47386
47865
  cov_1y9t6ere98().b[8][0]++;
47387
47866
  cov_1y9t6ere98().s[37]++;
47388
- schema = schema.required(getRequiredFieldError(label));
47867
+ schema = yup__namespace.date().typeError(getInvalidTypeError(label, "date")).required(getRequiredFieldError(label));
47389
47868
  } else {
47390
47869
  cov_1y9t6ere98().b[8][1]++;
47391
47870
  }
@@ -65290,7 +65769,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
65290
65769
 
65291
65770
  function cov_29xlle89ll() {
65292
65771
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
65293
- var hash = "f309c9df1c79dbf4de7b84c18c2f39eed53b297f";
65772
+ var hash = "4cf87e1b1fcaee8e7e2e1f269b349130d14d288a";
65294
65773
  var global = new Function("return this")();
65295
65774
  var gcv = "__coverage__";
65296
65775
  var coverageData = {
@@ -65636,7 +66115,7 @@ function cov_29xlle89ll() {
65636
66115
  },
65637
66116
  end: {
65638
66117
  line: 49,
65639
- column: 63
66118
+ column: 72
65640
66119
  }
65641
66120
  },
65642
66121
  type: "cond-expr",
@@ -65647,16 +66126,49 @@ function cov_29xlle89ll() {
65647
66126
  },
65648
66127
  end: {
65649
66128
  line: 49,
65650
- column: 55
66129
+ column: 64
65651
66130
  }
65652
66131
  }, {
65653
66132
  start: {
65654
66133
  line: 49,
65655
- column: 58
66134
+ column: 67
65656
66135
  },
65657
66136
  end: {
65658
66137
  line: 49,
65659
- column: 63
66138
+ column: 72
66139
+ }
66140
+ }],
66141
+ line: 49
66142
+ },
66143
+ "9": {
66144
+ loc: {
66145
+ start: {
66146
+ line: 49,
66147
+ column: 33
66148
+ },
66149
+ end: {
66150
+ line: 49,
66151
+ column: 64
66152
+ }
66153
+ },
66154
+ type: "binary-expr",
66155
+ locations: [{
66156
+ start: {
66157
+ line: 49,
66158
+ column: 33
66159
+ },
66160
+ end: {
66161
+ line: 49,
66162
+ column: 38
66163
+ }
66164
+ }, {
66165
+ start: {
66166
+ line: 49,
66167
+ column: 42
66168
+ },
66169
+ end: {
66170
+ line: 49,
66171
+ column: 64
65660
66172
  }
65661
66173
  }],
65662
66174
  line: 49
@@ -65684,10 +66196,11 @@ function cov_29xlle89ll() {
65684
66196
  "5": [0],
65685
66197
  "6": [0, 0],
65686
66198
  "7": [0, 0],
65687
- "8": [0, 0]
66199
+ "8": [0, 0],
66200
+ "9": [0, 0]
65688
66201
  },
65689
66202
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65690
- hash: "f309c9df1c79dbf4de7b84c18c2f39eed53b297f"
66203
+ hash: "4cf87e1b1fcaee8e7e2e1f269b349130d14d288a"
65691
66204
  };
65692
66205
  var coverage = global[gcv] || (global[gcv] = {});
65693
66206
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65757,7 +66270,7 @@ var Submission = function Submission(_ref) {
65757
66270
  weight: "semibold"
65758
66271
  }, answerProps), /*#__PURE__*/React__default["default"].createElement(_default, {
65759
66272
  componentDecorator: linkifyDecorator
65760
- }, kind === "date" ? (cov_29xlle89ll().b[8][0]++, utils.dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
66273
+ }, kind === "date" ? (cov_29xlle89ll().b[8][0]++, (cov_29xlle89ll().b[9][0]++, value) && (cov_29xlle89ll().b[9][1]++, utils.dateFormat.date(value))) : (cov_29xlle89ll().b[8][1]++, value))));
65761
66274
  }));
65762
66275
  };
65763
66276