@bigbinary/neeto-form-frontend 1.0.24 → 1.0.26

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
@@ -2,16 +2,16 @@ 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
4
  import PageLoader from 'neetomolecules/PageLoader';
5
- import { Toastr, Typography, Dropdown as Dropdown$1, Button as Button$1, Label, Alert, Spinner as Spinner$1 } from '@bigbinary/neetoui';
6
- import { assoc, prop, reject, omit, insert, isEmpty, compose as compose$1, trim as trim$1, either, isNil, values as values$1, equals, not, times } from 'ramda';
5
+ import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$1 } from '@bigbinary/neetoui';
6
+ 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
7
  import ReactDOM, { unstable_batchedUpdates as unstable_batchedUpdates$1, createPortal } from 'react-dom';
8
8
  import axios from 'axios';
9
9
  import { Input as Input$2, Textarea as Textarea$1, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
10
- import { noop as noop$4, isPresent, findById, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
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';
14
- import { Up, Down, MenuHorizontal, Delete, Plus, Email as Email$1, Phone as Phone$1, Input as Input$3, NeetoInvisible, MultipleChoice as MultipleChoice$1, ListDot, Dropdown as Dropdown$2, Rating as Rating$2, Smiley, Calendar, Check, Close } from '@bigbinary/neeto-icons';
14
+ import { Up, Down, MenuHorizontal, Delete, Plus, Email as Email$2, Phone as Phone$2, Input as Input$3, NeetoInvisible, MultipleChoice as MultipleChoice$2, ListDot, Dropdown as Dropdown$3, Rating as Rating$3, Smiley, Calendar, Check, Close } from '@bigbinary/neeto-icons';
15
15
  import { Editor as Editor$1, EditorContent } from '@bigbinary/neeto-editor';
16
16
  import * as yup from 'yup';
17
17
  import { object, array, string } from 'yup';
@@ -19581,7 +19581,7 @@ var Accordion = function Accordion(_ref) {
19581
19581
  className: "outline-none flex items-center justify-center border-0 bg-transparent",
19582
19582
  type: "button",
19583
19583
  onClick: onToggle
19584
- }, isExpanded ? (cov_1ng1x1xde4().b[4][0]++, /*#__PURE__*/React__default.createElement(Up, null)) : (cov_1ng1x1xde4().b[4][1]++, /*#__PURE__*/React__default.createElement(Down, null))), ((cov_1ng1x1xde4().b[5][0]++, onDuplicate) || (cov_1ng1x1xde4().b[5][1]++, shouldShowDeleteOption)) && (cov_1ng1x1xde4().b[5][2]++, /*#__PURE__*/React__default.createElement(Dropdown$1, {
19584
+ }, isExpanded ? (cov_1ng1x1xde4().b[4][0]++, /*#__PURE__*/React__default.createElement(Up, null)) : (cov_1ng1x1xde4().b[4][1]++, /*#__PURE__*/React__default.createElement(Down, null))), ((cov_1ng1x1xde4().b[5][0]++, onDuplicate) || (cov_1ng1x1xde4().b[5][1]++, shouldShowDeleteOption)) && (cov_1ng1x1xde4().b[5][2]++, /*#__PURE__*/React__default.createElement(Dropdown$2, {
19585
19585
  className: "w-full",
19586
19586
  position: "bottom-end",
19587
19587
  customTarget: function customTarget() {
@@ -19607,7 +19607,7 @@ var Accordion = function Accordion(_ref) {
19607
19607
  })
19608
19608
  }, /*#__PURE__*/React__default.createElement("div", {
19609
19609
  className: "neeto-ui-border-gray-800 neeto-form-engine-add-question-between__line w-full border-t border-dashed"
19610
- }), /*#__PURE__*/React__default.createElement(Dropdown$1, {
19610
+ }), /*#__PURE__*/React__default.createElement(Dropdown$2, {
19611
19611
  isOpen: isAddQuestionOpen,
19612
19612
  position: "bottom-end",
19613
19613
  strategy: "fixed",
@@ -24519,7 +24519,7 @@ function cov_2dmleb6ptc() {
24519
24519
  }
24520
24520
  cov_2dmleb6ptc();
24521
24521
  cov_2dmleb6ptc().s[0]++;
24522
- var Dropdown = function Dropdown(_ref) {
24522
+ var Dropdown$1 = function Dropdown(_ref) {
24523
24523
  var item = _ref.item,
24524
24524
  name = _ref.name,
24525
24525
  isRequired = _ref.isRequired;
@@ -24741,7 +24741,7 @@ function cov_27ckchp1ss() {
24741
24741
  }
24742
24742
  cov_27ckchp1ss();
24743
24743
  cov_27ckchp1ss().s[0]++;
24744
- var Email = function Email(_ref) {
24744
+ var Email$1 = function Email(_ref) {
24745
24745
  var name = _ref.name,
24746
24746
  isRequired = _ref.isRequired;
24747
24747
  cov_27ckchp1ss().f[0]++;
@@ -24902,7 +24902,7 @@ function cov_1b2ulkh5av() {
24902
24902
  }
24903
24903
  cov_1b2ulkh5av();
24904
24904
  cov_1b2ulkh5av().s[0]++;
24905
- var LongText = function LongText(_ref) {
24905
+ var LongText$1 = function LongText(_ref) {
24906
24906
  var name = _ref.name,
24907
24907
  isRequired = _ref.isRequired;
24908
24908
  cov_1b2ulkh5av().f[0]++;
@@ -25320,7 +25320,7 @@ function cov_ezislrxf8() {
25320
25320
  }
25321
25321
  cov_ezislrxf8();
25322
25322
  cov_ezislrxf8().s[0]++;
25323
- var MultipleChoice = function MultipleChoice(_ref) {
25323
+ var MultipleChoice$1 = function MultipleChoice(_ref) {
25324
25324
  var item = _ref.item,
25325
25325
  name = _ref.name,
25326
25326
  isRequired = _ref.isRequired;
@@ -25533,7 +25533,7 @@ function cov_sj6n6ei6b() {
25533
25533
  }
25534
25534
  cov_sj6n6ei6b();
25535
25535
  cov_sj6n6ei6b().s[0]++;
25536
- var Phone = function Phone(_ref) {
25536
+ var Phone$1 = function Phone(_ref) {
25537
25537
  var name = _ref.name,
25538
25538
  isRequired = _ref.isRequired;
25539
25539
  cov_sj6n6ei6b().f[0]++;
@@ -25750,7 +25750,7 @@ var RatingItem = function RatingItem(_ref) {
25750
25750
  }, children);
25751
25751
  };
25752
25752
  cov_2mbawiwhpy().s[2]++;
25753
- var Rating$1 = function Rating(_ref2) {
25753
+ var Rating$2 = function Rating(_ref2) {
25754
25754
  var name = _ref2.name,
25755
25755
  isRequired = _ref2.isRequired;
25756
25756
  cov_2mbawiwhpy().f[1]++;
@@ -25925,7 +25925,7 @@ function cov_ahxbwc6e2() {
25925
25925
  }
25926
25926
  cov_ahxbwc6e2();
25927
25927
  cov_ahxbwc6e2().s[0]++;
25928
- var ShortText = function ShortText(_ref) {
25928
+ var ShortText$1 = function ShortText(_ref) {
25929
25929
  var name = _ref.name,
25930
25930
  isRequired = _ref.isRequired;
25931
25931
  cov_ahxbwc6e2().f[0]++;
@@ -26342,7 +26342,7 @@ function cov_1p625a7ih4() {
26342
26342
  }
26343
26343
  cov_1p625a7ih4();
26344
26344
  cov_1p625a7ih4().s[0]++;
26345
- var SingleChoice = function SingleChoice(_ref) {
26345
+ var SingleChoice$1 = function SingleChoice(_ref) {
26346
26346
  var item = _ref.item,
26347
26347
  name = _ref.name,
26348
26348
  isRequired = _ref.isRequired;
@@ -26649,7 +26649,7 @@ function cov_h8r08qzr() {
26649
26649
  }
26650
26650
  cov_h8r08qzr();
26651
26651
  cov_h8r08qzr().s[0]++;
26652
- var StarRating$1 = function StarRating(_ref) {
26652
+ var StarRating$2 = function StarRating(_ref) {
26653
26653
  var name = _ref.name,
26654
26654
  isRequired = _ref.isRequired;
26655
26655
  cov_h8r08qzr().f[0]++;
@@ -26950,7 +26950,7 @@ function cov_12g0frjp3f() {
26950
26950
  }
26951
26951
  cov_12g0frjp3f();
26952
26952
  cov_12g0frjp3f().s[0]++;
26953
- var Terms$2 = function Terms(_ref) {
26953
+ var Terms$3 = function Terms(_ref) {
26954
26954
  var name = _ref.name;
26955
26955
  cov_12g0frjp3f().f[0]++;
26956
26956
  var editorRef = (cov_12g0frjp3f().s[1]++, useRef(null));
@@ -26997,19 +26997,32 @@ var Terms$2 = function Terms(_ref) {
26997
26997
 
26998
26998
  function cov_2qk3dozy47() {
26999
26999
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/index.js";
27000
- var hash = "277d24c4aea3c5f3a20d3c5388d14f16bbb74179";
27000
+ var hash = "f240b3dc3957b377c9acff43090e6d3d1fca5bb0";
27001
27001
  var global = new Function("return this")();
27002
27002
  var gcv = "__coverage__";
27003
27003
  var coverageData = {
27004
27004
  path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/index.js",
27005
- statementMap: {},
27005
+ statementMap: {
27006
+ "0": {
27007
+ start: {
27008
+ line: 12,
27009
+ column: 15
27010
+ },
27011
+ end: {
27012
+ line: 23,
27013
+ column: 1
27014
+ }
27015
+ }
27016
+ },
27006
27017
  fnMap: {},
27007
27018
  branchMap: {},
27008
- s: {},
27019
+ s: {
27020
+ "0": 0
27021
+ },
27009
27022
  f: {},
27010
27023
  b: {},
27011
27024
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27012
- hash: "277d24c4aea3c5f3a20d3c5388d14f16bbb74179"
27025
+ hash: "f240b3dc3957b377c9acff43090e6d3d1fca5bb0"
27013
27026
  };
27014
27027
  var coverage = global[gcv] || (global[gcv] = {});
27015
27028
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27025,6 +27038,18 @@ function cov_2qk3dozy47() {
27025
27038
  return actualCoverage;
27026
27039
  }
27027
27040
  cov_2qk3dozy47();
27041
+ var Fields = (cov_2qk3dozy47().s[0]++, {
27042
+ Email: Email$1,
27043
+ Dropdown: Dropdown$1,
27044
+ ShortText: ShortText$1,
27045
+ LongText: LongText$1,
27046
+ MultipleChoice: MultipleChoice$1,
27047
+ SingleChoice: SingleChoice$1,
27048
+ Phone: Phone$1,
27049
+ Rating: Rating$2,
27050
+ Terms: Terms$3,
27051
+ StarRating: StarRating$2
27052
+ });
27028
27053
 
27029
27054
  function cov_2gcfk56wsh() {
27030
27055
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Editor.jsx";
@@ -27357,7 +27382,7 @@ var Editor = function Editor(_ref) {
27357
27382
 
27358
27383
  function cov_2j8tlu2ul5() {
27359
27384
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
27360
- var hash = "4f6df693ca82c2555b57cb2705ed6d1f7c5ecb47";
27385
+ var hash = "cf06aa225404e0ebe444d6f1219d393c9ffc9417";
27361
27386
  var global = new Function("return this")();
27362
27387
  var gcv = "__coverage__";
27363
27388
  var coverageData = {
@@ -27366,50 +27391,60 @@ function cov_2j8tlu2ul5() {
27366
27391
  "0": {
27367
27392
  start: {
27368
27393
  line: 29,
27369
- column: 40
27394
+ column: 4
27370
27395
  },
27371
27396
  end: {
27372
27397
  line: 29,
27373
- column: 41
27398
+ column: 10
27374
27399
  }
27375
27400
  },
27376
27401
  "1": {
27377
27402
  start: {
27378
- line: 30,
27379
- column: 35
27403
+ line: 31,
27404
+ column: 40
27380
27405
  },
27381
27406
  end: {
27382
- line: 30,
27383
- column: 36
27407
+ line: 31,
27408
+ column: 41
27384
27409
  }
27385
27410
  },
27386
27411
  "2": {
27387
27412
  start: {
27388
27413
  line: 32,
27389
- column: 30
27414
+ column: 35
27390
27415
  },
27391
27416
  end: {
27392
- line: 175,
27393
- column: 1
27417
+ line: 32,
27418
+ column: 36
27394
27419
  }
27395
27420
  },
27396
27421
  "3": {
27397
27422
  start: {
27398
- line: 178,
27399
- column: 38
27423
+ line: 34,
27424
+ column: 30
27400
27425
  },
27401
27426
  end: {
27402
- line: 181,
27427
+ line: 177,
27403
27428
  column: 1
27404
27429
  }
27405
27430
  },
27406
27431
  "4": {
27407
27432
  start: {
27433
+ line: 180,
27434
+ column: 38
27435
+ },
27436
+ end: {
27408
27437
  line: 183,
27438
+ column: 1
27439
+ }
27440
+ },
27441
+ "5": {
27442
+ start: {
27443
+ line: 185,
27409
27444
  column: 29
27410
27445
  },
27411
27446
  end: {
27412
- line: 183,
27447
+ line: 185,
27413
27448
  column: 62
27414
27449
  }
27415
27450
  }
@@ -27421,12 +27456,13 @@ function cov_2j8tlu2ul5() {
27421
27456
  "1": 0,
27422
27457
  "2": 0,
27423
27458
  "3": 0,
27424
- "4": 0
27459
+ "4": 0,
27460
+ "5": 0
27425
27461
  },
27426
27462
  f: {},
27427
27463
  b: {},
27428
27464
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27429
- hash: "4f6df693ca82c2555b57cb2705ed6d1f7c5ecb47"
27465
+ hash: "cf06aa225404e0ebe444d6f1219d393c9ffc9417"
27430
27466
  };
27431
27467
  var coverage = global[gcv] || (global[gcv] = {});
27432
27468
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27442,178 +27478,175 @@ function cov_2j8tlu2ul5() {
27442
27478
  return actualCoverage;
27443
27479
  }
27444
27480
  cov_2j8tlu2ul5();
27445
- var SINGLE_CHOICE_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[0]++, 2);
27446
- var DROPDOWN_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[1]++, 2);
27447
- var QUESTION_KINDS = (cov_2j8tlu2ul5().s[2]++, {
27448
- email: {
27449
- type: "email",
27450
- label: instance.t("fields.eif"),
27451
- isSingular: true,
27452
- labelPlaceholder: instance.t("common.email"),
27453
- icon: Email$1,
27454
- component: Email,
27455
- defaults: {
27456
- label: ""
27457
- }
27458
- },
27459
- phone: {
27460
- type: "phone",
27461
- label: instance.t("fields.pif"),
27462
- isSingular: true,
27463
- labelPlaceholder: instance.t("common.phNo"),
27464
- icon: Phone$1,
27465
- component: Phone,
27466
- defaults: {
27467
- label: ""
27468
- }
27469
- },
27470
- name: {
27471
- type: "name",
27472
- label: instance.t("fields.nif"),
27473
- isSingular: true,
27474
- labelPlaceholder: instance.t("common.name"),
27475
- icon: Input$3,
27476
- component: ShortText,
27477
- defaults: {
27478
- label: ""
27479
- }
27480
- },
27481
- text: {
27482
- type: "text",
27483
- label: instance.t("fields.tif"),
27484
- isSingular: false,
27485
- labelPlaceholder: instance.t("common.text"),
27486
- icon: Input$3,
27487
- component: ShortText,
27488
- defaults: {
27481
+ var _ref$1 = (cov_2j8tlu2ul5().s[0]++, Fields),
27482
+ Email = _ref$1.Email,
27483
+ Dropdown = _ref$1.Dropdown,
27484
+ ShortText = _ref$1.ShortText,
27485
+ LongText = _ref$1.LongText,
27486
+ MultipleChoice = _ref$1.MultipleChoice,
27487
+ SingleChoice = _ref$1.SingleChoice,
27488
+ Phone = _ref$1.Phone,
27489
+ Rating$1 = _ref$1.Rating,
27490
+ Terms$2 = _ref$1.Terms,
27491
+ StarRating$1 = _ref$1.StarRating;
27492
+ var SINGLE_CHOICE_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[1]++, 2);
27493
+ var DROPDOWN_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[2]++, 2);
27494
+ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27495
+ type: "email",
27496
+ label: instance.t("fields.eif"),
27497
+ isSingular: true,
27498
+ labelPlaceholder: instance.t("common.email"),
27499
+ icon: Email$2,
27500
+ component: Email,
27501
+ defaults: {
27502
+ label: ""
27503
+ }
27504
+ }, {
27505
+ type: "phone",
27506
+ label: instance.t("fields.pif"),
27507
+ isSingular: true,
27508
+ labelPlaceholder: instance.t("common.phNo"),
27509
+ icon: Phone$2,
27510
+ component: Phone,
27511
+ defaults: {
27512
+ label: ""
27513
+ }
27514
+ }, {
27515
+ type: "name",
27516
+ label: instance.t("fields.nif"),
27517
+ isSingular: true,
27518
+ labelPlaceholder: instance.t("common.name"),
27519
+ icon: Input$3,
27520
+ component: ShortText,
27521
+ defaults: {
27522
+ label: ""
27523
+ }
27524
+ }, {
27525
+ type: "text",
27526
+ label: instance.t("fields.tif"),
27527
+ isSingular: false,
27528
+ labelPlaceholder: instance.t("common.text"),
27529
+ icon: Input$3,
27530
+ component: ShortText,
27531
+ defaults: {
27532
+ label: ""
27533
+ }
27534
+ }, {
27535
+ type: "question",
27536
+ label: instance.t("fields.qif"),
27537
+ isSingular: false,
27538
+ icon: Input$3,
27539
+ component: LongText,
27540
+ defaults: {
27541
+ label: ""
27542
+ }
27543
+ }, {
27544
+ type: "textarea",
27545
+ label: instance.t("fields.def"),
27546
+ isSingular: false,
27547
+ icon: NeetoInvisible,
27548
+ component: Editor,
27549
+ defaults: {
27550
+ label: ""
27551
+ }
27552
+ }, {
27553
+ type: "checkbox",
27554
+ label: instance.t("fields.mcf"),
27555
+ isSingular: false,
27556
+ icon: MultipleChoice$2,
27557
+ component: MultipleChoice,
27558
+ defaults: {
27559
+ label: "",
27560
+ isRequired: false,
27561
+ optionsAttributes: [{
27489
27562
  label: ""
27490
- }
27491
- },
27492
- question: {
27493
- type: "question",
27494
- label: instance.t("fields.qif"),
27495
- isSingular: false,
27496
- icon: Input$3,
27497
- component: LongText,
27498
- defaults: {
27563
+ }]
27564
+ }
27565
+ }, {
27566
+ type: "radio",
27567
+ label: instance.t("fields.scf"),
27568
+ isSingular: false,
27569
+ icon: ListDot,
27570
+ component: SingleChoice,
27571
+ defaults: {
27572
+ label: "",
27573
+ isRequired: false,
27574
+ optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27499
27575
  label: ""
27500
- }
27501
- },
27502
- textarea: {
27503
- type: "textarea",
27504
- label: instance.t("fields.def"),
27505
- isSingular: false,
27506
- icon: NeetoInvisible,
27507
- component: Editor,
27508
- defaults: {
27576
+ })
27577
+ }
27578
+ }, {
27579
+ type: "dropdown",
27580
+ label: instance.t("fields.drf"),
27581
+ isSingular: false,
27582
+ icon: Dropdown$3,
27583
+ component: Dropdown,
27584
+ defaults: {
27585
+ label: "",
27586
+ isRequired: false,
27587
+ optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27509
27588
  label: ""
27510
- }
27511
- },
27512
- checkbox: {
27513
- type: "checkbox",
27514
- label: instance.t("fields.mcf"),
27515
- isSingular: false,
27516
- icon: MultipleChoice$1,
27517
- component: MultipleChoice,
27518
- defaults: {
27519
- label: "",
27520
- isRequired: false,
27521
- optionsAttributes: [{
27522
- label: ""
27523
- }]
27524
- }
27525
- },
27526
- radio: {
27527
- type: "radio",
27528
- label: instance.t("fields.scf"),
27529
- isSingular: false,
27530
- icon: ListDot,
27531
- component: SingleChoice,
27532
- defaults: {
27533
- label: "",
27534
- isRequired: false,
27535
- optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27536
- label: ""
27537
- })
27538
- }
27539
- },
27540
- dropdown: {
27541
- type: "dropdown",
27542
- label: instance.t("fields.drf"),
27543
- isSingular: false,
27544
- icon: Dropdown$2,
27545
- component: Dropdown,
27546
- defaults: {
27547
- label: "",
27548
- isRequired: false,
27549
- optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27550
- label: ""
27551
- })
27552
- }
27553
- },
27554
- star_rating: {
27555
- type: "star_rating",
27556
- label: instance.t("fields.rif"),
27557
- isSingular: false,
27558
- icon: Rating$2,
27559
- component: StarRating$1,
27560
- defaults: {
27561
- label: "",
27562
- isRequired: true,
27563
- count: 5,
27564
- shape: "star"
27565
- }
27566
- },
27567
- rating: {
27568
- type: "rating",
27569
- label: instance.t("fields.fbf"),
27570
- isSingular: false,
27571
- icon: Smiley,
27572
- component: Rating$1,
27573
- defaults: {
27574
- label: "",
27575
- isRequired: true,
27576
- highestRatingLabel: "",
27577
- averageRatingLabel: "",
27578
- lowestRatingLabel: ""
27579
- }
27580
- },
27581
- termsandcondition: {
27582
- type: "termsandcondition",
27583
- label: instance.t("fields.tcf"),
27584
- isSingular: true,
27585
- icon: NeetoInvisible,
27586
- component: Terms$2,
27587
- defaults: {
27588
- termsLink: "",
27589
- privacyPolicyLink: "",
27590
- isRequired: true,
27591
- label: instance.t("common.agreeTermsAndConditions")
27592
- }
27593
- },
27594
- date: {
27595
- type: "date",
27596
- label: instance.t("fields.date"),
27597
- isSingular: false,
27598
- icon: Calendar,
27599
- component: ShortText,
27600
- defaults: {
27601
- label: "",
27602
- isRequired: true
27603
- }
27589
+ })
27604
27590
  }
27605
- });
27591
+ }, {
27592
+ type: "star_rating",
27593
+ label: instance.t("fields.rif"),
27594
+ isSingular: false,
27595
+ icon: Rating$3,
27596
+ component: StarRating$1,
27597
+ defaults: {
27598
+ label: "",
27599
+ isRequired: true,
27600
+ count: 5,
27601
+ shape: "star"
27602
+ }
27603
+ }, {
27604
+ type: "rating",
27605
+ label: instance.t("fields.fbf"),
27606
+ isSingular: false,
27607
+ icon: Smiley,
27608
+ component: Rating$1,
27609
+ defaults: {
27610
+ label: "",
27611
+ isRequired: true,
27612
+ highestRatingLabel: "",
27613
+ averageRatingLabel: "",
27614
+ lowestRatingLabel: ""
27615
+ }
27616
+ }, {
27617
+ type: "termsandcondition",
27618
+ label: instance.t("fields.tcf"),
27619
+ isSingular: true,
27620
+ icon: NeetoInvisible,
27621
+ component: Terms$2,
27622
+ defaults: {
27623
+ termsLink: "",
27624
+ privacyPolicyLink: "",
27625
+ isRequired: true,
27626
+ label: instance.t("common.agreeTermsAndConditions")
27627
+ }
27628
+ }, {
27629
+ type: "date",
27630
+ label: instance.t("fields.date"),
27631
+ isSingular: false,
27632
+ icon: Calendar,
27633
+ component: ShortText,
27634
+ defaults: {
27635
+ label: "",
27636
+ isRequired: true
27637
+ }
27638
+ }]);
27606
27639
 
27607
27640
  // To show the question type as label in accordion
27608
- var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[3]++, {
27641
+ var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[4]++, {
27609
27642
  textarea: "Paragraph",
27610
27643
  termsandcondition: "Terms & conditions"
27611
27644
  });
27612
- var PADDED_FIELDS = (cov_2j8tlu2ul5().s[4]++, ["textarea", "termsandcondition"]);
27645
+ var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["textarea", "termsandcondition"]);
27613
27646
 
27614
27647
  function cov_xwc6pppkl() {
27615
27648
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/FormField.jsx";
27616
- var hash = "cba680cb5d1feec4877d26f79a7d90373fc66039";
27649
+ var hash = "c22b8999f9a44ff11944e9508195eb2aa07200ac";
27617
27650
  var global = new Function("return this")();
27618
27651
  var gcv = "__coverage__";
27619
27652
  var coverageData = {
@@ -27621,61 +27654,61 @@ function cov_xwc6pppkl() {
27621
27654
  statementMap: {
27622
27655
  "0": {
27623
27656
  start: {
27624
- line: 10,
27657
+ line: 12,
27625
27658
  column: 18
27626
27659
  },
27627
27660
  end: {
27628
- line: 48,
27661
+ line: 50,
27629
27662
  column: 1
27630
27663
  }
27631
27664
  },
27632
27665
  "1": {
27633
27666
  start: {
27634
- line: 22,
27667
+ line: 24,
27635
27668
  column: 6
27636
27669
  },
27637
27670
  end: {
27638
- line: 22,
27671
+ line: 24,
27639
27672
  column: 11
27640
27673
  }
27641
27674
  },
27642
27675
  "2": {
27643
27676
  start: {
27644
- line: 23,
27677
+ line: 25,
27645
27678
  column: 26
27646
27679
  },
27647
27680
  end: {
27648
- line: 23,
27681
+ line: 25,
27649
27682
  column: 30
27650
27683
  }
27651
27684
  },
27652
27685
  "3": {
27653
27686
  start: {
27654
- line: 29,
27687
+ line: 31,
27655
27688
  column: 6
27656
27689
  },
27657
27690
  end: {
27658
- line: 29,
27659
- column: 26
27691
+ line: 31,
27692
+ column: 44
27660
27693
  }
27661
27694
  },
27662
27695
  "4": {
27663
27696
  start: {
27664
- line: 31,
27697
+ line: 33,
27665
27698
  column: 2
27666
27699
  },
27667
27700
  end: {
27668
- line: 47,
27701
+ line: 49,
27669
27702
  column: 4
27670
27703
  }
27671
27704
  },
27672
27705
  "5": {
27673
27706
  start: {
27674
- line: 43,
27707
+ line: 45,
27675
27708
  column: 22
27676
27709
  },
27677
27710
  end: {
27678
- line: 43,
27711
+ line: 45,
27679
27712
  column: 51
27680
27713
  }
27681
27714
  }
@@ -27685,141 +27718,141 @@ function cov_xwc6pppkl() {
27685
27718
  name: "(anonymous_0)",
27686
27719
  decl: {
27687
27720
  start: {
27688
- line: 10,
27721
+ line: 12,
27689
27722
  column: 18
27690
27723
  },
27691
27724
  end: {
27692
- line: 10,
27725
+ line: 12,
27693
27726
  column: 19
27694
27727
  }
27695
27728
  },
27696
27729
  loc: {
27697
27730
  start: {
27698
- line: 10,
27731
+ line: 12,
27699
27732
  column: 27
27700
27733
  },
27701
27734
  end: {
27702
- line: 48,
27735
+ line: 50,
27703
27736
  column: 1
27704
27737
  }
27705
27738
  },
27706
- line: 10
27739
+ line: 12
27707
27740
  },
27708
27741
  "1": {
27709
27742
  name: "(anonymous_1)",
27710
27743
  decl: {
27711
27744
  start: {
27712
- line: 43,
27745
+ line: 45,
27713
27746
  column: 16
27714
27747
  },
27715
27748
  end: {
27716
- line: 43,
27749
+ line: 45,
27717
27750
  column: 17
27718
27751
  }
27719
27752
  },
27720
27753
  loc: {
27721
27754
  start: {
27722
- line: 43,
27755
+ line: 45,
27723
27756
  column: 22
27724
27757
  },
27725
27758
  end: {
27726
- line: 43,
27759
+ line: 45,
27727
27760
  column: 51
27728
27761
  }
27729
27762
  },
27730
- line: 43
27763
+ line: 45
27731
27764
  }
27732
27765
  },
27733
27766
  branchMap: {
27734
27767
  "0": {
27735
27768
  loc: {
27736
27769
  start: {
27737
- line: 13,
27770
+ line: 15,
27738
27771
  column: 4
27739
27772
  },
27740
27773
  end: {
27741
- line: 13,
27774
+ line: 15,
27742
27775
  column: 21
27743
27776
  }
27744
27777
  },
27745
27778
  type: "default-arg",
27746
27779
  locations: [{
27747
27780
  start: {
27748
- line: 13,
27781
+ line: 15,
27749
27782
  column: 17
27750
27783
  },
27751
27784
  end: {
27752
- line: 13,
27785
+ line: 15,
27753
27786
  column: 21
27754
27787
  }
27755
27788
  }],
27756
- line: 13
27789
+ line: 15
27757
27790
  },
27758
27791
  "1": {
27759
27792
  loc: {
27760
27793
  start: {
27761
- line: 36,
27794
+ line: 38,
27762
27795
  column: 13
27763
27796
  },
27764
27797
  end: {
27765
- line: 36,
27798
+ line: 38,
27766
27799
  column: 50
27767
27800
  }
27768
27801
  },
27769
27802
  type: "binary-expr",
27770
27803
  locations: [{
27771
27804
  start: {
27772
- line: 36,
27805
+ line: 38,
27773
27806
  column: 13
27774
27807
  },
27775
27808
  end: {
27776
- line: 36,
27809
+ line: 38,
27777
27810
  column: 41
27778
27811
  }
27779
27812
  }, {
27780
27813
  start: {
27781
- line: 36,
27814
+ line: 38,
27782
27815
  column: 45
27783
27816
  },
27784
27817
  end: {
27785
- line: 36,
27818
+ line: 38,
27786
27819
  column: 50
27787
27820
  }
27788
27821
  }],
27789
- line: 36
27822
+ line: 38
27790
27823
  },
27791
27824
  "2": {
27792
27825
  loc: {
27793
27826
  start: {
27794
- line: 42,
27827
+ line: 44,
27795
27828
  column: 19
27796
27829
  },
27797
27830
  end: {
27798
- line: 42,
27831
+ line: 44,
27799
27832
  column: 45
27800
27833
  }
27801
27834
  },
27802
27835
  type: "binary-expr",
27803
27836
  locations: [{
27804
27837
  start: {
27805
- line: 42,
27838
+ line: 44,
27806
27839
  column: 19
27807
27840
  },
27808
27841
  end: {
27809
- line: 42,
27842
+ line: 44,
27810
27843
  column: 30
27811
27844
  }
27812
27845
  }, {
27813
27846
  start: {
27814
- line: 42,
27847
+ line: 44,
27815
27848
  column: 34
27816
27849
  },
27817
27850
  end: {
27818
- line: 42,
27851
+ line: 44,
27819
27852
  column: 45
27820
27853
  }
27821
27854
  }],
27822
- line: 42
27855
+ line: 44
27823
27856
  }
27824
27857
  },
27825
27858
  s: {
@@ -27840,7 +27873,7 @@ function cov_xwc6pppkl() {
27840
27873
  "2": [0, 0]
27841
27874
  },
27842
27875
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27843
- hash: "cba680cb5d1feec4877d26f79a7d90373fc66039"
27876
+ hash: "c22b8999f9a44ff11944e9508195eb2aa07200ac"
27844
27877
  };
27845
27878
  var coverage = global[gcv] || (global[gcv] = {});
27846
27879
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27875,7 +27908,9 @@ var FormField = function FormField(props) {
27875
27908
  var _ref2 = (cov_xwc6pppkl().s[2]++, item),
27876
27909
  kind = _ref2.kind,
27877
27910
  label = _ref2.label;
27878
- var _ref3 = (cov_xwc6pppkl().s[3]++, QUESTION_KINDS[kind]),
27911
+ var _ref3 = (cov_xwc6pppkl().s[3]++, findBy({
27912
+ type: kind
27913
+ }, QUESTION_KINDS)),
27879
27914
  FieldComponent = _ref3.component,
27880
27915
  FieldIcon = _ref3.icon,
27881
27916
  isSingular = _ref3.isSingular;
@@ -28998,7 +29033,7 @@ v35('v5', 0x50, sha1);
28998
29033
 
28999
29034
  function cov_1ia73x4fw3() {
29000
29035
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/utils.js";
29001
- var hash = "a5c16942c6889823d2858787a6d7193997ba5931";
29036
+ var hash = "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5";
29002
29037
  var global = new Function("return this")();
29003
29038
  var gcv = "__coverage__";
29004
29039
  var coverageData = {
@@ -29087,7 +29122,7 @@ function cov_1ia73x4fw3() {
29087
29122
  "8": {
29088
29123
  start: {
29089
29124
  line: 22,
29090
- column: 67
29125
+ column: 68
29091
29126
  },
29092
29127
  end: {
29093
29128
  line: 27,
@@ -29131,17 +29166,17 @@ function cov_1ia73x4fw3() {
29131
29166
  },
29132
29167
  end: {
29133
29168
  line: 46,
29134
- column: 70
29169
+ column: 56
29135
29170
  }
29136
29171
  },
29137
29172
  "13": {
29138
29173
  start: {
29139
29174
  line: 46,
29140
- column: 31
29175
+ column: 32
29141
29176
  },
29142
29177
  end: {
29143
29178
  line: 46,
29144
- column: 70
29179
+ column: 56
29145
29180
  }
29146
29181
  },
29147
29182
  "14": {
@@ -29201,7 +29236,7 @@ function cov_1ia73x4fw3() {
29201
29236
  },
29202
29237
  end: {
29203
29238
  line: 58,
29204
- column: 38
29239
+ column: 23
29205
29240
  }
29206
29241
  },
29207
29242
  "20": {
@@ -29309,7 +29344,7 @@ function cov_1ia73x4fw3() {
29309
29344
  loc: {
29310
29345
  start: {
29311
29346
  line: 22,
29312
- column: 67
29347
+ column: 68
29313
29348
  },
29314
29349
  end: {
29315
29350
  line: 27,
@@ -29571,7 +29606,7 @@ function cov_1ia73x4fw3() {
29571
29606
  },
29572
29607
  end: {
29573
29608
  line: 46,
29574
- column: 70
29609
+ column: 56
29575
29610
  }
29576
29611
  },
29577
29612
  type: "if",
@@ -29582,7 +29617,7 @@ function cov_1ia73x4fw3() {
29582
29617
  },
29583
29618
  end: {
29584
29619
  line: 46,
29585
- column: 70
29620
+ column: 56
29586
29621
  }
29587
29622
  }, {
29588
29623
  start: {
@@ -29777,7 +29812,7 @@ function cov_1ia73x4fw3() {
29777
29812
  "8": [0, 0]
29778
29813
  },
29779
29814
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
29780
- hash: "a5c16942c6889823d2858787a6d7193997ba5931"
29815
+ hash: "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5"
29781
29816
  };
29782
29817
  var coverage = global[gcv] || (global[gcv] = {});
29783
29818
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -29822,13 +29857,13 @@ var handleFieldDragEnd = function handleFieldDragEnd(_ref) {
29822
29857
  }
29823
29858
  };
29824
29859
  cov_1ia73x4fw3().s[7]++;
29825
- var createFieldData = function createFieldData(_ref2, isRequied) {
29860
+ var createFieldData = function createFieldData(_ref2, isRequired) {
29826
29861
  var defaults = _ref2.defaults,
29827
29862
  type = _ref2.type;
29828
29863
  cov_1ia73x4fw3().f[2]++;
29829
29864
  cov_1ia73x4fw3().s[8]++;
29830
29865
  return _objectSpread$a(_objectSpread$a({}, defaults), {}, {
29831
- requird: isRequied,
29866
+ isRequired: isRequired,
29832
29867
  kind: type,
29833
29868
  nodeId: v4()
29834
29869
  });
@@ -29854,10 +29889,10 @@ var getAvailableQuestionKinds = function getAvailableQuestionKinds(allQuestionKi
29854
29889
  var activeQuestions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_1ia73x4fw3().b[3][0]++, []);
29855
29890
  cov_1ia73x4fw3().f[4]++;
29856
29891
  cov_1ia73x4fw3().s[12]++;
29857
- if (!activeQuestions.length) {
29892
+ if (isEmpty(activeQuestions)) {
29858
29893
  cov_1ia73x4fw3().b[4][0]++;
29859
29894
  cov_1ia73x4fw3().s[13]++;
29860
- return Object.values(allQuestionKinds);
29895
+ return allQuestionKinds;
29861
29896
  } else {
29862
29897
  cov_1ia73x4fw3().b[4][1]++;
29863
29898
  }
@@ -29873,7 +29908,7 @@ var getAvailableQuestionKinds = function getAvailableQuestionKinds(allQuestionKi
29873
29908
  return (cov_1ia73x4fw3().b[6][0]++, isSingularKind) && (cov_1ia73x4fw3().b[6][1]++, isKindAlreadyActive);
29874
29909
  }, allQuestionKinds));
29875
29910
  cov_1ia73x4fw3().s[19]++;
29876
- return Object.values(questionKinds);
29911
+ return questionKinds;
29877
29912
  };
29878
29913
  cov_1ia73x4fw3().s[20]++;
29879
29914
  var sliceLabel = function sliceLabel(label) {
@@ -30217,7 +30252,7 @@ var List = function List(_ref) {
30217
30252
  cov_1bjdmkpcw3().s[2]++;
30218
30253
  return /*#__PURE__*/React__default.createElement("div", {
30219
30254
  className: classnames("flex", _defineProperty$a({}, className, className))
30220
- }, /*#__PURE__*/React__default.createElement(Dropdown$1, {
30255
+ }, /*#__PURE__*/React__default.createElement(Dropdown$2, {
30221
30256
  label: t("questions.common.primaryPanel.addNewQuestion"),
30222
30257
  position: "bottom-start",
30223
30258
  strategy: "fixed",
@@ -36536,12 +36571,12 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
36536
36571
  value: "name"
36537
36572
  },
36538
36573
  EMAIL: {
36539
- prefix: /*#__PURE__*/React__default.createElement(Email$1, null),
36574
+ prefix: /*#__PURE__*/React__default.createElement(Email$2, null),
36540
36575
  type: "email",
36541
36576
  value: "email"
36542
36577
  },
36543
36578
  PHONE: {
36544
- prefix: /*#__PURE__*/React__default.createElement(Phone$1, null),
36579
+ prefix: /*#__PURE__*/React__default.createElement(Phone$2, null),
36545
36580
  type: "tel",
36546
36581
  value: "phone"
36547
36582
  },
@@ -64797,7 +64832,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
64797
64832
 
64798
64833
  function cov_29xlle89ll() {
64799
64834
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
64800
- var hash = "5396a6e3a1a5ecf3060a0d611e84501852de5059";
64835
+ var hash = "f309c9df1c79dbf4de7b84c18c2f39eed53b297f";
64801
64836
  var global = new Function("return this")();
64802
64837
  var gcv = "__coverage__";
64803
64838
  var coverageData = {
@@ -64805,71 +64840,71 @@ function cov_29xlle89ll() {
64805
64840
  statementMap: {
64806
64841
  "0": {
64807
64842
  start: {
64808
- line: 14,
64843
+ line: 13,
64809
64844
  column: 19
64810
64845
  },
64811
64846
  end: {
64812
- line: 59,
64847
+ line: 56,
64813
64848
  column: 1
64814
64849
  }
64815
64850
  },
64816
64851
  "1": {
64817
64852
  start: {
64818
- line: 21,
64853
+ line: 20,
64819
64854
  column: 62
64820
64855
  },
64821
64856
  end: {
64822
- line: 25,
64857
+ line: 24,
64823
64858
  column: 4
64824
64859
  }
64825
64860
  },
64826
64861
  "2": {
64827
64862
  start: {
64828
- line: 27,
64863
+ line: 26,
64829
64864
  column: 24
64830
64865
  },
64831
64866
  end: {
64832
- line: 27,
64867
+ line: 26,
64833
64868
  column: 34
64834
64869
  }
64835
64870
  },
64836
64871
  "3": {
64837
64872
  start: {
64838
- line: 29,
64873
+ line: 28,
64839
64874
  column: 2
64840
64875
  },
64841
64876
  end: {
64842
- line: 35,
64877
+ line: 34,
64843
64878
  column: 3
64844
64879
  }
64845
64880
  },
64846
64881
  "4": {
64847
64882
  start: {
64848
- line: 30,
64883
+ line: 29,
64849
64884
  column: 4
64850
64885
  },
64851
64886
  end: {
64852
- line: 34,
64887
+ line: 33,
64853
64888
  column: 6
64854
64889
  }
64855
64890
  },
64856
64891
  "5": {
64857
64892
  start: {
64858
- line: 37,
64893
+ line: 36,
64859
64894
  column: 2
64860
64895
  },
64861
64896
  end: {
64862
- line: 58,
64897
+ line: 55,
64863
64898
  column: 4
64864
64899
  }
64865
64900
  },
64866
64901
  "6": {
64867
64902
  start: {
64868
- line: 44,
64903
+ line: 43,
64869
64904
  column: 8
64870
64905
  },
64871
64906
  end: {
64872
- line: 55,
64907
+ line: 52,
64873
64908
  column: 14
64874
64909
  }
64875
64910
  }
@@ -64879,248 +64914,248 @@ function cov_29xlle89ll() {
64879
64914
  name: "(anonymous_0)",
64880
64915
  decl: {
64881
64916
  start: {
64882
- line: 14,
64917
+ line: 13,
64883
64918
  column: 19
64884
64919
  },
64885
64920
  end: {
64886
- line: 14,
64921
+ line: 13,
64887
64922
  column: 20
64888
64923
  }
64889
64924
  },
64890
64925
  loc: {
64891
64926
  start: {
64892
- line: 20,
64927
+ line: 19,
64893
64928
  column: 6
64894
64929
  },
64895
64930
  end: {
64896
- line: 59,
64931
+ line: 56,
64897
64932
  column: 1
64898
64933
  }
64899
64934
  },
64900
- line: 20
64935
+ line: 19
64901
64936
  },
64902
64937
  "1": {
64903
64938
  name: "(anonymous_1)",
64904
64939
  decl: {
64905
64940
  start: {
64906
- line: 43,
64941
+ line: 42,
64907
64942
  column: 21
64908
64943
  },
64909
64944
  end: {
64910
- line: 43,
64945
+ line: 42,
64911
64946
  column: 22
64912
64947
  }
64913
64948
  },
64914
64949
  loc: {
64915
64950
  start: {
64916
- line: 44,
64951
+ line: 43,
64917
64952
  column: 8
64918
64953
  },
64919
64954
  end: {
64920
- line: 55,
64955
+ line: 52,
64921
64956
  column: 14
64922
64957
  }
64923
64958
  },
64924
- line: 44
64959
+ line: 43
64925
64960
  }
64926
64961
  },
64927
64962
  branchMap: {
64928
64963
  "0": {
64929
64964
  loc: {
64930
64965
  start: {
64931
- line: 15,
64966
+ line: 14,
64932
64967
  column: 2
64933
64968
  },
64934
64969
  end: {
64935
- line: 15,
64970
+ line: 14,
64936
64971
  column: 13
64937
64972
  }
64938
64973
  },
64939
64974
  type: "default-arg",
64940
64975
  locations: [{
64941
64976
  start: {
64942
- line: 15,
64977
+ line: 14,
64943
64978
  column: 11
64944
64979
  },
64945
64980
  end: {
64946
- line: 15,
64981
+ line: 14,
64947
64982
  column: 13
64948
64983
  }
64949
64984
  }],
64950
- line: 15
64985
+ line: 14
64951
64986
  },
64952
64987
  "1": {
64953
64988
  loc: {
64954
64989
  start: {
64955
- line: 16,
64990
+ line: 15,
64956
64991
  column: 2
64957
64992
  },
64958
64993
  end: {
64959
- line: 16,
64994
+ line: 15,
64960
64995
  column: 19
64961
64996
  }
64962
64997
  },
64963
64998
  type: "default-arg",
64964
64999
  locations: [{
64965
65000
  start: {
64966
- line: 16,
65001
+ line: 15,
64967
65002
  column: 17
64968
65003
  },
64969
65004
  end: {
64970
- line: 16,
65005
+ line: 15,
64971
65006
  column: 19
64972
65007
  }
64973
65008
  }],
64974
- line: 16
65009
+ line: 15
64975
65010
  },
64976
65011
  "2": {
64977
65012
  loc: {
64978
65013
  start: {
64979
- line: 17,
65014
+ line: 16,
64980
65015
  column: 2
64981
65016
  },
64982
65017
  end: {
64983
- line: 17,
65018
+ line: 16,
64984
65019
  column: 16
64985
65020
  }
64986
65021
  },
64987
65022
  type: "default-arg",
64988
65023
  locations: [{
64989
65024
  start: {
64990
- line: 17,
65025
+ line: 16,
64991
65026
  column: 14
64992
65027
  },
64993
65028
  end: {
64994
- line: 17,
65029
+ line: 16,
64995
65030
  column: 16
64996
65031
  }
64997
65032
  }],
64998
- line: 17
65033
+ line: 16
64999
65034
  },
65000
65035
  "3": {
65001
65036
  loc: {
65002
65037
  start: {
65003
- line: 18,
65038
+ line: 17,
65004
65039
  column: 2
65005
65040
  },
65006
65041
  end: {
65007
- line: 18,
65042
+ line: 17,
65008
65043
  column: 25
65009
65044
  }
65010
65045
  },
65011
65046
  type: "default-arg",
65012
65047
  locations: [{
65013
65048
  start: {
65014
- line: 18,
65049
+ line: 17,
65015
65050
  column: 23
65016
65051
  },
65017
65052
  end: {
65018
- line: 18,
65053
+ line: 17,
65019
65054
  column: 25
65020
65055
  }
65021
65056
  }],
65022
- line: 18
65057
+ line: 17
65023
65058
  },
65024
65059
  "4": {
65025
65060
  loc: {
65026
65061
  start: {
65027
- line: 19,
65062
+ line: 18,
65028
65063
  column: 2
65029
65064
  },
65030
65065
  end: {
65031
- line: 19,
65066
+ line: 18,
65032
65067
  column: 18
65033
65068
  }
65034
65069
  },
65035
65070
  type: "default-arg",
65036
65071
  locations: [{
65037
65072
  start: {
65038
- line: 19,
65073
+ line: 18,
65039
65074
  column: 16
65040
65075
  },
65041
65076
  end: {
65042
- line: 19,
65077
+ line: 18,
65043
65078
  column: 18
65044
65079
  }
65045
65080
  }],
65046
- line: 19
65081
+ line: 18
65047
65082
  },
65048
65083
  "5": {
65049
65084
  loc: {
65050
65085
  start: {
65051
- line: 21,
65086
+ line: 20,
65052
65087
  column: 16
65053
65088
  },
65054
65089
  end: {
65055
- line: 21,
65090
+ line: 20,
65056
65091
  column: 46
65057
65092
  }
65058
65093
  },
65059
65094
  type: "default-arg",
65060
65095
  locations: [{
65061
65096
  start: {
65062
- line: 21,
65097
+ line: 20,
65063
65098
  column: 29
65064
65099
  },
65065
65100
  end: {
65066
- line: 21,
65101
+ line: 20,
65067
65102
  column: 46
65068
65103
  }
65069
65104
  }],
65070
- line: 21
65105
+ line: 20
65071
65106
  },
65072
65107
  "6": {
65073
65108
  loc: {
65074
65109
  start: {
65075
- line: 24,
65110
+ line: 23,
65076
65111
  column: 16
65077
65112
  },
65078
65113
  end: {
65079
- line: 24,
65114
+ line: 23,
65080
65115
  column: 38
65081
65116
  }
65082
65117
  },
65083
65118
  type: "binary-expr",
65084
65119
  locations: [{
65085
65120
  start: {
65086
- line: 24,
65121
+ line: 23,
65087
65122
  column: 16
65088
65123
  },
65089
65124
  end: {
65090
- line: 24,
65125
+ line: 23,
65091
65126
  column: 22
65092
65127
  }
65093
65128
  }, {
65094
65129
  start: {
65095
- line: 24,
65130
+ line: 23,
65096
65131
  column: 26
65097
65132
  },
65098
65133
  end: {
65099
- line: 24,
65134
+ line: 23,
65100
65135
  column: 38
65101
65136
  }
65102
65137
  }],
65103
- line: 24
65138
+ line: 23
65104
65139
  },
65105
65140
  "7": {
65106
65141
  loc: {
65107
65142
  start: {
65108
- line: 29,
65143
+ line: 28,
65109
65144
  column: 2
65110
65145
  },
65111
65146
  end: {
65112
- line: 35,
65147
+ line: 34,
65113
65148
  column: 3
65114
65149
  }
65115
65150
  },
65116
65151
  type: "if",
65117
65152
  locations: [{
65118
65153
  start: {
65119
- line: 29,
65154
+ line: 28,
65120
65155
  column: 2
65121
65156
  },
65122
65157
  end: {
65123
- line: 35,
65158
+ line: 34,
65124
65159
  column: 3
65125
65160
  }
65126
65161
  }, {
@@ -65133,40 +65168,40 @@ function cov_29xlle89ll() {
65133
65168
  column: undefined
65134
65169
  }
65135
65170
  }],
65136
- line: 29
65171
+ line: 28
65137
65172
  },
65138
65173
  "8": {
65139
65174
  loc: {
65140
65175
  start: {
65141
- line: 50,
65176
+ line: 49,
65142
65177
  column: 15
65143
65178
  },
65144
65179
  end: {
65145
- line: 52,
65146
- column: 23
65180
+ line: 49,
65181
+ column: 63
65147
65182
  }
65148
65183
  },
65149
65184
  type: "cond-expr",
65150
65185
  locations: [{
65151
65186
  start: {
65152
- line: 51,
65153
- column: 18
65187
+ line: 49,
65188
+ column: 33
65154
65189
  },
65155
65190
  end: {
65156
- line: 51,
65157
- column: 40
65191
+ line: 49,
65192
+ column: 55
65158
65193
  }
65159
65194
  }, {
65160
65195
  start: {
65161
- line: 52,
65162
- column: 18
65196
+ line: 49,
65197
+ column: 58
65163
65198
  },
65164
65199
  end: {
65165
- line: 52,
65166
- column: 23
65200
+ line: 49,
65201
+ column: 63
65167
65202
  }
65168
65203
  }],
65169
- line: 50
65204
+ line: 49
65170
65205
  }
65171
65206
  },
65172
65207
  s: {
@@ -65194,7 +65229,7 @@ function cov_29xlle89ll() {
65194
65229
  "8": [0, 0]
65195
65230
  },
65196
65231
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65197
- hash: "5396a6e3a1a5ecf3060a0d611e84501852de5059"
65232
+ hash: "f309c9df1c79dbf4de7b84c18c2f39eed53b297f"
65198
65233
  };
65199
65234
  var coverage = global[gcv] || (global[gcv] = {});
65200
65235
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65264,7 +65299,7 @@ var Submission = function Submission(_ref) {
65264
65299
  weight: "semibold"
65265
65300
  }, answerProps), /*#__PURE__*/React__default.createElement(_default, {
65266
65301
  componentDecorator: linkifyDecorator
65267
- }, kind === QUESTION_KINDS.date.type ? (cov_29xlle89ll().b[8][0]++, dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65302
+ }, kind === "date" ? (cov_29xlle89ll().b[8][0]++, dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65268
65303
  }));
65269
65304
  };
65270
65305
 
@@ -65498,5 +65533,5 @@ function cov_26ii2dyz6b() {
65498
65533
  }
65499
65534
  cov_26ii2dyz6b();
65500
65535
 
65501
- export { BuildForm, ExternalForm, NeetoFormProvider, Submission, useBuildFormState, useCreateForm, useDeleteForm, useForm, useFormSubmission, useForms, useUpdateForm };
65536
+ export { BuildForm, ExternalForm, Fields, NeetoFormProvider, Submission, useBuildFormState, useCreateForm, useDeleteForm, useForm, useFormSubmission, useForms, useUpdateForm };
65502
65537
  //# sourceMappingURL=index.js.map