@bigbinary/neeto-form-frontend 1.0.26 → 1.0.28

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.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as React$2 from 'react';
2
2
  import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState, useCallback as useCallback$1, createContext, createElement, Fragment, forwardRef, Component } from 'react';
3
3
  import { useField, useFormikContext, FieldArray, Form as Form$1, Formik, Field } from 'formik';
4
+ import { noop as noop$4, findBy, isPresent, findById, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
4
5
  import PageLoader from 'neetomolecules/PageLoader';
5
6
  import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$1 } from '@bigbinary/neetoui';
6
7
  import { assoc, prop, isEmpty, reject, omit, insert, compose as compose$1, trim as trim$1, either, isNil, values as values$1, equals, not, times } from 'ramda';
7
8
  import ReactDOM, { unstable_batchedUpdates as unstable_batchedUpdates$1, createPortal } from 'react-dom';
8
9
  import axios from 'axios';
9
10
  import { Input as Input$2, Textarea as Textarea$1, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
10
- import { noop as noop$4, findBy, isPresent, findById, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
11
11
  import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
12
12
  import { create as create$1 } from 'zustand';
13
13
  import classnames from 'classnames';
@@ -27382,7 +27382,7 @@ var Editor = function Editor(_ref) {
27382
27382
 
27383
27383
  function cov_2j8tlu2ul5() {
27384
27384
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
27385
- var hash = "cf06aa225404e0ebe444d6f1219d393c9ffc9417";
27385
+ var hash = "66ba5b083c318d90b5ba09aa05088ee51337bf74";
27386
27386
  var global = new Function("return this")();
27387
27387
  var gcv = "__coverage__";
27388
27388
  var coverageData = {
@@ -27424,27 +27424,27 @@ function cov_2j8tlu2ul5() {
27424
27424
  column: 30
27425
27425
  },
27426
27426
  end: {
27427
- line: 177,
27427
+ line: 190,
27428
27428
  column: 1
27429
27429
  }
27430
27430
  },
27431
27431
  "4": {
27432
27432
  start: {
27433
- line: 180,
27433
+ line: 193,
27434
27434
  column: 38
27435
27435
  },
27436
27436
  end: {
27437
- line: 183,
27437
+ line: 196,
27438
27438
  column: 1
27439
27439
  }
27440
27440
  },
27441
27441
  "5": {
27442
27442
  start: {
27443
- line: 185,
27443
+ line: 198,
27444
27444
  column: 29
27445
27445
  },
27446
27446
  end: {
27447
- line: 185,
27447
+ line: 198,
27448
27448
  column: 62
27449
27449
  }
27450
27450
  }
@@ -27462,7 +27462,7 @@ function cov_2j8tlu2ul5() {
27462
27462
  f: {},
27463
27463
  b: {},
27464
27464
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27465
- hash: "cf06aa225404e0ebe444d6f1219d393c9ffc9417"
27465
+ hash: "66ba5b083c318d90b5ba09aa05088ee51337bf74"
27466
27466
  };
27467
27467
  var coverage = global[gcv] || (global[gcv] = {});
27468
27468
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27500,7 +27500,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27500
27500
  component: Email,
27501
27501
  defaults: {
27502
27502
  label: ""
27503
- }
27503
+ },
27504
+ metadata: {}
27504
27505
  }, {
27505
27506
  type: "phone",
27506
27507
  label: instance.t("fields.pif"),
@@ -27510,7 +27511,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27510
27511
  component: Phone,
27511
27512
  defaults: {
27512
27513
  label: ""
27513
- }
27514
+ },
27515
+ metadata: {}
27514
27516
  }, {
27515
27517
  type: "name",
27516
27518
  label: instance.t("fields.nif"),
@@ -27520,7 +27522,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27520
27522
  component: ShortText,
27521
27523
  defaults: {
27522
27524
  label: ""
27523
- }
27525
+ },
27526
+ metadata: {}
27524
27527
  }, {
27525
27528
  type: "text",
27526
27529
  label: instance.t("fields.tif"),
@@ -27530,7 +27533,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27530
27533
  component: ShortText,
27531
27534
  defaults: {
27532
27535
  label: ""
27533
- }
27536
+ },
27537
+ metadata: {}
27534
27538
  }, {
27535
27539
  type: "question",
27536
27540
  label: instance.t("fields.qif"),
@@ -27539,7 +27543,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27539
27543
  component: LongText,
27540
27544
  defaults: {
27541
27545
  label: ""
27542
- }
27546
+ },
27547
+ metadata: {}
27543
27548
  }, {
27544
27549
  type: "textarea",
27545
27550
  label: instance.t("fields.def"),
@@ -27548,7 +27553,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27548
27553
  component: Editor,
27549
27554
  defaults: {
27550
27555
  label: ""
27551
- }
27556
+ },
27557
+ metadata: {}
27552
27558
  }, {
27553
27559
  type: "checkbox",
27554
27560
  label: instance.t("fields.mcf"),
@@ -27561,7 +27567,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27561
27567
  optionsAttributes: [{
27562
27568
  label: ""
27563
27569
  }]
27564
- }
27570
+ },
27571
+ metadata: {}
27565
27572
  }, {
27566
27573
  type: "radio",
27567
27574
  label: instance.t("fields.scf"),
@@ -27574,7 +27581,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27574
27581
  optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27575
27582
  label: ""
27576
27583
  })
27577
- }
27584
+ },
27585
+ metadata: {}
27578
27586
  }, {
27579
27587
  type: "dropdown",
27580
27588
  label: instance.t("fields.drf"),
@@ -27587,7 +27595,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27587
27595
  optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27588
27596
  label: ""
27589
27597
  })
27590
- }
27598
+ },
27599
+ metadata: {}
27591
27600
  }, {
27592
27601
  type: "star_rating",
27593
27602
  label: instance.t("fields.rif"),
@@ -27599,7 +27608,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27599
27608
  isRequired: true,
27600
27609
  count: 5,
27601
27610
  shape: "star"
27602
- }
27611
+ },
27612
+ metadata: {}
27603
27613
  }, {
27604
27614
  type: "rating",
27605
27615
  label: instance.t("fields.fbf"),
@@ -27612,7 +27622,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27612
27622
  highestRatingLabel: "",
27613
27623
  averageRatingLabel: "",
27614
27624
  lowestRatingLabel: ""
27615
- }
27625
+ },
27626
+ metadata: {}
27616
27627
  }, {
27617
27628
  type: "termsandcondition",
27618
27629
  label: instance.t("fields.tcf"),
@@ -27624,7 +27635,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27624
27635
  privacyPolicyLink: "",
27625
27636
  isRequired: true,
27626
27637
  label: instance.t("common.agreeTermsAndConditions")
27627
- }
27638
+ },
27639
+ metadata: {}
27628
27640
  }, {
27629
27641
  type: "date",
27630
27642
  label: instance.t("fields.date"),
@@ -27634,7 +27646,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27634
27646
  defaults: {
27635
27647
  label: "",
27636
27648
  isRequired: true
27637
- }
27649
+ },
27650
+ metadata: {}
27638
27651
  }]);
27639
27652
 
27640
27653
  // To show the question type as label in accordion
@@ -29033,7 +29046,7 @@ v35('v5', 0x50, sha1);
29033
29046
 
29034
29047
  function cov_1ia73x4fw3() {
29035
29048
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/utils.js";
29036
- var hash = "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5";
29049
+ var hash = "a09f4f3f281a68c5219aa1982a6d83142f7ecb49";
29037
29050
  var global = new Function("return this")();
29038
29051
  var gcv = "__coverage__";
29039
29052
  var coverageData = {
@@ -29115,167 +29128,167 @@ function cov_1ia73x4fw3() {
29115
29128
  column: 31
29116
29129
  },
29117
29130
  end: {
29118
- line: 27,
29131
+ line: 28,
29119
29132
  column: 2
29120
29133
  }
29121
29134
  },
29122
29135
  "8": {
29123
29136
  start: {
29124
29137
  line: 22,
29125
- column: 68
29138
+ column: 78
29126
29139
  },
29127
29140
  end: {
29128
- line: 27,
29141
+ line: 28,
29129
29142
  column: 1
29130
29143
  }
29131
29144
  },
29132
29145
  "9": {
29133
29146
  start: {
29134
- line: 29,
29147
+ line: 30,
29135
29148
  column: 34
29136
29149
  },
29137
29150
  end: {
29138
- line: 40,
29151
+ line: 41,
29139
29152
  column: 2
29140
29153
  }
29141
29154
  },
29142
29155
  "10": {
29143
29156
  start: {
29144
- line: 34,
29157
+ line: 35,
29145
29158
  column: 7
29146
29159
  },
29147
29160
  end: {
29148
- line: 40,
29161
+ line: 41,
29149
29162
  column: 1
29150
29163
  }
29151
29164
  },
29152
29165
  "11": {
29153
29166
  start: {
29154
- line: 42,
29167
+ line: 43,
29155
29168
  column: 41
29156
29169
  },
29157
29170
  end: {
29158
- line: 59,
29171
+ line: 60,
29159
29172
  column: 1
29160
29173
  }
29161
29174
  },
29162
29175
  "12": {
29163
29176
  start: {
29164
- line: 46,
29177
+ line: 47,
29165
29178
  column: 2
29166
29179
  },
29167
29180
  end: {
29168
- line: 46,
29181
+ line: 47,
29169
29182
  column: 56
29170
29183
  }
29171
29184
  },
29172
29185
  "13": {
29173
29186
  start: {
29174
- line: 46,
29187
+ line: 47,
29175
29188
  column: 32
29176
29189
  },
29177
29190
  end: {
29178
- line: 46,
29191
+ line: 47,
29179
29192
  column: 56
29180
29193
  }
29181
29194
  },
29182
29195
  "14": {
29183
29196
  start: {
29184
- line: 48,
29197
+ line: 49,
29185
29198
  column: 24
29186
29199
  },
29187
29200
  end: {
29188
- line: 56,
29201
+ line: 57,
29189
29202
  column: 22
29190
29203
  }
29191
29204
  },
29192
29205
  "15": {
29193
29206
  start: {
29194
- line: 49,
29207
+ line: 50,
29195
29208
  column: 27
29196
29209
  },
29197
29210
  end: {
29198
- line: 49,
29211
+ line: 50,
29199
29212
  column: 42
29200
29213
  }
29201
29214
  },
29202
29215
  "16": {
29203
29216
  start: {
29204
- line: 50,
29217
+ line: 51,
29205
29218
  column: 32
29206
29219
  },
29207
29220
  end: {
29208
- line: 53,
29221
+ line: 54,
29209
29222
  column: 5
29210
29223
  }
29211
29224
  },
29212
29225
  "17": {
29213
29226
  start: {
29214
- line: 52,
29227
+ line: 53,
29215
29228
  column: 8
29216
29229
  },
29217
29230
  end: {
29218
- line: 52,
29231
+ line: 53,
29219
29232
  column: 77
29220
29233
  }
29221
29234
  },
29222
29235
  "18": {
29223
29236
  start: {
29224
- line: 55,
29237
+ line: 56,
29225
29238
  column: 4
29226
29239
  },
29227
29240
  end: {
29228
- line: 55,
29241
+ line: 56,
29229
29242
  column: 49
29230
29243
  }
29231
29244
  },
29232
29245
  "19": {
29233
29246
  start: {
29234
- line: 58,
29247
+ line: 59,
29235
29248
  column: 2
29236
29249
  },
29237
29250
  end: {
29238
- line: 58,
29251
+ line: 59,
29239
29252
  column: 23
29240
29253
  }
29241
29254
  },
29242
29255
  "20": {
29243
29256
  start: {
29244
- line: 61,
29257
+ line: 62,
29245
29258
  column: 26
29246
29259
  },
29247
29260
  end: {
29248
- line: 67,
29261
+ line: 68,
29249
29262
  column: 1
29250
29263
  }
29251
29264
  },
29252
29265
  "21": {
29253
29266
  start: {
29254
- line: 62,
29267
+ line: 63,
29255
29268
  column: 2
29256
29269
  },
29257
29270
  end: {
29258
- line: 64,
29271
+ line: 65,
29259
29272
  column: 3
29260
29273
  }
29261
29274
  },
29262
29275
  "22": {
29263
29276
  start: {
29264
- line: 63,
29277
+ line: 64,
29265
29278
  column: 4
29266
29279
  },
29267
29280
  end: {
29268
- line: 63,
29281
+ line: 64,
29269
29282
  column: 38
29270
29283
  }
29271
29284
  },
29272
29285
  "23": {
29273
29286
  start: {
29274
- line: 66,
29287
+ line: 67,
29275
29288
  column: 2
29276
29289
  },
29277
29290
  end: {
29278
- line: 66,
29291
+ line: 67,
29279
29292
  column: 15
29280
29293
  }
29281
29294
  }
@@ -29344,10 +29357,10 @@ function cov_1ia73x4fw3() {
29344
29357
  loc: {
29345
29358
  start: {
29346
29359
  line: 22,
29347
- column: 68
29360
+ column: 78
29348
29361
  },
29349
29362
  end: {
29350
- line: 27,
29363
+ line: 28,
29351
29364
  column: 1
29352
29365
  }
29353
29366
  },
@@ -29357,121 +29370,121 @@ function cov_1ia73x4fw3() {
29357
29370
  name: "(anonymous_3)",
29358
29371
  decl: {
29359
29372
  start: {
29360
- line: 29,
29373
+ line: 30,
29361
29374
  column: 34
29362
29375
  },
29363
29376
  end: {
29364
- line: 29,
29377
+ line: 30,
29365
29378
  column: 35
29366
29379
  }
29367
29380
  },
29368
29381
  loc: {
29369
29382
  start: {
29370
- line: 34,
29383
+ line: 35,
29371
29384
  column: 7
29372
29385
  },
29373
29386
  end: {
29374
- line: 40,
29387
+ line: 41,
29375
29388
  column: 1
29376
29389
  }
29377
29390
  },
29378
- line: 34
29391
+ line: 35
29379
29392
  },
29380
29393
  "4": {
29381
29394
  name: "(anonymous_4)",
29382
29395
  decl: {
29383
29396
  start: {
29384
- line: 42,
29397
+ line: 43,
29385
29398
  column: 41
29386
29399
  },
29387
29400
  end: {
29388
- line: 42,
29401
+ line: 43,
29389
29402
  column: 42
29390
29403
  }
29391
29404
  },
29392
29405
  loc: {
29393
29406
  start: {
29394
- line: 45,
29407
+ line: 46,
29395
29408
  column: 5
29396
29409
  },
29397
29410
  end: {
29398
- line: 59,
29411
+ line: 60,
29399
29412
  column: 1
29400
29413
  }
29401
29414
  },
29402
- line: 45
29415
+ line: 46
29403
29416
  },
29404
29417
  "5": {
29405
29418
  name: "(anonymous_5)",
29406
29419
  decl: {
29407
29420
  start: {
29408
- line: 48,
29421
+ line: 49,
29409
29422
  column: 31
29410
29423
  },
29411
29424
  end: {
29412
- line: 48,
29425
+ line: 49,
29413
29426
  column: 32
29414
29427
  }
29415
29428
  },
29416
29429
  loc: {
29417
29430
  start: {
29418
- line: 48,
29431
+ line: 49,
29419
29432
  column: 39
29420
29433
  },
29421
29434
  end: {
29422
- line: 56,
29435
+ line: 57,
29423
29436
  column: 3
29424
29437
  }
29425
29438
  },
29426
- line: 48
29439
+ line: 49
29427
29440
  },
29428
29441
  "6": {
29429
29442
  name: "(anonymous_6)",
29430
29443
  decl: {
29431
29444
  start: {
29432
- line: 51,
29445
+ line: 52,
29433
29446
  column: 6
29434
29447
  },
29435
29448
  end: {
29436
- line: 51,
29449
+ line: 52,
29437
29450
  column: 7
29438
29451
  }
29439
29452
  },
29440
29453
  loc: {
29441
29454
  start: {
29442
- line: 52,
29455
+ line: 53,
29443
29456
  column: 8
29444
29457
  },
29445
29458
  end: {
29446
- line: 52,
29459
+ line: 53,
29447
29460
  column: 77
29448
29461
  }
29449
29462
  },
29450
- line: 52
29463
+ line: 53
29451
29464
  },
29452
29465
  "7": {
29453
29466
  name: "(anonymous_7)",
29454
29467
  decl: {
29455
29468
  start: {
29456
- line: 61,
29469
+ line: 62,
29457
29470
  column: 26
29458
29471
  },
29459
29472
  end: {
29460
- line: 61,
29473
+ line: 62,
29461
29474
  column: 27
29462
29475
  }
29463
29476
  },
29464
29477
  loc: {
29465
29478
  start: {
29466
- line: 61,
29479
+ line: 62,
29467
29480
  column: 35
29468
29481
  },
29469
29482
  end: {
29470
- line: 67,
29483
+ line: 68,
29471
29484
  column: 1
29472
29485
  }
29473
29486
  },
29474
- line: 61
29487
+ line: 62
29475
29488
  }
29476
29489
  },
29477
29490
  branchMap: {
@@ -29544,79 +29557,79 @@ function cov_1ia73x4fw3() {
29544
29557
  "2": {
29545
29558
  loc: {
29546
29559
  start: {
29547
- line: 38,
29560
+ line: 39,
29548
29561
  column: 21
29549
29562
  },
29550
29563
  end: {
29551
- line: 38,
29564
+ line: 39,
29552
29565
  column: 77
29553
29566
  }
29554
29567
  },
29555
29568
  type: "binary-expr",
29556
29569
  locations: [{
29557
29570
  start: {
29558
- line: 38,
29571
+ line: 39,
29559
29572
  column: 21
29560
29573
  },
29561
29574
  end: {
29562
- line: 38,
29575
+ line: 39,
29563
29576
  column: 38
29564
29577
  }
29565
29578
  }, {
29566
29579
  start: {
29567
- line: 38,
29580
+ line: 39,
29568
29581
  column: 42
29569
29582
  },
29570
29583
  end: {
29571
- line: 38,
29584
+ line: 39,
29572
29585
  column: 77
29573
29586
  }
29574
29587
  }],
29575
- line: 38
29588
+ line: 39
29576
29589
  },
29577
29590
  "3": {
29578
29591
  loc: {
29579
29592
  start: {
29580
- line: 44,
29593
+ line: 45,
29581
29594
  column: 2
29582
29595
  },
29583
29596
  end: {
29584
- line: 44,
29597
+ line: 45,
29585
29598
  column: 22
29586
29599
  }
29587
29600
  },
29588
29601
  type: "default-arg",
29589
29602
  locations: [{
29590
29603
  start: {
29591
- line: 44,
29604
+ line: 45,
29592
29605
  column: 20
29593
29606
  },
29594
29607
  end: {
29595
- line: 44,
29608
+ line: 45,
29596
29609
  column: 22
29597
29610
  }
29598
29611
  }],
29599
- line: 44
29612
+ line: 45
29600
29613
  },
29601
29614
  "4": {
29602
29615
  loc: {
29603
29616
  start: {
29604
- line: 46,
29617
+ line: 47,
29605
29618
  column: 2
29606
29619
  },
29607
29620
  end: {
29608
- line: 46,
29621
+ line: 47,
29609
29622
  column: 56
29610
29623
  }
29611
29624
  },
29612
29625
  type: "if",
29613
29626
  locations: [{
29614
29627
  start: {
29615
- line: 46,
29628
+ line: 47,
29616
29629
  column: 2
29617
29630
  },
29618
29631
  end: {
29619
- line: 46,
29632
+ line: 47,
29620
29633
  column: 56
29621
29634
  }
29622
29635
  }, {
@@ -29629,93 +29642,93 @@ function cov_1ia73x4fw3() {
29629
29642
  column: undefined
29630
29643
  }
29631
29644
  }],
29632
- line: 46
29645
+ line: 47
29633
29646
  },
29634
29647
  "5": {
29635
29648
  loc: {
29636
29649
  start: {
29637
- line: 52,
29650
+ line: 53,
29638
29651
  column: 8
29639
29652
  },
29640
29653
  end: {
29641
- line: 52,
29654
+ line: 53,
29642
29655
  column: 77
29643
29656
  }
29644
29657
  },
29645
29658
  type: "binary-expr",
29646
29659
  locations: [{
29647
29660
  start: {
29648
- line: 52,
29661
+ line: 53,
29649
29662
  column: 8
29650
29663
  },
29651
29664
  end: {
29652
- line: 52,
29665
+ line: 53,
29653
29666
  column: 41
29654
29667
  }
29655
29668
  }, {
29656
29669
  start: {
29657
- line: 52,
29670
+ line: 53,
29658
29671
  column: 45
29659
29672
  },
29660
29673
  end: {
29661
- line: 52,
29674
+ line: 53,
29662
29675
  column: 77
29663
29676
  }
29664
29677
  }],
29665
- line: 52
29678
+ line: 53
29666
29679
  },
29667
29680
  "6": {
29668
29681
  loc: {
29669
29682
  start: {
29670
- line: 55,
29683
+ line: 56,
29671
29684
  column: 11
29672
29685
  },
29673
29686
  end: {
29674
- line: 55,
29687
+ line: 56,
29675
29688
  column: 48
29676
29689
  }
29677
29690
  },
29678
29691
  type: "binary-expr",
29679
29692
  locations: [{
29680
29693
  start: {
29681
- line: 55,
29694
+ line: 56,
29682
29695
  column: 11
29683
29696
  },
29684
29697
  end: {
29685
- line: 55,
29698
+ line: 56,
29686
29699
  column: 25
29687
29700
  }
29688
29701
  }, {
29689
29702
  start: {
29690
- line: 55,
29703
+ line: 56,
29691
29704
  column: 29
29692
29705
  },
29693
29706
  end: {
29694
- line: 55,
29707
+ line: 56,
29695
29708
  column: 48
29696
29709
  }
29697
29710
  }],
29698
- line: 55
29711
+ line: 56
29699
29712
  },
29700
29713
  "7": {
29701
29714
  loc: {
29702
29715
  start: {
29703
- line: 62,
29716
+ line: 63,
29704
29717
  column: 2
29705
29718
  },
29706
29719
  end: {
29707
- line: 64,
29720
+ line: 65,
29708
29721
  column: 3
29709
29722
  }
29710
29723
  },
29711
29724
  type: "if",
29712
29725
  locations: [{
29713
29726
  start: {
29714
- line: 62,
29727
+ line: 63,
29715
29728
  column: 2
29716
29729
  },
29717
29730
  end: {
29718
- line: 64,
29731
+ line: 65,
29719
29732
  column: 3
29720
29733
  }
29721
29734
  }, {
@@ -29728,40 +29741,40 @@ function cov_1ia73x4fw3() {
29728
29741
  column: undefined
29729
29742
  }
29730
29743
  }],
29731
- line: 62
29744
+ line: 63
29732
29745
  },
29733
29746
  "8": {
29734
29747
  loc: {
29735
29748
  start: {
29736
- line: 62,
29749
+ line: 63,
29737
29750
  column: 6
29738
29751
  },
29739
29752
  end: {
29740
- line: 62,
29753
+ line: 63,
29741
29754
  column: 32
29742
29755
  }
29743
29756
  },
29744
29757
  type: "binary-expr",
29745
29758
  locations: [{
29746
29759
  start: {
29747
- line: 62,
29760
+ line: 63,
29748
29761
  column: 6
29749
29762
  },
29750
29763
  end: {
29751
- line: 62,
29764
+ line: 63,
29752
29765
  column: 11
29753
29766
  }
29754
29767
  }, {
29755
29768
  start: {
29756
- line: 62,
29769
+ line: 63,
29757
29770
  column: 15
29758
29771
  },
29759
29772
  end: {
29760
- line: 62,
29773
+ line: 63,
29761
29774
  column: 32
29762
29775
  }
29763
29776
  }],
29764
- line: 62
29777
+ line: 63
29765
29778
  }
29766
29779
  },
29767
29780
  s: {
@@ -29812,7 +29825,7 @@ function cov_1ia73x4fw3() {
29812
29825
  "8": [0, 0]
29813
29826
  },
29814
29827
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
29815
- hash: "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5"
29828
+ hash: "a09f4f3f281a68c5219aa1982a6d83142f7ecb49"
29816
29829
  };
29817
29830
  var coverage = global[gcv] || (global[gcv] = {});
29818
29831
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -29859,10 +29872,12 @@ var handleFieldDragEnd = function handleFieldDragEnd(_ref) {
29859
29872
  cov_1ia73x4fw3().s[7]++;
29860
29873
  var createFieldData = function createFieldData(_ref2, isRequired) {
29861
29874
  var defaults = _ref2.defaults,
29862
- type = _ref2.type;
29875
+ type = _ref2.type,
29876
+ metadata = _ref2.metadata;
29863
29877
  cov_1ia73x4fw3().f[2]++;
29864
29878
  cov_1ia73x4fw3().s[8]++;
29865
29879
  return _objectSpread$a(_objectSpread$a({}, defaults), {}, {
29880
+ metadata: metadata,
29866
29881
  isRequired: isRequired,
29867
29882
  kind: type,
29868
29883
  nodeId: v4()
@@ -31964,7 +31979,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
31964
31979
 
31965
31980
  function cov_2nbnnlcv5p() {
31966
31981
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
31967
- var hash = "bceb825b432a5cf1a0b5a35d5cba61cb3a13489b";
31982
+ var hash = "b88e0689ba4e946eb5dc0499c0e2d153481098de";
31968
31983
  var global = new Function("return this")();
31969
31984
  var gcv = "__coverage__";
31970
31985
  var coverageData = {
@@ -31972,201 +31987,201 @@ function cov_2nbnnlcv5p() {
31972
31987
  statementMap: {
31973
31988
  "0": {
31974
31989
  start: {
31975
- line: 16,
31990
+ line: 17,
31976
31991
  column: 18
31977
31992
  },
31978
31993
  end: {
31979
- line: 136,
31994
+ line: 140,
31980
31995
  column: 1
31981
31996
  }
31982
31997
  },
31983
31998
  "1": {
31984
31999
  start: {
31985
- line: 28,
32000
+ line: 30,
31986
32001
  column: 54
31987
32002
  },
31988
32003
  end: {
31989
- line: 28,
32004
+ line: 30,
31990
32005
  column: 69
31991
32006
  }
31992
32007
  },
31993
32008
  "2": {
31994
32009
  start: {
31995
- line: 30,
32010
+ line: 32,
31996
32011
  column: 22
31997
32012
  },
31998
32013
  end: {
31999
- line: 30,
32014
+ line: 32,
32000
32015
  column: 38
32001
32016
  }
32002
32017
  },
32003
32018
  "3": {
32004
32019
  start: {
32005
- line: 32,
32020
+ line: 34,
32006
32021
  column: 43
32007
32022
  },
32008
32023
  end: {
32009
- line: 37,
32024
+ line: 39,
32010
32025
  column: 4
32011
32026
  }
32012
32027
  },
32013
32028
  "4": {
32014
32029
  start: {
32015
- line: 34,
32030
+ line: 36,
32016
32031
  column: 22
32017
32032
  },
32018
32033
  end: {
32019
- line: 34,
32034
+ line: 36,
32020
32035
  column: 41
32021
32036
  }
32022
32037
  },
32023
32038
  "5": {
32024
32039
  start: {
32025
- line: 36,
32040
+ line: 38,
32026
32041
  column: 6
32027
32042
  },
32028
32043
  end: {
32029
- line: 36,
32044
+ line: 38,
32030
32045
  column: 28
32031
32046
  }
32032
32047
  },
32033
32048
  "6": {
32034
32049
  start: {
32035
- line: 45,
32050
+ line: 47,
32036
32051
  column: 6
32037
32052
  },
32038
32053
  end: {
32039
- line: 63,
32054
+ line: 65,
32040
32055
  column: 4
32041
32056
  }
32042
32057
  },
32043
32058
  "7": {
32044
32059
  start: {
32045
- line: 47,
32060
+ line: 49,
32046
32061
  column: 23
32047
32062
  },
32048
32063
  end: {
32049
- line: 47,
32064
+ line: 49,
32050
32065
  column: 39
32051
32066
  }
32052
32067
  },
32053
32068
  "8": {
32054
32069
  start: {
32055
- line: 65,
32070
+ line: 67,
32056
32071
  column: 23
32057
32072
  },
32058
32073
  end: {
32059
- line: 72,
32074
+ line: 74,
32060
32075
  column: 6
32061
32076
  }
32062
32077
  },
32063
32078
  "9": {
32064
32079
  start: {
32065
- line: 66,
32080
+ line: 68,
32066
32081
  column: 4
32067
32082
  },
32068
32083
  end: {
32069
- line: 72,
32084
+ line: 74,
32070
32085
  column: 6
32071
32086
  }
32072
32087
  },
32073
32088
  "10": {
32074
32089
  start: {
32075
- line: 74,
32090
+ line: 76,
32076
32091
  column: 24
32077
32092
  },
32078
32093
  end: {
32079
- line: 86,
32094
+ line: 88,
32080
32095
  column: 3
32081
32096
  }
32082
32097
  },
32083
32098
  "11": {
32084
32099
  start: {
32085
- line: 75,
32100
+ line: 77,
32086
32101
  column: 32
32087
32102
  },
32088
32103
  end: {
32089
- line: 78,
32104
+ line: 80,
32090
32105
  column: 6
32091
32106
  }
32092
32107
  },
32093
32108
  "12": {
32094
32109
  start: {
32095
- line: 80,
32110
+ line: 82,
32096
32111
  column: 4
32097
32112
  },
32098
32113
  end: {
32099
- line: 85,
32114
+ line: 87,
32100
32115
  column: 5
32101
32116
  }
32102
32117
  },
32103
32118
  "13": {
32104
32119
  start: {
32105
- line: 81,
32120
+ line: 83,
32106
32121
  column: 6
32107
32122
  },
32108
32123
  end: {
32109
- line: 84,
32124
+ line: 86,
32110
32125
  column: 8
32111
32126
  }
32112
32127
  },
32113
32128
  "14": {
32114
32129
  start: {
32115
- line: 88,
32130
+ line: 90,
32116
32131
  column: 2
32117
32132
  },
32118
32133
  end: {
32119
- line: 94,
32134
+ line: 96,
32120
32135
  column: 3
32121
32136
  }
32122
32137
  },
32123
32138
  "15": {
32124
32139
  start: {
32125
- line: 89,
32140
+ line: 91,
32126
32141
  column: 4
32127
32142
  },
32128
32143
  end: {
32129
- line: 93,
32144
+ line: 95,
32130
32145
  column: 6
32131
32146
  }
32132
32147
  },
32133
32148
  "16": {
32134
32149
  start: {
32135
- line: 96,
32150
+ line: 98,
32136
32151
  column: 2
32137
32152
  },
32138
32153
  end: {
32139
- line: 135,
32154
+ line: 139,
32140
32155
  column: 4
32141
32156
  }
32142
32157
  },
32143
32158
  "17": {
32144
32159
  start: {
32145
- line: 109,
32160
+ line: 111,
32146
32161
  column: 10
32147
32162
  },
32148
32163
  end: {
32149
- line: 126,
32164
+ line: 130,
32150
32165
  column: 12
32151
32166
  }
32152
32167
  },
32153
32168
  "18": {
32154
32169
  start: {
32155
- line: 122,
32170
+ line: 126,
32156
32171
  column: 14
32157
32172
  },
32158
32173
  end: {
32159
- line: 124,
32174
+ line: 128,
32160
32175
  column: 15
32161
32176
  }
32162
32177
  },
32163
32178
  "19": {
32164
32179
  start: {
32165
- line: 123,
32180
+ line: 127,
32166
32181
  column: 16
32167
32182
  },
32168
32183
  end: {
32169
- line: 123,
32184
+ line: 127,
32170
32185
  column: 49
32171
32186
  }
32172
32187
  }
@@ -32176,359 +32191,383 @@ function cov_2nbnnlcv5p() {
32176
32191
  name: "(anonymous_0)",
32177
32192
  decl: {
32178
32193
  start: {
32179
- line: 16,
32194
+ line: 17,
32180
32195
  column: 18
32181
32196
  },
32182
32197
  end: {
32183
- line: 16,
32198
+ line: 17,
32184
32199
  column: 19
32185
32200
  }
32186
32201
  },
32187
32202
  loc: {
32188
32203
  start: {
32189
- line: 27,
32204
+ line: 29,
32190
32205
  column: 6
32191
32206
  },
32192
32207
  end: {
32193
- line: 136,
32208
+ line: 140,
32194
32209
  column: 1
32195
32210
  }
32196
32211
  },
32197
- line: 27
32212
+ line: 29
32198
32213
  },
32199
32214
  "1": {
32200
32215
  name: "(anonymous_1)",
32201
32216
  decl: {
32202
32217
  start: {
32203
- line: 34,
32218
+ line: 36,
32204
32219
  column: 13
32205
32220
  },
32206
32221
  end: {
32207
- line: 34,
32222
+ line: 36,
32208
32223
  column: 14
32209
32224
  }
32210
32225
  },
32211
32226
  loc: {
32212
32227
  start: {
32213
- line: 34,
32228
+ line: 36,
32214
32229
  column: 22
32215
32230
  },
32216
32231
  end: {
32217
- line: 34,
32232
+ line: 36,
32218
32233
  column: 41
32219
32234
  }
32220
32235
  },
32221
- line: 34
32236
+ line: 36
32222
32237
  },
32223
32238
  "2": {
32224
32239
  name: "(anonymous_2)",
32225
32240
  decl: {
32226
32241
  start: {
32227
- line: 35,
32242
+ line: 37,
32228
32243
  column: 15
32229
32244
  },
32230
32245
  end: {
32231
- line: 35,
32246
+ line: 37,
32232
32247
  column: 16
32233
32248
  }
32234
32249
  },
32235
32250
  loc: {
32236
32251
  start: {
32237
- line: 36,
32252
+ line: 38,
32238
32253
  column: 6
32239
32254
  },
32240
32255
  end: {
32241
- line: 36,
32256
+ line: 38,
32242
32257
  column: 28
32243
32258
  }
32244
32259
  },
32245
- line: 36
32260
+ line: 38
32246
32261
  },
32247
32262
  "3": {
32248
32263
  name: "(anonymous_3)",
32249
32264
  decl: {
32250
32265
  start: {
32251
- line: 47,
32266
+ line: 49,
32252
32267
  column: 15
32253
32268
  },
32254
32269
  end: {
32255
- line: 47,
32270
+ line: 49,
32256
32271
  column: 16
32257
32272
  }
32258
32273
  },
32259
32274
  loc: {
32260
32275
  start: {
32261
- line: 47,
32276
+ line: 49,
32262
32277
  column: 23
32263
32278
  },
32264
32279
  end: {
32265
- line: 47,
32280
+ line: 49,
32266
32281
  column: 39
32267
32282
  }
32268
32283
  },
32269
- line: 47
32284
+ line: 49
32270
32285
  },
32271
32286
  "4": {
32272
32287
  name: "(anonymous_4)",
32273
32288
  decl: {
32274
32289
  start: {
32275
- line: 65,
32290
+ line: 67,
32276
32291
  column: 23
32277
32292
  },
32278
32293
  end: {
32279
- line: 65,
32294
+ line: 67,
32280
32295
  column: 24
32281
32296
  }
32282
32297
  },
32283
32298
  loc: {
32284
32299
  start: {
32285
- line: 66,
32300
+ line: 68,
32286
32301
  column: 4
32287
32302
  },
32288
32303
  end: {
32289
- line: 72,
32304
+ line: 74,
32290
32305
  column: 6
32291
32306
  }
32292
32307
  },
32293
- line: 66
32308
+ line: 68
32294
32309
  },
32295
32310
  "5": {
32296
32311
  name: "(anonymous_5)",
32297
32312
  decl: {
32298
32313
  start: {
32299
- line: 74,
32314
+ line: 76,
32300
32315
  column: 24
32301
32316
  },
32302
32317
  end: {
32303
- line: 74,
32318
+ line: 76,
32304
32319
  column: 25
32305
32320
  }
32306
32321
  },
32307
32322
  loc: {
32308
32323
  start: {
32309
- line: 74,
32324
+ line: 76,
32310
32325
  column: 37
32311
32326
  },
32312
32327
  end: {
32313
- line: 86,
32328
+ line: 88,
32314
32329
  column: 3
32315
32330
  }
32316
32331
  },
32317
- line: 74
32332
+ line: 76
32318
32333
  },
32319
32334
  "6": {
32320
32335
  name: "(anonymous_6)",
32321
32336
  decl: {
32322
32337
  start: {
32323
- line: 108,
32338
+ line: 110,
32324
32339
  column: 9
32325
32340
  },
32326
32341
  end: {
32327
- line: 108,
32342
+ line: 110,
32328
32343
  column: 10
32329
32344
  }
32330
32345
  },
32331
32346
  loc: {
32332
32347
  start: {
32333
- line: 109,
32348
+ line: 111,
32334
32349
  column: 10
32335
32350
  },
32336
32351
  end: {
32337
- line: 126,
32352
+ line: 130,
32338
32353
  column: 12
32339
32354
  }
32340
32355
  },
32341
- line: 109
32356
+ line: 111
32342
32357
  },
32343
32358
  "7": {
32344
32359
  name: "(anonymous_7)",
32345
32360
  decl: {
32346
32361
  start: {
32347
- line: 121,
32362
+ line: 125,
32348
32363
  column: 22
32349
32364
  },
32350
32365
  end: {
32351
- line: 121,
32366
+ line: 125,
32352
32367
  column: 23
32353
32368
  }
32354
32369
  },
32355
32370
  loc: {
32356
32371
  start: {
32357
- line: 121,
32372
+ line: 125,
32358
32373
  column: 31
32359
32374
  },
32360
32375
  end: {
32361
- line: 125,
32376
+ line: 129,
32362
32377
  column: 13
32363
32378
  }
32364
32379
  },
32365
- line: 121
32380
+ line: 125
32366
32381
  }
32367
32382
  },
32368
32383
  branchMap: {
32369
32384
  "0": {
32370
32385
  loc: {
32371
32386
  start: {
32372
- line: 20,
32387
+ line: 21,
32373
32388
  column: 2
32374
32389
  },
32375
32390
  end: {
32376
- line: 20,
32391
+ line: 21,
32377
32392
  column: 31
32378
32393
  }
32379
32394
  },
32380
32395
  type: "default-arg",
32381
32396
  locations: [{
32382
32397
  start: {
32383
- line: 20,
32398
+ line: 21,
32384
32399
  column: 27
32385
32400
  },
32386
32401
  end: {
32387
- line: 20,
32402
+ line: 21,
32388
32403
  column: 31
32389
32404
  }
32390
32405
  }],
32391
- line: 20
32406
+ line: 21
32392
32407
  },
32393
32408
  "1": {
32394
32409
  loc: {
32395
32410
  start: {
32396
- line: 21,
32411
+ line: 22,
32397
32412
  column: 2
32398
32413
  },
32399
32414
  end: {
32400
- line: 21,
32415
+ line: 22,
32401
32416
  column: 25
32402
32417
  }
32403
32418
  },
32404
32419
  type: "default-arg",
32405
32420
  locations: [{
32406
32421
  start: {
32407
- line: 21,
32422
+ line: 22,
32408
32423
  column: 23
32409
32424
  },
32410
32425
  end: {
32411
- line: 21,
32426
+ line: 22,
32412
32427
  column: 25
32413
32428
  }
32414
32429
  }],
32415
- line: 21
32430
+ line: 22
32416
32431
  },
32417
32432
  "2": {
32418
32433
  loc: {
32419
32434
  start: {
32420
- line: 22,
32435
+ line: 23,
32421
32436
  column: 2
32422
32437
  },
32423
32438
  end: {
32424
- line: 22,
32439
+ line: 23,
32425
32440
  column: 21
32426
32441
  }
32427
32442
  },
32428
32443
  type: "default-arg",
32429
32444
  locations: [{
32430
32445
  start: {
32431
- line: 22,
32446
+ line: 23,
32432
32447
  column: 19
32433
32448
  },
32434
32449
  end: {
32435
- line: 22,
32450
+ line: 23,
32436
32451
  column: 21
32437
32452
  }
32438
32453
  }],
32439
- line: 22
32454
+ line: 23
32440
32455
  },
32441
32456
  "3": {
32442
32457
  loc: {
32443
32458
  start: {
32444
- line: 24,
32459
+ line: 25,
32445
32460
  column: 2
32446
32461
  },
32447
32462
  end: {
32448
- line: 24,
32463
+ line: 25,
32449
32464
  column: 24
32450
32465
  }
32451
32466
  },
32452
32467
  type: "default-arg",
32453
32468
  locations: [{
32454
32469
  start: {
32455
- line: 24,
32470
+ line: 25,
32456
32471
  column: 20
32457
32472
  },
32458
32473
  end: {
32459
- line: 24,
32474
+ line: 25,
32460
32475
  column: 24
32461
32476
  }
32462
32477
  }],
32463
- line: 24
32478
+ line: 25
32464
32479
  },
32465
32480
  "4": {
32466
32481
  loc: {
32467
32482
  start: {
32468
- line: 35,
32483
+ line: 28,
32484
+ column: 2
32485
+ },
32486
+ end: {
32487
+ line: 28,
32488
+ column: 20
32489
+ }
32490
+ },
32491
+ type: "default-arg",
32492
+ locations: [{
32493
+ start: {
32494
+ line: 28,
32469
32495
  column: 18
32470
32496
  },
32471
32497
  end: {
32472
- line: 35,
32498
+ line: 28,
32499
+ column: 20
32500
+ }
32501
+ }],
32502
+ line: 28
32503
+ },
32504
+ "5": {
32505
+ loc: {
32506
+ start: {
32507
+ line: 37,
32508
+ column: 18
32509
+ },
32510
+ end: {
32511
+ line: 37,
32473
32512
  column: 70
32474
32513
  }
32475
32514
  },
32476
32515
  type: "default-arg",
32477
32516
  locations: [{
32478
32517
  start: {
32479
- line: 35,
32518
+ line: 37,
32480
32519
  column: 27
32481
32520
  },
32482
32521
  end: {
32483
- line: 35,
32522
+ line: 37,
32484
32523
  column: 70
32485
32524
  }
32486
32525
  }],
32487
- line: 35
32526
+ line: 37
32488
32527
  },
32489
- "5": {
32528
+ "6": {
32490
32529
  loc: {
32491
32530
  start: {
32492
- line: 40,
32531
+ line: 42,
32493
32532
  column: 10
32494
32533
  },
32495
32534
  end: {
32496
- line: 43,
32535
+ line: 45,
32497
32536
  column: 5
32498
32537
  }
32499
32538
  },
32500
32539
  type: "default-arg",
32501
32540
  locations: [{
32502
32541
  start: {
32503
- line: 40,
32542
+ line: 42,
32504
32543
  column: 46
32505
32544
  },
32506
32545
  end: {
32507
- line: 43,
32546
+ line: 45,
32508
32547
  column: 5
32509
32548
  }
32510
32549
  }],
32511
- line: 40
32550
+ line: 42
32512
32551
  },
32513
- "6": {
32552
+ "7": {
32514
32553
  loc: {
32515
32554
  start: {
32516
- line: 80,
32555
+ line: 82,
32517
32556
  column: 4
32518
32557
  },
32519
32558
  end: {
32520
- line: 85,
32559
+ line: 87,
32521
32560
  column: 5
32522
32561
  }
32523
32562
  },
32524
32563
  type: "if",
32525
32564
  locations: [{
32526
32565
  start: {
32527
- line: 80,
32566
+ line: 82,
32528
32567
  column: 4
32529
32568
  },
32530
32569
  end: {
32531
- line: 85,
32570
+ line: 87,
32532
32571
  column: 5
32533
32572
  }
32534
32573
  }, {
@@ -32541,27 +32580,27 @@ function cov_2nbnnlcv5p() {
32541
32580
  column: undefined
32542
32581
  }
32543
32582
  }],
32544
- line: 80
32583
+ line: 82
32545
32584
  },
32546
- "7": {
32585
+ "8": {
32547
32586
  loc: {
32548
32587
  start: {
32549
- line: 88,
32588
+ line: 90,
32550
32589
  column: 2
32551
32590
  },
32552
32591
  end: {
32553
- line: 94,
32592
+ line: 96,
32554
32593
  column: 3
32555
32594
  }
32556
32595
  },
32557
32596
  type: "if",
32558
32597
  locations: [{
32559
32598
  start: {
32560
- line: 88,
32599
+ line: 90,
32561
32600
  column: 2
32562
32601
  },
32563
32602
  end: {
32564
- line: 94,
32603
+ line: 96,
32565
32604
  column: 3
32566
32605
  }
32567
32606
  }, {
@@ -32574,27 +32613,60 @@ function cov_2nbnnlcv5p() {
32574
32613
  column: undefined
32575
32614
  }
32576
32615
  }],
32577
- line: 88
32616
+ line: 90
32578
32617
  },
32579
- "8": {
32618
+ "9": {
32580
32619
  loc: {
32581
32620
  start: {
32582
32621
  line: 122,
32583
32622
  column: 14
32584
32623
  },
32585
32624
  end: {
32586
- line: 124,
32625
+ line: 122,
32626
+ column: 71
32627
+ }
32628
+ },
32629
+ type: "cond-expr",
32630
+ locations: [{
32631
+ start: {
32632
+ line: 122,
32633
+ column: 41
32634
+ },
32635
+ end: {
32636
+ line: 122,
32637
+ column: 54
32638
+ }
32639
+ }, {
32640
+ start: {
32641
+ line: 122,
32642
+ column: 57
32643
+ },
32644
+ end: {
32645
+ line: 122,
32646
+ column: 71
32647
+ }
32648
+ }],
32649
+ line: 122
32650
+ },
32651
+ "10": {
32652
+ loc: {
32653
+ start: {
32654
+ line: 126,
32655
+ column: 14
32656
+ },
32657
+ end: {
32658
+ line: 128,
32587
32659
  column: 15
32588
32660
  }
32589
32661
  },
32590
32662
  type: "if",
32591
32663
  locations: [{
32592
32664
  start: {
32593
- line: 122,
32665
+ line: 126,
32594
32666
  column: 14
32595
32667
  },
32596
32668
  end: {
32597
- line: 124,
32669
+ line: 128,
32598
32670
  column: 15
32599
32671
  }
32600
32672
  }, {
@@ -32607,40 +32679,40 @@ function cov_2nbnnlcv5p() {
32607
32679
  column: undefined
32608
32680
  }
32609
32681
  }],
32610
- line: 122
32682
+ line: 126
32611
32683
  },
32612
- "9": {
32684
+ "11": {
32613
32685
  loc: {
32614
32686
  start: {
32615
- line: 129,
32687
+ line: 133,
32616
32688
  column: 7
32617
32689
  },
32618
32690
  end: {
32619
- line: 133,
32691
+ line: 137,
32620
32692
  column: 7
32621
32693
  }
32622
32694
  },
32623
32695
  type: "binary-expr",
32624
32696
  locations: [{
32625
32697
  start: {
32626
- line: 129,
32698
+ line: 133,
32627
32699
  column: 7
32628
32700
  },
32629
32701
  end: {
32630
- line: 129,
32702
+ line: 133,
32631
32703
  column: 25
32632
32704
  }
32633
32705
  }, {
32634
32706
  start: {
32635
- line: 130,
32707
+ line: 134,
32636
32708
  column: 8
32637
32709
  },
32638
32710
  end: {
32639
- line: 132,
32711
+ line: 136,
32640
32712
  column: 14
32641
32713
  }
32642
32714
  }],
32643
- line: 129
32715
+ line: 133
32644
32716
  }
32645
32717
  },
32646
32718
  s: {
@@ -32682,13 +32754,15 @@ function cov_2nbnnlcv5p() {
32682
32754
  "3": [0],
32683
32755
  "4": [0],
32684
32756
  "5": [0],
32685
- "6": [0, 0],
32757
+ "6": [0],
32686
32758
  "7": [0, 0],
32687
32759
  "8": [0, 0],
32688
- "9": [0, 0]
32760
+ "9": [0, 0],
32761
+ "10": [0, 0],
32762
+ "11": [0, 0]
32689
32763
  },
32690
32764
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32691
- hash: "bceb825b432a5cf1a0b5a35d5cba61cb3a13489b"
32765
+ hash: "b88e0689ba4e946eb5dc0499c0e2d153481098de"
32692
32766
  };
32693
32767
  var coverage = global[gcv] || (global[gcv] = {});
32694
32768
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -32721,7 +32795,9 @@ var BuildForm = function BuildForm(_ref) {
32721
32795
  _ref$showActionBlock = _ref.showActionBlock,
32722
32796
  showActionBlock = _ref$showActionBlock === void 0 ? (cov_2nbnnlcv5p().b[3][0]++, true) : _ref$showActionBlock,
32723
32797
  submitButtonProps = _ref.submitButtonProps,
32724
- cancelButtonProps = _ref.cancelButtonProps;
32798
+ cancelButtonProps = _ref.cancelButtonProps,
32799
+ _ref$questionKinds = _ref.questionKinds,
32800
+ questionKinds = _ref$questionKinds === void 0 ? (cov_2nbnnlcv5p().b[4][0]++, []) : _ref$questionKinds;
32725
32801
  cov_2nbnnlcv5p().f[0]++;
32726
32802
  var _ref2 = (cov_2nbnnlcv5p().s[1]++, useState(false)),
32727
32803
  _ref3 = _slicedToArray$6(_ref2, 2),
@@ -32737,7 +32813,7 @@ var BuildForm = function BuildForm(_ref) {
32737
32813
  },
32738
32814
  onSuccess: function onSuccess(_ref5) {
32739
32815
  var _ref5$notice = _ref5.notice,
32740
- notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[4][0]++, "Questions have been updated successfully!") : _ref5$notice;
32816
+ notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, "Questions have been updated successfully!") : _ref5$notice;
32741
32817
  cov_2nbnnlcv5p().f[2]++;
32742
32818
  cov_2nbnnlcv5p().s[5]++;
32743
32819
  return Toastr.success(notice);
@@ -32765,7 +32841,7 @@ var BuildForm = function BuildForm(_ref) {
32765
32841
  }
32766
32842
  })),
32767
32843
  _ref6$data = _ref6.data,
32768
- _ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, {
32844
+ _ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[6][0]++, {
32769
32845
  title: "",
32770
32846
  questions: []
32771
32847
  }) : _ref6$data,
@@ -32790,22 +32866,22 @@ var BuildForm = function BuildForm(_ref) {
32790
32866
  dataUpdateCount = _ref7.dataUpdateCount;
32791
32867
  cov_2nbnnlcv5p().s[12]++;
32792
32868
  if (dataUpdateCount > 0) {
32793
- cov_2nbnnlcv5p().b[6][0]++;
32869
+ cov_2nbnnlcv5p().b[7][0]++;
32794
32870
  cov_2nbnnlcv5p().s[13]++;
32795
32871
  queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], assoc("questions", questions));
32796
32872
  } else {
32797
- cov_2nbnnlcv5p().b[6][1]++;
32873
+ cov_2nbnnlcv5p().b[7][1]++;
32798
32874
  }
32799
32875
  };
32800
32876
  cov_2nbnnlcv5p().s[14]++;
32801
32877
  if (isLoading) {
32802
- cov_2nbnnlcv5p().b[7][0]++;
32878
+ cov_2nbnnlcv5p().b[8][0]++;
32803
32879
  cov_2nbnnlcv5p().s[15]++;
32804
32880
  return /*#__PURE__*/React__default.createElement("div", {
32805
32881
  className: "flex h-full w-full items-center justify-center py-6"
32806
32882
  }, /*#__PURE__*/React__default.createElement(PageLoader, null));
32807
32883
  } else {
32808
- cov_2nbnnlcv5p().b[7][1]++;
32884
+ cov_2nbnnlcv5p().b[8][1]++;
32809
32885
  }
32810
32886
  cov_2nbnnlcv5p().s[16]++;
32811
32887
  return /*#__PURE__*/React__default.createElement("div", {
@@ -32828,26 +32904,26 @@ var BuildForm = function BuildForm(_ref) {
32828
32904
  cancelButtonProps: cancelButtonProps,
32829
32905
  formId: id,
32830
32906
  nonRemovableFields: nonRemovableFields,
32831
- questionKinds: QUESTION_KINDS,
32832
32907
  requiredFields: requiredFields,
32833
32908
  setShouldValidate: setShouldValidateForm,
32834
32909
  showActionBlock: showActionBlock,
32835
32910
  showAddQuestionDivider: showAddQuestionDivider,
32836
32911
  submitButtonProps: submitButtonProps,
32912
+ questionKinds: isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[9][0]++, questionKinds) : (cov_2nbnnlcv5p().b[9][1]++, QUESTION_KINDS),
32837
32913
  onValueChange: onValueChange,
32838
32914
  onChange: function onChange(event) {
32839
32915
  cov_2nbnnlcv5p().f[7]++;
32840
32916
  cov_2nbnnlcv5p().s[18]++;
32841
32917
  if (!isEmpty(errors)) {
32842
- cov_2nbnnlcv5p().b[8][0]++;
32918
+ cov_2nbnnlcv5p().b[10][0]++;
32843
32919
  cov_2nbnnlcv5p().s[19]++;
32844
32920
  setFieldError(event.target.name);
32845
32921
  } else {
32846
- cov_2nbnnlcv5p().b[8][1]++;
32922
+ cov_2nbnnlcv5p().b[10][1]++;
32847
32923
  }
32848
32924
  }
32849
32925
  }));
32850
- }), (cov_2nbnnlcv5p().b[9][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[9][1]++, /*#__PURE__*/React__default.createElement("div", {
32926
+ }), (cov_2nbnnlcv5p().b[11][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[11][1]++, /*#__PURE__*/React__default.createElement("div", {
32851
32927
  className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
32852
32928
  }, /*#__PURE__*/React__default.createElement(PageLoader, null))));
32853
32929
  };