@bigbinary/neeto-form-frontend 1.0.25 → 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.cjs.js CHANGED
@@ -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) {
@@ -64883,7 +64871,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
64883
64871
 
64884
64872
  function cov_29xlle89ll() {
64885
64873
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
64886
- var hash = "5396a6e3a1a5ecf3060a0d611e84501852de5059";
64874
+ var hash = "f309c9df1c79dbf4de7b84c18c2f39eed53b297f";
64887
64875
  var global = new Function("return this")();
64888
64876
  var gcv = "__coverage__";
64889
64877
  var coverageData = {
@@ -64891,71 +64879,71 @@ function cov_29xlle89ll() {
64891
64879
  statementMap: {
64892
64880
  "0": {
64893
64881
  start: {
64894
- line: 14,
64882
+ line: 13,
64895
64883
  column: 19
64896
64884
  },
64897
64885
  end: {
64898
- line: 59,
64886
+ line: 56,
64899
64887
  column: 1
64900
64888
  }
64901
64889
  },
64902
64890
  "1": {
64903
64891
  start: {
64904
- line: 21,
64892
+ line: 20,
64905
64893
  column: 62
64906
64894
  },
64907
64895
  end: {
64908
- line: 25,
64896
+ line: 24,
64909
64897
  column: 4
64910
64898
  }
64911
64899
  },
64912
64900
  "2": {
64913
64901
  start: {
64914
- line: 27,
64902
+ line: 26,
64915
64903
  column: 24
64916
64904
  },
64917
64905
  end: {
64918
- line: 27,
64906
+ line: 26,
64919
64907
  column: 34
64920
64908
  }
64921
64909
  },
64922
64910
  "3": {
64923
64911
  start: {
64924
- line: 29,
64912
+ line: 28,
64925
64913
  column: 2
64926
64914
  },
64927
64915
  end: {
64928
- line: 35,
64916
+ line: 34,
64929
64917
  column: 3
64930
64918
  }
64931
64919
  },
64932
64920
  "4": {
64933
64921
  start: {
64934
- line: 30,
64922
+ line: 29,
64935
64923
  column: 4
64936
64924
  },
64937
64925
  end: {
64938
- line: 34,
64926
+ line: 33,
64939
64927
  column: 6
64940
64928
  }
64941
64929
  },
64942
64930
  "5": {
64943
64931
  start: {
64944
- line: 37,
64932
+ line: 36,
64945
64933
  column: 2
64946
64934
  },
64947
64935
  end: {
64948
- line: 58,
64936
+ line: 55,
64949
64937
  column: 4
64950
64938
  }
64951
64939
  },
64952
64940
  "6": {
64953
64941
  start: {
64954
- line: 44,
64942
+ line: 43,
64955
64943
  column: 8
64956
64944
  },
64957
64945
  end: {
64958
- line: 55,
64946
+ line: 52,
64959
64947
  column: 14
64960
64948
  }
64961
64949
  }
@@ -64965,248 +64953,248 @@ function cov_29xlle89ll() {
64965
64953
  name: "(anonymous_0)",
64966
64954
  decl: {
64967
64955
  start: {
64968
- line: 14,
64956
+ line: 13,
64969
64957
  column: 19
64970
64958
  },
64971
64959
  end: {
64972
- line: 14,
64960
+ line: 13,
64973
64961
  column: 20
64974
64962
  }
64975
64963
  },
64976
64964
  loc: {
64977
64965
  start: {
64978
- line: 20,
64966
+ line: 19,
64979
64967
  column: 6
64980
64968
  },
64981
64969
  end: {
64982
- line: 59,
64970
+ line: 56,
64983
64971
  column: 1
64984
64972
  }
64985
64973
  },
64986
- line: 20
64974
+ line: 19
64987
64975
  },
64988
64976
  "1": {
64989
64977
  name: "(anonymous_1)",
64990
64978
  decl: {
64991
64979
  start: {
64992
- line: 43,
64980
+ line: 42,
64993
64981
  column: 21
64994
64982
  },
64995
64983
  end: {
64996
- line: 43,
64984
+ line: 42,
64997
64985
  column: 22
64998
64986
  }
64999
64987
  },
65000
64988
  loc: {
65001
64989
  start: {
65002
- line: 44,
64990
+ line: 43,
65003
64991
  column: 8
65004
64992
  },
65005
64993
  end: {
65006
- line: 55,
64994
+ line: 52,
65007
64995
  column: 14
65008
64996
  }
65009
64997
  },
65010
- line: 44
64998
+ line: 43
65011
64999
  }
65012
65000
  },
65013
65001
  branchMap: {
65014
65002
  "0": {
65015
65003
  loc: {
65016
65004
  start: {
65017
- line: 15,
65005
+ line: 14,
65018
65006
  column: 2
65019
65007
  },
65020
65008
  end: {
65021
- line: 15,
65009
+ line: 14,
65022
65010
  column: 13
65023
65011
  }
65024
65012
  },
65025
65013
  type: "default-arg",
65026
65014
  locations: [{
65027
65015
  start: {
65028
- line: 15,
65016
+ line: 14,
65029
65017
  column: 11
65030
65018
  },
65031
65019
  end: {
65032
- line: 15,
65020
+ line: 14,
65033
65021
  column: 13
65034
65022
  }
65035
65023
  }],
65036
- line: 15
65024
+ line: 14
65037
65025
  },
65038
65026
  "1": {
65039
65027
  loc: {
65040
65028
  start: {
65041
- line: 16,
65029
+ line: 15,
65042
65030
  column: 2
65043
65031
  },
65044
65032
  end: {
65045
- line: 16,
65033
+ line: 15,
65046
65034
  column: 19
65047
65035
  }
65048
65036
  },
65049
65037
  type: "default-arg",
65050
65038
  locations: [{
65051
65039
  start: {
65052
- line: 16,
65040
+ line: 15,
65053
65041
  column: 17
65054
65042
  },
65055
65043
  end: {
65056
- line: 16,
65044
+ line: 15,
65057
65045
  column: 19
65058
65046
  }
65059
65047
  }],
65060
- line: 16
65048
+ line: 15
65061
65049
  },
65062
65050
  "2": {
65063
65051
  loc: {
65064
65052
  start: {
65065
- line: 17,
65053
+ line: 16,
65066
65054
  column: 2
65067
65055
  },
65068
65056
  end: {
65069
- line: 17,
65057
+ line: 16,
65070
65058
  column: 16
65071
65059
  }
65072
65060
  },
65073
65061
  type: "default-arg",
65074
65062
  locations: [{
65075
65063
  start: {
65076
- line: 17,
65064
+ line: 16,
65077
65065
  column: 14
65078
65066
  },
65079
65067
  end: {
65080
- line: 17,
65068
+ line: 16,
65081
65069
  column: 16
65082
65070
  }
65083
65071
  }],
65084
- line: 17
65072
+ line: 16
65085
65073
  },
65086
65074
  "3": {
65087
65075
  loc: {
65088
65076
  start: {
65089
- line: 18,
65077
+ line: 17,
65090
65078
  column: 2
65091
65079
  },
65092
65080
  end: {
65093
- line: 18,
65081
+ line: 17,
65094
65082
  column: 25
65095
65083
  }
65096
65084
  },
65097
65085
  type: "default-arg",
65098
65086
  locations: [{
65099
65087
  start: {
65100
- line: 18,
65088
+ line: 17,
65101
65089
  column: 23
65102
65090
  },
65103
65091
  end: {
65104
- line: 18,
65092
+ line: 17,
65105
65093
  column: 25
65106
65094
  }
65107
65095
  }],
65108
- line: 18
65096
+ line: 17
65109
65097
  },
65110
65098
  "4": {
65111
65099
  loc: {
65112
65100
  start: {
65113
- line: 19,
65101
+ line: 18,
65114
65102
  column: 2
65115
65103
  },
65116
65104
  end: {
65117
- line: 19,
65105
+ line: 18,
65118
65106
  column: 18
65119
65107
  }
65120
65108
  },
65121
65109
  type: "default-arg",
65122
65110
  locations: [{
65123
65111
  start: {
65124
- line: 19,
65112
+ line: 18,
65125
65113
  column: 16
65126
65114
  },
65127
65115
  end: {
65128
- line: 19,
65116
+ line: 18,
65129
65117
  column: 18
65130
65118
  }
65131
65119
  }],
65132
- line: 19
65120
+ line: 18
65133
65121
  },
65134
65122
  "5": {
65135
65123
  loc: {
65136
65124
  start: {
65137
- line: 21,
65125
+ line: 20,
65138
65126
  column: 16
65139
65127
  },
65140
65128
  end: {
65141
- line: 21,
65129
+ line: 20,
65142
65130
  column: 46
65143
65131
  }
65144
65132
  },
65145
65133
  type: "default-arg",
65146
65134
  locations: [{
65147
65135
  start: {
65148
- line: 21,
65136
+ line: 20,
65149
65137
  column: 29
65150
65138
  },
65151
65139
  end: {
65152
- line: 21,
65140
+ line: 20,
65153
65141
  column: 46
65154
65142
  }
65155
65143
  }],
65156
- line: 21
65144
+ line: 20
65157
65145
  },
65158
65146
  "6": {
65159
65147
  loc: {
65160
65148
  start: {
65161
- line: 24,
65149
+ line: 23,
65162
65150
  column: 16
65163
65151
  },
65164
65152
  end: {
65165
- line: 24,
65153
+ line: 23,
65166
65154
  column: 38
65167
65155
  }
65168
65156
  },
65169
65157
  type: "binary-expr",
65170
65158
  locations: [{
65171
65159
  start: {
65172
- line: 24,
65160
+ line: 23,
65173
65161
  column: 16
65174
65162
  },
65175
65163
  end: {
65176
- line: 24,
65164
+ line: 23,
65177
65165
  column: 22
65178
65166
  }
65179
65167
  }, {
65180
65168
  start: {
65181
- line: 24,
65169
+ line: 23,
65182
65170
  column: 26
65183
65171
  },
65184
65172
  end: {
65185
- line: 24,
65173
+ line: 23,
65186
65174
  column: 38
65187
65175
  }
65188
65176
  }],
65189
- line: 24
65177
+ line: 23
65190
65178
  },
65191
65179
  "7": {
65192
65180
  loc: {
65193
65181
  start: {
65194
- line: 29,
65182
+ line: 28,
65195
65183
  column: 2
65196
65184
  },
65197
65185
  end: {
65198
- line: 35,
65186
+ line: 34,
65199
65187
  column: 3
65200
65188
  }
65201
65189
  },
65202
65190
  type: "if",
65203
65191
  locations: [{
65204
65192
  start: {
65205
- line: 29,
65193
+ line: 28,
65206
65194
  column: 2
65207
65195
  },
65208
65196
  end: {
65209
- line: 35,
65197
+ line: 34,
65210
65198
  column: 3
65211
65199
  }
65212
65200
  }, {
@@ -65219,40 +65207,40 @@ function cov_29xlle89ll() {
65219
65207
  column: undefined
65220
65208
  }
65221
65209
  }],
65222
- line: 29
65210
+ line: 28
65223
65211
  },
65224
65212
  "8": {
65225
65213
  loc: {
65226
65214
  start: {
65227
- line: 50,
65215
+ line: 49,
65228
65216
  column: 15
65229
65217
  },
65230
65218
  end: {
65231
- line: 52,
65232
- column: 23
65219
+ line: 49,
65220
+ column: 63
65233
65221
  }
65234
65222
  },
65235
65223
  type: "cond-expr",
65236
65224
  locations: [{
65237
65225
  start: {
65238
- line: 51,
65239
- column: 18
65226
+ line: 49,
65227
+ column: 33
65240
65228
  },
65241
65229
  end: {
65242
- line: 51,
65243
- column: 40
65230
+ line: 49,
65231
+ column: 55
65244
65232
  }
65245
65233
  }, {
65246
65234
  start: {
65247
- line: 52,
65248
- column: 18
65235
+ line: 49,
65236
+ column: 58
65249
65237
  },
65250
65238
  end: {
65251
- line: 52,
65252
- column: 23
65239
+ line: 49,
65240
+ column: 63
65253
65241
  }
65254
65242
  }],
65255
- line: 50
65243
+ line: 49
65256
65244
  }
65257
65245
  },
65258
65246
  s: {
@@ -65280,7 +65268,7 @@ function cov_29xlle89ll() {
65280
65268
  "8": [0, 0]
65281
65269
  },
65282
65270
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65283
- hash: "5396a6e3a1a5ecf3060a0d611e84501852de5059"
65271
+ hash: "f309c9df1c79dbf4de7b84c18c2f39eed53b297f"
65284
65272
  };
65285
65273
  var coverage = global[gcv] || (global[gcv] = {});
65286
65274
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65350,7 +65338,7 @@ var Submission = function Submission(_ref) {
65350
65338
  weight: "semibold"
65351
65339
  }, answerProps), /*#__PURE__*/React__default["default"].createElement(_default, {
65352
65340
  componentDecorator: linkifyDecorator
65353
- }, kind === QUESTION_KINDS.date.type ? (cov_29xlle89ll().b[8][0]++, utils.dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65341
+ }, kind === "date" ? (cov_29xlle89ll().b[8][0]++, utils.dateFormat.date(value)) : (cov_29xlle89ll().b[8][1]++, value))));
65354
65342
  }));
65355
65343
  };
65356
65344