@bigbinary/neeto-form-frontend 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React$2 = require('react');
6
6
  var formik = require('formik');
7
+ var pure = require('@bigbinary/neeto-commons-frontend/pure');
7
8
  var PageLoader = require('neetomolecules/PageLoader');
8
9
  var neetoui = require('@bigbinary/neetoui');
9
10
  var ramda = require('ramda');
10
11
  var ReactDOM = require('react-dom');
11
12
  var axios = require('axios');
12
13
  var formik$1 = require('@bigbinary/neetoui/formik');
13
- var pure = require('@bigbinary/neeto-commons-frontend/pure');
14
14
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
15
15
  var zustand = require('zustand');
16
16
  var classnames = require('classnames');
@@ -27530,165 +27530,151 @@ var _ref$1 = (cov_2j8tlu2ul5().s[0]++, Fields),
27530
27530
  StarRating$1 = _ref$1.StarRating;
27531
27531
  var SINGLE_CHOICE_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[1]++, 2);
27532
27532
  var DROPDOWN_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[2]++, 2);
27533
- var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, {
27534
- email: {
27535
- type: "email",
27536
- label: instance.t("fields.eif"),
27537
- isSingular: true,
27538
- labelPlaceholder: instance.t("common.email"),
27539
- icon: neetoIcons.Email,
27540
- component: Email,
27541
- defaults: {
27542
- label: ""
27543
- }
27544
- },
27545
- phone: {
27546
- type: "phone",
27547
- label: instance.t("fields.pif"),
27548
- isSingular: true,
27549
- labelPlaceholder: instance.t("common.phNo"),
27550
- icon: neetoIcons.Phone,
27551
- component: Phone,
27552
- defaults: {
27553
- label: ""
27554
- }
27555
- },
27556
- name: {
27557
- type: "name",
27558
- label: instance.t("fields.nif"),
27559
- isSingular: true,
27560
- labelPlaceholder: instance.t("common.name"),
27561
- icon: neetoIcons.Input,
27562
- component: ShortText,
27563
- defaults: {
27564
- label: ""
27565
- }
27566
- },
27567
- text: {
27568
- type: "text",
27569
- label: instance.t("fields.tif"),
27570
- isSingular: false,
27571
- labelPlaceholder: instance.t("common.text"),
27572
- icon: neetoIcons.Input,
27573
- component: ShortText,
27574
- defaults: {
27533
+ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
27534
+ type: "email",
27535
+ label: instance.t("fields.eif"),
27536
+ isSingular: true,
27537
+ labelPlaceholder: instance.t("common.email"),
27538
+ icon: neetoIcons.Email,
27539
+ component: Email,
27540
+ defaults: {
27541
+ label: ""
27542
+ }
27543
+ }, {
27544
+ type: "phone",
27545
+ label: instance.t("fields.pif"),
27546
+ isSingular: true,
27547
+ labelPlaceholder: instance.t("common.phNo"),
27548
+ icon: neetoIcons.Phone,
27549
+ component: Phone,
27550
+ defaults: {
27551
+ label: ""
27552
+ }
27553
+ }, {
27554
+ type: "name",
27555
+ label: instance.t("fields.nif"),
27556
+ isSingular: true,
27557
+ labelPlaceholder: instance.t("common.name"),
27558
+ icon: neetoIcons.Input,
27559
+ component: ShortText,
27560
+ defaults: {
27561
+ label: ""
27562
+ }
27563
+ }, {
27564
+ type: "text",
27565
+ label: instance.t("fields.tif"),
27566
+ isSingular: false,
27567
+ labelPlaceholder: instance.t("common.text"),
27568
+ icon: neetoIcons.Input,
27569
+ component: ShortText,
27570
+ defaults: {
27571
+ label: ""
27572
+ }
27573
+ }, {
27574
+ type: "question",
27575
+ label: instance.t("fields.qif"),
27576
+ isSingular: false,
27577
+ icon: neetoIcons.Input,
27578
+ component: LongText,
27579
+ defaults: {
27580
+ label: ""
27581
+ }
27582
+ }, {
27583
+ type: "textarea",
27584
+ label: instance.t("fields.def"),
27585
+ isSingular: false,
27586
+ icon: neetoIcons.NeetoInvisible,
27587
+ component: Editor,
27588
+ defaults: {
27589
+ label: ""
27590
+ }
27591
+ }, {
27592
+ type: "checkbox",
27593
+ label: instance.t("fields.mcf"),
27594
+ isSingular: false,
27595
+ icon: neetoIcons.MultipleChoice,
27596
+ component: MultipleChoice,
27597
+ defaults: {
27598
+ label: "",
27599
+ isRequired: false,
27600
+ optionsAttributes: [{
27575
27601
  label: ""
27576
- }
27577
- },
27578
- question: {
27579
- type: "question",
27580
- label: instance.t("fields.qif"),
27581
- isSingular: false,
27582
- icon: neetoIcons.Input,
27583
- component: LongText,
27584
- defaults: {
27602
+ }]
27603
+ }
27604
+ }, {
27605
+ type: "radio",
27606
+ label: instance.t("fields.scf"),
27607
+ isSingular: false,
27608
+ icon: neetoIcons.ListDot,
27609
+ component: SingleChoice,
27610
+ defaults: {
27611
+ label: "",
27612
+ isRequired: false,
27613
+ optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27585
27614
  label: ""
27586
- }
27587
- },
27588
- textarea: {
27589
- type: "textarea",
27590
- label: instance.t("fields.def"),
27591
- isSingular: false,
27592
- icon: neetoIcons.NeetoInvisible,
27593
- component: Editor,
27594
- defaults: {
27615
+ })
27616
+ }
27617
+ }, {
27618
+ type: "dropdown",
27619
+ label: instance.t("fields.drf"),
27620
+ isSingular: false,
27621
+ icon: neetoIcons.Dropdown,
27622
+ component: Dropdown,
27623
+ defaults: {
27624
+ label: "",
27625
+ isRequired: false,
27626
+ optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27595
27627
  label: ""
27596
- }
27597
- },
27598
- checkbox: {
27599
- type: "checkbox",
27600
- label: instance.t("fields.mcf"),
27601
- isSingular: false,
27602
- icon: neetoIcons.MultipleChoice,
27603
- component: MultipleChoice,
27604
- defaults: {
27605
- label: "",
27606
- isRequired: false,
27607
- optionsAttributes: [{
27608
- label: ""
27609
- }]
27610
- }
27611
- },
27612
- radio: {
27613
- type: "radio",
27614
- label: instance.t("fields.scf"),
27615
- isSingular: false,
27616
- icon: neetoIcons.ListDot,
27617
- component: SingleChoice,
27618
- defaults: {
27619
- label: "",
27620
- isRequired: false,
27621
- optionsAttributes: new Array(SINGLE_CHOICE_FIELD_MIN_OPTIONS).fill({
27622
- label: ""
27623
- })
27624
- }
27625
- },
27626
- dropdown: {
27627
- type: "dropdown",
27628
- label: instance.t("fields.drf"),
27629
- isSingular: false,
27630
- icon: neetoIcons.Dropdown,
27631
- component: Dropdown,
27632
- defaults: {
27633
- label: "",
27634
- isRequired: false,
27635
- optionsAttributes: new Array(DROPDOWN_FIELD_MIN_OPTIONS).fill({
27636
- label: ""
27637
- })
27638
- }
27639
- },
27640
- star_rating: {
27641
- type: "star_rating",
27642
- label: instance.t("fields.rif"),
27643
- isSingular: false,
27644
- icon: neetoIcons.Rating,
27645
- component: StarRating$1,
27646
- defaults: {
27647
- label: "",
27648
- isRequired: true,
27649
- count: 5,
27650
- shape: "star"
27651
- }
27652
- },
27653
- rating: {
27654
- type: "rating",
27655
- label: instance.t("fields.fbf"),
27656
- isSingular: false,
27657
- icon: neetoIcons.Smiley,
27658
- component: Rating$1,
27659
- defaults: {
27660
- label: "",
27661
- isRequired: true,
27662
- highestRatingLabel: "",
27663
- averageRatingLabel: "",
27664
- lowestRatingLabel: ""
27665
- }
27666
- },
27667
- termsandcondition: {
27668
- type: "termsandcondition",
27669
- label: instance.t("fields.tcf"),
27670
- isSingular: true,
27671
- icon: neetoIcons.NeetoInvisible,
27672
- component: Terms$2,
27673
- defaults: {
27674
- termsLink: "",
27675
- privacyPolicyLink: "",
27676
- isRequired: true,
27677
- label: instance.t("common.agreeTermsAndConditions")
27678
- }
27679
- },
27680
- date: {
27681
- type: "date",
27682
- label: instance.t("fields.date"),
27683
- isSingular: false,
27684
- icon: neetoIcons.Calendar,
27685
- component: ShortText,
27686
- defaults: {
27687
- label: "",
27688
- isRequired: true
27689
- }
27628
+ })
27690
27629
  }
27691
- });
27630
+ }, {
27631
+ type: "star_rating",
27632
+ label: instance.t("fields.rif"),
27633
+ isSingular: false,
27634
+ icon: neetoIcons.Rating,
27635
+ component: StarRating$1,
27636
+ defaults: {
27637
+ label: "",
27638
+ isRequired: true,
27639
+ count: 5,
27640
+ shape: "star"
27641
+ }
27642
+ }, {
27643
+ type: "rating",
27644
+ label: instance.t("fields.fbf"),
27645
+ isSingular: false,
27646
+ icon: neetoIcons.Smiley,
27647
+ component: Rating$1,
27648
+ defaults: {
27649
+ label: "",
27650
+ isRequired: true,
27651
+ highestRatingLabel: "",
27652
+ averageRatingLabel: "",
27653
+ lowestRatingLabel: ""
27654
+ }
27655
+ }, {
27656
+ type: "termsandcondition",
27657
+ label: instance.t("fields.tcf"),
27658
+ isSingular: true,
27659
+ icon: neetoIcons.NeetoInvisible,
27660
+ component: Terms$2,
27661
+ defaults: {
27662
+ termsLink: "",
27663
+ privacyPolicyLink: "",
27664
+ isRequired: true,
27665
+ label: instance.t("common.agreeTermsAndConditions")
27666
+ }
27667
+ }, {
27668
+ type: "date",
27669
+ label: instance.t("fields.date"),
27670
+ isSingular: false,
27671
+ icon: neetoIcons.Calendar,
27672
+ component: ShortText,
27673
+ defaults: {
27674
+ label: "",
27675
+ isRequired: true
27676
+ }
27677
+ }]);
27692
27678
 
27693
27679
  // To show the question type as label in accordion
27694
27680
  var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[4]++, {
@@ -27699,7 +27685,7 @@ var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["textarea", "termsandcondition"])
27699
27685
 
27700
27686
  function cov_xwc6pppkl() {
27701
27687
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/FormField.jsx";
27702
- var hash = "cba680cb5d1feec4877d26f79a7d90373fc66039";
27688
+ var hash = "c22b8999f9a44ff11944e9508195eb2aa07200ac";
27703
27689
  var global = new Function("return this")();
27704
27690
  var gcv = "__coverage__";
27705
27691
  var coverageData = {
@@ -27707,61 +27693,61 @@ function cov_xwc6pppkl() {
27707
27693
  statementMap: {
27708
27694
  "0": {
27709
27695
  start: {
27710
- line: 10,
27696
+ line: 12,
27711
27697
  column: 18
27712
27698
  },
27713
27699
  end: {
27714
- line: 48,
27700
+ line: 50,
27715
27701
  column: 1
27716
27702
  }
27717
27703
  },
27718
27704
  "1": {
27719
27705
  start: {
27720
- line: 22,
27706
+ line: 24,
27721
27707
  column: 6
27722
27708
  },
27723
27709
  end: {
27724
- line: 22,
27710
+ line: 24,
27725
27711
  column: 11
27726
27712
  }
27727
27713
  },
27728
27714
  "2": {
27729
27715
  start: {
27730
- line: 23,
27716
+ line: 25,
27731
27717
  column: 26
27732
27718
  },
27733
27719
  end: {
27734
- line: 23,
27720
+ line: 25,
27735
27721
  column: 30
27736
27722
  }
27737
27723
  },
27738
27724
  "3": {
27739
27725
  start: {
27740
- line: 29,
27726
+ line: 31,
27741
27727
  column: 6
27742
27728
  },
27743
27729
  end: {
27744
- line: 29,
27745
- column: 26
27730
+ line: 31,
27731
+ column: 44
27746
27732
  }
27747
27733
  },
27748
27734
  "4": {
27749
27735
  start: {
27750
- line: 31,
27736
+ line: 33,
27751
27737
  column: 2
27752
27738
  },
27753
27739
  end: {
27754
- line: 47,
27740
+ line: 49,
27755
27741
  column: 4
27756
27742
  }
27757
27743
  },
27758
27744
  "5": {
27759
27745
  start: {
27760
- line: 43,
27746
+ line: 45,
27761
27747
  column: 22
27762
27748
  },
27763
27749
  end: {
27764
- line: 43,
27750
+ line: 45,
27765
27751
  column: 51
27766
27752
  }
27767
27753
  }
@@ -27771,141 +27757,141 @@ function cov_xwc6pppkl() {
27771
27757
  name: "(anonymous_0)",
27772
27758
  decl: {
27773
27759
  start: {
27774
- line: 10,
27760
+ line: 12,
27775
27761
  column: 18
27776
27762
  },
27777
27763
  end: {
27778
- line: 10,
27764
+ line: 12,
27779
27765
  column: 19
27780
27766
  }
27781
27767
  },
27782
27768
  loc: {
27783
27769
  start: {
27784
- line: 10,
27770
+ line: 12,
27785
27771
  column: 27
27786
27772
  },
27787
27773
  end: {
27788
- line: 48,
27774
+ line: 50,
27789
27775
  column: 1
27790
27776
  }
27791
27777
  },
27792
- line: 10
27778
+ line: 12
27793
27779
  },
27794
27780
  "1": {
27795
27781
  name: "(anonymous_1)",
27796
27782
  decl: {
27797
27783
  start: {
27798
- line: 43,
27784
+ line: 45,
27799
27785
  column: 16
27800
27786
  },
27801
27787
  end: {
27802
- line: 43,
27788
+ line: 45,
27803
27789
  column: 17
27804
27790
  }
27805
27791
  },
27806
27792
  loc: {
27807
27793
  start: {
27808
- line: 43,
27794
+ line: 45,
27809
27795
  column: 22
27810
27796
  },
27811
27797
  end: {
27812
- line: 43,
27798
+ line: 45,
27813
27799
  column: 51
27814
27800
  }
27815
27801
  },
27816
- line: 43
27802
+ line: 45
27817
27803
  }
27818
27804
  },
27819
27805
  branchMap: {
27820
27806
  "0": {
27821
27807
  loc: {
27822
27808
  start: {
27823
- line: 13,
27809
+ line: 15,
27824
27810
  column: 4
27825
27811
  },
27826
27812
  end: {
27827
- line: 13,
27813
+ line: 15,
27828
27814
  column: 21
27829
27815
  }
27830
27816
  },
27831
27817
  type: "default-arg",
27832
27818
  locations: [{
27833
27819
  start: {
27834
- line: 13,
27820
+ line: 15,
27835
27821
  column: 17
27836
27822
  },
27837
27823
  end: {
27838
- line: 13,
27824
+ line: 15,
27839
27825
  column: 21
27840
27826
  }
27841
27827
  }],
27842
- line: 13
27828
+ line: 15
27843
27829
  },
27844
27830
  "1": {
27845
27831
  loc: {
27846
27832
  start: {
27847
- line: 36,
27833
+ line: 38,
27848
27834
  column: 13
27849
27835
  },
27850
27836
  end: {
27851
- line: 36,
27837
+ line: 38,
27852
27838
  column: 50
27853
27839
  }
27854
27840
  },
27855
27841
  type: "binary-expr",
27856
27842
  locations: [{
27857
27843
  start: {
27858
- line: 36,
27844
+ line: 38,
27859
27845
  column: 13
27860
27846
  },
27861
27847
  end: {
27862
- line: 36,
27848
+ line: 38,
27863
27849
  column: 41
27864
27850
  }
27865
27851
  }, {
27866
27852
  start: {
27867
- line: 36,
27853
+ line: 38,
27868
27854
  column: 45
27869
27855
  },
27870
27856
  end: {
27871
- line: 36,
27857
+ line: 38,
27872
27858
  column: 50
27873
27859
  }
27874
27860
  }],
27875
- line: 36
27861
+ line: 38
27876
27862
  },
27877
27863
  "2": {
27878
27864
  loc: {
27879
27865
  start: {
27880
- line: 42,
27866
+ line: 44,
27881
27867
  column: 19
27882
27868
  },
27883
27869
  end: {
27884
- line: 42,
27870
+ line: 44,
27885
27871
  column: 45
27886
27872
  }
27887
27873
  },
27888
27874
  type: "binary-expr",
27889
27875
  locations: [{
27890
27876
  start: {
27891
- line: 42,
27877
+ line: 44,
27892
27878
  column: 19
27893
27879
  },
27894
27880
  end: {
27895
- line: 42,
27881
+ line: 44,
27896
27882
  column: 30
27897
27883
  }
27898
27884
  }, {
27899
27885
  start: {
27900
- line: 42,
27886
+ line: 44,
27901
27887
  column: 34
27902
27888
  },
27903
27889
  end: {
27904
- line: 42,
27890
+ line: 44,
27905
27891
  column: 45
27906
27892
  }
27907
27893
  }],
27908
- line: 42
27894
+ line: 44
27909
27895
  }
27910
27896
  },
27911
27897
  s: {
@@ -27926,7 +27912,7 @@ function cov_xwc6pppkl() {
27926
27912
  "2": [0, 0]
27927
27913
  },
27928
27914
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27929
- hash: "cba680cb5d1feec4877d26f79a7d90373fc66039"
27915
+ hash: "c22b8999f9a44ff11944e9508195eb2aa07200ac"
27930
27916
  };
27931
27917
  var coverage = global[gcv] || (global[gcv] = {});
27932
27918
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27961,7 +27947,9 @@ var FormField = function FormField(props) {
27961
27947
  var _ref2 = (cov_xwc6pppkl().s[2]++, item),
27962
27948
  kind = _ref2.kind,
27963
27949
  label = _ref2.label;
27964
- var _ref3 = (cov_xwc6pppkl().s[3]++, QUESTION_KINDS[kind]),
27950
+ var _ref3 = (cov_xwc6pppkl().s[3]++, pure.findBy({
27951
+ type: kind
27952
+ }, QUESTION_KINDS)),
27965
27953
  FieldComponent = _ref3.component,
27966
27954
  FieldIcon = _ref3.icon,
27967
27955
  isSingular = _ref3.isSingular;
@@ -29084,7 +29072,7 @@ v35('v5', 0x50, sha1);
29084
29072
 
29085
29073
  function cov_1ia73x4fw3() {
29086
29074
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/utils.js";
29087
- var hash = "1d151b6ca8e222f97d84c7ce5a72809c723c63ba";
29075
+ var hash = "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5";
29088
29076
  var global = new Function("return this")();
29089
29077
  var gcv = "__coverage__";
29090
29078
  var coverageData = {
@@ -29217,17 +29205,17 @@ function cov_1ia73x4fw3() {
29217
29205
  },
29218
29206
  end: {
29219
29207
  line: 46,
29220
- column: 70
29208
+ column: 56
29221
29209
  }
29222
29210
  },
29223
29211
  "13": {
29224
29212
  start: {
29225
29213
  line: 46,
29226
- column: 31
29214
+ column: 32
29227
29215
  },
29228
29216
  end: {
29229
29217
  line: 46,
29230
- column: 70
29218
+ column: 56
29231
29219
  }
29232
29220
  },
29233
29221
  "14": {
@@ -29287,7 +29275,7 @@ function cov_1ia73x4fw3() {
29287
29275
  },
29288
29276
  end: {
29289
29277
  line: 58,
29290
- column: 38
29278
+ column: 23
29291
29279
  }
29292
29280
  },
29293
29281
  "20": {
@@ -29657,7 +29645,7 @@ function cov_1ia73x4fw3() {
29657
29645
  },
29658
29646
  end: {
29659
29647
  line: 46,
29660
- column: 70
29648
+ column: 56
29661
29649
  }
29662
29650
  },
29663
29651
  type: "if",
@@ -29668,7 +29656,7 @@ function cov_1ia73x4fw3() {
29668
29656
  },
29669
29657
  end: {
29670
29658
  line: 46,
29671
- column: 70
29659
+ column: 56
29672
29660
  }
29673
29661
  }, {
29674
29662
  start: {
@@ -29863,7 +29851,7 @@ function cov_1ia73x4fw3() {
29863
29851
  "8": [0, 0]
29864
29852
  },
29865
29853
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
29866
- hash: "1d151b6ca8e222f97d84c7ce5a72809c723c63ba"
29854
+ hash: "c3927f25fb15841467e1e5e5d25d5fcc9ca03dd5"
29867
29855
  };
29868
29856
  var coverage = global[gcv] || (global[gcv] = {});
29869
29857
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -29914,7 +29902,7 @@ var createFieldData = function createFieldData(_ref2, isRequired) {
29914
29902
  cov_1ia73x4fw3().f[2]++;
29915
29903
  cov_1ia73x4fw3().s[8]++;
29916
29904
  return _objectSpread$a(_objectSpread$a({}, defaults), {}, {
29917
- required: isRequired,
29905
+ isRequired: isRequired,
29918
29906
  kind: type,
29919
29907
  nodeId: v4()
29920
29908
  });
@@ -29940,10 +29928,10 @@ var getAvailableQuestionKinds = function getAvailableQuestionKinds(allQuestionKi
29940
29928
  var activeQuestions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_1ia73x4fw3().b[3][0]++, []);
29941
29929
  cov_1ia73x4fw3().f[4]++;
29942
29930
  cov_1ia73x4fw3().s[12]++;
29943
- if (!activeQuestions.length) {
29931
+ if (ramda.isEmpty(activeQuestions)) {
29944
29932
  cov_1ia73x4fw3().b[4][0]++;
29945
29933
  cov_1ia73x4fw3().s[13]++;
29946
- return Object.values(allQuestionKinds);
29934
+ return allQuestionKinds;
29947
29935
  } else {
29948
29936
  cov_1ia73x4fw3().b[4][1]++;
29949
29937
  }
@@ -29959,7 +29947,7 @@ var getAvailableQuestionKinds = function getAvailableQuestionKinds(allQuestionKi
29959
29947
  return (cov_1ia73x4fw3().b[6][0]++, isSingularKind) && (cov_1ia73x4fw3().b[6][1]++, isKindAlreadyActive);
29960
29948
  }, allQuestionKinds));
29961
29949
  cov_1ia73x4fw3().s[19]++;
29962
- return Object.values(questionKinds);
29950
+ return questionKinds;
29963
29951
  };
29964
29952
  cov_1ia73x4fw3().s[20]++;
29965
29953
  var sliceLabel = function sliceLabel(label) {
@@ -32015,7 +32003,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, yup.object().shape({
32015
32003
 
32016
32004
  function cov_2nbnnlcv5p() {
32017
32005
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
32018
- var hash = "bceb825b432a5cf1a0b5a35d5cba61cb3a13489b";
32006
+ var hash = "b88e0689ba4e946eb5dc0499c0e2d153481098de";
32019
32007
  var global = new Function("return this")();
32020
32008
  var gcv = "__coverage__";
32021
32009
  var coverageData = {
@@ -32023,201 +32011,201 @@ function cov_2nbnnlcv5p() {
32023
32011
  statementMap: {
32024
32012
  "0": {
32025
32013
  start: {
32026
- line: 16,
32014
+ line: 17,
32027
32015
  column: 18
32028
32016
  },
32029
32017
  end: {
32030
- line: 136,
32018
+ line: 140,
32031
32019
  column: 1
32032
32020
  }
32033
32021
  },
32034
32022
  "1": {
32035
32023
  start: {
32036
- line: 28,
32024
+ line: 30,
32037
32025
  column: 54
32038
32026
  },
32039
32027
  end: {
32040
- line: 28,
32028
+ line: 30,
32041
32029
  column: 69
32042
32030
  }
32043
32031
  },
32044
32032
  "2": {
32045
32033
  start: {
32046
- line: 30,
32034
+ line: 32,
32047
32035
  column: 22
32048
32036
  },
32049
32037
  end: {
32050
- line: 30,
32038
+ line: 32,
32051
32039
  column: 38
32052
32040
  }
32053
32041
  },
32054
32042
  "3": {
32055
32043
  start: {
32056
- line: 32,
32044
+ line: 34,
32057
32045
  column: 43
32058
32046
  },
32059
32047
  end: {
32060
- line: 37,
32048
+ line: 39,
32061
32049
  column: 4
32062
32050
  }
32063
32051
  },
32064
32052
  "4": {
32065
32053
  start: {
32066
- line: 34,
32054
+ line: 36,
32067
32055
  column: 22
32068
32056
  },
32069
32057
  end: {
32070
- line: 34,
32058
+ line: 36,
32071
32059
  column: 41
32072
32060
  }
32073
32061
  },
32074
32062
  "5": {
32075
32063
  start: {
32076
- line: 36,
32064
+ line: 38,
32077
32065
  column: 6
32078
32066
  },
32079
32067
  end: {
32080
- line: 36,
32068
+ line: 38,
32081
32069
  column: 28
32082
32070
  }
32083
32071
  },
32084
32072
  "6": {
32085
32073
  start: {
32086
- line: 45,
32074
+ line: 47,
32087
32075
  column: 6
32088
32076
  },
32089
32077
  end: {
32090
- line: 63,
32078
+ line: 65,
32091
32079
  column: 4
32092
32080
  }
32093
32081
  },
32094
32082
  "7": {
32095
32083
  start: {
32096
- line: 47,
32084
+ line: 49,
32097
32085
  column: 23
32098
32086
  },
32099
32087
  end: {
32100
- line: 47,
32088
+ line: 49,
32101
32089
  column: 39
32102
32090
  }
32103
32091
  },
32104
32092
  "8": {
32105
32093
  start: {
32106
- line: 65,
32094
+ line: 67,
32107
32095
  column: 23
32108
32096
  },
32109
32097
  end: {
32110
- line: 72,
32098
+ line: 74,
32111
32099
  column: 6
32112
32100
  }
32113
32101
  },
32114
32102
  "9": {
32115
32103
  start: {
32116
- line: 66,
32104
+ line: 68,
32117
32105
  column: 4
32118
32106
  },
32119
32107
  end: {
32120
- line: 72,
32108
+ line: 74,
32121
32109
  column: 6
32122
32110
  }
32123
32111
  },
32124
32112
  "10": {
32125
32113
  start: {
32126
- line: 74,
32114
+ line: 76,
32127
32115
  column: 24
32128
32116
  },
32129
32117
  end: {
32130
- line: 86,
32118
+ line: 88,
32131
32119
  column: 3
32132
32120
  }
32133
32121
  },
32134
32122
  "11": {
32135
32123
  start: {
32136
- line: 75,
32124
+ line: 77,
32137
32125
  column: 32
32138
32126
  },
32139
32127
  end: {
32140
- line: 78,
32128
+ line: 80,
32141
32129
  column: 6
32142
32130
  }
32143
32131
  },
32144
32132
  "12": {
32145
32133
  start: {
32146
- line: 80,
32134
+ line: 82,
32147
32135
  column: 4
32148
32136
  },
32149
32137
  end: {
32150
- line: 85,
32138
+ line: 87,
32151
32139
  column: 5
32152
32140
  }
32153
32141
  },
32154
32142
  "13": {
32155
32143
  start: {
32156
- line: 81,
32144
+ line: 83,
32157
32145
  column: 6
32158
32146
  },
32159
32147
  end: {
32160
- line: 84,
32148
+ line: 86,
32161
32149
  column: 8
32162
32150
  }
32163
32151
  },
32164
32152
  "14": {
32165
32153
  start: {
32166
- line: 88,
32154
+ line: 90,
32167
32155
  column: 2
32168
32156
  },
32169
32157
  end: {
32170
- line: 94,
32158
+ line: 96,
32171
32159
  column: 3
32172
32160
  }
32173
32161
  },
32174
32162
  "15": {
32175
32163
  start: {
32176
- line: 89,
32164
+ line: 91,
32177
32165
  column: 4
32178
32166
  },
32179
32167
  end: {
32180
- line: 93,
32168
+ line: 95,
32181
32169
  column: 6
32182
32170
  }
32183
32171
  },
32184
32172
  "16": {
32185
32173
  start: {
32186
- line: 96,
32174
+ line: 98,
32187
32175
  column: 2
32188
32176
  },
32189
32177
  end: {
32190
- line: 135,
32178
+ line: 139,
32191
32179
  column: 4
32192
32180
  }
32193
32181
  },
32194
32182
  "17": {
32195
32183
  start: {
32196
- line: 109,
32184
+ line: 111,
32197
32185
  column: 10
32198
32186
  },
32199
32187
  end: {
32200
- line: 126,
32188
+ line: 130,
32201
32189
  column: 12
32202
32190
  }
32203
32191
  },
32204
32192
  "18": {
32205
32193
  start: {
32206
- line: 122,
32194
+ line: 126,
32207
32195
  column: 14
32208
32196
  },
32209
32197
  end: {
32210
- line: 124,
32198
+ line: 128,
32211
32199
  column: 15
32212
32200
  }
32213
32201
  },
32214
32202
  "19": {
32215
32203
  start: {
32216
- line: 123,
32204
+ line: 127,
32217
32205
  column: 16
32218
32206
  },
32219
32207
  end: {
32220
- line: 123,
32208
+ line: 127,
32221
32209
  column: 49
32222
32210
  }
32223
32211
  }
@@ -32227,359 +32215,383 @@ function cov_2nbnnlcv5p() {
32227
32215
  name: "(anonymous_0)",
32228
32216
  decl: {
32229
32217
  start: {
32230
- line: 16,
32218
+ line: 17,
32231
32219
  column: 18
32232
32220
  },
32233
32221
  end: {
32234
- line: 16,
32222
+ line: 17,
32235
32223
  column: 19
32236
32224
  }
32237
32225
  },
32238
32226
  loc: {
32239
32227
  start: {
32240
- line: 27,
32228
+ line: 29,
32241
32229
  column: 6
32242
32230
  },
32243
32231
  end: {
32244
- line: 136,
32232
+ line: 140,
32245
32233
  column: 1
32246
32234
  }
32247
32235
  },
32248
- line: 27
32236
+ line: 29
32249
32237
  },
32250
32238
  "1": {
32251
32239
  name: "(anonymous_1)",
32252
32240
  decl: {
32253
32241
  start: {
32254
- line: 34,
32242
+ line: 36,
32255
32243
  column: 13
32256
32244
  },
32257
32245
  end: {
32258
- line: 34,
32246
+ line: 36,
32259
32247
  column: 14
32260
32248
  }
32261
32249
  },
32262
32250
  loc: {
32263
32251
  start: {
32264
- line: 34,
32252
+ line: 36,
32265
32253
  column: 22
32266
32254
  },
32267
32255
  end: {
32268
- line: 34,
32256
+ line: 36,
32269
32257
  column: 41
32270
32258
  }
32271
32259
  },
32272
- line: 34
32260
+ line: 36
32273
32261
  },
32274
32262
  "2": {
32275
32263
  name: "(anonymous_2)",
32276
32264
  decl: {
32277
32265
  start: {
32278
- line: 35,
32266
+ line: 37,
32279
32267
  column: 15
32280
32268
  },
32281
32269
  end: {
32282
- line: 35,
32270
+ line: 37,
32283
32271
  column: 16
32284
32272
  }
32285
32273
  },
32286
32274
  loc: {
32287
32275
  start: {
32288
- line: 36,
32276
+ line: 38,
32289
32277
  column: 6
32290
32278
  },
32291
32279
  end: {
32292
- line: 36,
32280
+ line: 38,
32293
32281
  column: 28
32294
32282
  }
32295
32283
  },
32296
- line: 36
32284
+ line: 38
32297
32285
  },
32298
32286
  "3": {
32299
32287
  name: "(anonymous_3)",
32300
32288
  decl: {
32301
32289
  start: {
32302
- line: 47,
32290
+ line: 49,
32303
32291
  column: 15
32304
32292
  },
32305
32293
  end: {
32306
- line: 47,
32294
+ line: 49,
32307
32295
  column: 16
32308
32296
  }
32309
32297
  },
32310
32298
  loc: {
32311
32299
  start: {
32312
- line: 47,
32300
+ line: 49,
32313
32301
  column: 23
32314
32302
  },
32315
32303
  end: {
32316
- line: 47,
32304
+ line: 49,
32317
32305
  column: 39
32318
32306
  }
32319
32307
  },
32320
- line: 47
32308
+ line: 49
32321
32309
  },
32322
32310
  "4": {
32323
32311
  name: "(anonymous_4)",
32324
32312
  decl: {
32325
32313
  start: {
32326
- line: 65,
32314
+ line: 67,
32327
32315
  column: 23
32328
32316
  },
32329
32317
  end: {
32330
- line: 65,
32318
+ line: 67,
32331
32319
  column: 24
32332
32320
  }
32333
32321
  },
32334
32322
  loc: {
32335
32323
  start: {
32336
- line: 66,
32324
+ line: 68,
32337
32325
  column: 4
32338
32326
  },
32339
32327
  end: {
32340
- line: 72,
32328
+ line: 74,
32341
32329
  column: 6
32342
32330
  }
32343
32331
  },
32344
- line: 66
32332
+ line: 68
32345
32333
  },
32346
32334
  "5": {
32347
32335
  name: "(anonymous_5)",
32348
32336
  decl: {
32349
32337
  start: {
32350
- line: 74,
32338
+ line: 76,
32351
32339
  column: 24
32352
32340
  },
32353
32341
  end: {
32354
- line: 74,
32342
+ line: 76,
32355
32343
  column: 25
32356
32344
  }
32357
32345
  },
32358
32346
  loc: {
32359
32347
  start: {
32360
- line: 74,
32348
+ line: 76,
32361
32349
  column: 37
32362
32350
  },
32363
32351
  end: {
32364
- line: 86,
32352
+ line: 88,
32365
32353
  column: 3
32366
32354
  }
32367
32355
  },
32368
- line: 74
32356
+ line: 76
32369
32357
  },
32370
32358
  "6": {
32371
32359
  name: "(anonymous_6)",
32372
32360
  decl: {
32373
32361
  start: {
32374
- line: 108,
32362
+ line: 110,
32375
32363
  column: 9
32376
32364
  },
32377
32365
  end: {
32378
- line: 108,
32366
+ line: 110,
32379
32367
  column: 10
32380
32368
  }
32381
32369
  },
32382
32370
  loc: {
32383
32371
  start: {
32384
- line: 109,
32372
+ line: 111,
32385
32373
  column: 10
32386
32374
  },
32387
32375
  end: {
32388
- line: 126,
32376
+ line: 130,
32389
32377
  column: 12
32390
32378
  }
32391
32379
  },
32392
- line: 109
32380
+ line: 111
32393
32381
  },
32394
32382
  "7": {
32395
32383
  name: "(anonymous_7)",
32396
32384
  decl: {
32397
32385
  start: {
32398
- line: 121,
32386
+ line: 125,
32399
32387
  column: 22
32400
32388
  },
32401
32389
  end: {
32402
- line: 121,
32390
+ line: 125,
32403
32391
  column: 23
32404
32392
  }
32405
32393
  },
32406
32394
  loc: {
32407
32395
  start: {
32408
- line: 121,
32396
+ line: 125,
32409
32397
  column: 31
32410
32398
  },
32411
32399
  end: {
32412
- line: 125,
32400
+ line: 129,
32413
32401
  column: 13
32414
32402
  }
32415
32403
  },
32416
- line: 121
32404
+ line: 125
32417
32405
  }
32418
32406
  },
32419
32407
  branchMap: {
32420
32408
  "0": {
32421
32409
  loc: {
32422
32410
  start: {
32423
- line: 20,
32411
+ line: 21,
32424
32412
  column: 2
32425
32413
  },
32426
32414
  end: {
32427
- line: 20,
32415
+ line: 21,
32428
32416
  column: 31
32429
32417
  }
32430
32418
  },
32431
32419
  type: "default-arg",
32432
32420
  locations: [{
32433
32421
  start: {
32434
- line: 20,
32422
+ line: 21,
32435
32423
  column: 27
32436
32424
  },
32437
32425
  end: {
32438
- line: 20,
32426
+ line: 21,
32439
32427
  column: 31
32440
32428
  }
32441
32429
  }],
32442
- line: 20
32430
+ line: 21
32443
32431
  },
32444
32432
  "1": {
32445
32433
  loc: {
32446
32434
  start: {
32447
- line: 21,
32435
+ line: 22,
32448
32436
  column: 2
32449
32437
  },
32450
32438
  end: {
32451
- line: 21,
32439
+ line: 22,
32452
32440
  column: 25
32453
32441
  }
32454
32442
  },
32455
32443
  type: "default-arg",
32456
32444
  locations: [{
32457
32445
  start: {
32458
- line: 21,
32446
+ line: 22,
32459
32447
  column: 23
32460
32448
  },
32461
32449
  end: {
32462
- line: 21,
32450
+ line: 22,
32463
32451
  column: 25
32464
32452
  }
32465
32453
  }],
32466
- line: 21
32454
+ line: 22
32467
32455
  },
32468
32456
  "2": {
32469
32457
  loc: {
32470
32458
  start: {
32471
- line: 22,
32459
+ line: 23,
32472
32460
  column: 2
32473
32461
  },
32474
32462
  end: {
32475
- line: 22,
32463
+ line: 23,
32476
32464
  column: 21
32477
32465
  }
32478
32466
  },
32479
32467
  type: "default-arg",
32480
32468
  locations: [{
32481
32469
  start: {
32482
- line: 22,
32470
+ line: 23,
32483
32471
  column: 19
32484
32472
  },
32485
32473
  end: {
32486
- line: 22,
32474
+ line: 23,
32487
32475
  column: 21
32488
32476
  }
32489
32477
  }],
32490
- line: 22
32478
+ line: 23
32491
32479
  },
32492
32480
  "3": {
32493
32481
  loc: {
32494
32482
  start: {
32495
- line: 24,
32483
+ line: 25,
32496
32484
  column: 2
32497
32485
  },
32498
32486
  end: {
32499
- line: 24,
32487
+ line: 25,
32500
32488
  column: 24
32501
32489
  }
32502
32490
  },
32503
32491
  type: "default-arg",
32504
32492
  locations: [{
32505
32493
  start: {
32506
- line: 24,
32494
+ line: 25,
32507
32495
  column: 20
32508
32496
  },
32509
32497
  end: {
32510
- line: 24,
32498
+ line: 25,
32511
32499
  column: 24
32512
32500
  }
32513
32501
  }],
32514
- line: 24
32502
+ line: 25
32515
32503
  },
32516
32504
  "4": {
32517
32505
  loc: {
32518
32506
  start: {
32519
- line: 35,
32507
+ line: 28,
32508
+ column: 2
32509
+ },
32510
+ end: {
32511
+ line: 28,
32512
+ column: 20
32513
+ }
32514
+ },
32515
+ type: "default-arg",
32516
+ locations: [{
32517
+ start: {
32518
+ line: 28,
32520
32519
  column: 18
32521
32520
  },
32522
32521
  end: {
32523
- line: 35,
32522
+ line: 28,
32523
+ column: 20
32524
+ }
32525
+ }],
32526
+ line: 28
32527
+ },
32528
+ "5": {
32529
+ loc: {
32530
+ start: {
32531
+ line: 37,
32532
+ column: 18
32533
+ },
32534
+ end: {
32535
+ line: 37,
32524
32536
  column: 70
32525
32537
  }
32526
32538
  },
32527
32539
  type: "default-arg",
32528
32540
  locations: [{
32529
32541
  start: {
32530
- line: 35,
32542
+ line: 37,
32531
32543
  column: 27
32532
32544
  },
32533
32545
  end: {
32534
- line: 35,
32546
+ line: 37,
32535
32547
  column: 70
32536
32548
  }
32537
32549
  }],
32538
- line: 35
32550
+ line: 37
32539
32551
  },
32540
- "5": {
32552
+ "6": {
32541
32553
  loc: {
32542
32554
  start: {
32543
- line: 40,
32555
+ line: 42,
32544
32556
  column: 10
32545
32557
  },
32546
32558
  end: {
32547
- line: 43,
32559
+ line: 45,
32548
32560
  column: 5
32549
32561
  }
32550
32562
  },
32551
32563
  type: "default-arg",
32552
32564
  locations: [{
32553
32565
  start: {
32554
- line: 40,
32566
+ line: 42,
32555
32567
  column: 46
32556
32568
  },
32557
32569
  end: {
32558
- line: 43,
32570
+ line: 45,
32559
32571
  column: 5
32560
32572
  }
32561
32573
  }],
32562
- line: 40
32574
+ line: 42
32563
32575
  },
32564
- "6": {
32576
+ "7": {
32565
32577
  loc: {
32566
32578
  start: {
32567
- line: 80,
32579
+ line: 82,
32568
32580
  column: 4
32569
32581
  },
32570
32582
  end: {
32571
- line: 85,
32583
+ line: 87,
32572
32584
  column: 5
32573
32585
  }
32574
32586
  },
32575
32587
  type: "if",
32576
32588
  locations: [{
32577
32589
  start: {
32578
- line: 80,
32590
+ line: 82,
32579
32591
  column: 4
32580
32592
  },
32581
32593
  end: {
32582
- line: 85,
32594
+ line: 87,
32583
32595
  column: 5
32584
32596
  }
32585
32597
  }, {
@@ -32592,27 +32604,27 @@ function cov_2nbnnlcv5p() {
32592
32604
  column: undefined
32593
32605
  }
32594
32606
  }],
32595
- line: 80
32607
+ line: 82
32596
32608
  },
32597
- "7": {
32609
+ "8": {
32598
32610
  loc: {
32599
32611
  start: {
32600
- line: 88,
32612
+ line: 90,
32601
32613
  column: 2
32602
32614
  },
32603
32615
  end: {
32604
- line: 94,
32616
+ line: 96,
32605
32617
  column: 3
32606
32618
  }
32607
32619
  },
32608
32620
  type: "if",
32609
32621
  locations: [{
32610
32622
  start: {
32611
- line: 88,
32623
+ line: 90,
32612
32624
  column: 2
32613
32625
  },
32614
32626
  end: {
32615
- line: 94,
32627
+ line: 96,
32616
32628
  column: 3
32617
32629
  }
32618
32630
  }, {
@@ -32625,27 +32637,60 @@ function cov_2nbnnlcv5p() {
32625
32637
  column: undefined
32626
32638
  }
32627
32639
  }],
32628
- line: 88
32640
+ line: 90
32629
32641
  },
32630
- "8": {
32642
+ "9": {
32631
32643
  loc: {
32632
32644
  start: {
32633
32645
  line: 122,
32634
32646
  column: 14
32635
32647
  },
32636
32648
  end: {
32637
- line: 124,
32649
+ line: 122,
32650
+ column: 71
32651
+ }
32652
+ },
32653
+ type: "cond-expr",
32654
+ locations: [{
32655
+ start: {
32656
+ line: 122,
32657
+ column: 41
32658
+ },
32659
+ end: {
32660
+ line: 122,
32661
+ column: 54
32662
+ }
32663
+ }, {
32664
+ start: {
32665
+ line: 122,
32666
+ column: 57
32667
+ },
32668
+ end: {
32669
+ line: 122,
32670
+ column: 71
32671
+ }
32672
+ }],
32673
+ line: 122
32674
+ },
32675
+ "10": {
32676
+ loc: {
32677
+ start: {
32678
+ line: 126,
32679
+ column: 14
32680
+ },
32681
+ end: {
32682
+ line: 128,
32638
32683
  column: 15
32639
32684
  }
32640
32685
  },
32641
32686
  type: "if",
32642
32687
  locations: [{
32643
32688
  start: {
32644
- line: 122,
32689
+ line: 126,
32645
32690
  column: 14
32646
32691
  },
32647
32692
  end: {
32648
- line: 124,
32693
+ line: 128,
32649
32694
  column: 15
32650
32695
  }
32651
32696
  }, {
@@ -32658,40 +32703,40 @@ function cov_2nbnnlcv5p() {
32658
32703
  column: undefined
32659
32704
  }
32660
32705
  }],
32661
- line: 122
32706
+ line: 126
32662
32707
  },
32663
- "9": {
32708
+ "11": {
32664
32709
  loc: {
32665
32710
  start: {
32666
- line: 129,
32711
+ line: 133,
32667
32712
  column: 7
32668
32713
  },
32669
32714
  end: {
32670
- line: 133,
32715
+ line: 137,
32671
32716
  column: 7
32672
32717
  }
32673
32718
  },
32674
32719
  type: "binary-expr",
32675
32720
  locations: [{
32676
32721
  start: {
32677
- line: 129,
32722
+ line: 133,
32678
32723
  column: 7
32679
32724
  },
32680
32725
  end: {
32681
- line: 129,
32726
+ line: 133,
32682
32727
  column: 25
32683
32728
  }
32684
32729
  }, {
32685
32730
  start: {
32686
- line: 130,
32731
+ line: 134,
32687
32732
  column: 8
32688
32733
  },
32689
32734
  end: {
32690
- line: 132,
32735
+ line: 136,
32691
32736
  column: 14
32692
32737
  }
32693
32738
  }],
32694
- line: 129
32739
+ line: 133
32695
32740
  }
32696
32741
  },
32697
32742
  s: {
@@ -32733,13 +32778,15 @@ function cov_2nbnnlcv5p() {
32733
32778
  "3": [0],
32734
32779
  "4": [0],
32735
32780
  "5": [0],
32736
- "6": [0, 0],
32781
+ "6": [0],
32737
32782
  "7": [0, 0],
32738
32783
  "8": [0, 0],
32739
- "9": [0, 0]
32784
+ "9": [0, 0],
32785
+ "10": [0, 0],
32786
+ "11": [0, 0]
32740
32787
  },
32741
32788
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32742
- hash: "bceb825b432a5cf1a0b5a35d5cba61cb3a13489b"
32789
+ hash: "b88e0689ba4e946eb5dc0499c0e2d153481098de"
32743
32790
  };
32744
32791
  var coverage = global[gcv] || (global[gcv] = {});
32745
32792
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -32772,7 +32819,9 @@ var BuildForm = function BuildForm(_ref) {
32772
32819
  _ref$showActionBlock = _ref.showActionBlock,
32773
32820
  showActionBlock = _ref$showActionBlock === void 0 ? (cov_2nbnnlcv5p().b[3][0]++, true) : _ref$showActionBlock,
32774
32821
  submitButtonProps = _ref.submitButtonProps,
32775
- cancelButtonProps = _ref.cancelButtonProps;
32822
+ cancelButtonProps = _ref.cancelButtonProps,
32823
+ _ref$questionKinds = _ref.questionKinds,
32824
+ questionKinds = _ref$questionKinds === void 0 ? (cov_2nbnnlcv5p().b[4][0]++, []) : _ref$questionKinds;
32776
32825
  cov_2nbnnlcv5p().f[0]++;
32777
32826
  var _ref2 = (cov_2nbnnlcv5p().s[1]++, React$2.useState(false)),
32778
32827
  _ref3 = _slicedToArray$6(_ref2, 2),
@@ -32788,7 +32837,7 @@ var BuildForm = function BuildForm(_ref) {
32788
32837
  },
32789
32838
  onSuccess: function onSuccess(_ref5) {
32790
32839
  var _ref5$notice = _ref5.notice,
32791
- notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[4][0]++, "Questions have been updated successfully!") : _ref5$notice;
32840
+ notice = _ref5$notice === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, "Questions have been updated successfully!") : _ref5$notice;
32792
32841
  cov_2nbnnlcv5p().f[2]++;
32793
32842
  cov_2nbnnlcv5p().s[5]++;
32794
32843
  return neetoui.Toastr.success(notice);
@@ -32816,7 +32865,7 @@ var BuildForm = function BuildForm(_ref) {
32816
32865
  }
32817
32866
  })),
32818
32867
  _ref6$data = _ref6.data,
32819
- _ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[5][0]++, {
32868
+ _ref6$data2 = _ref6$data === void 0 ? (cov_2nbnnlcv5p().b[6][0]++, {
32820
32869
  title: "",
32821
32870
  questions: []
32822
32871
  }) : _ref6$data,
@@ -32841,22 +32890,22 @@ var BuildForm = function BuildForm(_ref) {
32841
32890
  dataUpdateCount = _ref7.dataUpdateCount;
32842
32891
  cov_2nbnnlcv5p().s[12]++;
32843
32892
  if (dataUpdateCount > 0) {
32844
- cov_2nbnnlcv5p().b[6][0]++;
32893
+ cov_2nbnnlcv5p().b[7][0]++;
32845
32894
  cov_2nbnnlcv5p().s[13]++;
32846
32895
  queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], ramda.assoc("questions", questions));
32847
32896
  } else {
32848
- cov_2nbnnlcv5p().b[6][1]++;
32897
+ cov_2nbnnlcv5p().b[7][1]++;
32849
32898
  }
32850
32899
  };
32851
32900
  cov_2nbnnlcv5p().s[14]++;
32852
32901
  if (isLoading) {
32853
- cov_2nbnnlcv5p().b[7][0]++;
32902
+ cov_2nbnnlcv5p().b[8][0]++;
32854
32903
  cov_2nbnnlcv5p().s[15]++;
32855
32904
  return /*#__PURE__*/React__default["default"].createElement("div", {
32856
32905
  className: "flex h-full w-full items-center justify-center py-6"
32857
32906
  }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null));
32858
32907
  } else {
32859
- cov_2nbnnlcv5p().b[7][1]++;
32908
+ cov_2nbnnlcv5p().b[8][1]++;
32860
32909
  }
32861
32910
  cov_2nbnnlcv5p().s[16]++;
32862
32911
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -32879,26 +32928,26 @@ var BuildForm = function BuildForm(_ref) {
32879
32928
  cancelButtonProps: cancelButtonProps,
32880
32929
  formId: id,
32881
32930
  nonRemovableFields: nonRemovableFields,
32882
- questionKinds: QUESTION_KINDS,
32883
32931
  requiredFields: requiredFields,
32884
32932
  setShouldValidate: setShouldValidateForm,
32885
32933
  showActionBlock: showActionBlock,
32886
32934
  showAddQuestionDivider: showAddQuestionDivider,
32887
32935
  submitButtonProps: submitButtonProps,
32936
+ questionKinds: pure.isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[9][0]++, questionKinds) : (cov_2nbnnlcv5p().b[9][1]++, QUESTION_KINDS),
32888
32937
  onValueChange: onValueChange,
32889
32938
  onChange: function onChange(event) {
32890
32939
  cov_2nbnnlcv5p().f[7]++;
32891
32940
  cov_2nbnnlcv5p().s[18]++;
32892
32941
  if (!ramda.isEmpty(errors)) {
32893
- cov_2nbnnlcv5p().b[8][0]++;
32942
+ cov_2nbnnlcv5p().b[10][0]++;
32894
32943
  cov_2nbnnlcv5p().s[19]++;
32895
32944
  setFieldError(event.target.name);
32896
32945
  } else {
32897
- cov_2nbnnlcv5p().b[8][1]++;
32946
+ cov_2nbnnlcv5p().b[10][1]++;
32898
32947
  }
32899
32948
  }
32900
32949
  }));
32901
- }), (cov_2nbnnlcv5p().b[9][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[9][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
32950
+ }), (cov_2nbnnlcv5p().b[11][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[11][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
32902
32951
  className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
32903
32952
  }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null))));
32904
32953
  };
@@ -64883,7 +64932,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
64883
64932
 
64884
64933
  function cov_29xlle89ll() {
64885
64934
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
64886
- var hash = "5396a6e3a1a5ecf3060a0d611e84501852de5059";
64935
+ var hash = "f309c9df1c79dbf4de7b84c18c2f39eed53b297f";
64887
64936
  var global = new Function("return this")();
64888
64937
  var gcv = "__coverage__";
64889
64938
  var coverageData = {
@@ -64891,71 +64940,71 @@ function cov_29xlle89ll() {
64891
64940
  statementMap: {
64892
64941
  "0": {
64893
64942
  start: {
64894
- line: 14,
64943
+ line: 13,
64895
64944
  column: 19
64896
64945
  },
64897
64946
  end: {
64898
- line: 59,
64947
+ line: 56,
64899
64948
  column: 1
64900
64949
  }
64901
64950
  },
64902
64951
  "1": {
64903
64952
  start: {
64904
- line: 21,
64953
+ line: 20,
64905
64954
  column: 62
64906
64955
  },
64907
64956
  end: {
64908
- line: 25,
64957
+ line: 24,
64909
64958
  column: 4
64910
64959
  }
64911
64960
  },
64912
64961
  "2": {
64913
64962
  start: {
64914
- line: 27,
64963
+ line: 26,
64915
64964
  column: 24
64916
64965
  },
64917
64966
  end: {
64918
- line: 27,
64967
+ line: 26,
64919
64968
  column: 34
64920
64969
  }
64921
64970
  },
64922
64971
  "3": {
64923
64972
  start: {
64924
- line: 29,
64973
+ line: 28,
64925
64974
  column: 2
64926
64975
  },
64927
64976
  end: {
64928
- line: 35,
64977
+ line: 34,
64929
64978
  column: 3
64930
64979
  }
64931
64980
  },
64932
64981
  "4": {
64933
64982
  start: {
64934
- line: 30,
64983
+ line: 29,
64935
64984
  column: 4
64936
64985
  },
64937
64986
  end: {
64938
- line: 34,
64987
+ line: 33,
64939
64988
  column: 6
64940
64989
  }
64941
64990
  },
64942
64991
  "5": {
64943
64992
  start: {
64944
- line: 37,
64993
+ line: 36,
64945
64994
  column: 2
64946
64995
  },
64947
64996
  end: {
64948
- line: 58,
64997
+ line: 55,
64949
64998
  column: 4
64950
64999
  }
64951
65000
  },
64952
65001
  "6": {
64953
65002
  start: {
64954
- line: 44,
65003
+ line: 43,
64955
65004
  column: 8
64956
65005
  },
64957
65006
  end: {
64958
- line: 55,
65007
+ line: 52,
64959
65008
  column: 14
64960
65009
  }
64961
65010
  }
@@ -64965,248 +65014,248 @@ function cov_29xlle89ll() {
64965
65014
  name: "(anonymous_0)",
64966
65015
  decl: {
64967
65016
  start: {
64968
- line: 14,
65017
+ line: 13,
64969
65018
  column: 19
64970
65019
  },
64971
65020
  end: {
64972
- line: 14,
65021
+ line: 13,
64973
65022
  column: 20
64974
65023
  }
64975
65024
  },
64976
65025
  loc: {
64977
65026
  start: {
64978
- line: 20,
65027
+ line: 19,
64979
65028
  column: 6
64980
65029
  },
64981
65030
  end: {
64982
- line: 59,
65031
+ line: 56,
64983
65032
  column: 1
64984
65033
  }
64985
65034
  },
64986
- line: 20
65035
+ line: 19
64987
65036
  },
64988
65037
  "1": {
64989
65038
  name: "(anonymous_1)",
64990
65039
  decl: {
64991
65040
  start: {
64992
- line: 43,
65041
+ line: 42,
64993
65042
  column: 21
64994
65043
  },
64995
65044
  end: {
64996
- line: 43,
65045
+ line: 42,
64997
65046
  column: 22
64998
65047
  }
64999
65048
  },
65000
65049
  loc: {
65001
65050
  start: {
65002
- line: 44,
65051
+ line: 43,
65003
65052
  column: 8
65004
65053
  },
65005
65054
  end: {
65006
- line: 55,
65055
+ line: 52,
65007
65056
  column: 14
65008
65057
  }
65009
65058
  },
65010
- line: 44
65059
+ line: 43
65011
65060
  }
65012
65061
  },
65013
65062
  branchMap: {
65014
65063
  "0": {
65015
65064
  loc: {
65016
65065
  start: {
65017
- line: 15,
65066
+ line: 14,
65018
65067
  column: 2
65019
65068
  },
65020
65069
  end: {
65021
- line: 15,
65070
+ line: 14,
65022
65071
  column: 13
65023
65072
  }
65024
65073
  },
65025
65074
  type: "default-arg",
65026
65075
  locations: [{
65027
65076
  start: {
65028
- line: 15,
65077
+ line: 14,
65029
65078
  column: 11
65030
65079
  },
65031
65080
  end: {
65032
- line: 15,
65081
+ line: 14,
65033
65082
  column: 13
65034
65083
  }
65035
65084
  }],
65036
- line: 15
65085
+ line: 14
65037
65086
  },
65038
65087
  "1": {
65039
65088
  loc: {
65040
65089
  start: {
65041
- line: 16,
65090
+ line: 15,
65042
65091
  column: 2
65043
65092
  },
65044
65093
  end: {
65045
- line: 16,
65094
+ line: 15,
65046
65095
  column: 19
65047
65096
  }
65048
65097
  },
65049
65098
  type: "default-arg",
65050
65099
  locations: [{
65051
65100
  start: {
65052
- line: 16,
65101
+ line: 15,
65053
65102
  column: 17
65054
65103
  },
65055
65104
  end: {
65056
- line: 16,
65105
+ line: 15,
65057
65106
  column: 19
65058
65107
  }
65059
65108
  }],
65060
- line: 16
65109
+ line: 15
65061
65110
  },
65062
65111
  "2": {
65063
65112
  loc: {
65064
65113
  start: {
65065
- line: 17,
65114
+ line: 16,
65066
65115
  column: 2
65067
65116
  },
65068
65117
  end: {
65069
- line: 17,
65118
+ line: 16,
65070
65119
  column: 16
65071
65120
  }
65072
65121
  },
65073
65122
  type: "default-arg",
65074
65123
  locations: [{
65075
65124
  start: {
65076
- line: 17,
65125
+ line: 16,
65077
65126
  column: 14
65078
65127
  },
65079
65128
  end: {
65080
- line: 17,
65129
+ line: 16,
65081
65130
  column: 16
65082
65131
  }
65083
65132
  }],
65084
- line: 17
65133
+ line: 16
65085
65134
  },
65086
65135
  "3": {
65087
65136
  loc: {
65088
65137
  start: {
65089
- line: 18,
65138
+ line: 17,
65090
65139
  column: 2
65091
65140
  },
65092
65141
  end: {
65093
- line: 18,
65142
+ line: 17,
65094
65143
  column: 25
65095
65144
  }
65096
65145
  },
65097
65146
  type: "default-arg",
65098
65147
  locations: [{
65099
65148
  start: {
65100
- line: 18,
65149
+ line: 17,
65101
65150
  column: 23
65102
65151
  },
65103
65152
  end: {
65104
- line: 18,
65153
+ line: 17,
65105
65154
  column: 25
65106
65155
  }
65107
65156
  }],
65108
- line: 18
65157
+ line: 17
65109
65158
  },
65110
65159
  "4": {
65111
65160
  loc: {
65112
65161
  start: {
65113
- line: 19,
65162
+ line: 18,
65114
65163
  column: 2
65115
65164
  },
65116
65165
  end: {
65117
- line: 19,
65166
+ line: 18,
65118
65167
  column: 18
65119
65168
  }
65120
65169
  },
65121
65170
  type: "default-arg",
65122
65171
  locations: [{
65123
65172
  start: {
65124
- line: 19,
65173
+ line: 18,
65125
65174
  column: 16
65126
65175
  },
65127
65176
  end: {
65128
- line: 19,
65177
+ line: 18,
65129
65178
  column: 18
65130
65179
  }
65131
65180
  }],
65132
- line: 19
65181
+ line: 18
65133
65182
  },
65134
65183
  "5": {
65135
65184
  loc: {
65136
65185
  start: {
65137
- line: 21,
65186
+ line: 20,
65138
65187
  column: 16
65139
65188
  },
65140
65189
  end: {
65141
- line: 21,
65190
+ line: 20,
65142
65191
  column: 46
65143
65192
  }
65144
65193
  },
65145
65194
  type: "default-arg",
65146
65195
  locations: [{
65147
65196
  start: {
65148
- line: 21,
65197
+ line: 20,
65149
65198
  column: 29
65150
65199
  },
65151
65200
  end: {
65152
- line: 21,
65201
+ line: 20,
65153
65202
  column: 46
65154
65203
  }
65155
65204
  }],
65156
- line: 21
65205
+ line: 20
65157
65206
  },
65158
65207
  "6": {
65159
65208
  loc: {
65160
65209
  start: {
65161
- line: 24,
65210
+ line: 23,
65162
65211
  column: 16
65163
65212
  },
65164
65213
  end: {
65165
- line: 24,
65214
+ line: 23,
65166
65215
  column: 38
65167
65216
  }
65168
65217
  },
65169
65218
  type: "binary-expr",
65170
65219
  locations: [{
65171
65220
  start: {
65172
- line: 24,
65221
+ line: 23,
65173
65222
  column: 16
65174
65223
  },
65175
65224
  end: {
65176
- line: 24,
65225
+ line: 23,
65177
65226
  column: 22
65178
65227
  }
65179
65228
  }, {
65180
65229
  start: {
65181
- line: 24,
65230
+ line: 23,
65182
65231
  column: 26
65183
65232
  },
65184
65233
  end: {
65185
- line: 24,
65234
+ line: 23,
65186
65235
  column: 38
65187
65236
  }
65188
65237
  }],
65189
- line: 24
65238
+ line: 23
65190
65239
  },
65191
65240
  "7": {
65192
65241
  loc: {
65193
65242
  start: {
65194
- line: 29,
65243
+ line: 28,
65195
65244
  column: 2
65196
65245
  },
65197
65246
  end: {
65198
- line: 35,
65247
+ line: 34,
65199
65248
  column: 3
65200
65249
  }
65201
65250
  },
65202
65251
  type: "if",
65203
65252
  locations: [{
65204
65253
  start: {
65205
- line: 29,
65254
+ line: 28,
65206
65255
  column: 2
65207
65256
  },
65208
65257
  end: {
65209
- line: 35,
65258
+ line: 34,
65210
65259
  column: 3
65211
65260
  }
65212
65261
  }, {
@@ -65219,40 +65268,40 @@ function cov_29xlle89ll() {
65219
65268
  column: undefined
65220
65269
  }
65221
65270
  }],
65222
- line: 29
65271
+ line: 28
65223
65272
  },
65224
65273
  "8": {
65225
65274
  loc: {
65226
65275
  start: {
65227
- line: 50,
65276
+ line: 49,
65228
65277
  column: 15
65229
65278
  },
65230
65279
  end: {
65231
- line: 52,
65232
- column: 23
65280
+ line: 49,
65281
+ column: 63
65233
65282
  }
65234
65283
  },
65235
65284
  type: "cond-expr",
65236
65285
  locations: [{
65237
65286
  start: {
65238
- line: 51,
65239
- column: 18
65287
+ line: 49,
65288
+ column: 33
65240
65289
  },
65241
65290
  end: {
65242
- line: 51,
65243
- column: 40
65291
+ line: 49,
65292
+ column: 55
65244
65293
  }
65245
65294
  }, {
65246
65295
  start: {
65247
- line: 52,
65248
- column: 18
65296
+ line: 49,
65297
+ column: 58
65249
65298
  },
65250
65299
  end: {
65251
- line: 52,
65252
- column: 23
65300
+ line: 49,
65301
+ column: 63
65253
65302
  }
65254
65303
  }],
65255
- line: 50
65304
+ line: 49
65256
65305
  }
65257
65306
  },
65258
65307
  s: {
@@ -65280,7 +65329,7 @@ function cov_29xlle89ll() {
65280
65329
  "8": [0, 0]
65281
65330
  },
65282
65331
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65283
- hash: "5396a6e3a1a5ecf3060a0d611e84501852de5059"
65332
+ hash: "f309c9df1c79dbf4de7b84c18c2f39eed53b297f"
65284
65333
  };
65285
65334
  var coverage = global[gcv] || (global[gcv] = {});
65286
65335
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65350,7 +65399,7 @@ var Submission = function Submission(_ref) {
65350
65399
  weight: "semibold"
65351
65400
  }, answerProps), /*#__PURE__*/React__default["default"].createElement(_default, {
65352
65401
  componentDecorator: linkifyDecorator
65353
- }, kind === QUESTION_KINDS.date.type ? (cov_29xlle89ll().b[8][0]++, utils.dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65402
+ }, kind === "date" ? (cov_29xlle89ll().b[8][0]++, utils.dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65354
65403
  }));
65355
65404
  };
65356
65405