@bigbinary/neeto-form-frontend 1.0.37 → 1.0.39

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
@@ -6,7 +6,7 @@ import PageLoader from 'neetomolecules/PageLoader';
6
6
  import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$1 } from '@bigbinary/neetoui';
7
7
  import { assoc, prop, path, isEmpty, reject, omit, insert, compose as compose$1, trim as trim$1, either, isNil, values as values$1, equals, not, pluck, mergeLeft, times } from 'ramda';
8
8
  import ReactDOM, { unstable_batchedUpdates as unstable_batchedUpdates$1, createPortal } from 'react-dom';
9
- import { Input as Input$2, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Delete, Plus, NeetoInvisible, MultipleChoice as MultipleChoice$2, ListDot, Dropdown as Dropdown$3, Rating as Rating$3, Smiley, Calendar, Check, Close } from '@bigbinary/neeto-icons';
9
+ import { Input as Input$2, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Delete, Plus, NeetoInvisible, MultipleChoice as MultipleChoice$2, ListDot, Dropdown as Dropdown$3, Rating as Rating$3, Smiley, Checkbox as Checkbox$1, Calendar, Check, Close } from '@bigbinary/neeto-icons';
10
10
  import axios from 'axios';
11
11
  import { Input as Input$3, Textarea as Textarea$1, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
12
12
  import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
@@ -6454,7 +6454,7 @@ function _objectWithoutProperties$1(source, excluded) {
6454
6454
  return target;
6455
6455
  }
6456
6456
 
6457
- var _excluded$m = ["size"],
6457
+ var _excluded$n = ["size"],
6458
6458
  _excluded2$3 = ["size"],
6459
6459
  _excluded3$2 = ["size"],
6460
6460
  _excluded4$1 = ["size"],
@@ -6894,7 +6894,7 @@ var Star = function Star(props) {
6894
6894
  var _ref = (cov_3ymiqznmu().s[1]++, props),
6895
6895
  _ref$size = _ref.size,
6896
6896
  size = _ref$size === void 0 ? (cov_3ymiqznmu().b[0][0]++, 20) : _ref$size,
6897
- other = _objectWithoutProperties$1(_ref, _excluded$m);
6897
+ other = _objectWithoutProperties$1(_ref, _excluded$n);
6898
6898
  cov_3ymiqznmu().s[2]++;
6899
6899
  return /*#__PURE__*/React__default.createElement("svg", _extends$9({
6900
6900
  fill: "none",
@@ -7031,7 +7031,7 @@ var Trophy = function Trophy(_ref5) {
7031
7031
 
7032
7032
  function cov_2qs8napxwn() {
7033
7033
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
7034
- var hash = "ff4b828f21f91d7e4af0da0c25671135ec9b988a";
7034
+ var hash = "06c0fa99a8044bfa85dba10dcf9fa947503a23c0";
7035
7035
  var global = new Function("return this")();
7036
7036
  var gcv = "__coverage__";
7037
7037
  var coverageData = {
@@ -7043,57 +7043,57 @@ function cov_2qs8napxwn() {
7043
7043
  column: 29
7044
7044
  },
7045
7045
  end: {
7046
- line: 37,
7046
+ line: 39,
7047
7047
  column: 1
7048
7048
  }
7049
7049
  },
7050
7050
  "1": {
7051
7051
  start: {
7052
- line: 39,
7052
+ line: 41,
7053
7053
  column: 29
7054
7054
  },
7055
7055
  end: {
7056
- line: 43,
7056
+ line: 45,
7057
7057
  column: 1
7058
7058
  }
7059
7059
  },
7060
7060
  "2": {
7061
7061
  start: {
7062
- line: 45,
7062
+ line: 47,
7063
7063
  column: 42
7064
7064
  },
7065
7065
  end: {
7066
- line: 45,
7067
- column: 72
7066
+ line: 47,
7067
+ column: 73
7068
7068
  }
7069
7069
  },
7070
7070
  "3": {
7071
7071
  start: {
7072
- line: 47,
7072
+ line: 49,
7073
7073
  column: 30
7074
7074
  },
7075
7075
  end: {
7076
- line: 63,
7076
+ line: 65,
7077
7077
  column: 1
7078
7078
  }
7079
7079
  },
7080
7080
  "4": {
7081
7081
  start: {
7082
- line: 65,
7082
+ line: 67,
7083
7083
  column: 35
7084
7084
  },
7085
7085
  end: {
7086
- line: 65,
7086
+ line: 67,
7087
7087
  column: 49
7088
7088
  }
7089
7089
  },
7090
7090
  "5": {
7091
7091
  start: {
7092
- line: 67,
7092
+ line: 69,
7093
7093
  column: 25
7094
7094
  },
7095
7095
  end: {
7096
- line: 73,
7096
+ line: 75,
7097
7097
  column: 1
7098
7098
  }
7099
7099
  }
@@ -7111,7 +7111,7 @@ function cov_2qs8napxwn() {
7111
7111
  f: {},
7112
7112
  b: {},
7113
7113
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7114
- hash: "ff4b828f21f91d7e4af0da0c25671135ec9b988a"
7114
+ hash: "06c0fa99a8044bfa85dba10dcf9fa947503a23c0"
7115
7115
  };
7116
7116
  var coverage = global[gcv] || (global[gcv] = {});
7117
7117
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -7155,6 +7155,9 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
7155
7155
  DROPDOWN: {
7156
7156
  value: "dropdown"
7157
7157
  },
7158
+ PARAGRAPH: {
7159
+ value: "paragraph"
7160
+ },
7158
7161
  TEXTAREA: {
7159
7162
  value: "textarea"
7160
7163
  },
@@ -7171,6 +7174,10 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
7171
7174
  value: "termsandcondition",
7172
7175
  type: "checkbox"
7173
7176
  },
7177
+ CONDITION: {
7178
+ value: "condition",
7179
+ type: "checkbox"
7180
+ },
7174
7181
  DATE: {
7175
7182
  value: "date"
7176
7183
  },
@@ -7195,7 +7202,7 @@ var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
7195
7202
  value: "bad"
7196
7203
  }
7197
7204
  });
7198
- var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.TEXTAREA.value]);
7205
+ var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.PARAGRAPH.value]);
7199
7206
  var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
7200
7207
  icon: SvgHappyFace,
7201
7208
  modifier: "happy",
@@ -8418,7 +8425,7 @@ var queryClient = (cov_dn5xf8jlj().s[0]++, new QueryClient({
8418
8425
  })
8419
8426
  }));
8420
8427
 
8421
- var _excluded$l = ["formId", "preview"],
8428
+ var _excluded$m = ["formId", "preview"],
8422
8429
  _excluded3$1 = ["formId", "submissionId"];
8423
8430
  function cov_2atpj3pe74() {
8424
8431
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/hooks/useFormApi.js";
@@ -10118,7 +10125,7 @@ cov_2atpj3pe74().s[0]++;
10118
10125
  var useForm = function useForm(_ref) {
10119
10126
  var formId = _ref.formId,
10120
10127
  preview = _ref.preview,
10121
- options = _objectWithoutProperties$1(_ref, _excluded$l);
10128
+ options = _objectWithoutProperties$1(_ref, _excluded$m);
10122
10129
  cov_2atpj3pe74().f[0]++;
10123
10130
  cov_2atpj3pe74().s[1]++;
10124
10131
  return useQuery([QUERY_KEYS.QUESTIONS, preview ? (cov_2atpj3pe74().b[0][0]++, "preview/".concat(formId)) : (cov_2atpj3pe74().b[0][1]++, formId)], function () {
@@ -12356,7 +12363,7 @@ reactIs_production_min.typeOf=y;
12356
12363
  }
12357
12364
  } (reactIs));
12358
12365
 
12359
- var _excluded$k = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"],
12366
+ var _excluded$l = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"],
12360
12367
  _excluded2$2 = ["reactReduxForwardedRef"];
12361
12368
 
12362
12369
  var EMPTY_ARRAY = [];
@@ -12506,7 +12513,7 @@ _ref) {
12506
12513
  forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
12507
12514
  _ref2$context = _ref2.context,
12508
12515
  context = _ref2$context === void 0 ? ReactReduxContext : _ref2$context,
12509
- connectOptions = _objectWithoutPropertiesLoose$1(_ref2, _excluded$k);
12516
+ connectOptions = _objectWithoutPropertiesLoose$1(_ref2, _excluded$l);
12510
12517
 
12511
12518
  var Context = context;
12512
12519
  return function wrapWithConnect(WrappedComponent) {
@@ -12865,7 +12872,7 @@ function whenMergePropsIsOmitted(mergeProps) {
12865
12872
  }
12866
12873
  var defaultMergePropsFactories = [whenMergePropsIsFunction, whenMergePropsIsOmitted];
12867
12874
 
12868
- var _excluded$j = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
12875
+ var _excluded$k = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
12869
12876
  function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
12870
12877
  return function impureFinalPropsSelector(state, ownProps) {
12871
12878
  return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
@@ -12938,7 +12945,7 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
12938
12945
  var initMapStateToProps = _ref2.initMapStateToProps,
12939
12946
  initMapDispatchToProps = _ref2.initMapDispatchToProps,
12940
12947
  initMergeProps = _ref2.initMergeProps,
12941
- options = _objectWithoutPropertiesLoose$1(_ref2, _excluded$j);
12948
+ options = _objectWithoutPropertiesLoose$1(_ref2, _excluded$k);
12942
12949
 
12943
12950
  var mapStateToProps = initMapStateToProps(dispatch, options);
12944
12951
  var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
@@ -12948,7 +12955,7 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
12948
12955
  return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
12949
12956
  }
12950
12957
 
12951
- var _excluded$i = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
12958
+ var _excluded$j = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
12952
12959
  /*
12953
12960
  connect is a facade over connectAdvanced. It turns its args into a compatible
12954
12961
  selectorFactory, which has the signature:
@@ -13012,7 +13019,7 @@ function createConnect(_temp) {
13012
13019
  areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? shallowEqual : _ref3$areStatePropsEq,
13013
13020
  _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
13014
13021
  areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? shallowEqual : _ref3$areMergedPropsE,
13015
- extraOptions = _objectWithoutPropertiesLoose$1(_ref3, _excluded$i);
13022
+ extraOptions = _objectWithoutPropertiesLoose$1(_ref3, _excluded$j);
13016
13023
 
13017
13024
  var initMapStateToProps = match$1(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
13018
13025
  var initMapDispatchToProps = match$1(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
@@ -22139,7 +22146,7 @@ var ListItem = function ListItem(_ref) {
22139
22146
  }, label));
22140
22147
  };
22141
22148
 
22142
- var _excluded$h = ["size", "color"],
22149
+ var _excluded$i = ["size", "color"],
22143
22150
  _excluded2$1 = ["size", "color"],
22144
22151
  _excluded3 = ["size", "color"],
22145
22152
  _excluded4 = ["size", "color"];
@@ -22459,7 +22466,7 @@ var BadSmiley = function BadSmiley(props) {
22459
22466
  var _ref = (cov_1dollm8rdo().s[1]++, props),
22460
22467
  size = _ref.size,
22461
22468
  color = _ref.color,
22462
- other = _objectWithoutProperties$1(_ref, _excluded$h);
22469
+ other = _objectWithoutProperties$1(_ref, _excluded$i);
22463
22470
  cov_1dollm8rdo().s[2]++;
22464
22471
  return /*#__PURE__*/React__default.createElement("svg", _extends$9({
22465
22472
  fill: "none",
@@ -23411,6 +23418,7 @@ var common = {
23411
23418
  },
23412
23419
  "delete": "Delete",
23413
23420
  agreeTermsAndConditions: "I agree to terms & conditions mentioned below",
23421
+ agreeCondition: "I agree",
23414
23422
  mustAcceptTermsAndConditions: "You must accept the terms and conditions",
23415
23423
  email: "Email",
23416
23424
  phone: "Phone",
@@ -23442,7 +23450,8 @@ var common = {
23442
23450
  icon: "Icon",
23443
23451
  good: "Good",
23444
23452
  okay: "Okay",
23445
- bad: "Bad"
23453
+ bad: "Bad",
23454
+ no: "No"
23446
23455
  };
23447
23456
  var fields = {
23448
23457
  mcf: "Checkbox",
@@ -23460,7 +23469,8 @@ var fields = {
23460
23469
  fbf: "Feedback",
23461
23470
  meif: "Multiple email",
23462
23471
  agif: "Additional guests",
23463
- rtf: "Rich text field"
23472
+ rtf: "Rich text field",
23473
+ cf: "Condition"
23464
23474
  };
23465
23475
  var toasts = {
23466
23476
  formSubmitted: "Form has been submitted successfully!"
@@ -23601,7 +23611,7 @@ instance.use(initReactI18next).init({
23601
23611
  }
23602
23612
  });
23603
23613
 
23604
- var _excluded$g = ["maxLength"];
23614
+ var _excluded$h = ["maxLength"];
23605
23615
  function cov_6lo9nrx9t() {
23606
23616
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/InputWithMaxLength.jsx";
23607
23617
  var hash = "8addc9ae593605b6b19a3b6d1c312704df338020";
@@ -23904,7 +23914,7 @@ cov_6lo9nrx9t();
23904
23914
  cov_6lo9nrx9t().s[0]++;
23905
23915
  var InputWithMaxLength = function InputWithMaxLength(_ref) {
23906
23916
  var maxLength = _ref.maxLength,
23907
- props = _objectWithoutProperties$1(_ref, _excluded$g);
23917
+ props = _objectWithoutProperties$1(_ref, _excluded$h);
23908
23918
  cov_6lo9nrx9t().f[0]++;
23909
23919
  var _ref2 = (cov_6lo9nrx9t().s[1]++, useField(props)),
23910
23920
  _ref3 = _slicedToArray$6(_ref2, 3),
@@ -23929,7 +23939,7 @@ var InputWithMaxLength = function InputWithMaxLength(_ref) {
23929
23939
  })));
23930
23940
  };
23931
23941
 
23932
- var _excluded$f = ["maxLength"];
23942
+ var _excluded$g = ["maxLength"];
23933
23943
  function cov_1c261hpheg() {
23934
23944
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/TextareaWithMaxLength.jsx";
23935
23945
  var hash = "8d7ba3715092adac47a31c8a2a6521ab7b4bbd0c";
@@ -24232,7 +24242,7 @@ cov_1c261hpheg();
24232
24242
  cov_1c261hpheg().s[0]++;
24233
24243
  var TextAreaWithMaxLength = function TextAreaWithMaxLength(_ref) {
24234
24244
  var maxLength = _ref.maxLength,
24235
- props = _objectWithoutProperties$1(_ref, _excluded$f);
24245
+ props = _objectWithoutProperties$1(_ref, _excluded$g);
24236
24246
  cov_1c261hpheg().f[0]++;
24237
24247
  var _ref2 = (cov_1c261hpheg().s[1]++, useField(props)),
24238
24248
  _ref3 = _slicedToArray$6(_ref2, 3),
@@ -24375,6 +24385,162 @@ var AdditionalGuests$1 = function AdditionalGuests(_ref) {
24375
24385
  }))));
24376
24386
  };
24377
24387
 
24388
+ function cov_2kk1k5b9uc() {
24389
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Condition.jsx";
24390
+ var hash = "6a9c9cbddd9ebd68d87e72710f804f94cd3cbf9d";
24391
+ var global = new Function("return this")();
24392
+ var gcv = "__coverage__";
24393
+ var coverageData = {
24394
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Condition.jsx",
24395
+ statementMap: {
24396
+ "0": {
24397
+ start: {
24398
+ line: 8,
24399
+ column: 18
24400
+ },
24401
+ end: {
24402
+ line: 34,
24403
+ column: 1
24404
+ }
24405
+ },
24406
+ "1": {
24407
+ start: {
24408
+ line: 9,
24409
+ column: 16
24410
+ },
24411
+ end: {
24412
+ line: 9,
24413
+ column: 32
24414
+ }
24415
+ },
24416
+ "2": {
24417
+ start: {
24418
+ line: 11,
24419
+ column: 2
24420
+ },
24421
+ end: {
24422
+ line: 33,
24423
+ column: 4
24424
+ }
24425
+ }
24426
+ },
24427
+ fnMap: {
24428
+ "0": {
24429
+ name: "(anonymous_0)",
24430
+ decl: {
24431
+ start: {
24432
+ line: 8,
24433
+ column: 18
24434
+ },
24435
+ end: {
24436
+ line: 8,
24437
+ column: 19
24438
+ }
24439
+ },
24440
+ loc: {
24441
+ start: {
24442
+ line: 8,
24443
+ column: 44
24444
+ },
24445
+ end: {
24446
+ line: 34,
24447
+ column: 1
24448
+ }
24449
+ },
24450
+ line: 8
24451
+ }
24452
+ },
24453
+ branchMap: {
24454
+ "0": {
24455
+ loc: {
24456
+ start: {
24457
+ line: 23,
24458
+ column: 7
24459
+ },
24460
+ end: {
24461
+ line: 31,
24462
+ column: 7
24463
+ }
24464
+ },
24465
+ type: "binary-expr",
24466
+ locations: [{
24467
+ start: {
24468
+ line: 23,
24469
+ column: 7
24470
+ },
24471
+ end: {
24472
+ line: 23,
24473
+ column: 18
24474
+ }
24475
+ }, {
24476
+ start: {
24477
+ line: 24,
24478
+ column: 8
24479
+ },
24480
+ end: {
24481
+ line: 30,
24482
+ column: 14
24483
+ }
24484
+ }],
24485
+ line: 23
24486
+ }
24487
+ },
24488
+ s: {
24489
+ "0": 0,
24490
+ "1": 0,
24491
+ "2": 0
24492
+ },
24493
+ f: {
24494
+ "0": 0
24495
+ },
24496
+ b: {
24497
+ "0": [0, 0]
24498
+ },
24499
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
24500
+ hash: "6a9c9cbddd9ebd68d87e72710f804f94cd3cbf9d"
24501
+ };
24502
+ var coverage = global[gcv] || (global[gcv] = {});
24503
+ if (!coverage[path] || coverage[path].hash !== hash) {
24504
+ coverage[path] = coverageData;
24505
+ }
24506
+ var actualCoverage = coverage[path];
24507
+ {
24508
+ // @ts-ignore
24509
+ cov_2kk1k5b9uc = function () {
24510
+ return actualCoverage;
24511
+ };
24512
+ }
24513
+ return actualCoverage;
24514
+ }
24515
+ cov_2kk1k5b9uc();
24516
+ cov_2kk1k5b9uc().s[0]++;
24517
+ var Condition$3 = function Condition(_ref) {
24518
+ var name = _ref.name,
24519
+ isRequired = _ref.isRequired;
24520
+ cov_2kk1k5b9uc().f[0]++;
24521
+ var _ref2 = (cov_2kk1k5b9uc().s[1]++, useTranslation()),
24522
+ t = _ref2.t;
24523
+ cov_2kk1k5b9uc().s[2]++;
24524
+ return /*#__PURE__*/React__default.createElement("div", {
24525
+ className: "space-y-4"
24526
+ }, /*#__PURE__*/React__default.createElement("div", {
24527
+ className: "grid grid-cols-2 gap-4"
24528
+ }, /*#__PURE__*/React__default.createElement("div", {
24529
+ className: "col-span-2"
24530
+ }, /*#__PURE__*/React__default.createElement(TextAreaWithMaxLength, {
24531
+ required: true,
24532
+ label: t("questions.common.questionFields.field.question"),
24533
+ name: "".concat(name, ".label"),
24534
+ rows: 1
24535
+ }))), (cov_2kk1k5b9uc().b[0][0]++, !isRequired) && (cov_2kk1k5b9uc().b[0][1]++, /*#__PURE__*/React__default.createElement("div", {
24536
+ className: "w-full"
24537
+ }, /*#__PURE__*/React__default.createElement(Checkbox, {
24538
+ id: "".concat(name, ".isRequired"),
24539
+ label: t("questions.common.questionFields.field.required"),
24540
+ name: "".concat(name, ".isRequired")
24541
+ }))));
24542
+ };
24543
+
24378
24544
  function cov_5u7jgeqcn() {
24379
24545
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/constants.js";
24380
24546
  var hash = "b3d19de9685469a419e3fbb91a64e9376eebfe14";
@@ -27910,7 +28076,7 @@ var Terms$3 = function Terms(_ref) {
27910
28076
 
27911
28077
  function cov_2qk3dozy47() {
27912
28078
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/index.js";
27913
- var hash = "1c67aa112a33505a9c0fe92ca24e6df7a9df5c52";
28079
+ var hash = "f973b7318af7a0d1059b5369964ad800ca33502b";
27914
28080
  var global = new Function("return this")();
27915
28081
  var gcv = "__coverage__";
27916
28082
  var coverageData = {
@@ -27918,11 +28084,11 @@ function cov_2qk3dozy47() {
27918
28084
  statementMap: {
27919
28085
  "0": {
27920
28086
  start: {
27921
- line: 14,
28087
+ line: 15,
27922
28088
  column: 15
27923
28089
  },
27924
28090
  end: {
27925
- line: 27,
28091
+ line: 29,
27926
28092
  column: 1
27927
28093
  }
27928
28094
  }
@@ -27935,7 +28101,7 @@ function cov_2qk3dozy47() {
27935
28101
  f: {},
27936
28102
  b: {},
27937
28103
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27938
- hash: "1c67aa112a33505a9c0fe92ca24e6df7a9df5c52"
28104
+ hash: "f973b7318af7a0d1059b5369964ad800ca33502b"
27939
28105
  };
27940
28106
  var coverage = global[gcv] || (global[gcv] = {});
27941
28107
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27963,7 +28129,8 @@ var Fields = (cov_2qk3dozy47().s[0]++, {
27963
28129
  Terms: Terms$3,
27964
28130
  StarRating: StarRating$2,
27965
28131
  AdditionalGuests: AdditionalGuests$1,
27966
- RichText: RichText$1
28132
+ RichText: RichText$1,
28133
+ Condition: Condition$3
27967
28134
  });
27968
28135
 
27969
28136
  function cov_2gcfk56wsh() {
@@ -28297,7 +28464,7 @@ var Editor = function Editor(_ref) {
28297
28464
 
28298
28465
  function cov_2j8tlu2ul5() {
28299
28466
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
28300
- var hash = "e2bdf47a1223875f9b5045360fbf0ea023532ced";
28467
+ var hash = "6d2a1487c3ee64be33ed78df7bbb278bf982988b";
28301
28468
  var global = new Function("return this")();
28302
28469
  var gcv = "__coverage__";
28303
28470
  var coverageData = {
@@ -28305,62 +28472,62 @@ function cov_2j8tlu2ul5() {
28305
28472
  statementMap: {
28306
28473
  "0": {
28307
28474
  start: {
28308
- line: 31,
28475
+ line: 33,
28309
28476
  column: 4
28310
28477
  },
28311
28478
  end: {
28312
- line: 31,
28479
+ line: 33,
28313
28480
  column: 10
28314
28481
  }
28315
28482
  },
28316
28483
  "1": {
28317
28484
  start: {
28318
- line: 33,
28485
+ line: 35,
28319
28486
  column: 40
28320
28487
  },
28321
28488
  end: {
28322
- line: 33,
28489
+ line: 35,
28323
28490
  column: 41
28324
28491
  }
28325
28492
  },
28326
28493
  "2": {
28327
28494
  start: {
28328
- line: 34,
28495
+ line: 36,
28329
28496
  column: 35
28330
28497
  },
28331
28498
  end: {
28332
- line: 34,
28499
+ line: 36,
28333
28500
  column: 36
28334
28501
  }
28335
28502
  },
28336
28503
  "3": {
28337
28504
  start: {
28338
- line: 36,
28505
+ line: 38,
28339
28506
  column: 30
28340
28507
  },
28341
28508
  end: {
28342
- line: 198,
28509
+ line: 210,
28343
28510
  column: 1
28344
28511
  }
28345
28512
  },
28346
28513
  "4": {
28347
28514
  start: {
28348
- line: 201,
28515
+ line: 213,
28349
28516
  column: 38
28350
28517
  },
28351
28518
  end: {
28352
- line: 204,
28519
+ line: 216,
28353
28520
  column: 1
28354
28521
  }
28355
28522
  },
28356
28523
  "5": {
28357
28524
  start: {
28358
- line: 206,
28525
+ line: 218,
28359
28526
  column: 29
28360
28527
  },
28361
28528
  end: {
28362
- line: 206,
28363
- column: 62
28529
+ line: 218,
28530
+ column: 63
28364
28531
  }
28365
28532
  }
28366
28533
  },
@@ -28377,7 +28544,7 @@ function cov_2j8tlu2ul5() {
28377
28544
  f: {},
28378
28545
  b: {},
28379
28546
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
28380
- hash: "e2bdf47a1223875f9b5045360fbf0ea023532ced"
28547
+ hash: "6d2a1487c3ee64be33ed78df7bbb278bf982988b"
28381
28548
  };
28382
28549
  var coverage = global[gcv] || (global[gcv] = {});
28383
28550
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -28405,7 +28572,8 @@ var _ref$1 = (cov_2j8tlu2ul5().s[0]++, Fields),
28405
28572
  Terms$2 = _ref$1.Terms,
28406
28573
  StarRating$1 = _ref$1.StarRating,
28407
28574
  AdditionalGuests = _ref$1.AdditionalGuests,
28408
- RichText = _ref$1.RichText;
28575
+ RichText = _ref$1.RichText,
28576
+ Condition$2 = _ref$1.Condition;
28409
28577
  var SINGLE_CHOICE_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[1]++, 2);
28410
28578
  var DROPDOWN_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[2]++, 2);
28411
28579
  var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
@@ -28459,7 +28627,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
28459
28627
  label: ""
28460
28628
  }
28461
28629
  }, {
28462
- type: "question",
28630
+ type: "textarea",
28463
28631
  label: instance.t("fields.qif"),
28464
28632
  isSingular: false,
28465
28633
  icon: Input$2,
@@ -28477,7 +28645,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
28477
28645
  label: ""
28478
28646
  }
28479
28647
  }, {
28480
- type: "textarea",
28648
+ type: "paragraph",
28481
28649
  label: instance.t("fields.def"),
28482
28650
  isSingular: false,
28483
28651
  icon: NeetoInvisible,
@@ -28561,6 +28729,15 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
28561
28729
  isRequired: true,
28562
28730
  label: instance.t("common.agreeTermsAndConditions")
28563
28731
  }
28732
+ }, {
28733
+ type: "condition",
28734
+ label: instance.t("fields.cf"),
28735
+ icon: Checkbox$1,
28736
+ component: Condition$2,
28737
+ defaults: {
28738
+ isRequired: true,
28739
+ label: instance.t("common.agreeCondition")
28740
+ }
28564
28741
  }, {
28565
28742
  type: "date",
28566
28743
  label: instance.t("fields.date"),
@@ -28575,10 +28752,10 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
28575
28752
 
28576
28753
  // To show the question type as label in accordion
28577
28754
  var INDEPENDENT_LABELS_MAP = (cov_2j8tlu2ul5().s[4]++, {
28578
- textarea: "Paragraph",
28755
+ paragraph: "Paragraph",
28579
28756
  termsandcondition: "Terms & conditions"
28580
28757
  });
28581
- var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["textarea", "termsandcondition"]);
28758
+ var PADDED_FIELDS = (cov_2j8tlu2ul5().s[5]++, ["paragraph", "termsandcondition"]);
28582
28759
 
28583
28760
  function cov_xwc6pppkl() {
28584
28761
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/FormField.jsx";
@@ -31263,7 +31440,7 @@ var List = function List(_ref) {
31263
31440
  })));
31264
31441
  };
31265
31442
 
31266
- var _excluded$e = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
31443
+ var _excluded$f = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
31267
31444
  function cov_2e8k7gwd81() {
31268
31445
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
31269
31446
  var hash = "7c11acd7f0e5fde99d6d92b950980d529a13322c";
@@ -32499,7 +32676,7 @@ var Form = function Form(_ref) {
32499
32676
  isKindAlreadyActive = _ref.isKindAlreadyActive,
32500
32677
  getActiveKindDetails = _ref.getActiveKindDetails,
32501
32678
  kindUniqueOn = _ref.kindUniqueOn,
32502
- formDomProps = _objectWithoutProperties$1(_ref, _excluded$e);
32679
+ formDomProps = _objectWithoutProperties$1(_ref, _excluded$f);
32503
32680
  cov_2e8k7gwd81().f[0]++;
32504
32681
  var _ref2 = (cov_2e8k7gwd81().s[1]++, useTranslation()),
32505
32682
  t = _ref2.t;
@@ -32815,7 +32992,7 @@ var getActiveQuestionKindDetails = function getActiveQuestionKindDetails(_ref) {
32815
32992
 
32816
32993
  function cov_13igvew484() {
32817
32994
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/validation.js";
32818
- var hash = "2fa410dcb8960ae1c277e3cad68b0f7f696b3fa0";
32995
+ var hash = "ab8d6004b8f3a2722a845835961287028ecee2f1";
32819
32996
  var global = new Function("return this")();
32820
32997
  var gcv = "__coverage__";
32821
32998
  var coverageData = {
@@ -32823,41 +33000,41 @@ function cov_13igvew484() {
32823
33000
  statementMap: {
32824
33001
  "0": {
32825
33002
  start: {
32826
- line: 4,
33003
+ line: 5,
32827
33004
  column: 22
32828
33005
  },
32829
33006
  end: {
32830
- line: 8,
33007
+ line: 9,
32831
33008
  column: 36
32832
33009
  }
32833
33010
  },
32834
33011
  "1": {
32835
33012
  start: {
32836
- line: 8,
33013
+ line: 9,
32837
33014
  column: 5
32838
33015
  },
32839
33016
  end: {
32840
- line: 8,
33017
+ line: 9,
32841
33018
  column: 36
32842
33019
  }
32843
33020
  },
32844
33021
  "2": {
32845
33022
  start: {
32846
- line: 10,
33023
+ line: 11,
32847
33024
  column: 29
32848
33025
  },
32849
33026
  end: {
32850
- line: 44,
33027
+ line: 45,
32851
33028
  column: 2
32852
33029
  }
32853
33030
  },
32854
33031
  "3": {
32855
33032
  start: {
32856
- line: 20,
33033
+ line: 21,
32857
33034
  column: 10
32858
33035
  },
32859
33036
  end: {
32860
- line: 32,
33037
+ line: 33,
32861
33038
  column: 34
32862
33039
  }
32863
33040
  }
@@ -32867,108 +33044,108 @@ function cov_13igvew484() {
32867
33044
  name: "(anonymous_0)",
32868
33045
  decl: {
32869
33046
  start: {
32870
- line: 4,
33047
+ line: 5,
32871
33048
  column: 22
32872
33049
  },
32873
33050
  end: {
32874
- line: 4,
33051
+ line: 5,
32875
33052
  column: 23
32876
33053
  }
32877
33054
  },
32878
33055
  loc: {
32879
33056
  start: {
32880
- line: 8,
33057
+ line: 9,
32881
33058
  column: 5
32882
33059
  },
32883
33060
  end: {
32884
- line: 8,
33061
+ line: 9,
32885
33062
  column: 36
32886
33063
  }
32887
33064
  },
32888
- line: 8
33065
+ line: 9
32889
33066
  },
32890
33067
  "1": {
32891
33068
  name: "(anonymous_1)",
32892
33069
  decl: {
32893
33070
  start: {
32894
- line: 19,
33071
+ line: 20,
32895
33072
  column: 48
32896
33073
  },
32897
33074
  end: {
32898
- line: 19,
33075
+ line: 20,
32899
33076
  column: 49
32900
33077
  }
32901
33078
  },
32902
33079
  loc: {
32903
33080
  start: {
32904
- line: 20,
33081
+ line: 21,
32905
33082
  column: 10
32906
33083
  },
32907
33084
  end: {
32908
- line: 32,
33085
+ line: 33,
32909
33086
  column: 34
32910
33087
  }
32911
33088
  },
32912
- line: 20
33089
+ line: 21
32913
33090
  }
32914
33091
  },
32915
33092
  branchMap: {
32916
33093
  "0": {
32917
33094
  loc: {
32918
33095
  start: {
32919
- line: 5,
33096
+ line: 6,
32920
33097
  column: 2
32921
33098
  },
32922
33099
  end: {
32923
- line: 7,
33100
+ line: 8,
32924
33101
  column: 4
32925
33102
  }
32926
33103
  },
32927
33104
  type: "default-arg",
32928
33105
  locations: [{
32929
33106
  start: {
32930
- line: 5,
33107
+ line: 6,
32931
33108
  column: 17
32932
33109
  },
32933
33110
  end: {
32934
- line: 7,
33111
+ line: 8,
32935
33112
  column: 4
32936
33113
  }
32937
33114
  }],
32938
- line: 5
33115
+ line: 6
32939
33116
  },
32940
33117
  "1": {
32941
33118
  loc: {
32942
33119
  start: {
32943
- line: 20,
33120
+ line: 21,
32944
33121
  column: 10
32945
33122
  },
32946
33123
  end: {
32947
- line: 32,
33124
+ line: 33,
32948
33125
  column: 34
32949
33126
  }
32950
33127
  },
32951
33128
  type: "cond-expr",
32952
33129
  locations: [{
32953
33130
  start: {
32954
- line: 21,
33131
+ line: 22,
32955
33132
  column: 14
32956
33133
  },
32957
33134
  end: {
32958
- line: 31,
33135
+ line: 32,
32959
33136
  column: 15
32960
33137
  }
32961
33138
  }, {
32962
33139
  start: {
32963
- line: 32,
33140
+ line: 33,
32964
33141
  column: 14
32965
33142
  },
32966
33143
  end: {
32967
- line: 32,
33144
+ line: 33,
32968
33145
  column: 34
32969
33146
  }
32970
33147
  }],
32971
- line: 20
33148
+ line: 21
32972
33149
  }
32973
33150
  },
32974
33151
  s: {
@@ -32986,7 +33163,7 @@ function cov_13igvew484() {
32986
33163
  "1": [0, 0]
32987
33164
  },
32988
33165
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32989
- hash: "2fa410dcb8960ae1c277e3cad68b0f7f696b3fa0"
33166
+ hash: "ab8d6004b8f3a2722a845835961287028ecee2f1"
32990
33167
  };
32991
33168
  var coverage = global[gcv] || (global[gcv] = {});
32992
33169
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -33014,7 +33191,7 @@ var requiredLabel = function requiredLabel() {
33014
33191
  var formValidationSchema = (cov_13igvew484().s[2]++, object().shape({
33015
33192
  questions: array().of(object().shape({
33016
33193
  label: requiredLabel().when("kind", {
33017
- is: "textarea",
33194
+ is: "paragraph",
33018
33195
  then: requiredLabel(instance.t("common.paragraphCantBeEmpty"))
33019
33196
  }),
33020
33197
  kind: string().required(),
@@ -35637,7 +35814,7 @@ var Spinner = function Spinner(_ref) {
35637
35814
  })));
35638
35815
  };
35639
35816
 
35640
- var _excluded$d = ["label", "loading", "success", "className"];
35817
+ var _excluded$e = ["label", "loading", "success", "className"];
35641
35818
  function cov_2ndo8sz9m4() {
35642
35819
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/Button.jsx";
35643
35820
  var hash = "947a26eed705c861c4cb61ff2cb56fcb2a312c71";
@@ -35967,7 +36144,7 @@ var Button = function Button(_ref) {
35967
36144
  success = _ref$success === void 0 ? (cov_2ndo8sz9m4().b[1][0]++, false) : _ref$success,
35968
36145
  _ref$className = _ref.className,
35969
36146
  className = _ref$className === void 0 ? (cov_2ndo8sz9m4().b[2][0]++, "") : _ref$className,
35970
- otherProps = _objectWithoutProperties$1(_ref, _excluded$d);
36147
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$e);
35971
36148
  cov_2ndo8sz9m4().f[0]++;
35972
36149
  cov_2ndo8sz9m4().s[1]++;
35973
36150
  return /*#__PURE__*/React__default.createElement("button", _extends$9({
@@ -41398,7 +41575,7 @@ var GroupHeading = function GroupHeading(props) {
41398
41575
  }), innerProps));
41399
41576
  };
41400
41577
 
41401
- var _excluded$c = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
41578
+ var _excluded$d = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
41402
41579
  var inputCSS = function inputCSS(_ref, unstyled) {
41403
41580
  var isDisabled = _ref.isDisabled,
41404
41581
  value = _ref.value,
@@ -41454,7 +41631,7 @@ var Input$1 = function Input(props) {
41454
41631
  isDisabled = _cleanCommonProps.isDisabled,
41455
41632
  isHidden = _cleanCommonProps.isHidden,
41456
41633
  inputClassName = _cleanCommonProps.inputClassName,
41457
- innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$c);
41634
+ innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$d);
41458
41635
  return jsx("div", _extends$1({}, getStyleProps(props, 'input', {
41459
41636
  'input-container': true
41460
41637
  }), {
@@ -42251,10 +42428,10 @@ var createFilter = function createFilter(config) {
42251
42428
  };
42252
42429
  };
42253
42430
 
42254
- var _excluded$b = ["innerRef"];
42431
+ var _excluded$c = ["innerRef"];
42255
42432
  function DummyInput(_ref) {
42256
42433
  var innerRef = _ref.innerRef,
42257
- props = _objectWithoutProperties(_ref, _excluded$b);
42434
+ props = _objectWithoutProperties(_ref, _excluded$c);
42258
42435
  // Remove animation props not meant for HTML elements
42259
42436
  var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
42260
42437
  return jsx("input", _extends$1({
@@ -44259,7 +44436,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
44259
44436
  }(Component);
44260
44437
  Select$1.defaultProps = defaultProps;
44261
44438
 
44262
- var _excluded$a = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
44439
+ var _excluded$b = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
44263
44440
  function useStateManager(_ref) {
44264
44441
  var _ref$defaultInputValu = _ref.defaultInputValue,
44265
44442
  defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,
@@ -44274,7 +44451,7 @@ function useStateManager(_ref) {
44274
44451
  propsOnMenuClose = _ref.onMenuClose,
44275
44452
  propsOnMenuOpen = _ref.onMenuOpen,
44276
44453
  propsValue = _ref.value,
44277
- restSelectProps = _objectWithoutProperties(_ref, _excluded$a);
44454
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$b);
44278
44455
  var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
44279
44456
  _useState2 = _slicedToArray$4(_useState, 2),
44280
44457
  stateInputValue = _useState2[0],
@@ -44326,7 +44503,7 @@ function useStateManager(_ref) {
44326
44503
  });
44327
44504
  }
44328
44505
 
44329
- var _excluded$9 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
44506
+ var _excluded$a = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
44330
44507
  var compareOption = function compareOption() {
44331
44508
  var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
44332
44509
  var option = arguments.length > 1 ? arguments[1] : undefined;
@@ -44370,7 +44547,7 @@ function useCreatable(_ref) {
44370
44547
  _ref$options = _ref.options,
44371
44548
  propsOptions = _ref$options === void 0 ? [] : _ref$options,
44372
44549
  propsOnChange = _ref.onChange,
44373
- restSelectProps = _objectWithoutProperties(_ref, _excluded$9);
44550
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$a);
44374
44551
  var _restSelectProps$getO = restSelectProps.getOptionValue,
44375
44552
  getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
44376
44553
  _restSelectProps$getO2 = restSelectProps.getOptionLabel,
@@ -44429,7 +44606,7 @@ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
44429
44606
  }, baseSelectProps));
44430
44607
  });
44431
44608
 
44432
- var _excluded$8 = ["children"];
44609
+ var _excluded$9 = ["children"];
44433
44610
  function cov_2r9ol8zeg1() {
44434
44611
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/MultipleEmail/constants.jsx";
44435
44612
  var hash = "e09b41725a3ebcee86262f4ca568e046555de10a";
@@ -44882,7 +45059,7 @@ var STYLES = (cov_2r9ol8zeg1().s[0]++, {
44882
45059
  cov_2r9ol8zeg1().s[1]++;
44883
45060
  var CustomControl = function CustomControl(_ref) {
44884
45061
  var children = _ref.children,
44885
- props = _objectWithoutProperties$1(_ref, _excluded$8);
45062
+ props = _objectWithoutProperties$1(_ref, _excluded$9);
44886
45063
  cov_2r9ol8zeg1().f[0]++;
44887
45064
  var _ref2 = (cov_2r9ol8zeg1().s[2]++, props.selectProps),
44888
45065
  prefix = _ref2.prefix;
@@ -51948,7 +52125,7 @@ PhoneNumberSearch.prototype.constructor = PhoneNumberSearch;
51948
52125
 
51949
52126
  function cov_1l3yhm377b() {
51950
52127
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/utils.js";
51951
- var hash = "c5c25e3b86f6ca0d8f7d631a522c9f19b84c95df";
52128
+ var hash = "43a1df0efd87b2eb39a9401cdbb55dc1f6ee1045";
51952
52129
  var global = new Function("return this")();
51953
52130
  var gcv = "__coverage__";
51954
52131
  var coverageData = {
@@ -52010,7 +52187,7 @@ function cov_1l3yhm377b() {
52010
52187
  column: 34
52011
52188
  },
52012
52189
  end: {
52013
- line: 78,
52190
+ line: 84,
52014
52191
  column: 1
52015
52192
  }
52016
52193
  },
@@ -52070,7 +52247,7 @@ function cov_1l3yhm377b() {
52070
52247
  column: 2
52071
52248
  },
52072
52249
  end: {
52073
- line: 75,
52250
+ line: 81,
52074
52251
  column: 5
52075
52252
  }
52076
52253
  },
@@ -52090,7 +52267,7 @@ function cov_1l3yhm377b() {
52090
52267
  column: 4
52091
52268
  },
52092
52269
  end: {
52093
- line: 74,
52270
+ line: 80,
52094
52271
  column: 5
52095
52272
  }
52096
52273
  },
@@ -52101,7 +52278,7 @@ function cov_1l3yhm377b() {
52101
52278
  },
52102
52279
  end: {
52103
52280
  line: 43,
52104
- column: 69
52281
+ column: 57
52105
52282
  }
52106
52283
  },
52107
52284
  "15": {
@@ -52116,22 +52293,22 @@ function cov_1l3yhm377b() {
52116
52293
  },
52117
52294
  "16": {
52118
52295
  start: {
52119
- line: 47,
52296
+ line: 48,
52120
52297
  column: 8
52121
52298
  },
52122
52299
  end: {
52123
- line: 51,
52124
- column: 60
52300
+ line: 48,
52301
+ column: 69
52125
52302
  }
52126
52303
  },
52127
52304
  "17": {
52128
52305
  start: {
52129
- line: 49,
52130
- column: 14
52306
+ line: 50,
52307
+ column: 8
52131
52308
  },
52132
52309
  end: {
52133
- line: 49,
52134
- column: 59
52310
+ line: 50,
52311
+ column: 15
52135
52312
  }
52136
52313
  },
52137
52314
  "18": {
@@ -52140,347 +52317,367 @@ function cov_1l3yhm377b() {
52140
52317
  column: 8
52141
52318
  },
52142
52319
  end: {
52143
- line: 53,
52144
- column: 15
52320
+ line: 57,
52321
+ column: 60
52145
52322
  }
52146
52323
  },
52147
52324
  "19": {
52148
52325
  start: {
52149
- line: 57,
52150
- column: 8
52326
+ line: 55,
52327
+ column: 14
52151
52328
  },
52152
52329
  end: {
52153
- line: 60,
52154
- column: 22
52330
+ line: 55,
52331
+ column: 59
52155
52332
  }
52156
52333
  },
52157
52334
  "20": {
52158
52335
  start: {
52159
52336
  line: 59,
52160
- column: 12
52337
+ column: 8
52161
52338
  },
52162
52339
  end: {
52163
52340
  line: 59,
52164
- column: 57
52341
+ column: 15
52165
52342
  }
52166
52343
  },
52167
52344
  "21": {
52168
52345
  start: {
52169
- line: 62,
52346
+ line: 63,
52170
52347
  column: 8
52171
52348
  },
52172
52349
  end: {
52173
- line: 62,
52174
- column: 15
52350
+ line: 66,
52351
+ column: 22
52175
52352
  }
52176
52353
  },
52177
52354
  "22": {
52178
52355
  start: {
52179
52356
  line: 65,
52180
- column: 8
52357
+ column: 12
52181
52358
  },
52182
52359
  end: {
52183
52360
  line: 65,
52184
- column: 31
52361
+ column: 57
52185
52362
  }
52186
52363
  },
52187
52364
  "23": {
52188
52365
  start: {
52189
- line: 67,
52366
+ line: 68,
52190
52367
  column: 8
52191
52368
  },
52192
52369
  end: {
52193
- line: 67,
52370
+ line: 68,
52194
52371
  column: 15
52195
52372
  }
52196
52373
  },
52197
52374
  "24": {
52198
52375
  start: {
52199
- line: 70,
52376
+ line: 71,
52200
52377
  column: 8
52201
52378
  },
52202
52379
  end: {
52203
- line: 70,
52204
- column: 54
52380
+ line: 71,
52381
+ column: 31
52205
52382
  }
52206
52383
  },
52207
52384
  "25": {
52208
52385
  start: {
52209
- line: 72,
52386
+ line: 73,
52210
52387
  column: 8
52211
52388
  },
52212
52389
  end: {
52213
- line: 72,
52390
+ line: 73,
52214
52391
  column: 15
52215
52392
  }
52216
52393
  },
52217
52394
  "26": {
52218
52395
  start: {
52219
- line: 77,
52396
+ line: 76,
52397
+ column: 8
52398
+ },
52399
+ end: {
52400
+ line: 76,
52401
+ column: 54
52402
+ }
52403
+ },
52404
+ "27": {
52405
+ start: {
52406
+ line: 78,
52407
+ column: 8
52408
+ },
52409
+ end: {
52410
+ line: 78,
52411
+ column: 15
52412
+ }
52413
+ },
52414
+ "28": {
52415
+ start: {
52416
+ line: 83,
52220
52417
  column: 2
52221
52418
  },
52222
52419
  end: {
52223
- line: 77,
52420
+ line: 83,
52224
52421
  column: 64
52225
52422
  }
52226
52423
  },
52227
- "27": {
52424
+ "29": {
52228
52425
  start: {
52229
- line: 80,
52426
+ line: 86,
52230
52427
  column: 36
52231
52428
  },
52232
52429
  end: {
52233
- line: 130,
52430
+ line: 136,
52234
52431
  column: 1
52235
52432
  }
52236
52433
  },
52237
- "28": {
52434
+ "30": {
52238
52435
  start: {
52239
- line: 81,
52436
+ line: 87,
52240
52437
  column: 23
52241
52438
  },
52242
52439
  end: {
52243
- line: 81,
52440
+ line: 87,
52244
52441
  column: 25
52245
52442
  }
52246
52443
  },
52247
- "29": {
52444
+ "31": {
52248
52445
  start: {
52249
- line: 82,
52446
+ line: 88,
52250
52447
  column: 2
52251
52448
  },
52252
52449
  end: {
52253
- line: 127,
52450
+ line: 133,
52254
52451
  column: 5
52255
52452
  }
52256
52453
  },
52257
- "30": {
52454
+ "32": {
52258
52455
  start: {
52259
- line: 83,
52456
+ line: 89,
52260
52457
  column: 44
52261
52458
  },
52262
52459
  end: {
52263
- line: 83,
52460
+ line: 89,
52264
52461
  column: 52
52265
52462
  }
52266
52463
  },
52267
- "31": {
52464
+ "33": {
52268
52465
  start: {
52269
- line: 84,
52466
+ line: 90,
52270
52467
  column: 4
52271
52468
  },
52272
52469
  end: {
52273
- line: 126,
52470
+ line: 132,
52274
52471
  column: 5
52275
52472
  }
52276
52473
  },
52277
- "32": {
52474
+ "34": {
52278
52475
  start: {
52279
- line: 85,
52476
+ line: 91,
52280
52477
  column: 38
52281
52478
  },
52282
52479
  end: {
52283
- line: 85,
52480
+ line: 91,
52284
52481
  column: 46
52285
52482
  }
52286
52483
  },
52287
- "33": {
52484
+ "35": {
52288
52485
  start: {
52289
- line: 86,
52486
+ line: 92,
52290
52487
  column: 6
52291
52488
  },
52292
52489
  end: {
52293
- line: 125,
52490
+ line: 131,
52294
52491
  column: 79
52295
52492
  }
52296
52493
  },
52297
- "34": {
52494
+ "36": {
52298
52495
  start: {
52299
- line: 90,
52496
+ line: 96,
52300
52497
  column: 23
52301
52498
  },
52302
52499
  end: {
52303
- line: 90,
52500
+ line: 96,
52304
52501
  column: 65
52305
52502
  }
52306
52503
  },
52307
- "35": {
52504
+ "37": {
52308
52505
  start: {
52309
- line: 91,
52506
+ line: 97,
52310
52507
  column: 8
52311
52508
  },
52312
52509
  end: {
52313
- line: 98,
52510
+ line: 104,
52314
52511
  column: 9
52315
52512
  }
52316
52513
  },
52317
- "36": {
52514
+ "38": {
52318
52515
  start: {
52319
- line: 92,
52516
+ line: 98,
52320
52517
  column: 10
52321
52518
  },
52322
52519
  end: {
52323
- line: 97,
52520
+ line: 103,
52324
52521
  column: 13
52325
52522
  }
52326
52523
  },
52327
- "37": {
52524
+ "39": {
52328
52525
  start: {
52329
- line: 99,
52526
+ line: 105,
52330
52527
  column: 13
52331
52528
  },
52332
52529
  end: {
52333
- line: 125,
52530
+ line: 131,
52334
52531
  column: 79
52335
52532
  }
52336
52533
  },
52337
- "38": {
52534
+ "40": {
52338
52535
  start: {
52339
- line: 100,
52536
+ line: 106,
52340
52537
  column: 8
52341
52538
  },
52342
52539
  end: {
52343
- line: 110,
52540
+ line: 116,
52344
52541
  column: 11
52345
52542
  }
52346
52543
  },
52347
- "39": {
52544
+ "41": {
52348
52545
  start: {
52349
- line: 101,
52546
+ line: 107,
52350
52547
  column: 10
52351
52548
  },
52352
52549
  end: {
52353
- line: 109,
52550
+ line: 115,
52354
52551
  column: 11
52355
52552
  }
52356
52553
  },
52357
- "40": {
52554
+ "42": {
52358
52555
  start: {
52359
- line: 102,
52556
+ line: 108,
52360
52557
  column: 27
52361
52558
  },
52362
52559
  end: {
52363
- line: 102,
52560
+ line: 108,
52364
52561
  column: 51
52365
52562
  }
52366
52563
  },
52367
- "41": {
52564
+ "43": {
52368
52565
  start: {
52369
- line: 103,
52566
+ line: 109,
52370
52567
  column: 12
52371
52568
  },
52372
52569
  end: {
52373
- line: 108,
52570
+ line: 114,
52374
52571
  column: 15
52375
52572
  }
52376
52573
  },
52377
- "42": {
52574
+ "44": {
52378
52575
  start: {
52379
- line: 111,
52576
+ line: 117,
52380
52577
  column: 13
52381
52578
  },
52382
52579
  end: {
52383
- line: 125,
52580
+ line: 131,
52384
52581
  column: 79
52385
52582
  }
52386
52583
  },
52387
- "43": {
52584
+ "45": {
52388
52585
  start: {
52389
- line: 112,
52586
+ line: 118,
52390
52587
  column: 8
52391
52588
  },
52392
52589
  end: {
52393
- line: 118,
52590
+ line: 124,
52394
52591
  column: 11
52395
52592
  }
52396
52593
  },
52397
- "44": {
52594
+ "46": {
52398
52595
  start: {
52399
- line: 119,
52596
+ line: 125,
52400
52597
  column: 13
52401
52598
  },
52402
52599
  end: {
52403
- line: 125,
52600
+ line: 131,
52404
52601
  column: 79
52405
52602
  }
52406
52603
  },
52407
- "45": {
52604
+ "47": {
52408
52605
  start: {
52409
- line: 120,
52606
+ line: 126,
52410
52607
  column: 8
52411
52608
  },
52412
52609
  end: {
52413
- line: 124,
52610
+ line: 130,
52414
52611
  column: 11
52415
52612
  }
52416
52613
  },
52417
- "46": {
52614
+ "48": {
52418
52615
  start: {
52419
- line: 125,
52616
+ line: 131,
52420
52617
  column: 13
52421
52618
  },
52422
52619
  end: {
52423
- line: 125,
52620
+ line: 131,
52424
52621
  column: 79
52425
52622
  }
52426
52623
  },
52427
- "47": {
52624
+ "49": {
52428
52625
  start: {
52429
- line: 129,
52626
+ line: 135,
52430
52627
  column: 2
52431
52628
  },
52432
52629
  end: {
52433
- line: 129,
52630
+ line: 135,
52434
52631
  column: 22
52435
52632
  }
52436
52633
  },
52437
- "48": {
52634
+ "50": {
52438
52635
  start: {
52439
- line: 132,
52636
+ line: 138,
52440
52637
  column: 25
52441
52638
  },
52442
52639
  end: {
52443
- line: 144,
52640
+ line: 150,
52444
52641
  column: 1
52445
52642
  }
52446
52643
  },
52447
- "49": {
52644
+ "51": {
52448
52645
  start: {
52449
- line: 133,
52646
+ line: 139,
52450
52647
  column: 25
52451
52648
  },
52452
52649
  end: {
52453
- line: 133,
52650
+ line: 139,
52454
52651
  column: 30
52455
52652
  }
52456
52653
  },
52457
- "50": {
52654
+ "52": {
52458
52655
  start: {
52459
- line: 135,
52656
+ line: 141,
52460
52657
  column: 2
52461
52658
  },
52462
52659
  end: {
52463
- line: 141,
52660
+ line: 147,
52464
52661
  column: 3
52465
52662
  }
52466
52663
  },
52467
- "51": {
52664
+ "53": {
52468
52665
  start: {
52469
- line: 136,
52666
+ line: 142,
52470
52667
  column: 4
52471
52668
  },
52472
52669
  end: {
52473
- line: 140,
52670
+ line: 146,
52474
52671
  column: 21
52475
52672
  }
52476
52673
  },
52477
- "52": {
52674
+ "54": {
52478
52675
  start: {
52479
- line: 143,
52676
+ line: 149,
52480
52677
  column: 2
52481
52678
  },
52482
52679
  end: {
52483
- line: 143,
52680
+ line: 149,
52484
52681
  column: 24
52485
52682
  }
52486
52683
  }
@@ -52576,7 +52773,7 @@ function cov_1l3yhm377b() {
52576
52773
  column: 5
52577
52774
  },
52578
52775
  end: {
52579
- line: 78,
52776
+ line: 84,
52580
52777
  column: 1
52581
52778
  }
52582
52779
  },
@@ -52624,7 +52821,7 @@ function cov_1l3yhm377b() {
52624
52821
  column: 32
52625
52822
  },
52626
52823
  end: {
52627
- line: 75,
52824
+ line: 81,
52628
52825
  column: 3
52629
52826
  }
52630
52827
  },
@@ -52634,145 +52831,145 @@ function cov_1l3yhm377b() {
52634
52831
  name: "(anonymous_6)",
52635
52832
  decl: {
52636
52833
  start: {
52637
- line: 48,
52834
+ line: 54,
52638
52835
  column: 34
52639
52836
  },
52640
52837
  end: {
52641
- line: 48,
52838
+ line: 54,
52642
52839
  column: 35
52643
52840
  }
52644
52841
  },
52645
52842
  loc: {
52646
52843
  start: {
52647
- line: 49,
52844
+ line: 55,
52648
52845
  column: 14
52649
52846
  },
52650
52847
  end: {
52651
- line: 49,
52848
+ line: 55,
52652
52849
  column: 59
52653
52850
  }
52654
52851
  },
52655
- line: 49
52852
+ line: 55
52656
52853
  },
52657
52854
  "7": {
52658
52855
  name: "(anonymous_7)",
52659
52856
  decl: {
52660
52857
  start: {
52661
- line: 58,
52858
+ line: 64,
52662
52859
  column: 33
52663
52860
  },
52664
52861
  end: {
52665
- line: 58,
52862
+ line: 64,
52666
52863
  column: 34
52667
52864
  }
52668
52865
  },
52669
52866
  loc: {
52670
52867
  start: {
52671
- line: 59,
52868
+ line: 65,
52672
52869
  column: 12
52673
52870
  },
52674
52871
  end: {
52675
- line: 59,
52872
+ line: 65,
52676
52873
  column: 57
52677
52874
  }
52678
52875
  },
52679
- line: 59
52876
+ line: 65
52680
52877
  },
52681
52878
  "8": {
52682
52879
  name: "(anonymous_8)",
52683
52880
  decl: {
52684
52881
  start: {
52685
- line: 80,
52882
+ line: 86,
52686
52883
  column: 36
52687
52884
  },
52688
52885
  end: {
52689
- line: 80,
52886
+ line: 86,
52690
52887
  column: 37
52691
52888
  }
52692
52889
  },
52693
52890
  loc: {
52694
52891
  start: {
52695
- line: 80,
52892
+ line: 86,
52696
52893
  column: 61
52697
52894
  },
52698
52895
  end: {
52699
- line: 130,
52896
+ line: 136,
52700
52897
  column: 1
52701
52898
  }
52702
52899
  },
52703
- line: 80
52900
+ line: 86
52704
52901
  },
52705
52902
  "9": {
52706
52903
  name: "(anonymous_9)",
52707
52904
  decl: {
52708
52905
  start: {
52709
- line: 82,
52906
+ line: 88,
52710
52907
  column: 20
52711
52908
  },
52712
52909
  end: {
52713
- line: 82,
52910
+ line: 88,
52714
52911
  column: 21
52715
52912
  }
52716
52913
  },
52717
52914
  loc: {
52718
52915
  start: {
52719
- line: 82,
52916
+ line: 88,
52720
52917
  column: 32
52721
52918
  },
52722
52919
  end: {
52723
- line: 127,
52920
+ line: 133,
52724
52921
  column: 3
52725
52922
  }
52726
52923
  },
52727
- line: 82
52924
+ line: 88
52728
52925
  },
52729
52926
  "10": {
52730
52927
  name: "(anonymous_10)",
52731
52928
  decl: {
52732
52929
  start: {
52733
- line: 100,
52930
+ line: 106,
52734
52931
  column: 30
52735
52932
  },
52736
52933
  end: {
52737
- line: 100,
52934
+ line: 106,
52738
52935
  column: 31
52739
52936
  }
52740
52937
  },
52741
52938
  loc: {
52742
52939
  start: {
52743
- line: 100,
52940
+ line: 106,
52744
52941
  column: 52
52745
52942
  },
52746
52943
  end: {
52747
- line: 110,
52944
+ line: 116,
52748
52945
  column: 9
52749
52946
  }
52750
52947
  },
52751
- line: 100
52948
+ line: 106
52752
52949
  },
52753
52950
  "11": {
52754
52951
  name: "(anonymous_11)",
52755
52952
  decl: {
52756
52953
  start: {
52757
- line: 132,
52954
+ line: 138,
52758
52955
  column: 25
52759
52956
  },
52760
52957
  end: {
52761
- line: 132,
52958
+ line: 138,
52762
52959
  column: 26
52763
52960
  }
52764
52961
  },
52765
52962
  loc: {
52766
52963
  start: {
52767
- line: 132,
52964
+ line: 138,
52768
52965
  column: 35
52769
52966
  },
52770
52967
  end: {
52771
- line: 144,
52968
+ line: 150,
52772
52969
  column: 1
52773
52970
  }
52774
52971
  },
52775
- line: 132
52972
+ line: 138
52776
52973
  }
52777
52974
  },
52778
52975
  branchMap: {
@@ -52921,7 +53118,7 @@ function cov_1l3yhm377b() {
52921
53118
  column: 4
52922
53119
  },
52923
53120
  end: {
52924
- line: 74,
53121
+ line: 80,
52925
53122
  column: 5
52926
53123
  }
52927
53124
  },
@@ -52932,52 +53129,61 @@ function cov_1l3yhm377b() {
52932
53129
  column: 6
52933
53130
  },
52934
53131
  end: {
52935
- line: 45,
52936
- column: 15
53132
+ line: 46,
53133
+ column: 7
52937
53134
  }
52938
53135
  }, {
52939
53136
  start: {
52940
- line: 46,
53137
+ line: 47,
52941
53138
  column: 6
52942
53139
  },
52943
53140
  end: {
52944
- line: 54,
53141
+ line: 51,
52945
53142
  column: 7
52946
53143
  }
52947
53144
  }, {
52948
53145
  start: {
52949
- line: 55,
53146
+ line: 52,
52950
53147
  column: 6
52951
53148
  },
52952
53149
  end: {
52953
- line: 55,
53150
+ line: 60,
53151
+ column: 7
53152
+ }
53153
+ }, {
53154
+ start: {
53155
+ line: 61,
53156
+ column: 6
53157
+ },
53158
+ end: {
53159
+ line: 61,
52954
53160
  column: 37
52955
53161
  }
52956
53162
  }, {
52957
53163
  start: {
52958
- line: 56,
53164
+ line: 62,
52959
53165
  column: 6
52960
53166
  },
52961
53167
  end: {
52962
- line: 63,
53168
+ line: 69,
52963
53169
  column: 7
52964
53170
  }
52965
53171
  }, {
52966
53172
  start: {
52967
- line: 64,
53173
+ line: 70,
52968
53174
  column: 6
52969
53175
  },
52970
53176
  end: {
52971
- line: 68,
53177
+ line: 74,
52972
53178
  column: 7
52973
53179
  }
52974
53180
  }, {
52975
53181
  start: {
52976
- line: 69,
53182
+ line: 75,
52977
53183
  column: 6
52978
53184
  },
52979
53185
  end: {
52980
- line: 73,
53186
+ line: 79,
52981
53187
  column: 7
52982
53188
  }
52983
53189
  }],
@@ -52991,7 +53197,7 @@ function cov_1l3yhm377b() {
52991
53197
  },
52992
53198
  end: {
52993
53199
  line: 43,
52994
- column: 68
53200
+ column: 56
52995
53201
  }
52996
53202
  },
52997
53203
  type: "binary-expr",
@@ -53002,16 +53208,16 @@ function cov_1l3yhm377b() {
53002
53208
  },
53003
53209
  end: {
53004
53210
  line: 43,
53005
- column: 62
53211
+ column: 47
53006
53212
  }
53007
53213
  }, {
53008
53214
  start: {
53009
53215
  line: 43,
53010
- column: 66
53216
+ column: 51
53011
53217
  },
53012
53218
  end: {
53013
53219
  line: 43,
53014
- column: 68
53220
+ column: 56
53015
53221
  }
53016
53222
  }],
53017
53223
  line: 43
@@ -53019,154 +53225,187 @@ function cov_1l3yhm377b() {
53019
53225
  "7": {
53020
53226
  loc: {
53021
53227
  start: {
53022
- line: 47,
53228
+ line: 48,
53023
53229
  column: 25
53024
53230
  },
53025
53231
  end: {
53026
- line: 51,
53232
+ line: 48,
53233
+ column: 68
53234
+ }
53235
+ },
53236
+ type: "binary-expr",
53237
+ locations: [{
53238
+ start: {
53239
+ line: 48,
53240
+ column: 25
53241
+ },
53242
+ end: {
53243
+ line: 48,
53244
+ column: 62
53245
+ }
53246
+ }, {
53247
+ start: {
53248
+ line: 48,
53249
+ column: 66
53250
+ },
53251
+ end: {
53252
+ line: 48,
53253
+ column: 68
53254
+ }
53255
+ }],
53256
+ line: 48
53257
+ },
53258
+ "8": {
53259
+ loc: {
53260
+ start: {
53261
+ line: 53,
53262
+ column: 25
53263
+ },
53264
+ end: {
53265
+ line: 57,
53027
53266
  column: 59
53028
53267
  }
53029
53268
  },
53030
53269
  type: "cond-expr",
53031
53270
  locations: [{
53032
53271
  start: {
53033
- line: 48,
53272
+ line: 54,
53034
53273
  column: 12
53035
53274
  },
53036
53275
  end: {
53037
- line: 50,
53276
+ line: 56,
53038
53277
  column: 13
53039
53278
  }
53040
53279
  }, {
53041
53280
  start: {
53042
- line: 51,
53281
+ line: 57,
53043
53282
  column: 12
53044
53283
  },
53045
53284
  end: {
53046
- line: 51,
53285
+ line: 57,
53047
53286
  column: 59
53048
53287
  }
53049
53288
  }],
53050
- line: 47
53289
+ line: 53
53051
53290
  },
53052
- "8": {
53291
+ "9": {
53053
53292
  loc: {
53054
53293
  start: {
53055
- line: 58,
53294
+ line: 64,
53056
53295
  column: 10
53057
53296
  },
53058
53297
  end: {
53059
- line: 60,
53298
+ line: 66,
53060
53299
  column: 21
53061
53300
  }
53062
53301
  },
53063
53302
  type: "binary-expr",
53064
53303
  locations: [{
53065
53304
  start: {
53066
- line: 58,
53305
+ line: 64,
53067
53306
  column: 10
53068
53307
  },
53069
53308
  end: {
53070
- line: 60,
53309
+ line: 66,
53071
53310
  column: 15
53072
53311
  }
53073
53312
  }, {
53074
53313
  start: {
53075
- line: 60,
53314
+ line: 66,
53076
53315
  column: 19
53077
53316
  },
53078
53317
  end: {
53079
- line: 60,
53318
+ line: 66,
53080
53319
  column: 21
53081
53320
  }
53082
53321
  }],
53083
- line: 58
53322
+ line: 64
53084
53323
  },
53085
- "9": {
53324
+ "10": {
53086
53325
  loc: {
53087
53326
  start: {
53088
- line: 70,
53327
+ line: 76,
53089
53328
  column: 25
53090
53329
  },
53091
53330
  end: {
53092
- line: 70,
53331
+ line: 76,
53093
53332
  column: 53
53094
53333
  }
53095
53334
  },
53096
53335
  type: "binary-expr",
53097
53336
  locations: [{
53098
53337
  start: {
53099
- line: 70,
53338
+ line: 76,
53100
53339
  column: 25
53101
53340
  },
53102
53341
  end: {
53103
- line: 70,
53342
+ line: 76,
53104
53343
  column: 47
53105
53344
  }
53106
53345
  }, {
53107
53346
  start: {
53108
- line: 70,
53347
+ line: 76,
53109
53348
  column: 51
53110
53349
  },
53111
53350
  end: {
53112
- line: 70,
53351
+ line: 76,
53113
53352
  column: 53
53114
53353
  }
53115
53354
  }],
53116
- line: 70
53355
+ line: 76
53117
53356
  },
53118
- "10": {
53357
+ "11": {
53119
53358
  loc: {
53120
53359
  start: {
53121
- line: 77,
53360
+ line: 83,
53122
53361
  column: 9
53123
53362
  },
53124
53363
  end: {
53125
- line: 77,
53364
+ line: 83,
53126
53365
  column: 63
53127
53366
  }
53128
53367
  },
53129
53368
  type: "cond-expr",
53130
53369
  locations: [{
53131
53370
  start: {
53132
- line: 77,
53371
+ line: 83,
53133
53372
  column: 39
53134
53373
  },
53135
53374
  end: {
53136
- line: 77,
53375
+ line: 83,
53137
53376
  column: 50
53138
53377
  }
53139
53378
  }, {
53140
53379
  start: {
53141
- line: 77,
53380
+ line: 83,
53142
53381
  column: 53
53143
53382
  },
53144
53383
  end: {
53145
- line: 77,
53384
+ line: 83,
53146
53385
  column: 63
53147
53386
  }
53148
53387
  }],
53149
- line: 77
53388
+ line: 83
53150
53389
  },
53151
- "11": {
53390
+ "12": {
53152
53391
  loc: {
53153
53392
  start: {
53154
- line: 84,
53393
+ line: 90,
53155
53394
  column: 4
53156
53395
  },
53157
53396
  end: {
53158
- line: 126,
53397
+ line: 132,
53159
53398
  column: 5
53160
53399
  }
53161
53400
  },
53162
53401
  type: "if",
53163
53402
  locations: [{
53164
53403
  start: {
53165
- line: 84,
53404
+ line: 90,
53166
53405
  column: 4
53167
53406
  },
53168
53407
  end: {
53169
- line: 126,
53408
+ line: 132,
53170
53409
  column: 5
53171
53410
  }
53172
53411
  }, {
@@ -53179,93 +53418,93 @@ function cov_1l3yhm377b() {
53179
53418
  column: undefined
53180
53419
  }
53181
53420
  }],
53182
- line: 84
53421
+ line: 90
53183
53422
  },
53184
- "12": {
53423
+ "13": {
53185
53424
  loc: {
53186
53425
  start: {
53187
- line: 86,
53426
+ line: 92,
53188
53427
  column: 6
53189
53428
  },
53190
53429
  end: {
53191
- line: 125,
53430
+ line: 131,
53192
53431
  column: 79
53193
53432
  }
53194
53433
  },
53195
53434
  type: "if",
53196
53435
  locations: [{
53197
53436
  start: {
53198
- line: 86,
53437
+ line: 92,
53199
53438
  column: 6
53200
53439
  },
53201
53440
  end: {
53202
- line: 125,
53441
+ line: 131,
53203
53442
  column: 79
53204
53443
  }
53205
53444
  }, {
53206
53445
  start: {
53207
- line: 99,
53446
+ line: 105,
53208
53447
  column: 13
53209
53448
  },
53210
53449
  end: {
53211
- line: 125,
53450
+ line: 131,
53212
53451
  column: 79
53213
53452
  }
53214
53453
  }],
53215
- line: 86
53454
+ line: 92
53216
53455
  },
53217
- "13": {
53456
+ "14": {
53218
53457
  loc: {
53219
53458
  start: {
53220
- line: 87,
53459
+ line: 93,
53221
53460
  column: 8
53222
53461
  },
53223
53462
  end: {
53224
- line: 88,
53463
+ line: 94,
53225
53464
  column: 45
53226
53465
  }
53227
53466
  },
53228
53467
  type: "binary-expr",
53229
53468
  locations: [{
53230
53469
  start: {
53231
- line: 87,
53470
+ line: 93,
53232
53471
  column: 8
53233
53472
  },
53234
53473
  end: {
53235
- line: 87,
53474
+ line: 93,
53236
53475
  column: 42
53237
53476
  }
53238
53477
  }, {
53239
53478
  start: {
53240
- line: 88,
53479
+ line: 94,
53241
53480
  column: 8
53242
53481
  },
53243
53482
  end: {
53244
- line: 88,
53483
+ line: 94,
53245
53484
  column: 45
53246
53485
  }
53247
53486
  }],
53248
- line: 87
53487
+ line: 93
53249
53488
  },
53250
- "14": {
53489
+ "15": {
53251
53490
  loc: {
53252
53491
  start: {
53253
- line: 91,
53492
+ line: 97,
53254
53493
  column: 8
53255
53494
  },
53256
53495
  end: {
53257
- line: 98,
53496
+ line: 104,
53258
53497
  column: 9
53259
53498
  }
53260
53499
  },
53261
53500
  type: "if",
53262
53501
  locations: [{
53263
53502
  start: {
53264
- line: 91,
53503
+ line: 97,
53265
53504
  column: 8
53266
53505
  },
53267
53506
  end: {
53268
- line: 98,
53507
+ line: 104,
53269
53508
  column: 9
53270
53509
  }
53271
53510
  }, {
@@ -53278,60 +53517,60 @@ function cov_1l3yhm377b() {
53278
53517
  column: undefined
53279
53518
  }
53280
53519
  }],
53281
- line: 91
53520
+ line: 97
53282
53521
  },
53283
- "15": {
53522
+ "16": {
53284
53523
  loc: {
53285
53524
  start: {
53286
- line: 99,
53525
+ line: 105,
53287
53526
  column: 13
53288
53527
  },
53289
53528
  end: {
53290
- line: 125,
53529
+ line: 131,
53291
53530
  column: 79
53292
53531
  }
53293
53532
  },
53294
53533
  type: "if",
53295
53534
  locations: [{
53296
53535
  start: {
53297
- line: 99,
53536
+ line: 105,
53298
53537
  column: 13
53299
53538
  },
53300
53539
  end: {
53301
- line: 125,
53540
+ line: 131,
53302
53541
  column: 79
53303
53542
  }
53304
53543
  }, {
53305
53544
  start: {
53306
- line: 111,
53545
+ line: 117,
53307
53546
  column: 13
53308
53547
  },
53309
53548
  end: {
53310
- line: 125,
53549
+ line: 131,
53311
53550
  column: 79
53312
53551
  }
53313
53552
  }],
53314
- line: 99
53553
+ line: 105
53315
53554
  },
53316
- "16": {
53555
+ "17": {
53317
53556
  loc: {
53318
53557
  start: {
53319
- line: 101,
53558
+ line: 107,
53320
53559
  column: 10
53321
53560
  },
53322
53561
  end: {
53323
- line: 109,
53562
+ line: 115,
53324
53563
  column: 11
53325
53564
  }
53326
53565
  },
53327
53566
  type: "if",
53328
53567
  locations: [{
53329
53568
  start: {
53330
- line: 101,
53569
+ line: 107,
53331
53570
  column: 10
53332
53571
  },
53333
53572
  end: {
53334
- line: 109,
53573
+ line: 115,
53335
53574
  column: 11
53336
53575
  }
53337
53576
  }, {
@@ -53344,159 +53583,159 @@ function cov_1l3yhm377b() {
53344
53583
  column: undefined
53345
53584
  }
53346
53585
  }],
53347
- line: 101
53586
+ line: 107
53348
53587
  },
53349
- "17": {
53588
+ "18": {
53350
53589
  loc: {
53351
53590
  start: {
53352
- line: 111,
53591
+ line: 117,
53353
53592
  column: 13
53354
53593
  },
53355
53594
  end: {
53356
- line: 125,
53595
+ line: 131,
53357
53596
  column: 79
53358
53597
  }
53359
53598
  },
53360
53599
  type: "if",
53361
53600
  locations: [{
53362
53601
  start: {
53363
- line: 111,
53602
+ line: 117,
53364
53603
  column: 13
53365
53604
  },
53366
53605
  end: {
53367
- line: 125,
53606
+ line: 131,
53368
53607
  column: 79
53369
53608
  }
53370
53609
  }, {
53371
53610
  start: {
53372
- line: 119,
53611
+ line: 125,
53373
53612
  column: 13
53374
53613
  },
53375
53614
  end: {
53376
- line: 125,
53615
+ line: 131,
53377
53616
  column: 79
53378
53617
  }
53379
53618
  }],
53380
- line: 111
53619
+ line: 117
53381
53620
  },
53382
- "18": {
53621
+ "19": {
53383
53622
  loc: {
53384
53623
  start: {
53385
- line: 114,
53624
+ line: 120,
53386
53625
  column: 17
53387
53626
  },
53388
53627
  end: {
53389
- line: 116,
53628
+ line: 122,
53390
53629
  column: 16
53391
53630
  }
53392
53631
  },
53393
53632
  type: "cond-expr",
53394
53633
  locations: [{
53395
53634
  start: {
53396
- line: 115,
53635
+ line: 121,
53397
53636
  column: 14
53398
53637
  },
53399
53638
  end: {
53400
- line: 115,
53639
+ line: 121,
53401
53640
  column: 67
53402
53641
  }
53403
53642
  }, {
53404
53643
  start: {
53405
- line: 116,
53644
+ line: 122,
53406
53645
  column: 14
53407
53646
  },
53408
53647
  end: {
53409
- line: 116,
53648
+ line: 122,
53410
53649
  column: 16
53411
53650
  }
53412
53651
  }],
53413
- line: 114
53652
+ line: 120
53414
53653
  },
53415
- "19": {
53654
+ "20": {
53416
53655
  loc: {
53417
53656
  start: {
53418
- line: 119,
53657
+ line: 125,
53419
53658
  column: 13
53420
53659
  },
53421
53660
  end: {
53422
- line: 125,
53661
+ line: 131,
53423
53662
  column: 79
53424
53663
  }
53425
53664
  },
53426
53665
  type: "if",
53427
53666
  locations: [{
53428
53667
  start: {
53429
- line: 119,
53668
+ line: 125,
53430
53669
  column: 13
53431
53670
  },
53432
53671
  end: {
53433
- line: 125,
53672
+ line: 131,
53434
53673
  column: 79
53435
53674
  }
53436
53675
  }, {
53437
53676
  start: {
53438
- line: 125,
53677
+ line: 131,
53439
53678
  column: 13
53440
53679
  },
53441
53680
  end: {
53442
- line: 125,
53681
+ line: 131,
53443
53682
  column: 79
53444
53683
  }
53445
53684
  }],
53446
- line: 119
53685
+ line: 125
53447
53686
  },
53448
- "20": {
53687
+ "21": {
53449
53688
  loc: {
53450
53689
  start: {
53451
- line: 122,
53690
+ line: 128,
53452
53691
  column: 17
53453
53692
  },
53454
53693
  end: {
53455
- line: 122,
53694
+ line: 128,
53456
53695
  column: 69
53457
53696
  }
53458
53697
  },
53459
53698
  type: "cond-expr",
53460
53699
  locations: [{
53461
53700
  start: {
53462
- line: 122,
53701
+ line: 128,
53463
53702
  column: 33
53464
53703
  },
53465
53704
  end: {
53466
- line: 122,
53705
+ line: 128,
53467
53706
  column: 62
53468
53707
  }
53469
53708
  }, {
53470
53709
  start: {
53471
- line: 122,
53710
+ line: 128,
53472
53711
  column: 65
53473
53712
  },
53474
53713
  end: {
53475
- line: 122,
53714
+ line: 128,
53476
53715
  column: 69
53477
53716
  }
53478
53717
  }],
53479
- line: 122
53718
+ line: 128
53480
53719
  },
53481
- "21": {
53720
+ "22": {
53482
53721
  loc: {
53483
53722
  start: {
53484
- line: 135,
53723
+ line: 141,
53485
53724
  column: 2
53486
53725
  },
53487
53726
  end: {
53488
- line: 141,
53727
+ line: 147,
53489
53728
  column: 3
53490
53729
  }
53491
53730
  },
53492
53731
  type: "if",
53493
53732
  locations: [{
53494
53733
  start: {
53495
- line: 135,
53734
+ line: 141,
53496
53735
  column: 2
53497
53736
  },
53498
53737
  end: {
53499
- line: 141,
53738
+ line: 147,
53500
53739
  column: 3
53501
53740
  }
53502
53741
  }, {
@@ -53509,40 +53748,40 @@ function cov_1l3yhm377b() {
53509
53748
  column: undefined
53510
53749
  }
53511
53750
  }],
53512
- line: 135
53751
+ line: 141
53513
53752
  },
53514
- "22": {
53753
+ "23": {
53515
53754
  loc: {
53516
53755
  start: {
53517
- line: 135,
53756
+ line: 141,
53518
53757
  column: 6
53519
53758
  },
53520
53759
  end: {
53521
- line: 135,
53760
+ line: 141,
53522
53761
  column: 30
53523
53762
  }
53524
53763
  },
53525
53764
  type: "binary-expr",
53526
53765
  locations: [{
53527
53766
  start: {
53528
- line: 135,
53767
+ line: 141,
53529
53768
  column: 6
53530
53769
  },
53531
53770
  end: {
53532
- line: 135,
53771
+ line: 141,
53533
53772
  column: 12
53534
53773
  }
53535
53774
  }, {
53536
53775
  start: {
53537
- line: 135,
53776
+ line: 141,
53538
53777
  column: 16
53539
53778
  },
53540
53779
  end: {
53541
- line: 135,
53780
+ line: 141,
53542
53781
  column: 30
53543
53782
  }
53544
53783
  }],
53545
- line: 135
53784
+ line: 141
53546
53785
  }
53547
53786
  },
53548
53787
  s: {
@@ -53598,7 +53837,9 @@ function cov_1l3yhm377b() {
53598
53837
  "49": 0,
53599
53838
  "50": 0,
53600
53839
  "51": 0,
53601
- "52": 0
53840
+ "52": 0,
53841
+ "53": 0,
53842
+ "54": 0
53602
53843
  },
53603
53844
  f: {
53604
53845
  "0": 0,
@@ -53620,7 +53861,7 @@ function cov_1l3yhm377b() {
53620
53861
  "2": [0],
53621
53862
  "3": [0],
53622
53863
  "4": [0, 0],
53623
- "5": [0, 0, 0, 0, 0, 0],
53864
+ "5": [0, 0, 0, 0, 0, 0, 0],
53624
53865
  "6": [0, 0],
53625
53866
  "7": [0, 0],
53626
53867
  "8": [0, 0],
@@ -53637,10 +53878,11 @@ function cov_1l3yhm377b() {
53637
53878
  "19": [0, 0],
53638
53879
  "20": [0, 0],
53639
53880
  "21": [0, 0],
53640
- "22": [0, 0]
53881
+ "22": [0, 0],
53882
+ "23": [0, 0]
53641
53883
  },
53642
53884
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
53643
- hash: "c5c25e3b86f6ca0d8f7d631a522c9f19b84c95df"
53885
+ hash: "43a1df0efd87b2eb39a9401cdbb55dc1f6ee1045"
53644
53886
  };
53645
53887
  var coverage = global[gcv] || (global[gcv] = {});
53646
53888
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -53703,7 +53945,6 @@ var generateInitValues = function generateInitValues(questions) {
53703
53945
  }
53704
53946
  cov_1l3yhm377b().s[11]++;
53705
53947
  questions.forEach(function (question) {
53706
- var _ref2, _valuesMap, _valuesMap$id;
53707
53948
  cov_1l3yhm377b().f[5]++;
53708
53949
  var _ref = (cov_1l3yhm377b().s[12]++, question),
53709
53950
  id = _ref.id,
@@ -53711,88 +53952,100 @@ var generateInitValues = function generateInitValues(questions) {
53711
53952
  optionsAttributes = _ref.optionsAttributes;
53712
53953
  cov_1l3yhm377b().s[13]++;
53713
53954
  switch (kind) {
53714
- case QUESTION_KIND.ADDITIONAL_GUESTS.value:
53955
+ case QUESTION_KIND.CONDITION.value:
53715
53956
  cov_1l3yhm377b().b[5][0]++;
53716
- cov_1l3yhm377b().s[14]++;
53717
- initValues[id] = (_ref2 = (cov_1l3yhm377b().b[6][0]++, toEmailValues((_valuesMap = valuesMap) === null || _valuesMap === void 0 ? void 0 : (_valuesMap$id = _valuesMap[id]) === null || _valuesMap$id === void 0 ? void 0 : _valuesMap$id.value))) !== null && _ref2 !== void 0 ? _ref2 : (cov_1l3yhm377b().b[6][1]++, []);
53718
- cov_1l3yhm377b().s[15]++;
53719
- return;
53720
- case QUESTION_KIND.CHECKBOX.value:
53957
+ {
53958
+ var _ref2, _valuesMap, _valuesMap$id;
53959
+ cov_1l3yhm377b().s[14]++;
53960
+ initValues[id] = (_ref2 = (cov_1l3yhm377b().b[6][0]++, (_valuesMap = valuesMap) === null || _valuesMap === void 0 ? void 0 : (_valuesMap$id = _valuesMap[id]) === null || _valuesMap$id === void 0 ? void 0 : _valuesMap$id.value)) !== null && _ref2 !== void 0 ? _ref2 : (cov_1l3yhm377b().b[6][1]++, false);
53961
+ cov_1l3yhm377b().s[15]++;
53962
+ return;
53963
+ }
53964
+ case QUESTION_KIND.ADDITIONAL_GUESTS.value:
53721
53965
  cov_1l3yhm377b().b[5][1]++;
53722
53966
  {
53723
- var _valuesMap$id2, _valuesMap$id2$option;
53967
+ var _ref3, _valuesMap2, _valuesMap2$id;
53724
53968
  cov_1l3yhm377b().s[16]++;
53725
- initValues[id] = (_valuesMap$id2 = valuesMap[id]) !== null && _valuesMap$id2 !== void 0 && (_valuesMap$id2$option = _valuesMap$id2.optionIds) !== null && _valuesMap$id2$option !== void 0 && _valuesMap$id2$option.length ? (cov_1l3yhm377b().b[7][0]++, optionsAttributes.map(function (option) {
53969
+ initValues[id] = (_ref3 = (cov_1l3yhm377b().b[7][0]++, toEmailValues((_valuesMap2 = valuesMap) === null || _valuesMap2 === void 0 ? void 0 : (_valuesMap2$id = _valuesMap2[id]) === null || _valuesMap2$id === void 0 ? void 0 : _valuesMap2$id.value))) !== null && _ref3 !== void 0 ? _ref3 : (cov_1l3yhm377b().b[7][1]++, []);
53970
+ cov_1l3yhm377b().s[17]++;
53971
+ return;
53972
+ }
53973
+ case QUESTION_KIND.CHECKBOX.value:
53974
+ cov_1l3yhm377b().b[5][2]++;
53975
+ {
53976
+ var _valuesMap$id2, _valuesMap$id2$option;
53977
+ cov_1l3yhm377b().s[18]++;
53978
+ initValues[id] = (_valuesMap$id2 = valuesMap[id]) !== null && _valuesMap$id2 !== void 0 && (_valuesMap$id2$option = _valuesMap$id2.optionIds) !== null && _valuesMap$id2$option !== void 0 && _valuesMap$id2$option.length ? (cov_1l3yhm377b().b[8][0]++, optionsAttributes.map(function (option) {
53726
53979
  var _valuesMap$id3, _valuesMap$id3$option;
53727
53980
  cov_1l3yhm377b().f[6]++;
53728
- cov_1l3yhm377b().s[17]++;
53981
+ cov_1l3yhm377b().s[19]++;
53729
53982
  return (_valuesMap$id3 = valuesMap[id]) === null || _valuesMap$id3 === void 0 ? void 0 : (_valuesMap$id3$option = _valuesMap$id3.optionIds) === null || _valuesMap$id3$option === void 0 ? void 0 : _valuesMap$id3$option.includes(option.id);
53730
- })) : (cov_1l3yhm377b().b[7][1]++, new Array(optionsAttributes.length).fill(false));
53731
- cov_1l3yhm377b().s[18]++;
53983
+ })) : (cov_1l3yhm377b().b[8][1]++, new Array(optionsAttributes.length).fill(false));
53984
+ cov_1l3yhm377b().s[20]++;
53732
53985
  return;
53733
53986
  }
53734
53987
  case QUESTION_KIND.RADIO.value:
53735
- cov_1l3yhm377b().b[5][2]++;
53736
- case QUESTION_KIND.DROPDOWN.value:
53737
53988
  cov_1l3yhm377b().b[5][3]++;
53989
+ case QUESTION_KIND.DROPDOWN.value:
53990
+ cov_1l3yhm377b().b[5][4]++;
53738
53991
  {
53739
53992
  var _optionsAttributes$fi;
53740
- cov_1l3yhm377b().s[19]++;
53741
- initValues[id] = (cov_1l3yhm377b().b[8][0]++, (_optionsAttributes$fi = optionsAttributes.find(function (option) {
53993
+ cov_1l3yhm377b().s[21]++;
53994
+ initValues[id] = (cov_1l3yhm377b().b[9][0]++, (_optionsAttributes$fi = optionsAttributes.find(function (option) {
53742
53995
  var _valuesMap$id4, _valuesMap$id4$option;
53743
53996
  cov_1l3yhm377b().f[7]++;
53744
- cov_1l3yhm377b().s[20]++;
53997
+ cov_1l3yhm377b().s[22]++;
53745
53998
  return (_valuesMap$id4 = valuesMap[id]) === null || _valuesMap$id4 === void 0 ? void 0 : (_valuesMap$id4$option = _valuesMap$id4.optionIds) === null || _valuesMap$id4$option === void 0 ? void 0 : _valuesMap$id4$option.includes(option.id);
53746
- })) === null || _optionsAttributes$fi === void 0 ? void 0 : _optionsAttributes$fi.id) || (cov_1l3yhm377b().b[8][1]++, "");
53747
- cov_1l3yhm377b().s[21]++;
53999
+ })) === null || _optionsAttributes$fi === void 0 ? void 0 : _optionsAttributes$fi.id) || (cov_1l3yhm377b().b[9][1]++, "");
54000
+ cov_1l3yhm377b().s[23]++;
53748
54001
  return;
53749
54002
  }
53750
54003
  case QUESTION_KIND.TERMS.value:
53751
- cov_1l3yhm377b().b[5][4]++;
54004
+ cov_1l3yhm377b().b[5][5]++;
53752
54005
  {
53753
- cov_1l3yhm377b().s[22]++;
54006
+ cov_1l3yhm377b().s[24]++;
53754
54007
  initValues[id] = false;
53755
- cov_1l3yhm377b().s[23]++;
54008
+ cov_1l3yhm377b().s[25]++;
53756
54009
  return;
53757
54010
  }
53758
54011
  default:
53759
- cov_1l3yhm377b().b[5][5]++;
54012
+ cov_1l3yhm377b().b[5][6]++;
53760
54013
  {
53761
- var _ref3, _valuesMap2, _valuesMap2$id;
53762
- cov_1l3yhm377b().s[24]++;
53763
- initValues[id] = (_ref3 = (cov_1l3yhm377b().b[9][0]++, (_valuesMap2 = valuesMap) === null || _valuesMap2 === void 0 ? void 0 : (_valuesMap2$id = _valuesMap2[id]) === null || _valuesMap2$id === void 0 ? void 0 : _valuesMap2$id.value)) !== null && _ref3 !== void 0 ? _ref3 : (cov_1l3yhm377b().b[9][1]++, "");
53764
- cov_1l3yhm377b().s[25]++;
54014
+ var _ref4, _valuesMap3, _valuesMap3$id;
54015
+ cov_1l3yhm377b().s[26]++;
54016
+ initValues[id] = (_ref4 = (cov_1l3yhm377b().b[10][0]++, (_valuesMap3 = valuesMap) === null || _valuesMap3 === void 0 ? void 0 : (_valuesMap3$id = _valuesMap3[id]) === null || _valuesMap3$id === void 0 ? void 0 : _valuesMap3$id.value)) !== null && _ref4 !== void 0 ? _ref4 : (cov_1l3yhm377b().b[10][1]++, "");
54017
+ cov_1l3yhm377b().s[27]++;
53765
54018
  return;
53766
54019
  }
53767
54020
  }
53768
54021
  });
53769
- cov_1l3yhm377b().s[26]++;
53770
- return !isEmptyValues(localValues) ? (cov_1l3yhm377b().b[10][0]++, localValues) : (cov_1l3yhm377b().b[10][1]++, initValues);
54022
+ cov_1l3yhm377b().s[28]++;
54023
+ return !isEmptyValues(localValues) ? (cov_1l3yhm377b().b[11][0]++, localValues) : (cov_1l3yhm377b().b[11][1]++, initValues);
53771
54024
  };
53772
- cov_1l3yhm377b().s[27]++;
54025
+ cov_1l3yhm377b().s[29]++;
53773
54026
  var generateFormResponse = function generateFormResponse(response, questions) {
53774
54027
  cov_1l3yhm377b().f[8]++;
53775
- var formResponse = (cov_1l3yhm377b().s[28]++, []);
53776
- cov_1l3yhm377b().s[29]++;
54028
+ var formResponse = (cov_1l3yhm377b().s[30]++, []);
54029
+ cov_1l3yhm377b().s[31]++;
53777
54030
  questions.forEach(function (question) {
53778
54031
  cov_1l3yhm377b().f[9]++;
53779
- var _ref4 = (cov_1l3yhm377b().s[30]++, question),
53780
- id = _ref4.id,
53781
- kind = _ref4.kind,
53782
- optionsAttributes = _ref4.optionsAttributes;
53783
- cov_1l3yhm377b().s[31]++;
54032
+ var _ref5 = (cov_1l3yhm377b().s[32]++, question),
54033
+ id = _ref5.id,
54034
+ kind = _ref5.kind,
54035
+ optionsAttributes = _ref5.optionsAttributes;
54036
+ cov_1l3yhm377b().s[33]++;
53784
54037
  if (!SCHEMA_LESS_QUESTION_KINDS.includes(kind)) {
53785
- cov_1l3yhm377b().b[11][0]++;
53786
- var _ref5 = (cov_1l3yhm377b().s[32]++, response),
53787
- responseValue = _ref5[id];
53788
- cov_1l3yhm377b().s[33]++;
53789
- if ((cov_1l3yhm377b().b[13][0]++, kind === QUESTION_KIND.RADIO.value) || (cov_1l3yhm377b().b[13][1]++, kind === QUESTION_KIND.DROPDOWN.value)) {
53790
- cov_1l3yhm377b().b[12][0]++;
53791
- var option = (cov_1l3yhm377b().s[34]++, findById(responseValue, optionsAttributes));
53792
- cov_1l3yhm377b().s[35]++;
54038
+ cov_1l3yhm377b().b[12][0]++;
54039
+ var _ref6 = (cov_1l3yhm377b().s[34]++, response),
54040
+ responseValue = _ref6[id];
54041
+ cov_1l3yhm377b().s[35]++;
54042
+ if ((cov_1l3yhm377b().b[14][0]++, kind === QUESTION_KIND.RADIO.value) || (cov_1l3yhm377b().b[14][1]++, kind === QUESTION_KIND.DROPDOWN.value)) {
54043
+ cov_1l3yhm377b().b[13][0]++;
54044
+ var option = (cov_1l3yhm377b().s[36]++, findById(responseValue, optionsAttributes));
54045
+ cov_1l3yhm377b().s[37]++;
53793
54046
  if (option) {
53794
- cov_1l3yhm377b().b[14][0]++;
53795
- cov_1l3yhm377b().s[36]++;
54047
+ cov_1l3yhm377b().b[15][0]++;
54048
+ cov_1l3yhm377b().s[38]++;
53796
54049
  formResponse.push({
53797
54050
  questionId: id,
53798
54051
  questionOptionId: option.id,
@@ -53800,21 +54053,21 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53800
54053
  kind: kind
53801
54054
  });
53802
54055
  } else {
53803
- cov_1l3yhm377b().b[14][1]++;
54056
+ cov_1l3yhm377b().b[15][1]++;
53804
54057
  }
53805
54058
  } else {
53806
- cov_1l3yhm377b().b[12][1]++;
53807
- cov_1l3yhm377b().s[37]++;
54059
+ cov_1l3yhm377b().b[13][1]++;
54060
+ cov_1l3yhm377b().s[39]++;
53808
54061
  if (kind === QUESTION_KIND.CHECKBOX.value) {
53809
- cov_1l3yhm377b().b[15][0]++;
53810
- cov_1l3yhm377b().s[38]++;
54062
+ cov_1l3yhm377b().b[16][0]++;
54063
+ cov_1l3yhm377b().s[40]++;
53811
54064
  responseValue.forEach(function (isChecked, index) {
53812
54065
  cov_1l3yhm377b().f[10]++;
53813
- cov_1l3yhm377b().s[39]++;
54066
+ cov_1l3yhm377b().s[41]++;
53814
54067
  if (isChecked) {
53815
- cov_1l3yhm377b().b[16][0]++;
53816
- var _option = (cov_1l3yhm377b().s[40]++, optionsAttributes[index]);
53817
- cov_1l3yhm377b().s[41]++;
54068
+ cov_1l3yhm377b().b[17][0]++;
54069
+ var _option = (cov_1l3yhm377b().s[42]++, optionsAttributes[index]);
54070
+ cov_1l3yhm377b().s[43]++;
53818
54071
  formResponse.push({
53819
54072
  questionId: id,
53820
54073
  questionOptionId: _option.id,
@@ -53822,34 +54075,34 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53822
54075
  kind: kind
53823
54076
  });
53824
54077
  } else {
53825
- cov_1l3yhm377b().b[16][1]++;
54078
+ cov_1l3yhm377b().b[17][1]++;
53826
54079
  }
53827
54080
  });
53828
54081
  } else {
53829
- cov_1l3yhm377b().b[15][1]++;
53830
- cov_1l3yhm377b().s[42]++;
54082
+ cov_1l3yhm377b().b[16][1]++;
54083
+ cov_1l3yhm377b().s[44]++;
53831
54084
  if (kind === QUESTION_KIND.PHONE.value) {
53832
- cov_1l3yhm377b().b[17][0]++;
53833
- cov_1l3yhm377b().s[43]++;
54085
+ cov_1l3yhm377b().b[18][0]++;
54086
+ cov_1l3yhm377b().s[45]++;
53834
54087
  formResponse.push({
53835
54088
  questionId: id,
53836
- value: responseValue ? (cov_1l3yhm377b().b[18][0]++, parsePhoneNumberFromString(responseValue).formatInternational()) : (cov_1l3yhm377b().b[18][1]++, ""),
54089
+ value: responseValue ? (cov_1l3yhm377b().b[19][0]++, parsePhoneNumberFromString(responseValue).formatInternational()) : (cov_1l3yhm377b().b[19][1]++, ""),
53837
54090
  kind: kind
53838
54091
  });
53839
54092
  } else {
53840
- cov_1l3yhm377b().b[17][1]++;
53841
- cov_1l3yhm377b().s[44]++;
54093
+ cov_1l3yhm377b().b[18][1]++;
54094
+ cov_1l3yhm377b().s[46]++;
53842
54095
  if (kind === QUESTION_KIND.ADDITIONAL_GUESTS.value) {
53843
- cov_1l3yhm377b().b[19][0]++;
53844
- cov_1l3yhm377b().s[45]++;
54096
+ cov_1l3yhm377b().b[20][0]++;
54097
+ cov_1l3yhm377b().s[47]++;
53845
54098
  formResponse.push({
53846
54099
  questionId: id,
53847
- value: responseValue ? (cov_1l3yhm377b().b[20][0]++, pluck("value", responseValue)) : (cov_1l3yhm377b().b[20][1]++, null),
54100
+ value: responseValue ? (cov_1l3yhm377b().b[21][0]++, pluck("value", responseValue)) : (cov_1l3yhm377b().b[21][1]++, null),
53848
54101
  kind: kind
53849
54102
  });
53850
54103
  } else {
53851
- cov_1l3yhm377b().b[19][1]++;
53852
- cov_1l3yhm377b().s[46]++;
54104
+ cov_1l3yhm377b().b[20][1]++;
54105
+ cov_1l3yhm377b().s[48]++;
53853
54106
  formResponse.push({
53854
54107
  questionId: id,
53855
54108
  value: responseValue,
@@ -53860,29 +54113,29 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53860
54113
  }
53861
54114
  }
53862
54115
  } else {
53863
- cov_1l3yhm377b().b[11][1]++;
54116
+ cov_1l3yhm377b().b[12][1]++;
53864
54117
  }
53865
54118
  });
53866
- cov_1l3yhm377b().s[47]++;
54119
+ cov_1l3yhm377b().s[49]++;
53867
54120
  return formResponse;
53868
54121
  };
53869
- cov_1l3yhm377b().s[48]++;
54122
+ cov_1l3yhm377b().s[50]++;
53870
54123
  var hyphenize = function hyphenize(string) {
53871
54124
  cov_1l3yhm377b().f[11]++;
53872
- var fallbackString = (cov_1l3yhm377b().s[49]++, "nui");
53873
- cov_1l3yhm377b().s[50]++;
53874
- if ((cov_1l3yhm377b().b[22][0]++, string) && (cov_1l3yhm377b().b[22][1]++, string.replace)) {
53875
- cov_1l3yhm377b().b[21][0]++;
53876
- cov_1l3yhm377b().s[51]++;
54125
+ var fallbackString = (cov_1l3yhm377b().s[51]++, "nui");
54126
+ cov_1l3yhm377b().s[52]++;
54127
+ if ((cov_1l3yhm377b().b[23][0]++, string) && (cov_1l3yhm377b().b[23][1]++, string.replace)) {
54128
+ cov_1l3yhm377b().b[22][0]++;
54129
+ cov_1l3yhm377b().s[53]++;
53877
54130
  return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
53878
54131
  } else {
53879
- cov_1l3yhm377b().b[21][1]++;
54132
+ cov_1l3yhm377b().b[22][1]++;
53880
54133
  }
53881
- cov_1l3yhm377b().s[52]++;
54134
+ cov_1l3yhm377b().s[54]++;
53882
54135
  return fallbackString;
53883
54136
  };
53884
54137
 
53885
- var _excluded$7 = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "labelProps"];
54138
+ var _excluded$8 = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "labelProps"];
53886
54139
  function cov_ic8t6kb5c() {
53887
54140
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/MultipleEmail/index.jsx";
53888
54141
  var hash = "544673bb225987a32143d318f81ed27bb2496821";
@@ -55487,7 +55740,7 @@ var MultiEmailInput = (cov_ic8t6kb5c().s[0]++, /*#__PURE__*/forwardRef(function
55487
55740
  _ref$maxHeight = _ref.maxHeight,
55488
55741
  maxHeight = _ref$maxHeight === void 0 ? (cov_ic8t6kb5c().b[8][0]++, 200) : _ref$maxHeight,
55489
55742
  labelProps = _ref.labelProps,
55490
- otherProps = _objectWithoutProperties$1(_ref, _excluded$7);
55743
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$8);
55491
55744
  cov_ic8t6kb5c().f[0]++;
55492
55745
  var _ref2 = (cov_ic8t6kb5c().s[1]++, useState("")),
55493
55746
  _ref3 = _slicedToArray$6(_ref2, 2),
@@ -56268,7 +56521,7 @@ cov_1zuybttr1q().s[8]++;
56268
56521
  var _ref9;
56269
56522
  function cov_1y9t6ere98() {
56270
56523
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/validations.js";
56271
- var hash = "f5a71f57bef6ec936ae3c7a98a7ab8cea11c368f";
56524
+ var hash = "4b4662b2577f6470c2291bacfa8dd237536ee800";
56272
56525
  var global = new Function("return this")();
56273
56526
  var gcv = "__coverage__";
56274
56527
  var coverageData = {
@@ -56770,107 +57023,107 @@ function cov_1y9t6ere98() {
56770
57023
  column: 30
56771
57024
  },
56772
57025
  end: {
56773
- line: 126,
57026
+ line: 127,
56774
57027
  column: 1
56775
57028
  }
56776
57029
  },
56777
57030
  "50": {
56778
57031
  start: {
56779
- line: 129,
57032
+ line: 130,
56780
57033
  column: 2
56781
57034
  },
56782
57035
  end: {
56783
- line: 146,
57036
+ line: 147,
56784
57037
  column: 3
56785
57038
  }
56786
57039
  },
56787
57040
  "51": {
56788
57041
  start: {
56789
- line: 131,
57042
+ line: 132,
56790
57043
  column: 2
56791
57044
  },
56792
57045
  end: {
56793
- line: 146,
57046
+ line: 147,
56794
57047
  column: 3
56795
57048
  }
56796
57049
  },
56797
57050
  "52": {
56798
57051
  start: {
56799
- line: 132,
57052
+ line: 133,
56800
57053
  column: 4
56801
57054
  },
56802
57055
  end: {
56803
- line: 145,
57056
+ line: 146,
56804
57057
  column: 5
56805
57058
  }
56806
57059
  },
56807
57060
  "53": {
56808
57061
  start: {
56809
- line: 133,
57062
+ line: 134,
56810
57063
  column: 24
56811
57064
  },
56812
57065
  end: {
56813
- line: 133,
57066
+ line: 134,
56814
57067
  column: 51
56815
57068
  }
56816
57069
  },
56817
57070
  "54": {
56818
57071
  start: {
56819
- line: 134,
57072
+ line: 135,
56820
57073
  column: 21
56821
57074
  },
56822
57075
  end: {
56823
- line: 134,
57076
+ line: 135,
56824
57077
  column: 78
56825
57078
  }
56826
57079
  },
56827
57080
  "55": {
56828
57081
  start: {
56829
- line: 137,
57082
+ line: 138,
56830
57083
  column: 6
56831
57084
  },
56832
57085
  end: {
56833
- line: 144,
57086
+ line: 145,
56834
57087
  column: 9
56835
57088
  }
56836
57089
  },
56837
57090
  "56": {
56838
57091
  start: {
56839
- line: 138,
57092
+ line: 139,
56840
57093
  column: 8
56841
57094
  },
56842
57095
  end: {
56843
- line: 143,
57096
+ line: 144,
56844
57097
  column: 9
56845
57098
  }
56846
57099
  },
56847
57100
  "57": {
56848
57101
  start: {
56849
- line: 139,
57102
+ line: 140,
56850
57103
  column: 10
56851
57104
  },
56852
57105
  end: {
56853
- line: 139,
57106
+ line: 140,
56854
57107
  column: 39
56855
57108
  }
56856
57109
  },
56857
57110
  "58": {
56858
57111
  start: {
56859
- line: 140,
57112
+ line: 141,
56860
57113
  column: 10
56861
57114
  },
56862
57115
  end: {
56863
- line: 140,
57116
+ line: 141,
56864
57117
  column: 29
56865
57118
  }
56866
57119
  },
56867
57120
  "59": {
56868
57121
  start: {
56869
- line: 142,
57122
+ line: 143,
56870
57123
  column: 10
56871
57124
  },
56872
57125
  end: {
56873
- line: 142,
57126
+ line: 143,
56874
57127
  column: 31
56875
57128
  }
56876
57129
  }
@@ -57120,73 +57373,73 @@ function cov_1y9t6ere98() {
57120
57373
  name: "(anonymous_10)",
57121
57374
  decl: {
57122
57375
  start: {
57123
- line: 129,
57376
+ line: 130,
57124
57377
  column: 2
57125
57378
  },
57126
57379
  end: {
57127
- line: 129,
57380
+ line: 130,
57128
57381
  column: 3
57129
57382
  }
57130
57383
  },
57131
57384
  loc: {
57132
57385
  start: {
57133
- line: 131,
57386
+ line: 132,
57134
57387
  column: 2
57135
57388
  },
57136
57389
  end: {
57137
- line: 146,
57390
+ line: 147,
57138
57391
  column: 3
57139
57392
  }
57140
57393
  },
57141
- line: 131
57394
+ line: 132
57142
57395
  },
57143
57396
  "11": {
57144
57397
  name: "(anonymous_11)",
57145
57398
  decl: {
57146
57399
  start: {
57147
- line: 131,
57400
+ line: 132,
57148
57401
  column: 2
57149
57402
  },
57150
57403
  end: {
57151
- line: 131,
57404
+ line: 132,
57152
57405
  column: 3
57153
57406
  }
57154
57407
  },
57155
57408
  loc: {
57156
57409
  start: {
57157
- line: 131,
57410
+ line: 132,
57158
57411
  column: 11
57159
57412
  },
57160
57413
  end: {
57161
- line: 146,
57414
+ line: 147,
57162
57415
  column: 3
57163
57416
  }
57164
57417
  },
57165
- line: 131
57418
+ line: 132
57166
57419
  },
57167
57420
  "12": {
57168
57421
  name: "(anonymous_12)",
57169
57422
  decl: {
57170
57423
  start: {
57171
- line: 137,
57424
+ line: 138,
57172
57425
  column: 25
57173
57426
  },
57174
57427
  end: {
57175
- line: 137,
57428
+ line: 138,
57176
57429
  column: 26
57177
57430
  }
57178
57431
  },
57179
57432
  loc: {
57180
57433
  start: {
57181
- line: 137,
57434
+ line: 138,
57182
57435
  column: 42
57183
57436
  },
57184
57437
  end: {
57185
- line: 144,
57438
+ line: 145,
57186
57439
  column: 7
57187
57440
  }
57188
57441
  },
57189
- line: 137
57442
+ line: 138
57190
57443
  }
57191
57444
  },
57192
57445
  branchMap: {
@@ -57523,22 +57776,22 @@ function cov_1y9t6ere98() {
57523
57776
  "10": {
57524
57777
  loc: {
57525
57778
  start: {
57526
- line: 132,
57779
+ line: 133,
57527
57780
  column: 4
57528
57781
  },
57529
57782
  end: {
57530
- line: 145,
57783
+ line: 146,
57531
57784
  column: 5
57532
57785
  }
57533
57786
  },
57534
57787
  type: "if",
57535
57788
  locations: [{
57536
57789
  start: {
57537
- line: 132,
57790
+ line: 133,
57538
57791
  column: 4
57539
57792
  },
57540
57793
  end: {
57541
- line: 145,
57794
+ line: 146,
57542
57795
  column: 5
57543
57796
  }
57544
57797
  }, {
@@ -57551,40 +57804,40 @@ function cov_1y9t6ere98() {
57551
57804
  column: undefined
57552
57805
  }
57553
57806
  }],
57554
- line: 132
57807
+ line: 133
57555
57808
  },
57556
57809
  "11": {
57557
57810
  loc: {
57558
57811
  start: {
57559
- line: 134,
57812
+ line: 135,
57560
57813
  column: 21
57561
57814
  },
57562
57815
  end: {
57563
- line: 134,
57816
+ line: 135,
57564
57817
  column: 78
57565
57818
  }
57566
57819
  },
57567
57820
  type: "binary-expr",
57568
57821
  locations: [{
57569
57822
  start: {
57570
- line: 134,
57823
+ line: 135,
57571
57824
  column: 21
57572
57825
  },
57573
57826
  end: {
57574
- line: 134,
57827
+ line: 135,
57575
57828
  column: 36
57576
57829
  }
57577
57830
  }, {
57578
57831
  start: {
57579
- line: 134,
57832
+ line: 135,
57580
57833
  column: 40
57581
57834
  },
57582
57835
  end: {
57583
- line: 134,
57836
+ line: 135,
57584
57837
  column: 78
57585
57838
  }
57586
57839
  }],
57587
- line: 134
57840
+ line: 135
57588
57841
  }
57589
57842
  },
57590
57843
  s: {
@@ -57679,7 +57932,7 @@ function cov_1y9t6ere98() {
57679
57932
  "11": [0, 0]
57680
57933
  },
57681
57934
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
57682
- hash: "f5a71f57bef6ec936ae3c7a98a7ab8cea11c368f"
57935
+ hash: "4b4662b2577f6470c2291bacfa8dd237536ee800"
57683
57936
  };
57684
57937
  var coverage = global[gcv] || (global[gcv] = {});
57685
57938
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -57860,7 +58113,7 @@ var validateRichTextField = function validateRichTextField(_ref8) {
57860
58113
  cov_1y9t6ere98().s[48]++;
57861
58114
  return schema;
57862
58115
  };
57863
- var fieldKindValidatorMap = (cov_1y9t6ere98().s[49]++, (_ref9 = {}, _defineProperty$a(_ref9, QUESTION_KIND.EMAIL.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.PHONE.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXT.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.NAME.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.QUESTION.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.DROPDOWN.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RADIO.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.CHECKBOX.value, validateMultiChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RATING.value, validateRatingField), _defineProperty$a(_ref9, QUESTION_KIND.TERMS.value, validateTermsField), _defineProperty$a(_ref9, QUESTION_KIND.DATE.value, validateDateField), _defineProperty$a(_ref9, QUESTION_KIND.STAR_RATING.value, validateStarRatingField), _defineProperty$a(_ref9, QUESTION_KIND.ADDITIONAL_GUESTS.value, validateMultiEmailField), _defineProperty$a(_ref9, QUESTION_KIND.RICH_TEXT.value, validateRichTextField), _ref9));
58116
+ var fieldKindValidatorMap = (cov_1y9t6ere98().s[49]++, (_ref9 = {}, _defineProperty$a(_ref9, QUESTION_KIND.EMAIL.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.PHONE.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXT.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.NAME.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.QUESTION.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.TEXTAREA.value, validateTextField), _defineProperty$a(_ref9, QUESTION_KIND.DROPDOWN.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RADIO.value, validateSingleChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.CHECKBOX.value, validateMultiChoiceField), _defineProperty$a(_ref9, QUESTION_KIND.RATING.value, validateRatingField), _defineProperty$a(_ref9, QUESTION_KIND.TERMS.value, validateTermsField), _defineProperty$a(_ref9, QUESTION_KIND.DATE.value, validateDateField), _defineProperty$a(_ref9, QUESTION_KIND.STAR_RATING.value, validateStarRatingField), _defineProperty$a(_ref9, QUESTION_KIND.ADDITIONAL_GUESTS.value, validateMultiEmailField), _defineProperty$a(_ref9, QUESTION_KIND.RICH_TEXT.value, validateRichTextField), _ref9));
57864
58117
  cov_1y9t6ere98().s[50]++;
57865
58118
  var validateFieldValue = function validateFieldValue(_ref10) {
57866
58119
  var kind = _ref10.kind,
@@ -58346,6 +58599,394 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
58346
58599
  })));
58347
58600
  };
58348
58601
 
58602
+ var _excluded$7 = ["name", "label", "error", "value"];
58603
+ function cov_1gez8dqmnr() {
58604
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Condition.jsx";
58605
+ var hash = "328a2f02a8ce55ca9c1107c4db4abe7d241df713";
58606
+ var global = new Function("return this")();
58607
+ var gcv = "__coverage__";
58608
+ var coverageData = {
58609
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Condition.jsx",
58610
+ statementMap: {
58611
+ "0": {
58612
+ start: {
58613
+ line: 3,
58614
+ column: 18
58615
+ },
58616
+ end: {
58617
+ line: 24,
58618
+ column: 1
58619
+ }
58620
+ },
58621
+ "1": {
58622
+ start: {
58623
+ line: 4,
58624
+ column: 2
58625
+ },
58626
+ end: {
58627
+ line: 23,
58628
+ column: 8
58629
+ }
58630
+ }
58631
+ },
58632
+ fnMap: {
58633
+ "0": {
58634
+ name: "(anonymous_0)",
58635
+ decl: {
58636
+ start: {
58637
+ line: 3,
58638
+ column: 18
58639
+ },
58640
+ end: {
58641
+ line: 3,
58642
+ column: 19
58643
+ }
58644
+ },
58645
+ loc: {
58646
+ start: {
58647
+ line: 4,
58648
+ column: 2
58649
+ },
58650
+ end: {
58651
+ line: 23,
58652
+ column: 8
58653
+ }
58654
+ },
58655
+ line: 4
58656
+ }
58657
+ },
58658
+ branchMap: {
58659
+ "0": {
58660
+ loc: {
58661
+ start: {
58662
+ line: 20,
58663
+ column: 5
58664
+ },
58665
+ end: {
58666
+ line: 22,
58667
+ column: 5
58668
+ }
58669
+ },
58670
+ type: "binary-expr",
58671
+ locations: [{
58672
+ start: {
58673
+ line: 20,
58674
+ column: 5
58675
+ },
58676
+ end: {
58677
+ line: 20,
58678
+ column: 12
58679
+ }
58680
+ }, {
58681
+ start: {
58682
+ line: 20,
58683
+ column: 16
58684
+ },
58685
+ end: {
58686
+ line: 20,
58687
+ column: 41
58688
+ }
58689
+ }, {
58690
+ start: {
58691
+ line: 21,
58692
+ column: 6
58693
+ },
58694
+ end: {
58695
+ line: 21,
58696
+ column: 63
58697
+ }
58698
+ }],
58699
+ line: 20
58700
+ }
58701
+ },
58702
+ s: {
58703
+ "0": 0,
58704
+ "1": 0
58705
+ },
58706
+ f: {
58707
+ "0": 0
58708
+ },
58709
+ b: {
58710
+ "0": [0, 0, 0]
58711
+ },
58712
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
58713
+ hash: "328a2f02a8ce55ca9c1107c4db4abe7d241df713"
58714
+ };
58715
+ var coverage = global[gcv] || (global[gcv] = {});
58716
+ if (!coverage[path] || coverage[path].hash !== hash) {
58717
+ coverage[path] = coverageData;
58718
+ }
58719
+ var actualCoverage = coverage[path];
58720
+ {
58721
+ // @ts-ignore
58722
+ cov_1gez8dqmnr = function () {
58723
+ return actualCoverage;
58724
+ };
58725
+ }
58726
+ return actualCoverage;
58727
+ }
58728
+ cov_1gez8dqmnr();
58729
+ cov_1gez8dqmnr().s[0]++;
58730
+ var Condition = function Condition(_ref, ref) {
58731
+ var name = _ref.name,
58732
+ label = _ref.label,
58733
+ error = _ref.error,
58734
+ value = _ref.value,
58735
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$7);
58736
+ cov_1gez8dqmnr().f[0]++;
58737
+ cov_1gez8dqmnr().s[1]++;
58738
+ return /*#__PURE__*/React__default.createElement("div", {
58739
+ className: "neeto-form-engine-terms"
58740
+ }, /*#__PURE__*/React__default.createElement("div", {
58741
+ className: "neeto-form-engine-choice"
58742
+ }, /*#__PURE__*/React__default.createElement("input", _extends$9({
58743
+ required: true,
58744
+ "aria-invalid": !!error,
58745
+ id: "condition-".concat(name),
58746
+ name: name,
58747
+ ref: ref,
58748
+ type: "checkbox",
58749
+ value: value
58750
+ }, otherProps)), /*#__PURE__*/React__default.createElement("label", {
58751
+ className: "neeto-form-engine-label",
58752
+ htmlFor: "condition-".concat(name)
58753
+ }, label)), (cov_1gez8dqmnr().b[0][0]++, !!error) && (cov_1gez8dqmnr().b[0][1]++, typeof error === "string") && (cov_1gez8dqmnr().b[0][2]++, /*#__PURE__*/React__default.createElement("p", {
58754
+ className: "neeto-form-engine-input__error"
58755
+ }, error)));
58756
+ };
58757
+ var Condition$1 = /*#__PURE__*/forwardRef(Condition);
58758
+
58759
+ function cov_2lhrgkh8e4() {
58760
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/ConditionField.jsx";
58761
+ var hash = "9dd92df1361b93030c12800c1adefa902b7b6916";
58762
+ var global = new Function("return this")();
58763
+ var gcv = "__coverage__";
58764
+ var coverageData = {
58765
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/ConditionField.jsx",
58766
+ statementMap: {
58767
+ "0": {
58768
+ start: {
58769
+ line: 9,
58770
+ column: 23
58771
+ },
58772
+ end: {
58773
+ line: 32,
58774
+ column: 1
58775
+ }
58776
+ },
58777
+ "1": {
58778
+ start: {
58779
+ line: 10,
58780
+ column: 56
58781
+ },
58782
+ end: {
58783
+ line: 10,
58784
+ column: 64
58785
+ }
58786
+ },
58787
+ "2": {
58788
+ start: {
58789
+ line: 12,
58790
+ column: 2
58791
+ },
58792
+ end: {
58793
+ line: 31,
58794
+ column: 4
58795
+ }
58796
+ },
58797
+ "3": {
58798
+ start: {
58799
+ line: 23,
58800
+ column: 8
58801
+ },
58802
+ end: {
58803
+ line: 28,
58804
+ column: 10
58805
+ }
58806
+ }
58807
+ },
58808
+ fnMap: {
58809
+ "0": {
58810
+ name: "(anonymous_0)",
58811
+ decl: {
58812
+ start: {
58813
+ line: 9,
58814
+ column: 23
58815
+ },
58816
+ end: {
58817
+ line: 9,
58818
+ column: 24
58819
+ }
58820
+ },
58821
+ loc: {
58822
+ start: {
58823
+ line: 9,
58824
+ column: 58
58825
+ },
58826
+ end: {
58827
+ line: 32,
58828
+ column: 1
58829
+ }
58830
+ },
58831
+ line: 9
58832
+ },
58833
+ "1": {
58834
+ name: "(anonymous_1)",
58835
+ decl: {
58836
+ start: {
58837
+ line: 22,
58838
+ column: 7
58839
+ },
58840
+ end: {
58841
+ line: 22,
58842
+ column: 8
58843
+ }
58844
+ },
58845
+ loc: {
58846
+ start: {
58847
+ line: 23,
58848
+ column: 8
58849
+ },
58850
+ end: {
58851
+ line: 28,
58852
+ column: 10
58853
+ }
58854
+ },
58855
+ line: 23
58856
+ }
58857
+ },
58858
+ branchMap: {
58859
+ "0": {
58860
+ loc: {
58861
+ start: {
58862
+ line: 14,
58863
+ column: 12
58864
+ },
58865
+ end: {
58866
+ line: 14,
58867
+ column: 26
58868
+ }
58869
+ },
58870
+ type: "binary-expr",
58871
+ locations: [{
58872
+ start: {
58873
+ line: 14,
58874
+ column: 12
58875
+ },
58876
+ end: {
58877
+ line: 14,
58878
+ column: 16
58879
+ }
58880
+ }, {
58881
+ start: {
58882
+ line: 14,
58883
+ column: 20
58884
+ },
58885
+ end: {
58886
+ line: 14,
58887
+ column: 26
58888
+ }
58889
+ }],
58890
+ line: 14
58891
+ },
58892
+ "1": {
58893
+ loc: {
58894
+ start: {
58895
+ line: 25,
58896
+ column: 17
58897
+ },
58898
+ end: {
58899
+ line: 25,
58900
+ column: 47
58901
+ }
58902
+ },
58903
+ type: "cond-expr",
58904
+ locations: [{
58905
+ start: {
58906
+ line: 25,
58907
+ column: 32
58908
+ },
58909
+ end: {
58910
+ line: 25,
58911
+ column: 42
58912
+ }
58913
+ }, {
58914
+ start: {
58915
+ line: 25,
58916
+ column: 45
58917
+ },
58918
+ end: {
58919
+ line: 25,
58920
+ column: 47
58921
+ }
58922
+ }],
58923
+ line: 25
58924
+ }
58925
+ },
58926
+ s: {
58927
+ "0": 0,
58928
+ "1": 0,
58929
+ "2": 0,
58930
+ "3": 0
58931
+ },
58932
+ f: {
58933
+ "0": 0,
58934
+ "1": 0
58935
+ },
58936
+ b: {
58937
+ "0": [0, 0],
58938
+ "1": [0, 0]
58939
+ },
58940
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
58941
+ hash: "9dd92df1361b93030c12800c1adefa902b7b6916"
58942
+ };
58943
+ var coverage = global[gcv] || (global[gcv] = {});
58944
+ if (!coverage[path] || coverage[path].hash !== hash) {
58945
+ coverage[path] = coverageData;
58946
+ }
58947
+ var actualCoverage = coverage[path];
58948
+ {
58949
+ // @ts-ignore
58950
+ cov_2lhrgkh8e4 = function () {
58951
+ return actualCoverage;
58952
+ };
58953
+ }
58954
+ return actualCoverage;
58955
+ }
58956
+ cov_2lhrgkh8e4();
58957
+ cov_2lhrgkh8e4().s[0]++;
58958
+ var ConditionField = function ConditionField(_ref) {
58959
+ var question = _ref.question,
58960
+ customValidator = _ref.customValidator;
58961
+ cov_2lhrgkh8e4().f[0]++;
58962
+ var _ref2 = (cov_2lhrgkh8e4().s[1]++, question),
58963
+ name = _ref2.id,
58964
+ kind = _ref2.kind,
58965
+ label = _ref2.label,
58966
+ isRequired = _ref2.isRequired,
58967
+ nodeId = _ref2.nodeId;
58968
+ cov_2lhrgkh8e4().s[2]++;
58969
+ return /*#__PURE__*/React__default.createElement(Field, {
58970
+ name: (cov_2lhrgkh8e4().b[0][0]++, name) || (cov_2lhrgkh8e4().b[0][1]++, nodeId),
58971
+ validate: validateFieldValue({
58972
+ kind: kind,
58973
+ label: label,
58974
+ isRequired: isRequired,
58975
+ customValidator: customValidator
58976
+ })
58977
+ }, function (_ref3) {
58978
+ var meta = _ref3.meta,
58979
+ field = _ref3.field;
58980
+ cov_2lhrgkh8e4().f[1]++;
58981
+ cov_2lhrgkh8e4().s[3]++;
58982
+ return /*#__PURE__*/React__default.createElement(Condition$1, _extends$9({}, field, {
58983
+ error: meta.touched ? (cov_2lhrgkh8e4().b[1][0]++, meta.error) : (cov_2lhrgkh8e4().b[1][1]++, ""),
58984
+ label: getLabel$1(label, isRequired),
58985
+ name: name
58986
+ }));
58987
+ });
58988
+ };
58989
+
58349
58990
  var dayjs = {};
58350
58991
 
58351
58992
  var interopRequireDefault = {exports: {}};
@@ -64652,7 +65293,7 @@ var TextField = function TextField(_ref) {
64652
65293
  _ref3$type = _ref3.type,
64653
65294
  type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
64654
65295
  otherProps = _ref3.otherProps;
64655
- var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.QUESTION.value ? (cov_h64dar2vv().b[1][0]++, Textarea) : (cov_h64dar2vv().b[1][1]++, FormInput));
65296
+ var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea) : (cov_h64dar2vv().b[1][1]++, FormInput));
64656
65297
  cov_h64dar2vv().s[4]++;
64657
65298
  return /*#__PURE__*/React__default.createElement(Field, {
64658
65299
  name: (cov_h64dar2vv().b[2][0]++, name) || (cov_h64dar2vv().b[2][1]++, nodeId),
@@ -64684,7 +65325,7 @@ var TextField = function TextField(_ref) {
64684
65325
  var _ref2;
64685
65326
  function cov_1cenqfav07() {
64686
65327
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
64687
- var hash = "6a6ab8c31cb2f74800019aa5dc2d515fe1e639ee";
65328
+ var hash = "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27";
64688
65329
  var global = new Function("return this")();
64689
65330
  var gcv = "__coverage__";
64690
65331
  var coverageData = {
@@ -64692,21 +65333,21 @@ function cov_1cenqfav07() {
64692
65333
  statementMap: {
64693
65334
  "0": {
64694
65335
  start: {
64695
- line: 17,
65336
+ line: 18,
64696
65337
  column: 41
64697
65338
  },
64698
65339
  end: {
64699
- line: 35,
65340
+ line: 38,
64700
65341
  column: 1
64701
65342
  }
64702
65343
  },
64703
65344
  "1": {
64704
65345
  start: {
64705
- line: 28,
65346
+ line: 30,
64706
65347
  column: 4
64707
65348
  },
64708
65349
  end: {
64709
- line: 28,
65350
+ line: 30,
64710
65351
  column: 46
64711
65352
  }
64712
65353
  }
@@ -64716,25 +65357,25 @@ function cov_1cenqfav07() {
64716
65357
  name: "(anonymous_0)",
64717
65358
  decl: {
64718
65359
  start: {
64719
- line: 27,
64720
- column: 34
65360
+ line: 29,
65361
+ column: 35
64721
65362
  },
64722
65363
  end: {
64723
- line: 27,
64724
- column: 35
65364
+ line: 29,
65365
+ column: 36
64725
65366
  }
64726
65367
  },
64727
65368
  loc: {
64728
65369
  start: {
64729
- line: 28,
65370
+ line: 30,
64730
65371
  column: 4
64731
65372
  },
64732
65373
  end: {
64733
- line: 28,
65374
+ line: 30,
64734
65375
  column: 46
64735
65376
  }
64736
65377
  },
64737
- line: 28
65378
+ line: 30
64738
65379
  }
64739
65380
  },
64740
65381
  branchMap: {},
@@ -64747,7 +65388,7 @@ function cov_1cenqfav07() {
64747
65388
  },
64748
65389
  b: {},
64749
65390
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
64750
- hash: "6a6ab8c31cb2f74800019aa5dc2d515fe1e639ee"
65391
+ hash: "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27"
64751
65392
  };
64752
65393
  var coverage = global[gcv] || (global[gcv] = {});
64753
65394
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -64763,14 +65404,14 @@ function cov_1cenqfav07() {
64763
65404
  return actualCoverage;
64764
65405
  }
64765
65406
  cov_1cenqfav07();
64766
- var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$a(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$a(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$a(_ref2, QUESTION_KIND.TEXTAREA.value, function (_ref) {
65407
+ var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$a(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$a(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$a(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$a(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$a(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
64767
65408
  var question = _ref.question;
64768
65409
  cov_1cenqfav07().f[0]++;
64769
65410
  cov_1cenqfav07().s[1]++;
64770
65411
  return /*#__PURE__*/React__default.createElement(EditorContent, {
64771
65412
  content: question.label
64772
65413
  });
64773
- }), _defineProperty$a(_ref2, QUESTION_KIND.TERMS.value, TermsField), _defineProperty$a(_ref2, QUESTION_KIND.DATE.value, DateField), _defineProperty$a(_ref2, QUESTION_KIND.STAR_RATING.value, StarRatingField), _defineProperty$a(_ref2, QUESTION_KIND.ADDITIONAL_GUESTS.value, MultipleEmailInput), _defineProperty$a(_ref2, QUESTION_KIND.RICH_TEXT.value, RichTextEditor), _ref2));
65414
+ }), _defineProperty$a(_ref2, QUESTION_KIND.TERMS.value, TermsField), _defineProperty$a(_ref2, QUESTION_KIND.DATE.value, DateField), _defineProperty$a(_ref2, QUESTION_KIND.STAR_RATING.value, StarRatingField), _defineProperty$a(_ref2, QUESTION_KIND.ADDITIONAL_GUESTS.value, MultipleEmailInput), _defineProperty$a(_ref2, QUESTION_KIND.RICH_TEXT.value, RichTextEditor), _defineProperty$a(_ref2, QUESTION_KIND.CONDITION.value, ConditionField), _ref2));
64774
65415
 
64775
65416
  function cov_zmqolo6ug() {
64776
65417
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/utils.js";
@@ -70844,7 +71485,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
70844
71485
 
70845
71486
  function cov_29xlle89ll() {
70846
71487
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
70847
- var hash = "c62c7cdd0a05bcdbc09bb134860adb35bde42935";
71488
+ var hash = "5bbf5faa11069095565da90858226edff2576be6";
70848
71489
  var global = new Function("return this")();
70849
71490
  var gcv = "__coverage__";
70850
71491
  var coverageData = {
@@ -70896,7 +71537,7 @@ function cov_29xlle89ll() {
70896
71537
  column: 17
70897
71538
  },
70898
71539
  end: {
70899
- line: 35,
71540
+ line: 39,
70900
71541
  column: 1
70901
71542
  }
70902
71543
  },
@@ -70946,137 +71587,157 @@ function cov_29xlle89ll() {
70946
71587
  column: 2
70947
71588
  },
70948
71589
  end: {
70949
- line: 34,
70950
- column: 15
71590
+ line: 36,
71591
+ column: 3
70951
71592
  }
70952
71593
  },
70953
71594
  "10": {
70954
71595
  start: {
70955
- line: 37,
71596
+ line: 35,
71597
+ column: 4
71598
+ },
71599
+ end: {
71600
+ line: 35,
71601
+ column: 52
71602
+ }
71603
+ },
71604
+ "11": {
71605
+ start: {
71606
+ line: 38,
71607
+ column: 2
71608
+ },
71609
+ end: {
71610
+ line: 38,
71611
+ column: 15
71612
+ }
71613
+ },
71614
+ "12": {
71615
+ start: {
71616
+ line: 41,
70956
71617
  column: 19
70957
71618
  },
70958
71619
  end: {
70959
- line: 94,
71620
+ line: 98,
70960
71621
  column: 1
70961
71622
  }
70962
71623
  },
70963
- "11": {
71624
+ "13": {
70964
71625
  start: {
70965
- line: 44,
71626
+ line: 48,
70966
71627
  column: 62
70967
71628
  },
70968
71629
  end: {
70969
- line: 48,
71630
+ line: 52,
70970
71631
  column: 4
70971
71632
  }
70972
71633
  },
70973
- "12": {
71634
+ "14": {
70974
71635
  start: {
70975
- line: 50,
71636
+ line: 54,
70976
71637
  column: 24
70977
71638
  },
70978
71639
  end: {
70979
- line: 50,
71640
+ line: 54,
70980
71641
  column: 34
70981
71642
  }
70982
71643
  },
70983
- "13": {
71644
+ "15": {
70984
71645
  start: {
70985
- line: 52,
71646
+ line: 56,
70986
71647
  column: 31
70987
71648
  },
70988
71649
  end: {
70989
- line: 68,
71650
+ line: 72,
70990
71651
  column: 3
70991
71652
  }
70992
71653
  },
70993
- "14": {
71654
+ "16": {
70994
71655
  start: {
70995
- line: 54,
71656
+ line: 58,
70996
71657
  column: 6
70997
71658
  },
70998
71659
  end: {
70999
- line: 58,
71660
+ line: 62,
71000
71661
  column: 7
71001
71662
  }
71002
71663
  },
71003
- "15": {
71664
+ "17": {
71004
71665
  start: {
71005
- line: 55,
71666
+ line: 59,
71006
71667
  column: 8
71007
71668
  },
71008
71669
  end: {
71009
- line: 55,
71670
+ line: 59,
71010
71671
  column: 69
71011
71672
  }
71012
71673
  },
71013
- "16": {
71674
+ "18": {
71014
71675
  start: {
71015
- line: 56,
71676
+ line: 60,
71016
71677
  column: 13
71017
71678
  },
71018
71679
  end: {
71019
- line: 58,
71680
+ line: 62,
71020
71681
  column: 7
71021
71682
  }
71022
71683
  },
71023
- "17": {
71684
+ "19": {
71024
71685
  start: {
71025
- line: 57,
71686
+ line: 61,
71026
71687
  column: 8
71027
71688
  },
71028
71689
  end: {
71029
- line: 57,
71690
+ line: 61,
71030
71691
  column: 55
71031
71692
  }
71032
71693
  },
71033
- "18": {
71694
+ "20": {
71034
71695
  start: {
71035
- line: 60,
71696
+ line: 64,
71036
71697
  column: 6
71037
71698
  },
71038
71699
  end: {
71039
- line: 66,
71700
+ line: 70,
71040
71701
  column: 8
71041
71702
  }
71042
71703
  },
71043
- "19": {
71704
+ "21": {
71044
71705
  start: {
71045
- line: 70,
71706
+ line: 74,
71046
71707
  column: 2
71047
71708
  },
71048
71709
  end: {
71049
- line: 76,
71710
+ line: 80,
71050
71711
  column: 3
71051
71712
  }
71052
71713
  },
71053
- "20": {
71714
+ "22": {
71054
71715
  start: {
71055
- line: 71,
71716
+ line: 75,
71056
71717
  column: 4
71057
71718
  },
71058
71719
  end: {
71059
- line: 75,
71720
+ line: 79,
71060
71721
  column: 6
71061
71722
  }
71062
71723
  },
71063
- "21": {
71724
+ "23": {
71064
71725
  start: {
71065
- line: 78,
71726
+ line: 82,
71066
71727
  column: 2
71067
71728
  },
71068
71729
  end: {
71069
- line: 93,
71730
+ line: 97,
71070
71731
  column: 4
71071
71732
  }
71072
71733
  },
71073
- "22": {
71734
+ "24": {
71074
71735
  start: {
71075
- line: 85,
71736
+ line: 89,
71076
71737
  column: 8
71077
71738
  },
71078
71739
  end: {
71079
- line: 90,
71740
+ line: 94,
71080
71741
  column: 14
71081
71742
  }
71082
71743
  }
@@ -71124,7 +71785,7 @@ function cov_29xlle89ll() {
71124
71785
  column: 38
71125
71786
  },
71126
71787
  end: {
71127
- line: 35,
71788
+ line: 39,
71128
71789
  column: 1
71129
71790
  }
71130
71791
  },
@@ -71134,73 +71795,73 @@ function cov_29xlle89ll() {
71134
71795
  name: "(anonymous_2)",
71135
71796
  decl: {
71136
71797
  start: {
71137
- line: 37,
71798
+ line: 41,
71138
71799
  column: 19
71139
71800
  },
71140
71801
  end: {
71141
- line: 37,
71802
+ line: 41,
71142
71803
  column: 20
71143
71804
  }
71144
71805
  },
71145
71806
  loc: {
71146
71807
  start: {
71147
- line: 43,
71808
+ line: 47,
71148
71809
  column: 6
71149
71810
  },
71150
71811
  end: {
71151
- line: 94,
71812
+ line: 98,
71152
71813
  column: 1
71153
71814
  }
71154
71815
  },
71155
- line: 43
71816
+ line: 47
71156
71817
  },
71157
71818
  "3": {
71158
71819
  name: "(anonymous_3)",
71159
71820
  decl: {
71160
71821
  start: {
71161
- line: 52,
71822
+ line: 56,
71162
71823
  column: 31
71163
71824
  },
71164
71825
  end: {
71165
- line: 52,
71826
+ line: 56,
71166
71827
  column: 32
71167
71828
  }
71168
71829
  },
71169
71830
  loc: {
71170
71831
  start: {
71171
- line: 52,
71832
+ line: 56,
71172
71833
  column: 48
71173
71834
  },
71174
71835
  end: {
71175
- line: 68,
71836
+ line: 72,
71176
71837
  column: 3
71177
71838
  }
71178
71839
  },
71179
- line: 52
71840
+ line: 56
71180
71841
  },
71181
71842
  "4": {
71182
71843
  name: "(anonymous_4)",
71183
71844
  decl: {
71184
71845
  start: {
71185
- line: 84,
71846
+ line: 88,
71186
71847
  column: 21
71187
71848
  },
71188
71849
  end: {
71189
- line: 84,
71850
+ line: 88,
71190
71851
  column: 22
71191
71852
  }
71192
71853
  },
71193
71854
  loc: {
71194
71855
  start: {
71195
- line: 85,
71856
+ line: 89,
71196
71857
  column: 8
71197
71858
  },
71198
71859
  end: {
71199
- line: 90,
71860
+ line: 94,
71200
71861
  column: 14
71201
71862
  }
71202
71863
  },
71203
- line: 85
71864
+ line: 89
71204
71865
  }
71205
71866
  },
71206
71867
  branchMap: {
@@ -71339,232 +72000,298 @@ function cov_29xlle89ll() {
71339
72000
  "4": {
71340
72001
  loc: {
71341
72002
  start: {
71342
- line: 38,
72003
+ line: 34,
71343
72004
  column: 2
71344
72005
  },
71345
72006
  end: {
71346
- line: 38,
72007
+ line: 36,
72008
+ column: 3
72009
+ }
72010
+ },
72011
+ type: "if",
72012
+ locations: [{
72013
+ start: {
72014
+ line: 34,
72015
+ column: 2
72016
+ },
72017
+ end: {
72018
+ line: 36,
72019
+ column: 3
72020
+ }
72021
+ }, {
72022
+ start: {
72023
+ line: undefined,
72024
+ column: undefined
72025
+ },
72026
+ end: {
72027
+ line: undefined,
72028
+ column: undefined
72029
+ }
72030
+ }],
72031
+ line: 34
72032
+ },
72033
+ "5": {
72034
+ loc: {
72035
+ start: {
72036
+ line: 35,
72037
+ column: 11
72038
+ },
72039
+ end: {
72040
+ line: 35,
72041
+ column: 51
72042
+ }
72043
+ },
72044
+ type: "cond-expr",
72045
+ locations: [{
72046
+ start: {
72047
+ line: 35,
72048
+ column: 19
72049
+ },
72050
+ end: {
72051
+ line: 35,
72052
+ column: 34
72053
+ }
72054
+ }, {
72055
+ start: {
72056
+ line: 35,
72057
+ column: 37
72058
+ },
72059
+ end: {
72060
+ line: 35,
72061
+ column: 51
72062
+ }
72063
+ }],
72064
+ line: 35
72065
+ },
72066
+ "6": {
72067
+ loc: {
72068
+ start: {
72069
+ line: 42,
72070
+ column: 2
72071
+ },
72072
+ end: {
72073
+ line: 42,
71347
72074
  column: 13
71348
72075
  }
71349
72076
  },
71350
72077
  type: "default-arg",
71351
72078
  locations: [{
71352
72079
  start: {
71353
- line: 38,
72080
+ line: 42,
71354
72081
  column: 11
71355
72082
  },
71356
72083
  end: {
71357
- line: 38,
72084
+ line: 42,
71358
72085
  column: 13
71359
72086
  }
71360
72087
  }],
71361
- line: 38
72088
+ line: 42
71362
72089
  },
71363
- "5": {
72090
+ "7": {
71364
72091
  loc: {
71365
72092
  start: {
71366
- line: 39,
72093
+ line: 43,
71367
72094
  column: 2
71368
72095
  },
71369
72096
  end: {
71370
- line: 39,
72097
+ line: 43,
71371
72098
  column: 19
71372
72099
  }
71373
72100
  },
71374
72101
  type: "default-arg",
71375
72102
  locations: [{
71376
72103
  start: {
71377
- line: 39,
72104
+ line: 43,
71378
72105
  column: 17
71379
72106
  },
71380
72107
  end: {
71381
- line: 39,
72108
+ line: 43,
71382
72109
  column: 19
71383
72110
  }
71384
72111
  }],
71385
- line: 39
72112
+ line: 43
71386
72113
  },
71387
- "6": {
72114
+ "8": {
71388
72115
  loc: {
71389
72116
  start: {
71390
- line: 40,
72117
+ line: 44,
71391
72118
  column: 2
71392
72119
  },
71393
72120
  end: {
71394
- line: 40,
72121
+ line: 44,
71395
72122
  column: 16
71396
72123
  }
71397
72124
  },
71398
72125
  type: "default-arg",
71399
72126
  locations: [{
71400
72127
  start: {
71401
- line: 40,
72128
+ line: 44,
71402
72129
  column: 14
71403
72130
  },
71404
72131
  end: {
71405
- line: 40,
72132
+ line: 44,
71406
72133
  column: 16
71407
72134
  }
71408
72135
  }],
71409
- line: 40
72136
+ line: 44
71410
72137
  },
71411
- "7": {
72138
+ "9": {
71412
72139
  loc: {
71413
72140
  start: {
71414
- line: 41,
72141
+ line: 45,
71415
72142
  column: 2
71416
72143
  },
71417
72144
  end: {
71418
- line: 41,
72145
+ line: 45,
71419
72146
  column: 25
71420
72147
  }
71421
72148
  },
71422
72149
  type: "default-arg",
71423
72150
  locations: [{
71424
72151
  start: {
71425
- line: 41,
72152
+ line: 45,
71426
72153
  column: 23
71427
72154
  },
71428
72155
  end: {
71429
- line: 41,
72156
+ line: 45,
71430
72157
  column: 25
71431
72158
  }
71432
72159
  }],
71433
- line: 41
72160
+ line: 45
71434
72161
  },
71435
- "8": {
72162
+ "10": {
71436
72163
  loc: {
71437
72164
  start: {
71438
- line: 42,
72165
+ line: 46,
71439
72166
  column: 2
71440
72167
  },
71441
72168
  end: {
71442
- line: 42,
72169
+ line: 46,
71443
72170
  column: 18
71444
72171
  }
71445
72172
  },
71446
72173
  type: "default-arg",
71447
72174
  locations: [{
71448
72175
  start: {
71449
- line: 42,
72176
+ line: 46,
71450
72177
  column: 16
71451
72178
  },
71452
72179
  end: {
71453
- line: 42,
72180
+ line: 46,
71454
72181
  column: 18
71455
72182
  }
71456
72183
  }],
71457
- line: 42
72184
+ line: 46
71458
72185
  },
71459
- "9": {
72186
+ "11": {
71460
72187
  loc: {
71461
72188
  start: {
71462
- line: 44,
72189
+ line: 48,
71463
72190
  column: 16
71464
72191
  },
71465
72192
  end: {
71466
- line: 44,
72193
+ line: 48,
71467
72194
  column: 46
71468
72195
  }
71469
72196
  },
71470
72197
  type: "default-arg",
71471
72198
  locations: [{
71472
72199
  start: {
71473
- line: 44,
72200
+ line: 48,
71474
72201
  column: 29
71475
72202
  },
71476
72203
  end: {
71477
- line: 44,
72204
+ line: 48,
71478
72205
  column: 46
71479
72206
  }
71480
72207
  }],
71481
- line: 44
72208
+ line: 48
71482
72209
  },
71483
- "10": {
72210
+ "12": {
71484
72211
  loc: {
71485
72212
  start: {
71486
- line: 47,
72213
+ line: 51,
71487
72214
  column: 16
71488
72215
  },
71489
72216
  end: {
71490
- line: 47,
72217
+ line: 51,
71491
72218
  column: 38
71492
72219
  }
71493
72220
  },
71494
72221
  type: "binary-expr",
71495
72222
  locations: [{
71496
72223
  start: {
71497
- line: 47,
72224
+ line: 51,
71498
72225
  column: 16
71499
72226
  },
71500
72227
  end: {
71501
- line: 47,
72228
+ line: 51,
71502
72229
  column: 22
71503
72230
  }
71504
72231
  }, {
71505
72232
  start: {
71506
- line: 47,
72233
+ line: 51,
71507
72234
  column: 26
71508
72235
  },
71509
72236
  end: {
71510
- line: 47,
72237
+ line: 51,
71511
72238
  column: 38
71512
72239
  }
71513
72240
  }],
71514
- line: 47
72241
+ line: 51
71515
72242
  },
71516
- "11": {
72243
+ "13": {
71517
72244
  loc: {
71518
72245
  start: {
71519
- line: 54,
72246
+ line: 58,
71520
72247
  column: 6
71521
72248
  },
71522
72249
  end: {
71523
- line: 58,
72250
+ line: 62,
71524
72251
  column: 7
71525
72252
  }
71526
72253
  },
71527
72254
  type: "if",
71528
72255
  locations: [{
71529
72256
  start: {
71530
- line: 54,
72257
+ line: 58,
71531
72258
  column: 6
71532
72259
  },
71533
72260
  end: {
71534
- line: 58,
72261
+ line: 62,
71535
72262
  column: 7
71536
72263
  }
71537
72264
  }, {
71538
72265
  start: {
71539
- line: 56,
72266
+ line: 60,
71540
72267
  column: 13
71541
72268
  },
71542
72269
  end: {
71543
- line: 58,
72270
+ line: 62,
71544
72271
  column: 7
71545
72272
  }
71546
72273
  }],
71547
- line: 54
72274
+ line: 58
71548
72275
  },
71549
- "12": {
72276
+ "14": {
71550
72277
  loc: {
71551
72278
  start: {
71552
- line: 56,
72279
+ line: 60,
71553
72280
  column: 13
71554
72281
  },
71555
72282
  end: {
71556
- line: 58,
72283
+ line: 62,
71557
72284
  column: 7
71558
72285
  }
71559
72286
  },
71560
72287
  type: "if",
71561
72288
  locations: [{
71562
72289
  start: {
71563
- line: 56,
72290
+ line: 60,
71564
72291
  column: 13
71565
72292
  },
71566
72293
  end: {
71567
- line: 58,
72294
+ line: 62,
71568
72295
  column: 7
71569
72296
  }
71570
72297
  }, {
@@ -71577,27 +72304,27 @@ function cov_29xlle89ll() {
71577
72304
  column: undefined
71578
72305
  }
71579
72306
  }],
71580
- line: 56
72307
+ line: 60
71581
72308
  },
71582
- "13": {
72309
+ "15": {
71583
72310
  loc: {
71584
72311
  start: {
71585
- line: 70,
72312
+ line: 74,
71586
72313
  column: 2
71587
72314
  },
71588
72315
  end: {
71589
- line: 76,
72316
+ line: 80,
71590
72317
  column: 3
71591
72318
  }
71592
72319
  },
71593
72320
  type: "if",
71594
72321
  locations: [{
71595
72322
  start: {
71596
- line: 70,
72323
+ line: 74,
71597
72324
  column: 2
71598
72325
  },
71599
72326
  end: {
71600
- line: 76,
72327
+ line: 80,
71601
72328
  column: 3
71602
72329
  }
71603
72330
  }, {
@@ -71610,7 +72337,7 @@ function cov_29xlle89ll() {
71610
72337
  column: undefined
71611
72338
  }
71612
72339
  }],
71613
- line: 70
72340
+ line: 74
71614
72341
  }
71615
72342
  },
71616
72343
  s: {
@@ -71636,7 +72363,9 @@ function cov_29xlle89ll() {
71636
72363
  "19": 0,
71637
72364
  "20": 0,
71638
72365
  "21": 0,
71639
- "22": 0
72366
+ "22": 0,
72367
+ "23": 0,
72368
+ "24": 0
71640
72369
  },
71641
72370
  f: {
71642
72371
  "0": 0,
@@ -71650,19 +72379,21 @@ function cov_29xlle89ll() {
71650
72379
  "1": [0, 0],
71651
72380
  "2": [0, 0],
71652
72381
  "3": [0, 0],
71653
- "4": [0],
71654
- "5": [0],
72382
+ "4": [0, 0],
72383
+ "5": [0, 0],
71655
72384
  "6": [0],
71656
72385
  "7": [0],
71657
72386
  "8": [0],
71658
72387
  "9": [0],
71659
- "10": [0, 0],
71660
- "11": [0, 0],
72388
+ "10": [0],
72389
+ "11": [0],
71661
72390
  "12": [0, 0],
71662
- "13": [0, 0]
72391
+ "13": [0, 0],
72392
+ "14": [0, 0],
72393
+ "15": [0, 0]
71663
72394
  },
71664
72395
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
71665
- hash: "c62c7cdd0a05bcdbc09bb134860adb35bde42935"
72396
+ hash: "5bbf5faa11069095565da90858226edff2576be6"
71666
72397
  };
71667
72398
  var coverage = global[gcv] || (global[gcv] = {});
71668
72399
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -71716,41 +72447,49 @@ var getValue = function getValue(_ref2) {
71716
72447
  cov_29xlle89ll().b[3][1]++;
71717
72448
  }
71718
72449
  cov_29xlle89ll().s[9]++;
72450
+ if (kind === QUESTION_KIND.CONDITION.value) {
72451
+ cov_29xlle89ll().b[4][0]++;
72452
+ cov_29xlle89ll().s[10]++;
72453
+ return value ? (cov_29xlle89ll().b[5][0]++, t$1("common.yes")) : (cov_29xlle89ll().b[5][1]++, t$1("common.no"));
72454
+ } else {
72455
+ cov_29xlle89ll().b[4][1]++;
72456
+ }
72457
+ cov_29xlle89ll().s[11]++;
71719
72458
  return value;
71720
72459
  };
71721
- cov_29xlle89ll().s[10]++;
72460
+ cov_29xlle89ll().s[12]++;
71722
72461
  var Submission = function Submission(_ref3) {
71723
72462
  var _ref3$formId = _ref3.formId,
71724
- formId = _ref3$formId === void 0 ? (cov_29xlle89ll().b[4][0]++, "") : _ref3$formId,
72463
+ formId = _ref3$formId === void 0 ? (cov_29xlle89ll().b[6][0]++, "") : _ref3$formId,
71725
72464
  _ref3$submissionId = _ref3.submissionId,
71726
- submissionId = _ref3$submissionId === void 0 ? (cov_29xlle89ll().b[5][0]++, "") : _ref3$submissionId,
72465
+ submissionId = _ref3$submissionId === void 0 ? (cov_29xlle89ll().b[7][0]++, "") : _ref3$submissionId,
71727
72466
  _ref3$className = _ref3.className,
71728
- className = _ref3$className === void 0 ? (cov_29xlle89ll().b[6][0]++, "") : _ref3$className,
72467
+ className = _ref3$className === void 0 ? (cov_29xlle89ll().b[8][0]++, "") : _ref3$className,
71729
72468
  _ref3$questionLabelPr = _ref3.questionLabelProps,
71730
- questionLabelProps = _ref3$questionLabelPr === void 0 ? (cov_29xlle89ll().b[7][0]++, {}) : _ref3$questionLabelPr,
72469
+ questionLabelProps = _ref3$questionLabelPr === void 0 ? (cov_29xlle89ll().b[9][0]++, {}) : _ref3$questionLabelPr,
71731
72470
  _ref3$answerProps = _ref3.answerProps,
71732
- answerProps = _ref3$answerProps === void 0 ? (cov_29xlle89ll().b[8][0]++, {}) : _ref3$answerProps;
72471
+ answerProps = _ref3$answerProps === void 0 ? (cov_29xlle89ll().b[10][0]++, {}) : _ref3$answerProps;
71733
72472
  cov_29xlle89ll().f[2]++;
71734
- var _ref4 = (cov_29xlle89ll().s[11]++, useSubmission({
72473
+ var _ref4 = (cov_29xlle89ll().s[13]++, useSubmission({
71735
72474
  formId: formId,
71736
72475
  submissionId: submissionId,
71737
- enabled: !!((cov_29xlle89ll().b[10][0]++, formId) && (cov_29xlle89ll().b[10][1]++, submissionId))
72476
+ enabled: !!((cov_29xlle89ll().b[12][0]++, formId) && (cov_29xlle89ll().b[12][1]++, submissionId))
71738
72477
  })),
71739
72478
  _ref4$data = _ref4.data,
71740
- submission = _ref4$data === void 0 ? (cov_29xlle89ll().b[9][0]++, {
72479
+ submission = _ref4$data === void 0 ? (cov_29xlle89ll().b[11][0]++, {
71741
72480
  responses: []
71742
72481
  }) : _ref4$data,
71743
72482
  isLoading = _ref4.isLoading;
71744
- var _ref5 = (cov_29xlle89ll().s[12]++, submission),
72483
+ var _ref5 = (cov_29xlle89ll().s[14]++, submission),
71745
72484
  responses = _ref5.responses;
71746
- cov_29xlle89ll().s[13]++;
72485
+ cov_29xlle89ll().s[15]++;
71747
72486
  var renderSubmittedValue = function renderSubmittedValue(kind, value) {
71748
72487
  cov_29xlle89ll().f[3]++;
71749
72488
  {
71750
- cov_29xlle89ll().s[14]++;
72489
+ cov_29xlle89ll().s[16]++;
71751
72490
  if (kind === QUESTION_KIND.RICH_TEXT.value) {
71752
- cov_29xlle89ll().b[11][0]++;
71753
- cov_29xlle89ll().s[15]++;
72491
+ cov_29xlle89ll().b[13][0]++;
72492
+ cov_29xlle89ll().s[17]++;
71754
72493
  return /*#__PURE__*/React__default.createElement(EditorContent, {
71755
72494
  content: getValue({
71756
72495
  value: value,
@@ -71758,20 +72497,20 @@ var Submission = function Submission(_ref3) {
71758
72497
  })
71759
72498
  });
71760
72499
  } else {
71761
- cov_29xlle89ll().b[11][1]++;
71762
- cov_29xlle89ll().s[16]++;
72500
+ cov_29xlle89ll().b[13][1]++;
72501
+ cov_29xlle89ll().s[18]++;
71763
72502
  if (kind === QUESTION_KIND.PHONE.value) {
71764
- cov_29xlle89ll().b[12][0]++;
71765
- cov_29xlle89ll().s[17]++;
72503
+ cov_29xlle89ll().b[14][0]++;
72504
+ cov_29xlle89ll().s[19]++;
71766
72505
  return /*#__PURE__*/React__default.createElement(PhoneNumber$1, {
71767
72506
  showEmoji: true,
71768
72507
  value: value
71769
72508
  });
71770
72509
  } else {
71771
- cov_29xlle89ll().b[12][1]++;
72510
+ cov_29xlle89ll().b[14][1]++;
71772
72511
  }
71773
72512
  }
71774
- cov_29xlle89ll().s[18]++;
72513
+ cov_29xlle89ll().s[20]++;
71775
72514
  return /*#__PURE__*/React__default.createElement(Typography, _extends$9({
71776
72515
  weight: "semibold"
71777
72516
  }, answerProps), /*#__PURE__*/React__default.createElement(_default, {
@@ -71782,17 +72521,17 @@ var Submission = function Submission(_ref3) {
71782
72521
  })));
71783
72522
  }
71784
72523
  };
71785
- cov_29xlle89ll().s[19]++;
72524
+ cov_29xlle89ll().s[21]++;
71786
72525
  if (isLoading) {
71787
- cov_29xlle89ll().b[13][0]++;
71788
- cov_29xlle89ll().s[20]++;
72526
+ cov_29xlle89ll().b[15][0]++;
72527
+ cov_29xlle89ll().s[22]++;
71789
72528
  return /*#__PURE__*/React__default.createElement("div", {
71790
72529
  className: "flex h-full w-full items-center justify-center"
71791
72530
  }, /*#__PURE__*/React__default.createElement(PageLoader, null));
71792
72531
  } else {
71793
- cov_29xlle89ll().b[13][1]++;
72532
+ cov_29xlle89ll().b[15][1]++;
71794
72533
  }
71795
- cov_29xlle89ll().s[21]++;
72534
+ cov_29xlle89ll().s[23]++;
71796
72535
  return /*#__PURE__*/React__default.createElement("div", {
71797
72536
  className: classnames("mx-auto flex h-full w-full flex-col items-start", _defineProperty$a({}, className, className))
71798
72537
  }, responses.map(function (_ref6) {
@@ -71800,7 +72539,7 @@ var Submission = function Submission(_ref3) {
71800
72539
  label = _ref6.label,
71801
72540
  value = _ref6.value;
71802
72541
  cov_29xlle89ll().f[4]++;
71803
- cov_29xlle89ll().s[22]++;
72542
+ cov_29xlle89ll().s[24]++;
71804
72543
  return /*#__PURE__*/React__default.createElement("div", {
71805
72544
  className: "mb-4",
71806
72545
  key: label