@bigbinary/neeto-form-frontend 1.0.37 → 1.0.38

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 = "56d8a9922e5231d780837fe7e89f5aae3a98ccbe";
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: 38,
7047
7047
  column: 1
7048
7048
  }
7049
7049
  },
7050
7050
  "1": {
7051
7051
  start: {
7052
- line: 39,
7052
+ line: 40,
7053
7053
  column: 29
7054
7054
  },
7055
7055
  end: {
7056
- line: 43,
7056
+ line: 44,
7057
7057
  column: 1
7058
7058
  }
7059
7059
  },
7060
7060
  "2": {
7061
7061
  start: {
7062
- line: 45,
7062
+ line: 46,
7063
7063
  column: 42
7064
7064
  },
7065
7065
  end: {
7066
- line: 45,
7066
+ line: 46,
7067
7067
  column: 72
7068
7068
  }
7069
7069
  },
7070
7070
  "3": {
7071
7071
  start: {
7072
- line: 47,
7072
+ line: 48,
7073
7073
  column: 30
7074
7074
  },
7075
7075
  end: {
7076
- line: 63,
7076
+ line: 64,
7077
7077
  column: 1
7078
7078
  }
7079
7079
  },
7080
7080
  "4": {
7081
7081
  start: {
7082
- line: 65,
7082
+ line: 66,
7083
7083
  column: 35
7084
7084
  },
7085
7085
  end: {
7086
- line: 65,
7086
+ line: 66,
7087
7087
  column: 49
7088
7088
  }
7089
7089
  },
7090
7090
  "5": {
7091
7091
  start: {
7092
- line: 67,
7092
+ line: 68,
7093
7093
  column: 25
7094
7094
  },
7095
7095
  end: {
7096
- line: 73,
7096
+ line: 74,
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: "56d8a9922e5231d780837fe7e89f5aae3a98ccbe"
7115
7115
  };
7116
7116
  var coverage = global[gcv] || (global[gcv] = {});
7117
7117
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -7171,6 +7171,10 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
7171
7171
  value: "termsandcondition",
7172
7172
  type: "checkbox"
7173
7173
  },
7174
+ CONDITION: {
7175
+ value: "condition",
7176
+ type: "checkbox"
7177
+ },
7174
7178
  DATE: {
7175
7179
  value: "date"
7176
7180
  },
@@ -8418,7 +8422,7 @@ var queryClient = (cov_dn5xf8jlj().s[0]++, new QueryClient({
8418
8422
  })
8419
8423
  }));
8420
8424
 
8421
- var _excluded$l = ["formId", "preview"],
8425
+ var _excluded$m = ["formId", "preview"],
8422
8426
  _excluded3$1 = ["formId", "submissionId"];
8423
8427
  function cov_2atpj3pe74() {
8424
8428
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/hooks/useFormApi.js";
@@ -10118,7 +10122,7 @@ cov_2atpj3pe74().s[0]++;
10118
10122
  var useForm = function useForm(_ref) {
10119
10123
  var formId = _ref.formId,
10120
10124
  preview = _ref.preview,
10121
- options = _objectWithoutProperties$1(_ref, _excluded$l);
10125
+ options = _objectWithoutProperties$1(_ref, _excluded$m);
10122
10126
  cov_2atpj3pe74().f[0]++;
10123
10127
  cov_2atpj3pe74().s[1]++;
10124
10128
  return useQuery([QUERY_KEYS.QUESTIONS, preview ? (cov_2atpj3pe74().b[0][0]++, "preview/".concat(formId)) : (cov_2atpj3pe74().b[0][1]++, formId)], function () {
@@ -12356,7 +12360,7 @@ reactIs_production_min.typeOf=y;
12356
12360
  }
12357
12361
  } (reactIs));
12358
12362
 
12359
- var _excluded$k = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"],
12363
+ var _excluded$l = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"],
12360
12364
  _excluded2$2 = ["reactReduxForwardedRef"];
12361
12365
 
12362
12366
  var EMPTY_ARRAY = [];
@@ -12506,7 +12510,7 @@ _ref) {
12506
12510
  forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
12507
12511
  _ref2$context = _ref2.context,
12508
12512
  context = _ref2$context === void 0 ? ReactReduxContext : _ref2$context,
12509
- connectOptions = _objectWithoutPropertiesLoose$1(_ref2, _excluded$k);
12513
+ connectOptions = _objectWithoutPropertiesLoose$1(_ref2, _excluded$l);
12510
12514
 
12511
12515
  var Context = context;
12512
12516
  return function wrapWithConnect(WrappedComponent) {
@@ -12865,7 +12869,7 @@ function whenMergePropsIsOmitted(mergeProps) {
12865
12869
  }
12866
12870
  var defaultMergePropsFactories = [whenMergePropsIsFunction, whenMergePropsIsOmitted];
12867
12871
 
12868
- var _excluded$j = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
12872
+ var _excluded$k = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
12869
12873
  function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
12870
12874
  return function impureFinalPropsSelector(state, ownProps) {
12871
12875
  return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
@@ -12938,7 +12942,7 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
12938
12942
  var initMapStateToProps = _ref2.initMapStateToProps,
12939
12943
  initMapDispatchToProps = _ref2.initMapDispatchToProps,
12940
12944
  initMergeProps = _ref2.initMergeProps,
12941
- options = _objectWithoutPropertiesLoose$1(_ref2, _excluded$j);
12945
+ options = _objectWithoutPropertiesLoose$1(_ref2, _excluded$k);
12942
12946
 
12943
12947
  var mapStateToProps = initMapStateToProps(dispatch, options);
12944
12948
  var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
@@ -12948,7 +12952,7 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
12948
12952
  return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
12949
12953
  }
12950
12954
 
12951
- var _excluded$i = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
12955
+ var _excluded$j = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
12952
12956
  /*
12953
12957
  connect is a facade over connectAdvanced. It turns its args into a compatible
12954
12958
  selectorFactory, which has the signature:
@@ -13012,7 +13016,7 @@ function createConnect(_temp) {
13012
13016
  areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? shallowEqual : _ref3$areStatePropsEq,
13013
13017
  _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
13014
13018
  areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? shallowEqual : _ref3$areMergedPropsE,
13015
- extraOptions = _objectWithoutPropertiesLoose$1(_ref3, _excluded$i);
13019
+ extraOptions = _objectWithoutPropertiesLoose$1(_ref3, _excluded$j);
13016
13020
 
13017
13021
  var initMapStateToProps = match$1(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
13018
13022
  var initMapDispatchToProps = match$1(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
@@ -22139,7 +22143,7 @@ var ListItem = function ListItem(_ref) {
22139
22143
  }, label));
22140
22144
  };
22141
22145
 
22142
- var _excluded$h = ["size", "color"],
22146
+ var _excluded$i = ["size", "color"],
22143
22147
  _excluded2$1 = ["size", "color"],
22144
22148
  _excluded3 = ["size", "color"],
22145
22149
  _excluded4 = ["size", "color"];
@@ -22459,7 +22463,7 @@ var BadSmiley = function BadSmiley(props) {
22459
22463
  var _ref = (cov_1dollm8rdo().s[1]++, props),
22460
22464
  size = _ref.size,
22461
22465
  color = _ref.color,
22462
- other = _objectWithoutProperties$1(_ref, _excluded$h);
22466
+ other = _objectWithoutProperties$1(_ref, _excluded$i);
22463
22467
  cov_1dollm8rdo().s[2]++;
22464
22468
  return /*#__PURE__*/React__default.createElement("svg", _extends$9({
22465
22469
  fill: "none",
@@ -23411,6 +23415,7 @@ var common = {
23411
23415
  },
23412
23416
  "delete": "Delete",
23413
23417
  agreeTermsAndConditions: "I agree to terms & conditions mentioned below",
23418
+ agreeCondition: "I agree",
23414
23419
  mustAcceptTermsAndConditions: "You must accept the terms and conditions",
23415
23420
  email: "Email",
23416
23421
  phone: "Phone",
@@ -23442,7 +23447,8 @@ var common = {
23442
23447
  icon: "Icon",
23443
23448
  good: "Good",
23444
23449
  okay: "Okay",
23445
- bad: "Bad"
23450
+ bad: "Bad",
23451
+ no: "No"
23446
23452
  };
23447
23453
  var fields = {
23448
23454
  mcf: "Checkbox",
@@ -23460,7 +23466,8 @@ var fields = {
23460
23466
  fbf: "Feedback",
23461
23467
  meif: "Multiple email",
23462
23468
  agif: "Additional guests",
23463
- rtf: "Rich text field"
23469
+ rtf: "Rich text field",
23470
+ cf: "Condition"
23464
23471
  };
23465
23472
  var toasts = {
23466
23473
  formSubmitted: "Form has been submitted successfully!"
@@ -23601,7 +23608,7 @@ instance.use(initReactI18next).init({
23601
23608
  }
23602
23609
  });
23603
23610
 
23604
- var _excluded$g = ["maxLength"];
23611
+ var _excluded$h = ["maxLength"];
23605
23612
  function cov_6lo9nrx9t() {
23606
23613
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/InputWithMaxLength.jsx";
23607
23614
  var hash = "8addc9ae593605b6b19a3b6d1c312704df338020";
@@ -23904,7 +23911,7 @@ cov_6lo9nrx9t();
23904
23911
  cov_6lo9nrx9t().s[0]++;
23905
23912
  var InputWithMaxLength = function InputWithMaxLength(_ref) {
23906
23913
  var maxLength = _ref.maxLength,
23907
- props = _objectWithoutProperties$1(_ref, _excluded$g);
23914
+ props = _objectWithoutProperties$1(_ref, _excluded$h);
23908
23915
  cov_6lo9nrx9t().f[0]++;
23909
23916
  var _ref2 = (cov_6lo9nrx9t().s[1]++, useField(props)),
23910
23917
  _ref3 = _slicedToArray$6(_ref2, 3),
@@ -23929,7 +23936,7 @@ var InputWithMaxLength = function InputWithMaxLength(_ref) {
23929
23936
  })));
23930
23937
  };
23931
23938
 
23932
- var _excluded$f = ["maxLength"];
23939
+ var _excluded$g = ["maxLength"];
23933
23940
  function cov_1c261hpheg() {
23934
23941
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/TextareaWithMaxLength.jsx";
23935
23942
  var hash = "8d7ba3715092adac47a31c8a2a6521ab7b4bbd0c";
@@ -24232,7 +24239,7 @@ cov_1c261hpheg();
24232
24239
  cov_1c261hpheg().s[0]++;
24233
24240
  var TextAreaWithMaxLength = function TextAreaWithMaxLength(_ref) {
24234
24241
  var maxLength = _ref.maxLength,
24235
- props = _objectWithoutProperties$1(_ref, _excluded$f);
24242
+ props = _objectWithoutProperties$1(_ref, _excluded$g);
24236
24243
  cov_1c261hpheg().f[0]++;
24237
24244
  var _ref2 = (cov_1c261hpheg().s[1]++, useField(props)),
24238
24245
  _ref3 = _slicedToArray$6(_ref2, 3),
@@ -24375,6 +24382,162 @@ var AdditionalGuests$1 = function AdditionalGuests(_ref) {
24375
24382
  }))));
24376
24383
  };
24377
24384
 
24385
+ function cov_2kk1k5b9uc() {
24386
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Condition.jsx";
24387
+ var hash = "6a9c9cbddd9ebd68d87e72710f804f94cd3cbf9d";
24388
+ var global = new Function("return this")();
24389
+ var gcv = "__coverage__";
24390
+ var coverageData = {
24391
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/Condition.jsx",
24392
+ statementMap: {
24393
+ "0": {
24394
+ start: {
24395
+ line: 8,
24396
+ column: 18
24397
+ },
24398
+ end: {
24399
+ line: 34,
24400
+ column: 1
24401
+ }
24402
+ },
24403
+ "1": {
24404
+ start: {
24405
+ line: 9,
24406
+ column: 16
24407
+ },
24408
+ end: {
24409
+ line: 9,
24410
+ column: 32
24411
+ }
24412
+ },
24413
+ "2": {
24414
+ start: {
24415
+ line: 11,
24416
+ column: 2
24417
+ },
24418
+ end: {
24419
+ line: 33,
24420
+ column: 4
24421
+ }
24422
+ }
24423
+ },
24424
+ fnMap: {
24425
+ "0": {
24426
+ name: "(anonymous_0)",
24427
+ decl: {
24428
+ start: {
24429
+ line: 8,
24430
+ column: 18
24431
+ },
24432
+ end: {
24433
+ line: 8,
24434
+ column: 19
24435
+ }
24436
+ },
24437
+ loc: {
24438
+ start: {
24439
+ line: 8,
24440
+ column: 44
24441
+ },
24442
+ end: {
24443
+ line: 34,
24444
+ column: 1
24445
+ }
24446
+ },
24447
+ line: 8
24448
+ }
24449
+ },
24450
+ branchMap: {
24451
+ "0": {
24452
+ loc: {
24453
+ start: {
24454
+ line: 23,
24455
+ column: 7
24456
+ },
24457
+ end: {
24458
+ line: 31,
24459
+ column: 7
24460
+ }
24461
+ },
24462
+ type: "binary-expr",
24463
+ locations: [{
24464
+ start: {
24465
+ line: 23,
24466
+ column: 7
24467
+ },
24468
+ end: {
24469
+ line: 23,
24470
+ column: 18
24471
+ }
24472
+ }, {
24473
+ start: {
24474
+ line: 24,
24475
+ column: 8
24476
+ },
24477
+ end: {
24478
+ line: 30,
24479
+ column: 14
24480
+ }
24481
+ }],
24482
+ line: 23
24483
+ }
24484
+ },
24485
+ s: {
24486
+ "0": 0,
24487
+ "1": 0,
24488
+ "2": 0
24489
+ },
24490
+ f: {
24491
+ "0": 0
24492
+ },
24493
+ b: {
24494
+ "0": [0, 0]
24495
+ },
24496
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
24497
+ hash: "6a9c9cbddd9ebd68d87e72710f804f94cd3cbf9d"
24498
+ };
24499
+ var coverage = global[gcv] || (global[gcv] = {});
24500
+ if (!coverage[path] || coverage[path].hash !== hash) {
24501
+ coverage[path] = coverageData;
24502
+ }
24503
+ var actualCoverage = coverage[path];
24504
+ {
24505
+ // @ts-ignore
24506
+ cov_2kk1k5b9uc = function () {
24507
+ return actualCoverage;
24508
+ };
24509
+ }
24510
+ return actualCoverage;
24511
+ }
24512
+ cov_2kk1k5b9uc();
24513
+ cov_2kk1k5b9uc().s[0]++;
24514
+ var Condition$3 = function Condition(_ref) {
24515
+ var name = _ref.name,
24516
+ isRequired = _ref.isRequired;
24517
+ cov_2kk1k5b9uc().f[0]++;
24518
+ var _ref2 = (cov_2kk1k5b9uc().s[1]++, useTranslation()),
24519
+ t = _ref2.t;
24520
+ cov_2kk1k5b9uc().s[2]++;
24521
+ return /*#__PURE__*/React__default.createElement("div", {
24522
+ className: "space-y-4"
24523
+ }, /*#__PURE__*/React__default.createElement("div", {
24524
+ className: "grid grid-cols-2 gap-4"
24525
+ }, /*#__PURE__*/React__default.createElement("div", {
24526
+ className: "col-span-2"
24527
+ }, /*#__PURE__*/React__default.createElement(TextAreaWithMaxLength, {
24528
+ required: true,
24529
+ label: t("questions.common.questionFields.field.question"),
24530
+ name: "".concat(name, ".label"),
24531
+ rows: 1
24532
+ }))), (cov_2kk1k5b9uc().b[0][0]++, !isRequired) && (cov_2kk1k5b9uc().b[0][1]++, /*#__PURE__*/React__default.createElement("div", {
24533
+ className: "w-full"
24534
+ }, /*#__PURE__*/React__default.createElement(Checkbox, {
24535
+ id: "".concat(name, ".isRequired"),
24536
+ label: t("questions.common.questionFields.field.required"),
24537
+ name: "".concat(name, ".isRequired")
24538
+ }))));
24539
+ };
24540
+
24378
24541
  function cov_5u7jgeqcn() {
24379
24542
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/constants.js";
24380
24543
  var hash = "b3d19de9685469a419e3fbb91a64e9376eebfe14";
@@ -27910,7 +28073,7 @@ var Terms$3 = function Terms(_ref) {
27910
28073
 
27911
28074
  function cov_2qk3dozy47() {
27912
28075
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/index.js";
27913
- var hash = "1c67aa112a33505a9c0fe92ca24e6df7a9df5c52";
28076
+ var hash = "f973b7318af7a0d1059b5369964ad800ca33502b";
27914
28077
  var global = new Function("return this")();
27915
28078
  var gcv = "__coverage__";
27916
28079
  var coverageData = {
@@ -27918,11 +28081,11 @@ function cov_2qk3dozy47() {
27918
28081
  statementMap: {
27919
28082
  "0": {
27920
28083
  start: {
27921
- line: 14,
28084
+ line: 15,
27922
28085
  column: 15
27923
28086
  },
27924
28087
  end: {
27925
- line: 27,
28088
+ line: 29,
27926
28089
  column: 1
27927
28090
  }
27928
28091
  }
@@ -27935,7 +28098,7 @@ function cov_2qk3dozy47() {
27935
28098
  f: {},
27936
28099
  b: {},
27937
28100
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27938
- hash: "1c67aa112a33505a9c0fe92ca24e6df7a9df5c52"
28101
+ hash: "f973b7318af7a0d1059b5369964ad800ca33502b"
27939
28102
  };
27940
28103
  var coverage = global[gcv] || (global[gcv] = {});
27941
28104
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27963,7 +28126,8 @@ var Fields = (cov_2qk3dozy47().s[0]++, {
27963
28126
  Terms: Terms$3,
27964
28127
  StarRating: StarRating$2,
27965
28128
  AdditionalGuests: AdditionalGuests$1,
27966
- RichText: RichText$1
28129
+ RichText: RichText$1,
28130
+ Condition: Condition$3
27967
28131
  });
27968
28132
 
27969
28133
  function cov_2gcfk56wsh() {
@@ -28297,7 +28461,7 @@ var Editor = function Editor(_ref) {
28297
28461
 
28298
28462
  function cov_2j8tlu2ul5() {
28299
28463
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
28300
- var hash = "e2bdf47a1223875f9b5045360fbf0ea023532ced";
28464
+ var hash = "9e7ca608a61b8db80cf2c085e9f70e9359851faf";
28301
28465
  var global = new Function("return this")();
28302
28466
  var gcv = "__coverage__";
28303
28467
  var coverageData = {
@@ -28305,61 +28469,61 @@ function cov_2j8tlu2ul5() {
28305
28469
  statementMap: {
28306
28470
  "0": {
28307
28471
  start: {
28308
- line: 31,
28472
+ line: 33,
28309
28473
  column: 4
28310
28474
  },
28311
28475
  end: {
28312
- line: 31,
28476
+ line: 33,
28313
28477
  column: 10
28314
28478
  }
28315
28479
  },
28316
28480
  "1": {
28317
28481
  start: {
28318
- line: 33,
28482
+ line: 35,
28319
28483
  column: 40
28320
28484
  },
28321
28485
  end: {
28322
- line: 33,
28486
+ line: 35,
28323
28487
  column: 41
28324
28488
  }
28325
28489
  },
28326
28490
  "2": {
28327
28491
  start: {
28328
- line: 34,
28492
+ line: 36,
28329
28493
  column: 35
28330
28494
  },
28331
28495
  end: {
28332
- line: 34,
28496
+ line: 36,
28333
28497
  column: 36
28334
28498
  }
28335
28499
  },
28336
28500
  "3": {
28337
28501
  start: {
28338
- line: 36,
28502
+ line: 38,
28339
28503
  column: 30
28340
28504
  },
28341
28505
  end: {
28342
- line: 198,
28506
+ line: 210,
28343
28507
  column: 1
28344
28508
  }
28345
28509
  },
28346
28510
  "4": {
28347
28511
  start: {
28348
- line: 201,
28512
+ line: 213,
28349
28513
  column: 38
28350
28514
  },
28351
28515
  end: {
28352
- line: 204,
28516
+ line: 216,
28353
28517
  column: 1
28354
28518
  }
28355
28519
  },
28356
28520
  "5": {
28357
28521
  start: {
28358
- line: 206,
28522
+ line: 218,
28359
28523
  column: 29
28360
28524
  },
28361
28525
  end: {
28362
- line: 206,
28526
+ line: 218,
28363
28527
  column: 62
28364
28528
  }
28365
28529
  }
@@ -28377,7 +28541,7 @@ function cov_2j8tlu2ul5() {
28377
28541
  f: {},
28378
28542
  b: {},
28379
28543
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
28380
- hash: "e2bdf47a1223875f9b5045360fbf0ea023532ced"
28544
+ hash: "9e7ca608a61b8db80cf2c085e9f70e9359851faf"
28381
28545
  };
28382
28546
  var coverage = global[gcv] || (global[gcv] = {});
28383
28547
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -28405,7 +28569,8 @@ var _ref$1 = (cov_2j8tlu2ul5().s[0]++, Fields),
28405
28569
  Terms$2 = _ref$1.Terms,
28406
28570
  StarRating$1 = _ref$1.StarRating,
28407
28571
  AdditionalGuests = _ref$1.AdditionalGuests,
28408
- RichText = _ref$1.RichText;
28572
+ RichText = _ref$1.RichText,
28573
+ Condition$2 = _ref$1.Condition;
28409
28574
  var SINGLE_CHOICE_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[1]++, 2);
28410
28575
  var DROPDOWN_FIELD_MIN_OPTIONS = (cov_2j8tlu2ul5().s[2]++, 2);
28411
28576
  var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
@@ -28561,6 +28726,15 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
28561
28726
  isRequired: true,
28562
28727
  label: instance.t("common.agreeTermsAndConditions")
28563
28728
  }
28729
+ }, {
28730
+ type: "condition",
28731
+ label: instance.t("fields.cf"),
28732
+ icon: Checkbox$1,
28733
+ component: Condition$2,
28734
+ defaults: {
28735
+ isRequired: true,
28736
+ label: instance.t("common.agreeCondition")
28737
+ }
28564
28738
  }, {
28565
28739
  type: "date",
28566
28740
  label: instance.t("fields.date"),
@@ -31263,7 +31437,7 @@ var List = function List(_ref) {
31263
31437
  })));
31264
31438
  };
31265
31439
 
31266
- var _excluded$e = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
31440
+ var _excluded$f = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "setShouldValidate", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn"];
31267
31441
  function cov_2e8k7gwd81() {
31268
31442
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
31269
31443
  var hash = "7c11acd7f0e5fde99d6d92b950980d529a13322c";
@@ -32499,7 +32673,7 @@ var Form = function Form(_ref) {
32499
32673
  isKindAlreadyActive = _ref.isKindAlreadyActive,
32500
32674
  getActiveKindDetails = _ref.getActiveKindDetails,
32501
32675
  kindUniqueOn = _ref.kindUniqueOn,
32502
- formDomProps = _objectWithoutProperties$1(_ref, _excluded$e);
32676
+ formDomProps = _objectWithoutProperties$1(_ref, _excluded$f);
32503
32677
  cov_2e8k7gwd81().f[0]++;
32504
32678
  var _ref2 = (cov_2e8k7gwd81().s[1]++, useTranslation()),
32505
32679
  t = _ref2.t;
@@ -35637,7 +35811,7 @@ var Spinner = function Spinner(_ref) {
35637
35811
  })));
35638
35812
  };
35639
35813
 
35640
- var _excluded$d = ["label", "loading", "success", "className"];
35814
+ var _excluded$e = ["label", "loading", "success", "className"];
35641
35815
  function cov_2ndo8sz9m4() {
35642
35816
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/Button.jsx";
35643
35817
  var hash = "947a26eed705c861c4cb61ff2cb56fcb2a312c71";
@@ -35967,7 +36141,7 @@ var Button = function Button(_ref) {
35967
36141
  success = _ref$success === void 0 ? (cov_2ndo8sz9m4().b[1][0]++, false) : _ref$success,
35968
36142
  _ref$className = _ref.className,
35969
36143
  className = _ref$className === void 0 ? (cov_2ndo8sz9m4().b[2][0]++, "") : _ref$className,
35970
- otherProps = _objectWithoutProperties$1(_ref, _excluded$d);
36144
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$e);
35971
36145
  cov_2ndo8sz9m4().f[0]++;
35972
36146
  cov_2ndo8sz9m4().s[1]++;
35973
36147
  return /*#__PURE__*/React__default.createElement("button", _extends$9({
@@ -41398,7 +41572,7 @@ var GroupHeading = function GroupHeading(props) {
41398
41572
  }), innerProps));
41399
41573
  };
41400
41574
 
41401
- var _excluded$c = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
41575
+ var _excluded$d = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
41402
41576
  var inputCSS = function inputCSS(_ref, unstyled) {
41403
41577
  var isDisabled = _ref.isDisabled,
41404
41578
  value = _ref.value,
@@ -41454,7 +41628,7 @@ var Input$1 = function Input(props) {
41454
41628
  isDisabled = _cleanCommonProps.isDisabled,
41455
41629
  isHidden = _cleanCommonProps.isHidden,
41456
41630
  inputClassName = _cleanCommonProps.inputClassName,
41457
- innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$c);
41631
+ innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$d);
41458
41632
  return jsx("div", _extends$1({}, getStyleProps(props, 'input', {
41459
41633
  'input-container': true
41460
41634
  }), {
@@ -42251,10 +42425,10 @@ var createFilter = function createFilter(config) {
42251
42425
  };
42252
42426
  };
42253
42427
 
42254
- var _excluded$b = ["innerRef"];
42428
+ var _excluded$c = ["innerRef"];
42255
42429
  function DummyInput(_ref) {
42256
42430
  var innerRef = _ref.innerRef,
42257
- props = _objectWithoutProperties(_ref, _excluded$b);
42431
+ props = _objectWithoutProperties(_ref, _excluded$c);
42258
42432
  // Remove animation props not meant for HTML elements
42259
42433
  var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
42260
42434
  return jsx("input", _extends$1({
@@ -44259,7 +44433,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
44259
44433
  }(Component);
44260
44434
  Select$1.defaultProps = defaultProps;
44261
44435
 
44262
- var _excluded$a = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
44436
+ var _excluded$b = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
44263
44437
  function useStateManager(_ref) {
44264
44438
  var _ref$defaultInputValu = _ref.defaultInputValue,
44265
44439
  defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,
@@ -44274,7 +44448,7 @@ function useStateManager(_ref) {
44274
44448
  propsOnMenuClose = _ref.onMenuClose,
44275
44449
  propsOnMenuOpen = _ref.onMenuOpen,
44276
44450
  propsValue = _ref.value,
44277
- restSelectProps = _objectWithoutProperties(_ref, _excluded$a);
44451
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$b);
44278
44452
  var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
44279
44453
  _useState2 = _slicedToArray$4(_useState, 2),
44280
44454
  stateInputValue = _useState2[0],
@@ -44326,7 +44500,7 @@ function useStateManager(_ref) {
44326
44500
  });
44327
44501
  }
44328
44502
 
44329
- var _excluded$9 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
44503
+ var _excluded$a = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
44330
44504
  var compareOption = function compareOption() {
44331
44505
  var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
44332
44506
  var option = arguments.length > 1 ? arguments[1] : undefined;
@@ -44370,7 +44544,7 @@ function useCreatable(_ref) {
44370
44544
  _ref$options = _ref.options,
44371
44545
  propsOptions = _ref$options === void 0 ? [] : _ref$options,
44372
44546
  propsOnChange = _ref.onChange,
44373
- restSelectProps = _objectWithoutProperties(_ref, _excluded$9);
44547
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$a);
44374
44548
  var _restSelectProps$getO = restSelectProps.getOptionValue,
44375
44549
  getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
44376
44550
  _restSelectProps$getO2 = restSelectProps.getOptionLabel,
@@ -44429,7 +44603,7 @@ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
44429
44603
  }, baseSelectProps));
44430
44604
  });
44431
44605
 
44432
- var _excluded$8 = ["children"];
44606
+ var _excluded$9 = ["children"];
44433
44607
  function cov_2r9ol8zeg1() {
44434
44608
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/MultipleEmail/constants.jsx";
44435
44609
  var hash = "e09b41725a3ebcee86262f4ca568e046555de10a";
@@ -44882,7 +45056,7 @@ var STYLES = (cov_2r9ol8zeg1().s[0]++, {
44882
45056
  cov_2r9ol8zeg1().s[1]++;
44883
45057
  var CustomControl = function CustomControl(_ref) {
44884
45058
  var children = _ref.children,
44885
- props = _objectWithoutProperties$1(_ref, _excluded$8);
45059
+ props = _objectWithoutProperties$1(_ref, _excluded$9);
44886
45060
  cov_2r9ol8zeg1().f[0]++;
44887
45061
  var _ref2 = (cov_2r9ol8zeg1().s[2]++, props.selectProps),
44888
45062
  prefix = _ref2.prefix;
@@ -51948,7 +52122,7 @@ PhoneNumberSearch.prototype.constructor = PhoneNumberSearch;
51948
52122
 
51949
52123
  function cov_1l3yhm377b() {
51950
52124
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/utils.js";
51951
- var hash = "c5c25e3b86f6ca0d8f7d631a522c9f19b84c95df";
52125
+ var hash = "43a1df0efd87b2eb39a9401cdbb55dc1f6ee1045";
51952
52126
  var global = new Function("return this")();
51953
52127
  var gcv = "__coverage__";
51954
52128
  var coverageData = {
@@ -52010,7 +52184,7 @@ function cov_1l3yhm377b() {
52010
52184
  column: 34
52011
52185
  },
52012
52186
  end: {
52013
- line: 78,
52187
+ line: 84,
52014
52188
  column: 1
52015
52189
  }
52016
52190
  },
@@ -52070,7 +52244,7 @@ function cov_1l3yhm377b() {
52070
52244
  column: 2
52071
52245
  },
52072
52246
  end: {
52073
- line: 75,
52247
+ line: 81,
52074
52248
  column: 5
52075
52249
  }
52076
52250
  },
@@ -52090,7 +52264,7 @@ function cov_1l3yhm377b() {
52090
52264
  column: 4
52091
52265
  },
52092
52266
  end: {
52093
- line: 74,
52267
+ line: 80,
52094
52268
  column: 5
52095
52269
  }
52096
52270
  },
@@ -52101,7 +52275,7 @@ function cov_1l3yhm377b() {
52101
52275
  },
52102
52276
  end: {
52103
52277
  line: 43,
52104
- column: 69
52278
+ column: 57
52105
52279
  }
52106
52280
  },
52107
52281
  "15": {
@@ -52116,22 +52290,22 @@ function cov_1l3yhm377b() {
52116
52290
  },
52117
52291
  "16": {
52118
52292
  start: {
52119
- line: 47,
52293
+ line: 48,
52120
52294
  column: 8
52121
52295
  },
52122
52296
  end: {
52123
- line: 51,
52124
- column: 60
52297
+ line: 48,
52298
+ column: 69
52125
52299
  }
52126
52300
  },
52127
52301
  "17": {
52128
52302
  start: {
52129
- line: 49,
52130
- column: 14
52303
+ line: 50,
52304
+ column: 8
52131
52305
  },
52132
52306
  end: {
52133
- line: 49,
52134
- column: 59
52307
+ line: 50,
52308
+ column: 15
52135
52309
  }
52136
52310
  },
52137
52311
  "18": {
@@ -52140,347 +52314,367 @@ function cov_1l3yhm377b() {
52140
52314
  column: 8
52141
52315
  },
52142
52316
  end: {
52143
- line: 53,
52144
- column: 15
52317
+ line: 57,
52318
+ column: 60
52145
52319
  }
52146
52320
  },
52147
52321
  "19": {
52148
52322
  start: {
52149
- line: 57,
52150
- column: 8
52323
+ line: 55,
52324
+ column: 14
52151
52325
  },
52152
52326
  end: {
52153
- line: 60,
52154
- column: 22
52327
+ line: 55,
52328
+ column: 59
52155
52329
  }
52156
52330
  },
52157
52331
  "20": {
52158
52332
  start: {
52159
52333
  line: 59,
52160
- column: 12
52334
+ column: 8
52161
52335
  },
52162
52336
  end: {
52163
52337
  line: 59,
52164
- column: 57
52338
+ column: 15
52165
52339
  }
52166
52340
  },
52167
52341
  "21": {
52168
52342
  start: {
52169
- line: 62,
52343
+ line: 63,
52170
52344
  column: 8
52171
52345
  },
52172
52346
  end: {
52173
- line: 62,
52174
- column: 15
52347
+ line: 66,
52348
+ column: 22
52175
52349
  }
52176
52350
  },
52177
52351
  "22": {
52178
52352
  start: {
52179
52353
  line: 65,
52180
- column: 8
52354
+ column: 12
52181
52355
  },
52182
52356
  end: {
52183
52357
  line: 65,
52184
- column: 31
52358
+ column: 57
52185
52359
  }
52186
52360
  },
52187
52361
  "23": {
52188
52362
  start: {
52189
- line: 67,
52363
+ line: 68,
52190
52364
  column: 8
52191
52365
  },
52192
52366
  end: {
52193
- line: 67,
52367
+ line: 68,
52194
52368
  column: 15
52195
52369
  }
52196
52370
  },
52197
52371
  "24": {
52198
52372
  start: {
52199
- line: 70,
52373
+ line: 71,
52200
52374
  column: 8
52201
52375
  },
52202
52376
  end: {
52203
- line: 70,
52204
- column: 54
52377
+ line: 71,
52378
+ column: 31
52205
52379
  }
52206
52380
  },
52207
52381
  "25": {
52208
52382
  start: {
52209
- line: 72,
52383
+ line: 73,
52210
52384
  column: 8
52211
52385
  },
52212
52386
  end: {
52213
- line: 72,
52387
+ line: 73,
52214
52388
  column: 15
52215
52389
  }
52216
52390
  },
52217
52391
  "26": {
52218
52392
  start: {
52219
- line: 77,
52393
+ line: 76,
52394
+ column: 8
52395
+ },
52396
+ end: {
52397
+ line: 76,
52398
+ column: 54
52399
+ }
52400
+ },
52401
+ "27": {
52402
+ start: {
52403
+ line: 78,
52404
+ column: 8
52405
+ },
52406
+ end: {
52407
+ line: 78,
52408
+ column: 15
52409
+ }
52410
+ },
52411
+ "28": {
52412
+ start: {
52413
+ line: 83,
52220
52414
  column: 2
52221
52415
  },
52222
52416
  end: {
52223
- line: 77,
52417
+ line: 83,
52224
52418
  column: 64
52225
52419
  }
52226
52420
  },
52227
- "27": {
52421
+ "29": {
52228
52422
  start: {
52229
- line: 80,
52423
+ line: 86,
52230
52424
  column: 36
52231
52425
  },
52232
52426
  end: {
52233
- line: 130,
52427
+ line: 136,
52234
52428
  column: 1
52235
52429
  }
52236
52430
  },
52237
- "28": {
52431
+ "30": {
52238
52432
  start: {
52239
- line: 81,
52433
+ line: 87,
52240
52434
  column: 23
52241
52435
  },
52242
52436
  end: {
52243
- line: 81,
52437
+ line: 87,
52244
52438
  column: 25
52245
52439
  }
52246
52440
  },
52247
- "29": {
52441
+ "31": {
52248
52442
  start: {
52249
- line: 82,
52443
+ line: 88,
52250
52444
  column: 2
52251
52445
  },
52252
52446
  end: {
52253
- line: 127,
52447
+ line: 133,
52254
52448
  column: 5
52255
52449
  }
52256
52450
  },
52257
- "30": {
52451
+ "32": {
52258
52452
  start: {
52259
- line: 83,
52453
+ line: 89,
52260
52454
  column: 44
52261
52455
  },
52262
52456
  end: {
52263
- line: 83,
52457
+ line: 89,
52264
52458
  column: 52
52265
52459
  }
52266
52460
  },
52267
- "31": {
52461
+ "33": {
52268
52462
  start: {
52269
- line: 84,
52463
+ line: 90,
52270
52464
  column: 4
52271
52465
  },
52272
52466
  end: {
52273
- line: 126,
52467
+ line: 132,
52274
52468
  column: 5
52275
52469
  }
52276
52470
  },
52277
- "32": {
52471
+ "34": {
52278
52472
  start: {
52279
- line: 85,
52473
+ line: 91,
52280
52474
  column: 38
52281
52475
  },
52282
52476
  end: {
52283
- line: 85,
52477
+ line: 91,
52284
52478
  column: 46
52285
52479
  }
52286
52480
  },
52287
- "33": {
52481
+ "35": {
52288
52482
  start: {
52289
- line: 86,
52483
+ line: 92,
52290
52484
  column: 6
52291
52485
  },
52292
52486
  end: {
52293
- line: 125,
52487
+ line: 131,
52294
52488
  column: 79
52295
52489
  }
52296
52490
  },
52297
- "34": {
52491
+ "36": {
52298
52492
  start: {
52299
- line: 90,
52493
+ line: 96,
52300
52494
  column: 23
52301
52495
  },
52302
52496
  end: {
52303
- line: 90,
52497
+ line: 96,
52304
52498
  column: 65
52305
52499
  }
52306
52500
  },
52307
- "35": {
52501
+ "37": {
52308
52502
  start: {
52309
- line: 91,
52503
+ line: 97,
52310
52504
  column: 8
52311
52505
  },
52312
52506
  end: {
52313
- line: 98,
52507
+ line: 104,
52314
52508
  column: 9
52315
52509
  }
52316
52510
  },
52317
- "36": {
52511
+ "38": {
52318
52512
  start: {
52319
- line: 92,
52513
+ line: 98,
52320
52514
  column: 10
52321
52515
  },
52322
52516
  end: {
52323
- line: 97,
52517
+ line: 103,
52324
52518
  column: 13
52325
52519
  }
52326
52520
  },
52327
- "37": {
52521
+ "39": {
52328
52522
  start: {
52329
- line: 99,
52523
+ line: 105,
52330
52524
  column: 13
52331
52525
  },
52332
52526
  end: {
52333
- line: 125,
52527
+ line: 131,
52334
52528
  column: 79
52335
52529
  }
52336
52530
  },
52337
- "38": {
52531
+ "40": {
52338
52532
  start: {
52339
- line: 100,
52533
+ line: 106,
52340
52534
  column: 8
52341
52535
  },
52342
52536
  end: {
52343
- line: 110,
52537
+ line: 116,
52344
52538
  column: 11
52345
52539
  }
52346
52540
  },
52347
- "39": {
52541
+ "41": {
52348
52542
  start: {
52349
- line: 101,
52543
+ line: 107,
52350
52544
  column: 10
52351
52545
  },
52352
52546
  end: {
52353
- line: 109,
52547
+ line: 115,
52354
52548
  column: 11
52355
52549
  }
52356
52550
  },
52357
- "40": {
52551
+ "42": {
52358
52552
  start: {
52359
- line: 102,
52553
+ line: 108,
52360
52554
  column: 27
52361
52555
  },
52362
52556
  end: {
52363
- line: 102,
52557
+ line: 108,
52364
52558
  column: 51
52365
52559
  }
52366
52560
  },
52367
- "41": {
52561
+ "43": {
52368
52562
  start: {
52369
- line: 103,
52563
+ line: 109,
52370
52564
  column: 12
52371
52565
  },
52372
52566
  end: {
52373
- line: 108,
52567
+ line: 114,
52374
52568
  column: 15
52375
52569
  }
52376
52570
  },
52377
- "42": {
52571
+ "44": {
52378
52572
  start: {
52379
- line: 111,
52573
+ line: 117,
52380
52574
  column: 13
52381
52575
  },
52382
52576
  end: {
52383
- line: 125,
52577
+ line: 131,
52384
52578
  column: 79
52385
52579
  }
52386
52580
  },
52387
- "43": {
52581
+ "45": {
52388
52582
  start: {
52389
- line: 112,
52583
+ line: 118,
52390
52584
  column: 8
52391
52585
  },
52392
52586
  end: {
52393
- line: 118,
52587
+ line: 124,
52394
52588
  column: 11
52395
52589
  }
52396
52590
  },
52397
- "44": {
52591
+ "46": {
52398
52592
  start: {
52399
- line: 119,
52593
+ line: 125,
52400
52594
  column: 13
52401
52595
  },
52402
52596
  end: {
52403
- line: 125,
52597
+ line: 131,
52404
52598
  column: 79
52405
52599
  }
52406
52600
  },
52407
- "45": {
52601
+ "47": {
52408
52602
  start: {
52409
- line: 120,
52603
+ line: 126,
52410
52604
  column: 8
52411
52605
  },
52412
52606
  end: {
52413
- line: 124,
52607
+ line: 130,
52414
52608
  column: 11
52415
52609
  }
52416
52610
  },
52417
- "46": {
52611
+ "48": {
52418
52612
  start: {
52419
- line: 125,
52613
+ line: 131,
52420
52614
  column: 13
52421
52615
  },
52422
52616
  end: {
52423
- line: 125,
52617
+ line: 131,
52424
52618
  column: 79
52425
52619
  }
52426
52620
  },
52427
- "47": {
52621
+ "49": {
52428
52622
  start: {
52429
- line: 129,
52623
+ line: 135,
52430
52624
  column: 2
52431
52625
  },
52432
52626
  end: {
52433
- line: 129,
52627
+ line: 135,
52434
52628
  column: 22
52435
52629
  }
52436
52630
  },
52437
- "48": {
52631
+ "50": {
52438
52632
  start: {
52439
- line: 132,
52633
+ line: 138,
52440
52634
  column: 25
52441
52635
  },
52442
52636
  end: {
52443
- line: 144,
52637
+ line: 150,
52444
52638
  column: 1
52445
52639
  }
52446
52640
  },
52447
- "49": {
52641
+ "51": {
52448
52642
  start: {
52449
- line: 133,
52643
+ line: 139,
52450
52644
  column: 25
52451
52645
  },
52452
52646
  end: {
52453
- line: 133,
52647
+ line: 139,
52454
52648
  column: 30
52455
52649
  }
52456
52650
  },
52457
- "50": {
52651
+ "52": {
52458
52652
  start: {
52459
- line: 135,
52653
+ line: 141,
52460
52654
  column: 2
52461
52655
  },
52462
52656
  end: {
52463
- line: 141,
52657
+ line: 147,
52464
52658
  column: 3
52465
52659
  }
52466
52660
  },
52467
- "51": {
52661
+ "53": {
52468
52662
  start: {
52469
- line: 136,
52663
+ line: 142,
52470
52664
  column: 4
52471
52665
  },
52472
52666
  end: {
52473
- line: 140,
52667
+ line: 146,
52474
52668
  column: 21
52475
52669
  }
52476
52670
  },
52477
- "52": {
52671
+ "54": {
52478
52672
  start: {
52479
- line: 143,
52673
+ line: 149,
52480
52674
  column: 2
52481
52675
  },
52482
52676
  end: {
52483
- line: 143,
52677
+ line: 149,
52484
52678
  column: 24
52485
52679
  }
52486
52680
  }
@@ -52576,7 +52770,7 @@ function cov_1l3yhm377b() {
52576
52770
  column: 5
52577
52771
  },
52578
52772
  end: {
52579
- line: 78,
52773
+ line: 84,
52580
52774
  column: 1
52581
52775
  }
52582
52776
  },
@@ -52624,7 +52818,7 @@ function cov_1l3yhm377b() {
52624
52818
  column: 32
52625
52819
  },
52626
52820
  end: {
52627
- line: 75,
52821
+ line: 81,
52628
52822
  column: 3
52629
52823
  }
52630
52824
  },
@@ -52634,145 +52828,145 @@ function cov_1l3yhm377b() {
52634
52828
  name: "(anonymous_6)",
52635
52829
  decl: {
52636
52830
  start: {
52637
- line: 48,
52831
+ line: 54,
52638
52832
  column: 34
52639
52833
  },
52640
52834
  end: {
52641
- line: 48,
52835
+ line: 54,
52642
52836
  column: 35
52643
52837
  }
52644
52838
  },
52645
52839
  loc: {
52646
52840
  start: {
52647
- line: 49,
52841
+ line: 55,
52648
52842
  column: 14
52649
52843
  },
52650
52844
  end: {
52651
- line: 49,
52845
+ line: 55,
52652
52846
  column: 59
52653
52847
  }
52654
52848
  },
52655
- line: 49
52849
+ line: 55
52656
52850
  },
52657
52851
  "7": {
52658
52852
  name: "(anonymous_7)",
52659
52853
  decl: {
52660
52854
  start: {
52661
- line: 58,
52855
+ line: 64,
52662
52856
  column: 33
52663
52857
  },
52664
52858
  end: {
52665
- line: 58,
52859
+ line: 64,
52666
52860
  column: 34
52667
52861
  }
52668
52862
  },
52669
52863
  loc: {
52670
52864
  start: {
52671
- line: 59,
52865
+ line: 65,
52672
52866
  column: 12
52673
52867
  },
52674
52868
  end: {
52675
- line: 59,
52869
+ line: 65,
52676
52870
  column: 57
52677
52871
  }
52678
52872
  },
52679
- line: 59
52873
+ line: 65
52680
52874
  },
52681
52875
  "8": {
52682
52876
  name: "(anonymous_8)",
52683
52877
  decl: {
52684
52878
  start: {
52685
- line: 80,
52879
+ line: 86,
52686
52880
  column: 36
52687
52881
  },
52688
52882
  end: {
52689
- line: 80,
52883
+ line: 86,
52690
52884
  column: 37
52691
52885
  }
52692
52886
  },
52693
52887
  loc: {
52694
52888
  start: {
52695
- line: 80,
52889
+ line: 86,
52696
52890
  column: 61
52697
52891
  },
52698
52892
  end: {
52699
- line: 130,
52893
+ line: 136,
52700
52894
  column: 1
52701
52895
  }
52702
52896
  },
52703
- line: 80
52897
+ line: 86
52704
52898
  },
52705
52899
  "9": {
52706
52900
  name: "(anonymous_9)",
52707
52901
  decl: {
52708
52902
  start: {
52709
- line: 82,
52903
+ line: 88,
52710
52904
  column: 20
52711
52905
  },
52712
52906
  end: {
52713
- line: 82,
52907
+ line: 88,
52714
52908
  column: 21
52715
52909
  }
52716
52910
  },
52717
52911
  loc: {
52718
52912
  start: {
52719
- line: 82,
52913
+ line: 88,
52720
52914
  column: 32
52721
52915
  },
52722
52916
  end: {
52723
- line: 127,
52917
+ line: 133,
52724
52918
  column: 3
52725
52919
  }
52726
52920
  },
52727
- line: 82
52921
+ line: 88
52728
52922
  },
52729
52923
  "10": {
52730
52924
  name: "(anonymous_10)",
52731
52925
  decl: {
52732
52926
  start: {
52733
- line: 100,
52927
+ line: 106,
52734
52928
  column: 30
52735
52929
  },
52736
52930
  end: {
52737
- line: 100,
52931
+ line: 106,
52738
52932
  column: 31
52739
52933
  }
52740
52934
  },
52741
52935
  loc: {
52742
52936
  start: {
52743
- line: 100,
52937
+ line: 106,
52744
52938
  column: 52
52745
52939
  },
52746
52940
  end: {
52747
- line: 110,
52941
+ line: 116,
52748
52942
  column: 9
52749
52943
  }
52750
52944
  },
52751
- line: 100
52945
+ line: 106
52752
52946
  },
52753
52947
  "11": {
52754
52948
  name: "(anonymous_11)",
52755
52949
  decl: {
52756
52950
  start: {
52757
- line: 132,
52951
+ line: 138,
52758
52952
  column: 25
52759
52953
  },
52760
52954
  end: {
52761
- line: 132,
52955
+ line: 138,
52762
52956
  column: 26
52763
52957
  }
52764
52958
  },
52765
52959
  loc: {
52766
52960
  start: {
52767
- line: 132,
52961
+ line: 138,
52768
52962
  column: 35
52769
52963
  },
52770
52964
  end: {
52771
- line: 144,
52965
+ line: 150,
52772
52966
  column: 1
52773
52967
  }
52774
52968
  },
52775
- line: 132
52969
+ line: 138
52776
52970
  }
52777
52971
  },
52778
52972
  branchMap: {
@@ -52921,7 +53115,7 @@ function cov_1l3yhm377b() {
52921
53115
  column: 4
52922
53116
  },
52923
53117
  end: {
52924
- line: 74,
53118
+ line: 80,
52925
53119
  column: 5
52926
53120
  }
52927
53121
  },
@@ -52932,52 +53126,61 @@ function cov_1l3yhm377b() {
52932
53126
  column: 6
52933
53127
  },
52934
53128
  end: {
52935
- line: 45,
52936
- column: 15
53129
+ line: 46,
53130
+ column: 7
52937
53131
  }
52938
53132
  }, {
52939
53133
  start: {
52940
- line: 46,
53134
+ line: 47,
52941
53135
  column: 6
52942
53136
  },
52943
53137
  end: {
52944
- line: 54,
53138
+ line: 51,
52945
53139
  column: 7
52946
53140
  }
52947
53141
  }, {
52948
53142
  start: {
52949
- line: 55,
53143
+ line: 52,
52950
53144
  column: 6
52951
53145
  },
52952
53146
  end: {
52953
- line: 55,
53147
+ line: 60,
53148
+ column: 7
53149
+ }
53150
+ }, {
53151
+ start: {
53152
+ line: 61,
53153
+ column: 6
53154
+ },
53155
+ end: {
53156
+ line: 61,
52954
53157
  column: 37
52955
53158
  }
52956
53159
  }, {
52957
53160
  start: {
52958
- line: 56,
53161
+ line: 62,
52959
53162
  column: 6
52960
53163
  },
52961
53164
  end: {
52962
- line: 63,
53165
+ line: 69,
52963
53166
  column: 7
52964
53167
  }
52965
53168
  }, {
52966
53169
  start: {
52967
- line: 64,
53170
+ line: 70,
52968
53171
  column: 6
52969
53172
  },
52970
53173
  end: {
52971
- line: 68,
53174
+ line: 74,
52972
53175
  column: 7
52973
53176
  }
52974
53177
  }, {
52975
53178
  start: {
52976
- line: 69,
53179
+ line: 75,
52977
53180
  column: 6
52978
53181
  },
52979
53182
  end: {
52980
- line: 73,
53183
+ line: 79,
52981
53184
  column: 7
52982
53185
  }
52983
53186
  }],
@@ -52991,7 +53194,7 @@ function cov_1l3yhm377b() {
52991
53194
  },
52992
53195
  end: {
52993
53196
  line: 43,
52994
- column: 68
53197
+ column: 56
52995
53198
  }
52996
53199
  },
52997
53200
  type: "binary-expr",
@@ -53002,16 +53205,16 @@ function cov_1l3yhm377b() {
53002
53205
  },
53003
53206
  end: {
53004
53207
  line: 43,
53005
- column: 62
53208
+ column: 47
53006
53209
  }
53007
53210
  }, {
53008
53211
  start: {
53009
53212
  line: 43,
53010
- column: 66
53213
+ column: 51
53011
53214
  },
53012
53215
  end: {
53013
53216
  line: 43,
53014
- column: 68
53217
+ column: 56
53015
53218
  }
53016
53219
  }],
53017
53220
  line: 43
@@ -53019,154 +53222,187 @@ function cov_1l3yhm377b() {
53019
53222
  "7": {
53020
53223
  loc: {
53021
53224
  start: {
53022
- line: 47,
53225
+ line: 48,
53023
53226
  column: 25
53024
53227
  },
53025
53228
  end: {
53026
- line: 51,
53229
+ line: 48,
53230
+ column: 68
53231
+ }
53232
+ },
53233
+ type: "binary-expr",
53234
+ locations: [{
53235
+ start: {
53236
+ line: 48,
53237
+ column: 25
53238
+ },
53239
+ end: {
53240
+ line: 48,
53241
+ column: 62
53242
+ }
53243
+ }, {
53244
+ start: {
53245
+ line: 48,
53246
+ column: 66
53247
+ },
53248
+ end: {
53249
+ line: 48,
53250
+ column: 68
53251
+ }
53252
+ }],
53253
+ line: 48
53254
+ },
53255
+ "8": {
53256
+ loc: {
53257
+ start: {
53258
+ line: 53,
53259
+ column: 25
53260
+ },
53261
+ end: {
53262
+ line: 57,
53027
53263
  column: 59
53028
53264
  }
53029
53265
  },
53030
53266
  type: "cond-expr",
53031
53267
  locations: [{
53032
53268
  start: {
53033
- line: 48,
53269
+ line: 54,
53034
53270
  column: 12
53035
53271
  },
53036
53272
  end: {
53037
- line: 50,
53273
+ line: 56,
53038
53274
  column: 13
53039
53275
  }
53040
53276
  }, {
53041
53277
  start: {
53042
- line: 51,
53278
+ line: 57,
53043
53279
  column: 12
53044
53280
  },
53045
53281
  end: {
53046
- line: 51,
53282
+ line: 57,
53047
53283
  column: 59
53048
53284
  }
53049
53285
  }],
53050
- line: 47
53286
+ line: 53
53051
53287
  },
53052
- "8": {
53288
+ "9": {
53053
53289
  loc: {
53054
53290
  start: {
53055
- line: 58,
53291
+ line: 64,
53056
53292
  column: 10
53057
53293
  },
53058
53294
  end: {
53059
- line: 60,
53295
+ line: 66,
53060
53296
  column: 21
53061
53297
  }
53062
53298
  },
53063
53299
  type: "binary-expr",
53064
53300
  locations: [{
53065
53301
  start: {
53066
- line: 58,
53302
+ line: 64,
53067
53303
  column: 10
53068
53304
  },
53069
53305
  end: {
53070
- line: 60,
53306
+ line: 66,
53071
53307
  column: 15
53072
53308
  }
53073
53309
  }, {
53074
53310
  start: {
53075
- line: 60,
53311
+ line: 66,
53076
53312
  column: 19
53077
53313
  },
53078
53314
  end: {
53079
- line: 60,
53315
+ line: 66,
53080
53316
  column: 21
53081
53317
  }
53082
53318
  }],
53083
- line: 58
53319
+ line: 64
53084
53320
  },
53085
- "9": {
53321
+ "10": {
53086
53322
  loc: {
53087
53323
  start: {
53088
- line: 70,
53324
+ line: 76,
53089
53325
  column: 25
53090
53326
  },
53091
53327
  end: {
53092
- line: 70,
53328
+ line: 76,
53093
53329
  column: 53
53094
53330
  }
53095
53331
  },
53096
53332
  type: "binary-expr",
53097
53333
  locations: [{
53098
53334
  start: {
53099
- line: 70,
53335
+ line: 76,
53100
53336
  column: 25
53101
53337
  },
53102
53338
  end: {
53103
- line: 70,
53339
+ line: 76,
53104
53340
  column: 47
53105
53341
  }
53106
53342
  }, {
53107
53343
  start: {
53108
- line: 70,
53344
+ line: 76,
53109
53345
  column: 51
53110
53346
  },
53111
53347
  end: {
53112
- line: 70,
53348
+ line: 76,
53113
53349
  column: 53
53114
53350
  }
53115
53351
  }],
53116
- line: 70
53352
+ line: 76
53117
53353
  },
53118
- "10": {
53354
+ "11": {
53119
53355
  loc: {
53120
53356
  start: {
53121
- line: 77,
53357
+ line: 83,
53122
53358
  column: 9
53123
53359
  },
53124
53360
  end: {
53125
- line: 77,
53361
+ line: 83,
53126
53362
  column: 63
53127
53363
  }
53128
53364
  },
53129
53365
  type: "cond-expr",
53130
53366
  locations: [{
53131
53367
  start: {
53132
- line: 77,
53368
+ line: 83,
53133
53369
  column: 39
53134
53370
  },
53135
53371
  end: {
53136
- line: 77,
53372
+ line: 83,
53137
53373
  column: 50
53138
53374
  }
53139
53375
  }, {
53140
53376
  start: {
53141
- line: 77,
53377
+ line: 83,
53142
53378
  column: 53
53143
53379
  },
53144
53380
  end: {
53145
- line: 77,
53381
+ line: 83,
53146
53382
  column: 63
53147
53383
  }
53148
53384
  }],
53149
- line: 77
53385
+ line: 83
53150
53386
  },
53151
- "11": {
53387
+ "12": {
53152
53388
  loc: {
53153
53389
  start: {
53154
- line: 84,
53390
+ line: 90,
53155
53391
  column: 4
53156
53392
  },
53157
53393
  end: {
53158
- line: 126,
53394
+ line: 132,
53159
53395
  column: 5
53160
53396
  }
53161
53397
  },
53162
53398
  type: "if",
53163
53399
  locations: [{
53164
53400
  start: {
53165
- line: 84,
53401
+ line: 90,
53166
53402
  column: 4
53167
53403
  },
53168
53404
  end: {
53169
- line: 126,
53405
+ line: 132,
53170
53406
  column: 5
53171
53407
  }
53172
53408
  }, {
@@ -53179,93 +53415,93 @@ function cov_1l3yhm377b() {
53179
53415
  column: undefined
53180
53416
  }
53181
53417
  }],
53182
- line: 84
53418
+ line: 90
53183
53419
  },
53184
- "12": {
53420
+ "13": {
53185
53421
  loc: {
53186
53422
  start: {
53187
- line: 86,
53423
+ line: 92,
53188
53424
  column: 6
53189
53425
  },
53190
53426
  end: {
53191
- line: 125,
53427
+ line: 131,
53192
53428
  column: 79
53193
53429
  }
53194
53430
  },
53195
53431
  type: "if",
53196
53432
  locations: [{
53197
53433
  start: {
53198
- line: 86,
53434
+ line: 92,
53199
53435
  column: 6
53200
53436
  },
53201
53437
  end: {
53202
- line: 125,
53438
+ line: 131,
53203
53439
  column: 79
53204
53440
  }
53205
53441
  }, {
53206
53442
  start: {
53207
- line: 99,
53443
+ line: 105,
53208
53444
  column: 13
53209
53445
  },
53210
53446
  end: {
53211
- line: 125,
53447
+ line: 131,
53212
53448
  column: 79
53213
53449
  }
53214
53450
  }],
53215
- line: 86
53451
+ line: 92
53216
53452
  },
53217
- "13": {
53453
+ "14": {
53218
53454
  loc: {
53219
53455
  start: {
53220
- line: 87,
53456
+ line: 93,
53221
53457
  column: 8
53222
53458
  },
53223
53459
  end: {
53224
- line: 88,
53460
+ line: 94,
53225
53461
  column: 45
53226
53462
  }
53227
53463
  },
53228
53464
  type: "binary-expr",
53229
53465
  locations: [{
53230
53466
  start: {
53231
- line: 87,
53467
+ line: 93,
53232
53468
  column: 8
53233
53469
  },
53234
53470
  end: {
53235
- line: 87,
53471
+ line: 93,
53236
53472
  column: 42
53237
53473
  }
53238
53474
  }, {
53239
53475
  start: {
53240
- line: 88,
53476
+ line: 94,
53241
53477
  column: 8
53242
53478
  },
53243
53479
  end: {
53244
- line: 88,
53480
+ line: 94,
53245
53481
  column: 45
53246
53482
  }
53247
53483
  }],
53248
- line: 87
53484
+ line: 93
53249
53485
  },
53250
- "14": {
53486
+ "15": {
53251
53487
  loc: {
53252
53488
  start: {
53253
- line: 91,
53489
+ line: 97,
53254
53490
  column: 8
53255
53491
  },
53256
53492
  end: {
53257
- line: 98,
53493
+ line: 104,
53258
53494
  column: 9
53259
53495
  }
53260
53496
  },
53261
53497
  type: "if",
53262
53498
  locations: [{
53263
53499
  start: {
53264
- line: 91,
53500
+ line: 97,
53265
53501
  column: 8
53266
53502
  },
53267
53503
  end: {
53268
- line: 98,
53504
+ line: 104,
53269
53505
  column: 9
53270
53506
  }
53271
53507
  }, {
@@ -53278,60 +53514,60 @@ function cov_1l3yhm377b() {
53278
53514
  column: undefined
53279
53515
  }
53280
53516
  }],
53281
- line: 91
53517
+ line: 97
53282
53518
  },
53283
- "15": {
53519
+ "16": {
53284
53520
  loc: {
53285
53521
  start: {
53286
- line: 99,
53522
+ line: 105,
53287
53523
  column: 13
53288
53524
  },
53289
53525
  end: {
53290
- line: 125,
53526
+ line: 131,
53291
53527
  column: 79
53292
53528
  }
53293
53529
  },
53294
53530
  type: "if",
53295
53531
  locations: [{
53296
53532
  start: {
53297
- line: 99,
53533
+ line: 105,
53298
53534
  column: 13
53299
53535
  },
53300
53536
  end: {
53301
- line: 125,
53537
+ line: 131,
53302
53538
  column: 79
53303
53539
  }
53304
53540
  }, {
53305
53541
  start: {
53306
- line: 111,
53542
+ line: 117,
53307
53543
  column: 13
53308
53544
  },
53309
53545
  end: {
53310
- line: 125,
53546
+ line: 131,
53311
53547
  column: 79
53312
53548
  }
53313
53549
  }],
53314
- line: 99
53550
+ line: 105
53315
53551
  },
53316
- "16": {
53552
+ "17": {
53317
53553
  loc: {
53318
53554
  start: {
53319
- line: 101,
53555
+ line: 107,
53320
53556
  column: 10
53321
53557
  },
53322
53558
  end: {
53323
- line: 109,
53559
+ line: 115,
53324
53560
  column: 11
53325
53561
  }
53326
53562
  },
53327
53563
  type: "if",
53328
53564
  locations: [{
53329
53565
  start: {
53330
- line: 101,
53566
+ line: 107,
53331
53567
  column: 10
53332
53568
  },
53333
53569
  end: {
53334
- line: 109,
53570
+ line: 115,
53335
53571
  column: 11
53336
53572
  }
53337
53573
  }, {
@@ -53344,159 +53580,159 @@ function cov_1l3yhm377b() {
53344
53580
  column: undefined
53345
53581
  }
53346
53582
  }],
53347
- line: 101
53583
+ line: 107
53348
53584
  },
53349
- "17": {
53585
+ "18": {
53350
53586
  loc: {
53351
53587
  start: {
53352
- line: 111,
53588
+ line: 117,
53353
53589
  column: 13
53354
53590
  },
53355
53591
  end: {
53356
- line: 125,
53592
+ line: 131,
53357
53593
  column: 79
53358
53594
  }
53359
53595
  },
53360
53596
  type: "if",
53361
53597
  locations: [{
53362
53598
  start: {
53363
- line: 111,
53599
+ line: 117,
53364
53600
  column: 13
53365
53601
  },
53366
53602
  end: {
53367
- line: 125,
53603
+ line: 131,
53368
53604
  column: 79
53369
53605
  }
53370
53606
  }, {
53371
53607
  start: {
53372
- line: 119,
53608
+ line: 125,
53373
53609
  column: 13
53374
53610
  },
53375
53611
  end: {
53376
- line: 125,
53612
+ line: 131,
53377
53613
  column: 79
53378
53614
  }
53379
53615
  }],
53380
- line: 111
53616
+ line: 117
53381
53617
  },
53382
- "18": {
53618
+ "19": {
53383
53619
  loc: {
53384
53620
  start: {
53385
- line: 114,
53621
+ line: 120,
53386
53622
  column: 17
53387
53623
  },
53388
53624
  end: {
53389
- line: 116,
53625
+ line: 122,
53390
53626
  column: 16
53391
53627
  }
53392
53628
  },
53393
53629
  type: "cond-expr",
53394
53630
  locations: [{
53395
53631
  start: {
53396
- line: 115,
53632
+ line: 121,
53397
53633
  column: 14
53398
53634
  },
53399
53635
  end: {
53400
- line: 115,
53636
+ line: 121,
53401
53637
  column: 67
53402
53638
  }
53403
53639
  }, {
53404
53640
  start: {
53405
- line: 116,
53641
+ line: 122,
53406
53642
  column: 14
53407
53643
  },
53408
53644
  end: {
53409
- line: 116,
53645
+ line: 122,
53410
53646
  column: 16
53411
53647
  }
53412
53648
  }],
53413
- line: 114
53649
+ line: 120
53414
53650
  },
53415
- "19": {
53651
+ "20": {
53416
53652
  loc: {
53417
53653
  start: {
53418
- line: 119,
53654
+ line: 125,
53419
53655
  column: 13
53420
53656
  },
53421
53657
  end: {
53422
- line: 125,
53658
+ line: 131,
53423
53659
  column: 79
53424
53660
  }
53425
53661
  },
53426
53662
  type: "if",
53427
53663
  locations: [{
53428
53664
  start: {
53429
- line: 119,
53665
+ line: 125,
53430
53666
  column: 13
53431
53667
  },
53432
53668
  end: {
53433
- line: 125,
53669
+ line: 131,
53434
53670
  column: 79
53435
53671
  }
53436
53672
  }, {
53437
53673
  start: {
53438
- line: 125,
53674
+ line: 131,
53439
53675
  column: 13
53440
53676
  },
53441
53677
  end: {
53442
- line: 125,
53678
+ line: 131,
53443
53679
  column: 79
53444
53680
  }
53445
53681
  }],
53446
- line: 119
53682
+ line: 125
53447
53683
  },
53448
- "20": {
53684
+ "21": {
53449
53685
  loc: {
53450
53686
  start: {
53451
- line: 122,
53687
+ line: 128,
53452
53688
  column: 17
53453
53689
  },
53454
53690
  end: {
53455
- line: 122,
53691
+ line: 128,
53456
53692
  column: 69
53457
53693
  }
53458
53694
  },
53459
53695
  type: "cond-expr",
53460
53696
  locations: [{
53461
53697
  start: {
53462
- line: 122,
53698
+ line: 128,
53463
53699
  column: 33
53464
53700
  },
53465
53701
  end: {
53466
- line: 122,
53702
+ line: 128,
53467
53703
  column: 62
53468
53704
  }
53469
53705
  }, {
53470
53706
  start: {
53471
- line: 122,
53707
+ line: 128,
53472
53708
  column: 65
53473
53709
  },
53474
53710
  end: {
53475
- line: 122,
53711
+ line: 128,
53476
53712
  column: 69
53477
53713
  }
53478
53714
  }],
53479
- line: 122
53715
+ line: 128
53480
53716
  },
53481
- "21": {
53717
+ "22": {
53482
53718
  loc: {
53483
53719
  start: {
53484
- line: 135,
53720
+ line: 141,
53485
53721
  column: 2
53486
53722
  },
53487
53723
  end: {
53488
- line: 141,
53724
+ line: 147,
53489
53725
  column: 3
53490
53726
  }
53491
53727
  },
53492
53728
  type: "if",
53493
53729
  locations: [{
53494
53730
  start: {
53495
- line: 135,
53731
+ line: 141,
53496
53732
  column: 2
53497
53733
  },
53498
53734
  end: {
53499
- line: 141,
53735
+ line: 147,
53500
53736
  column: 3
53501
53737
  }
53502
53738
  }, {
@@ -53509,40 +53745,40 @@ function cov_1l3yhm377b() {
53509
53745
  column: undefined
53510
53746
  }
53511
53747
  }],
53512
- line: 135
53748
+ line: 141
53513
53749
  },
53514
- "22": {
53750
+ "23": {
53515
53751
  loc: {
53516
53752
  start: {
53517
- line: 135,
53753
+ line: 141,
53518
53754
  column: 6
53519
53755
  },
53520
53756
  end: {
53521
- line: 135,
53757
+ line: 141,
53522
53758
  column: 30
53523
53759
  }
53524
53760
  },
53525
53761
  type: "binary-expr",
53526
53762
  locations: [{
53527
53763
  start: {
53528
- line: 135,
53764
+ line: 141,
53529
53765
  column: 6
53530
53766
  },
53531
53767
  end: {
53532
- line: 135,
53768
+ line: 141,
53533
53769
  column: 12
53534
53770
  }
53535
53771
  }, {
53536
53772
  start: {
53537
- line: 135,
53773
+ line: 141,
53538
53774
  column: 16
53539
53775
  },
53540
53776
  end: {
53541
- line: 135,
53777
+ line: 141,
53542
53778
  column: 30
53543
53779
  }
53544
53780
  }],
53545
- line: 135
53781
+ line: 141
53546
53782
  }
53547
53783
  },
53548
53784
  s: {
@@ -53598,7 +53834,9 @@ function cov_1l3yhm377b() {
53598
53834
  "49": 0,
53599
53835
  "50": 0,
53600
53836
  "51": 0,
53601
- "52": 0
53837
+ "52": 0,
53838
+ "53": 0,
53839
+ "54": 0
53602
53840
  },
53603
53841
  f: {
53604
53842
  "0": 0,
@@ -53620,7 +53858,7 @@ function cov_1l3yhm377b() {
53620
53858
  "2": [0],
53621
53859
  "3": [0],
53622
53860
  "4": [0, 0],
53623
- "5": [0, 0, 0, 0, 0, 0],
53861
+ "5": [0, 0, 0, 0, 0, 0, 0],
53624
53862
  "6": [0, 0],
53625
53863
  "7": [0, 0],
53626
53864
  "8": [0, 0],
@@ -53637,10 +53875,11 @@ function cov_1l3yhm377b() {
53637
53875
  "19": [0, 0],
53638
53876
  "20": [0, 0],
53639
53877
  "21": [0, 0],
53640
- "22": [0, 0]
53878
+ "22": [0, 0],
53879
+ "23": [0, 0]
53641
53880
  },
53642
53881
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
53643
- hash: "c5c25e3b86f6ca0d8f7d631a522c9f19b84c95df"
53882
+ hash: "43a1df0efd87b2eb39a9401cdbb55dc1f6ee1045"
53644
53883
  };
53645
53884
  var coverage = global[gcv] || (global[gcv] = {});
53646
53885
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -53703,7 +53942,6 @@ var generateInitValues = function generateInitValues(questions) {
53703
53942
  }
53704
53943
  cov_1l3yhm377b().s[11]++;
53705
53944
  questions.forEach(function (question) {
53706
- var _ref2, _valuesMap, _valuesMap$id;
53707
53945
  cov_1l3yhm377b().f[5]++;
53708
53946
  var _ref = (cov_1l3yhm377b().s[12]++, question),
53709
53947
  id = _ref.id,
@@ -53711,88 +53949,100 @@ var generateInitValues = function generateInitValues(questions) {
53711
53949
  optionsAttributes = _ref.optionsAttributes;
53712
53950
  cov_1l3yhm377b().s[13]++;
53713
53951
  switch (kind) {
53714
- case QUESTION_KIND.ADDITIONAL_GUESTS.value:
53952
+ case QUESTION_KIND.CONDITION.value:
53715
53953
  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:
53954
+ {
53955
+ var _ref2, _valuesMap, _valuesMap$id;
53956
+ cov_1l3yhm377b().s[14]++;
53957
+ 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);
53958
+ cov_1l3yhm377b().s[15]++;
53959
+ return;
53960
+ }
53961
+ case QUESTION_KIND.ADDITIONAL_GUESTS.value:
53721
53962
  cov_1l3yhm377b().b[5][1]++;
53722
53963
  {
53723
- var _valuesMap$id2, _valuesMap$id2$option;
53964
+ var _ref3, _valuesMap2, _valuesMap2$id;
53724
53965
  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) {
53966
+ 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]++, []);
53967
+ cov_1l3yhm377b().s[17]++;
53968
+ return;
53969
+ }
53970
+ case QUESTION_KIND.CHECKBOX.value:
53971
+ cov_1l3yhm377b().b[5][2]++;
53972
+ {
53973
+ var _valuesMap$id2, _valuesMap$id2$option;
53974
+ cov_1l3yhm377b().s[18]++;
53975
+ 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
53976
  var _valuesMap$id3, _valuesMap$id3$option;
53727
53977
  cov_1l3yhm377b().f[6]++;
53728
- cov_1l3yhm377b().s[17]++;
53978
+ cov_1l3yhm377b().s[19]++;
53729
53979
  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]++;
53980
+ })) : (cov_1l3yhm377b().b[8][1]++, new Array(optionsAttributes.length).fill(false));
53981
+ cov_1l3yhm377b().s[20]++;
53732
53982
  return;
53733
53983
  }
53734
53984
  case QUESTION_KIND.RADIO.value:
53735
- cov_1l3yhm377b().b[5][2]++;
53736
- case QUESTION_KIND.DROPDOWN.value:
53737
53985
  cov_1l3yhm377b().b[5][3]++;
53986
+ case QUESTION_KIND.DROPDOWN.value:
53987
+ cov_1l3yhm377b().b[5][4]++;
53738
53988
  {
53739
53989
  var _optionsAttributes$fi;
53740
- cov_1l3yhm377b().s[19]++;
53741
- initValues[id] = (cov_1l3yhm377b().b[8][0]++, (_optionsAttributes$fi = optionsAttributes.find(function (option) {
53990
+ cov_1l3yhm377b().s[21]++;
53991
+ initValues[id] = (cov_1l3yhm377b().b[9][0]++, (_optionsAttributes$fi = optionsAttributes.find(function (option) {
53742
53992
  var _valuesMap$id4, _valuesMap$id4$option;
53743
53993
  cov_1l3yhm377b().f[7]++;
53744
- cov_1l3yhm377b().s[20]++;
53994
+ cov_1l3yhm377b().s[22]++;
53745
53995
  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]++;
53996
+ })) === null || _optionsAttributes$fi === void 0 ? void 0 : _optionsAttributes$fi.id) || (cov_1l3yhm377b().b[9][1]++, "");
53997
+ cov_1l3yhm377b().s[23]++;
53748
53998
  return;
53749
53999
  }
53750
54000
  case QUESTION_KIND.TERMS.value:
53751
- cov_1l3yhm377b().b[5][4]++;
54001
+ cov_1l3yhm377b().b[5][5]++;
53752
54002
  {
53753
- cov_1l3yhm377b().s[22]++;
54003
+ cov_1l3yhm377b().s[24]++;
53754
54004
  initValues[id] = false;
53755
- cov_1l3yhm377b().s[23]++;
54005
+ cov_1l3yhm377b().s[25]++;
53756
54006
  return;
53757
54007
  }
53758
54008
  default:
53759
- cov_1l3yhm377b().b[5][5]++;
54009
+ cov_1l3yhm377b().b[5][6]++;
53760
54010
  {
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]++;
54011
+ var _ref4, _valuesMap3, _valuesMap3$id;
54012
+ cov_1l3yhm377b().s[26]++;
54013
+ 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]++, "");
54014
+ cov_1l3yhm377b().s[27]++;
53765
54015
  return;
53766
54016
  }
53767
54017
  }
53768
54018
  });
53769
- cov_1l3yhm377b().s[26]++;
53770
- return !isEmptyValues(localValues) ? (cov_1l3yhm377b().b[10][0]++, localValues) : (cov_1l3yhm377b().b[10][1]++, initValues);
54019
+ cov_1l3yhm377b().s[28]++;
54020
+ return !isEmptyValues(localValues) ? (cov_1l3yhm377b().b[11][0]++, localValues) : (cov_1l3yhm377b().b[11][1]++, initValues);
53771
54021
  };
53772
- cov_1l3yhm377b().s[27]++;
54022
+ cov_1l3yhm377b().s[29]++;
53773
54023
  var generateFormResponse = function generateFormResponse(response, questions) {
53774
54024
  cov_1l3yhm377b().f[8]++;
53775
- var formResponse = (cov_1l3yhm377b().s[28]++, []);
53776
- cov_1l3yhm377b().s[29]++;
54025
+ var formResponse = (cov_1l3yhm377b().s[30]++, []);
54026
+ cov_1l3yhm377b().s[31]++;
53777
54027
  questions.forEach(function (question) {
53778
54028
  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]++;
54029
+ var _ref5 = (cov_1l3yhm377b().s[32]++, question),
54030
+ id = _ref5.id,
54031
+ kind = _ref5.kind,
54032
+ optionsAttributes = _ref5.optionsAttributes;
54033
+ cov_1l3yhm377b().s[33]++;
53784
54034
  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]++;
54035
+ cov_1l3yhm377b().b[12][0]++;
54036
+ var _ref6 = (cov_1l3yhm377b().s[34]++, response),
54037
+ responseValue = _ref6[id];
54038
+ cov_1l3yhm377b().s[35]++;
54039
+ if ((cov_1l3yhm377b().b[14][0]++, kind === QUESTION_KIND.RADIO.value) || (cov_1l3yhm377b().b[14][1]++, kind === QUESTION_KIND.DROPDOWN.value)) {
54040
+ cov_1l3yhm377b().b[13][0]++;
54041
+ var option = (cov_1l3yhm377b().s[36]++, findById(responseValue, optionsAttributes));
54042
+ cov_1l3yhm377b().s[37]++;
53793
54043
  if (option) {
53794
- cov_1l3yhm377b().b[14][0]++;
53795
- cov_1l3yhm377b().s[36]++;
54044
+ cov_1l3yhm377b().b[15][0]++;
54045
+ cov_1l3yhm377b().s[38]++;
53796
54046
  formResponse.push({
53797
54047
  questionId: id,
53798
54048
  questionOptionId: option.id,
@@ -53800,21 +54050,21 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53800
54050
  kind: kind
53801
54051
  });
53802
54052
  } else {
53803
- cov_1l3yhm377b().b[14][1]++;
54053
+ cov_1l3yhm377b().b[15][1]++;
53804
54054
  }
53805
54055
  } else {
53806
- cov_1l3yhm377b().b[12][1]++;
53807
- cov_1l3yhm377b().s[37]++;
54056
+ cov_1l3yhm377b().b[13][1]++;
54057
+ cov_1l3yhm377b().s[39]++;
53808
54058
  if (kind === QUESTION_KIND.CHECKBOX.value) {
53809
- cov_1l3yhm377b().b[15][0]++;
53810
- cov_1l3yhm377b().s[38]++;
54059
+ cov_1l3yhm377b().b[16][0]++;
54060
+ cov_1l3yhm377b().s[40]++;
53811
54061
  responseValue.forEach(function (isChecked, index) {
53812
54062
  cov_1l3yhm377b().f[10]++;
53813
- cov_1l3yhm377b().s[39]++;
54063
+ cov_1l3yhm377b().s[41]++;
53814
54064
  if (isChecked) {
53815
- cov_1l3yhm377b().b[16][0]++;
53816
- var _option = (cov_1l3yhm377b().s[40]++, optionsAttributes[index]);
53817
- cov_1l3yhm377b().s[41]++;
54065
+ cov_1l3yhm377b().b[17][0]++;
54066
+ var _option = (cov_1l3yhm377b().s[42]++, optionsAttributes[index]);
54067
+ cov_1l3yhm377b().s[43]++;
53818
54068
  formResponse.push({
53819
54069
  questionId: id,
53820
54070
  questionOptionId: _option.id,
@@ -53822,34 +54072,34 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53822
54072
  kind: kind
53823
54073
  });
53824
54074
  } else {
53825
- cov_1l3yhm377b().b[16][1]++;
54075
+ cov_1l3yhm377b().b[17][1]++;
53826
54076
  }
53827
54077
  });
53828
54078
  } else {
53829
- cov_1l3yhm377b().b[15][1]++;
53830
- cov_1l3yhm377b().s[42]++;
54079
+ cov_1l3yhm377b().b[16][1]++;
54080
+ cov_1l3yhm377b().s[44]++;
53831
54081
  if (kind === QUESTION_KIND.PHONE.value) {
53832
- cov_1l3yhm377b().b[17][0]++;
53833
- cov_1l3yhm377b().s[43]++;
54082
+ cov_1l3yhm377b().b[18][0]++;
54083
+ cov_1l3yhm377b().s[45]++;
53834
54084
  formResponse.push({
53835
54085
  questionId: id,
53836
- value: responseValue ? (cov_1l3yhm377b().b[18][0]++, parsePhoneNumberFromString(responseValue).formatInternational()) : (cov_1l3yhm377b().b[18][1]++, ""),
54086
+ value: responseValue ? (cov_1l3yhm377b().b[19][0]++, parsePhoneNumberFromString(responseValue).formatInternational()) : (cov_1l3yhm377b().b[19][1]++, ""),
53837
54087
  kind: kind
53838
54088
  });
53839
54089
  } else {
53840
- cov_1l3yhm377b().b[17][1]++;
53841
- cov_1l3yhm377b().s[44]++;
54090
+ cov_1l3yhm377b().b[18][1]++;
54091
+ cov_1l3yhm377b().s[46]++;
53842
54092
  if (kind === QUESTION_KIND.ADDITIONAL_GUESTS.value) {
53843
- cov_1l3yhm377b().b[19][0]++;
53844
- cov_1l3yhm377b().s[45]++;
54093
+ cov_1l3yhm377b().b[20][0]++;
54094
+ cov_1l3yhm377b().s[47]++;
53845
54095
  formResponse.push({
53846
54096
  questionId: id,
53847
- value: responseValue ? (cov_1l3yhm377b().b[20][0]++, pluck("value", responseValue)) : (cov_1l3yhm377b().b[20][1]++, null),
54097
+ value: responseValue ? (cov_1l3yhm377b().b[21][0]++, pluck("value", responseValue)) : (cov_1l3yhm377b().b[21][1]++, null),
53848
54098
  kind: kind
53849
54099
  });
53850
54100
  } else {
53851
- cov_1l3yhm377b().b[19][1]++;
53852
- cov_1l3yhm377b().s[46]++;
54101
+ cov_1l3yhm377b().b[20][1]++;
54102
+ cov_1l3yhm377b().s[48]++;
53853
54103
  formResponse.push({
53854
54104
  questionId: id,
53855
54105
  value: responseValue,
@@ -53860,29 +54110,29 @@ var generateFormResponse = function generateFormResponse(response, questions) {
53860
54110
  }
53861
54111
  }
53862
54112
  } else {
53863
- cov_1l3yhm377b().b[11][1]++;
54113
+ cov_1l3yhm377b().b[12][1]++;
53864
54114
  }
53865
54115
  });
53866
- cov_1l3yhm377b().s[47]++;
54116
+ cov_1l3yhm377b().s[49]++;
53867
54117
  return formResponse;
53868
54118
  };
53869
- cov_1l3yhm377b().s[48]++;
54119
+ cov_1l3yhm377b().s[50]++;
53870
54120
  var hyphenize = function hyphenize(string) {
53871
54121
  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]++;
54122
+ var fallbackString = (cov_1l3yhm377b().s[51]++, "nui");
54123
+ cov_1l3yhm377b().s[52]++;
54124
+ if ((cov_1l3yhm377b().b[23][0]++, string) && (cov_1l3yhm377b().b[23][1]++, string.replace)) {
54125
+ cov_1l3yhm377b().b[22][0]++;
54126
+ cov_1l3yhm377b().s[53]++;
53877
54127
  return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
53878
54128
  } else {
53879
- cov_1l3yhm377b().b[21][1]++;
54129
+ cov_1l3yhm377b().b[22][1]++;
53880
54130
  }
53881
- cov_1l3yhm377b().s[52]++;
54131
+ cov_1l3yhm377b().s[54]++;
53882
54132
  return fallbackString;
53883
54133
  };
53884
54134
 
53885
- var _excluded$7 = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "labelProps"];
54135
+ var _excluded$8 = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "labelProps"];
53886
54136
  function cov_ic8t6kb5c() {
53887
54137
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/MultipleEmail/index.jsx";
53888
54138
  var hash = "544673bb225987a32143d318f81ed27bb2496821";
@@ -55487,7 +55737,7 @@ var MultiEmailInput = (cov_ic8t6kb5c().s[0]++, /*#__PURE__*/forwardRef(function
55487
55737
  _ref$maxHeight = _ref.maxHeight,
55488
55738
  maxHeight = _ref$maxHeight === void 0 ? (cov_ic8t6kb5c().b[8][0]++, 200) : _ref$maxHeight,
55489
55739
  labelProps = _ref.labelProps,
55490
- otherProps = _objectWithoutProperties$1(_ref, _excluded$7);
55740
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$8);
55491
55741
  cov_ic8t6kb5c().f[0]++;
55492
55742
  var _ref2 = (cov_ic8t6kb5c().s[1]++, useState("")),
55493
55743
  _ref3 = _slicedToArray$6(_ref2, 2),
@@ -58346,6 +58596,394 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
58346
58596
  })));
58347
58597
  };
58348
58598
 
58599
+ var _excluded$7 = ["name", "label", "error", "value"];
58600
+ function cov_1gez8dqmnr() {
58601
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Condition.jsx";
58602
+ var hash = "328a2f02a8ce55ca9c1107c4db4abe7d241df713";
58603
+ var global = new Function("return this")();
58604
+ var gcv = "__coverage__";
58605
+ var coverageData = {
58606
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Condition.jsx",
58607
+ statementMap: {
58608
+ "0": {
58609
+ start: {
58610
+ line: 3,
58611
+ column: 18
58612
+ },
58613
+ end: {
58614
+ line: 24,
58615
+ column: 1
58616
+ }
58617
+ },
58618
+ "1": {
58619
+ start: {
58620
+ line: 4,
58621
+ column: 2
58622
+ },
58623
+ end: {
58624
+ line: 23,
58625
+ column: 8
58626
+ }
58627
+ }
58628
+ },
58629
+ fnMap: {
58630
+ "0": {
58631
+ name: "(anonymous_0)",
58632
+ decl: {
58633
+ start: {
58634
+ line: 3,
58635
+ column: 18
58636
+ },
58637
+ end: {
58638
+ line: 3,
58639
+ column: 19
58640
+ }
58641
+ },
58642
+ loc: {
58643
+ start: {
58644
+ line: 4,
58645
+ column: 2
58646
+ },
58647
+ end: {
58648
+ line: 23,
58649
+ column: 8
58650
+ }
58651
+ },
58652
+ line: 4
58653
+ }
58654
+ },
58655
+ branchMap: {
58656
+ "0": {
58657
+ loc: {
58658
+ start: {
58659
+ line: 20,
58660
+ column: 5
58661
+ },
58662
+ end: {
58663
+ line: 22,
58664
+ column: 5
58665
+ }
58666
+ },
58667
+ type: "binary-expr",
58668
+ locations: [{
58669
+ start: {
58670
+ line: 20,
58671
+ column: 5
58672
+ },
58673
+ end: {
58674
+ line: 20,
58675
+ column: 12
58676
+ }
58677
+ }, {
58678
+ start: {
58679
+ line: 20,
58680
+ column: 16
58681
+ },
58682
+ end: {
58683
+ line: 20,
58684
+ column: 41
58685
+ }
58686
+ }, {
58687
+ start: {
58688
+ line: 21,
58689
+ column: 6
58690
+ },
58691
+ end: {
58692
+ line: 21,
58693
+ column: 63
58694
+ }
58695
+ }],
58696
+ line: 20
58697
+ }
58698
+ },
58699
+ s: {
58700
+ "0": 0,
58701
+ "1": 0
58702
+ },
58703
+ f: {
58704
+ "0": 0
58705
+ },
58706
+ b: {
58707
+ "0": [0, 0, 0]
58708
+ },
58709
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
58710
+ hash: "328a2f02a8ce55ca9c1107c4db4abe7d241df713"
58711
+ };
58712
+ var coverage = global[gcv] || (global[gcv] = {});
58713
+ if (!coverage[path] || coverage[path].hash !== hash) {
58714
+ coverage[path] = coverageData;
58715
+ }
58716
+ var actualCoverage = coverage[path];
58717
+ {
58718
+ // @ts-ignore
58719
+ cov_1gez8dqmnr = function () {
58720
+ return actualCoverage;
58721
+ };
58722
+ }
58723
+ return actualCoverage;
58724
+ }
58725
+ cov_1gez8dqmnr();
58726
+ cov_1gez8dqmnr().s[0]++;
58727
+ var Condition = function Condition(_ref, ref) {
58728
+ var name = _ref.name,
58729
+ label = _ref.label,
58730
+ error = _ref.error,
58731
+ value = _ref.value,
58732
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$7);
58733
+ cov_1gez8dqmnr().f[0]++;
58734
+ cov_1gez8dqmnr().s[1]++;
58735
+ return /*#__PURE__*/React__default.createElement("div", {
58736
+ className: "neeto-form-engine-terms"
58737
+ }, /*#__PURE__*/React__default.createElement("div", {
58738
+ className: "neeto-form-engine-choice"
58739
+ }, /*#__PURE__*/React__default.createElement("input", _extends$9({
58740
+ required: true,
58741
+ "aria-invalid": !!error,
58742
+ id: "condition-".concat(name),
58743
+ name: name,
58744
+ ref: ref,
58745
+ type: "checkbox",
58746
+ value: value
58747
+ }, otherProps)), /*#__PURE__*/React__default.createElement("label", {
58748
+ className: "neeto-form-engine-label",
58749
+ htmlFor: "condition-".concat(name)
58750
+ }, 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", {
58751
+ className: "neeto-form-engine-input__error"
58752
+ }, error)));
58753
+ };
58754
+ var Condition$1 = /*#__PURE__*/forwardRef(Condition);
58755
+
58756
+ function cov_2lhrgkh8e4() {
58757
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/ConditionField.jsx";
58758
+ var hash = "9dd92df1361b93030c12800c1adefa902b7b6916";
58759
+ var global = new Function("return this")();
58760
+ var gcv = "__coverage__";
58761
+ var coverageData = {
58762
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/ConditionField.jsx",
58763
+ statementMap: {
58764
+ "0": {
58765
+ start: {
58766
+ line: 9,
58767
+ column: 23
58768
+ },
58769
+ end: {
58770
+ line: 32,
58771
+ column: 1
58772
+ }
58773
+ },
58774
+ "1": {
58775
+ start: {
58776
+ line: 10,
58777
+ column: 56
58778
+ },
58779
+ end: {
58780
+ line: 10,
58781
+ column: 64
58782
+ }
58783
+ },
58784
+ "2": {
58785
+ start: {
58786
+ line: 12,
58787
+ column: 2
58788
+ },
58789
+ end: {
58790
+ line: 31,
58791
+ column: 4
58792
+ }
58793
+ },
58794
+ "3": {
58795
+ start: {
58796
+ line: 23,
58797
+ column: 8
58798
+ },
58799
+ end: {
58800
+ line: 28,
58801
+ column: 10
58802
+ }
58803
+ }
58804
+ },
58805
+ fnMap: {
58806
+ "0": {
58807
+ name: "(anonymous_0)",
58808
+ decl: {
58809
+ start: {
58810
+ line: 9,
58811
+ column: 23
58812
+ },
58813
+ end: {
58814
+ line: 9,
58815
+ column: 24
58816
+ }
58817
+ },
58818
+ loc: {
58819
+ start: {
58820
+ line: 9,
58821
+ column: 58
58822
+ },
58823
+ end: {
58824
+ line: 32,
58825
+ column: 1
58826
+ }
58827
+ },
58828
+ line: 9
58829
+ },
58830
+ "1": {
58831
+ name: "(anonymous_1)",
58832
+ decl: {
58833
+ start: {
58834
+ line: 22,
58835
+ column: 7
58836
+ },
58837
+ end: {
58838
+ line: 22,
58839
+ column: 8
58840
+ }
58841
+ },
58842
+ loc: {
58843
+ start: {
58844
+ line: 23,
58845
+ column: 8
58846
+ },
58847
+ end: {
58848
+ line: 28,
58849
+ column: 10
58850
+ }
58851
+ },
58852
+ line: 23
58853
+ }
58854
+ },
58855
+ branchMap: {
58856
+ "0": {
58857
+ loc: {
58858
+ start: {
58859
+ line: 14,
58860
+ column: 12
58861
+ },
58862
+ end: {
58863
+ line: 14,
58864
+ column: 26
58865
+ }
58866
+ },
58867
+ type: "binary-expr",
58868
+ locations: [{
58869
+ start: {
58870
+ line: 14,
58871
+ column: 12
58872
+ },
58873
+ end: {
58874
+ line: 14,
58875
+ column: 16
58876
+ }
58877
+ }, {
58878
+ start: {
58879
+ line: 14,
58880
+ column: 20
58881
+ },
58882
+ end: {
58883
+ line: 14,
58884
+ column: 26
58885
+ }
58886
+ }],
58887
+ line: 14
58888
+ },
58889
+ "1": {
58890
+ loc: {
58891
+ start: {
58892
+ line: 25,
58893
+ column: 17
58894
+ },
58895
+ end: {
58896
+ line: 25,
58897
+ column: 47
58898
+ }
58899
+ },
58900
+ type: "cond-expr",
58901
+ locations: [{
58902
+ start: {
58903
+ line: 25,
58904
+ column: 32
58905
+ },
58906
+ end: {
58907
+ line: 25,
58908
+ column: 42
58909
+ }
58910
+ }, {
58911
+ start: {
58912
+ line: 25,
58913
+ column: 45
58914
+ },
58915
+ end: {
58916
+ line: 25,
58917
+ column: 47
58918
+ }
58919
+ }],
58920
+ line: 25
58921
+ }
58922
+ },
58923
+ s: {
58924
+ "0": 0,
58925
+ "1": 0,
58926
+ "2": 0,
58927
+ "3": 0
58928
+ },
58929
+ f: {
58930
+ "0": 0,
58931
+ "1": 0
58932
+ },
58933
+ b: {
58934
+ "0": [0, 0],
58935
+ "1": [0, 0]
58936
+ },
58937
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
58938
+ hash: "9dd92df1361b93030c12800c1adefa902b7b6916"
58939
+ };
58940
+ var coverage = global[gcv] || (global[gcv] = {});
58941
+ if (!coverage[path] || coverage[path].hash !== hash) {
58942
+ coverage[path] = coverageData;
58943
+ }
58944
+ var actualCoverage = coverage[path];
58945
+ {
58946
+ // @ts-ignore
58947
+ cov_2lhrgkh8e4 = function () {
58948
+ return actualCoverage;
58949
+ };
58950
+ }
58951
+ return actualCoverage;
58952
+ }
58953
+ cov_2lhrgkh8e4();
58954
+ cov_2lhrgkh8e4().s[0]++;
58955
+ var ConditionField = function ConditionField(_ref) {
58956
+ var question = _ref.question,
58957
+ customValidator = _ref.customValidator;
58958
+ cov_2lhrgkh8e4().f[0]++;
58959
+ var _ref2 = (cov_2lhrgkh8e4().s[1]++, question),
58960
+ name = _ref2.id,
58961
+ kind = _ref2.kind,
58962
+ label = _ref2.label,
58963
+ isRequired = _ref2.isRequired,
58964
+ nodeId = _ref2.nodeId;
58965
+ cov_2lhrgkh8e4().s[2]++;
58966
+ return /*#__PURE__*/React__default.createElement(Field, {
58967
+ name: (cov_2lhrgkh8e4().b[0][0]++, name) || (cov_2lhrgkh8e4().b[0][1]++, nodeId),
58968
+ validate: validateFieldValue({
58969
+ kind: kind,
58970
+ label: label,
58971
+ isRequired: isRequired,
58972
+ customValidator: customValidator
58973
+ })
58974
+ }, function (_ref3) {
58975
+ var meta = _ref3.meta,
58976
+ field = _ref3.field;
58977
+ cov_2lhrgkh8e4().f[1]++;
58978
+ cov_2lhrgkh8e4().s[3]++;
58979
+ return /*#__PURE__*/React__default.createElement(Condition$1, _extends$9({}, field, {
58980
+ error: meta.touched ? (cov_2lhrgkh8e4().b[1][0]++, meta.error) : (cov_2lhrgkh8e4().b[1][1]++, ""),
58981
+ label: getLabel$1(label, isRequired),
58982
+ name: name
58983
+ }));
58984
+ });
58985
+ };
58986
+
58349
58987
  var dayjs = {};
58350
58988
 
58351
58989
  var interopRequireDefault = {exports: {}};
@@ -64684,7 +65322,7 @@ var TextField = function TextField(_ref) {
64684
65322
  var _ref2;
64685
65323
  function cov_1cenqfav07() {
64686
65324
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
64687
- var hash = "6a6ab8c31cb2f74800019aa5dc2d515fe1e639ee";
65325
+ var hash = "d9edf3cbe38056376db981c1fc0f74095f278145";
64688
65326
  var global = new Function("return this")();
64689
65327
  var gcv = "__coverage__";
64690
65328
  var coverageData = {
@@ -64692,21 +65330,21 @@ function cov_1cenqfav07() {
64692
65330
  statementMap: {
64693
65331
  "0": {
64694
65332
  start: {
64695
- line: 17,
65333
+ line: 18,
64696
65334
  column: 41
64697
65335
  },
64698
65336
  end: {
64699
- line: 35,
65337
+ line: 37,
64700
65338
  column: 1
64701
65339
  }
64702
65340
  },
64703
65341
  "1": {
64704
65342
  start: {
64705
- line: 28,
65343
+ line: 29,
64706
65344
  column: 4
64707
65345
  },
64708
65346
  end: {
64709
- line: 28,
65347
+ line: 29,
64710
65348
  column: 46
64711
65349
  }
64712
65350
  }
@@ -64716,25 +65354,25 @@ function cov_1cenqfav07() {
64716
65354
  name: "(anonymous_0)",
64717
65355
  decl: {
64718
65356
  start: {
64719
- line: 27,
65357
+ line: 28,
64720
65358
  column: 34
64721
65359
  },
64722
65360
  end: {
64723
- line: 27,
65361
+ line: 28,
64724
65362
  column: 35
64725
65363
  }
64726
65364
  },
64727
65365
  loc: {
64728
65366
  start: {
64729
- line: 28,
65367
+ line: 29,
64730
65368
  column: 4
64731
65369
  },
64732
65370
  end: {
64733
- line: 28,
65371
+ line: 29,
64734
65372
  column: 46
64735
65373
  }
64736
65374
  },
64737
- line: 28
65375
+ line: 29
64738
65376
  }
64739
65377
  },
64740
65378
  branchMap: {},
@@ -64747,7 +65385,7 @@ function cov_1cenqfav07() {
64747
65385
  },
64748
65386
  b: {},
64749
65387
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
64750
- hash: "6a6ab8c31cb2f74800019aa5dc2d515fe1e639ee"
65388
+ hash: "d9edf3cbe38056376db981c1fc0f74095f278145"
64751
65389
  };
64752
65390
  var coverage = global[gcv] || (global[gcv] = {});
64753
65391
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -64770,7 +65408,7 @@ var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _definePr
64770
65408
  return /*#__PURE__*/React__default.createElement(EditorContent, {
64771
65409
  content: question.label
64772
65410
  });
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));
65411
+ }), _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
65412
 
64775
65413
  function cov_zmqolo6ug() {
64776
65414
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/utils.js";
@@ -70844,7 +71482,7 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
70844
71482
 
70845
71483
  function cov_29xlle89ll() {
70846
71484
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Submissions/Submission.jsx";
70847
- var hash = "c62c7cdd0a05bcdbc09bb134860adb35bde42935";
71485
+ var hash = "5bbf5faa11069095565da90858226edff2576be6";
70848
71486
  var global = new Function("return this")();
70849
71487
  var gcv = "__coverage__";
70850
71488
  var coverageData = {
@@ -70896,7 +71534,7 @@ function cov_29xlle89ll() {
70896
71534
  column: 17
70897
71535
  },
70898
71536
  end: {
70899
- line: 35,
71537
+ line: 39,
70900
71538
  column: 1
70901
71539
  }
70902
71540
  },
@@ -70946,137 +71584,157 @@ function cov_29xlle89ll() {
70946
71584
  column: 2
70947
71585
  },
70948
71586
  end: {
70949
- line: 34,
70950
- column: 15
71587
+ line: 36,
71588
+ column: 3
70951
71589
  }
70952
71590
  },
70953
71591
  "10": {
70954
71592
  start: {
70955
- line: 37,
71593
+ line: 35,
71594
+ column: 4
71595
+ },
71596
+ end: {
71597
+ line: 35,
71598
+ column: 52
71599
+ }
71600
+ },
71601
+ "11": {
71602
+ start: {
71603
+ line: 38,
71604
+ column: 2
71605
+ },
71606
+ end: {
71607
+ line: 38,
71608
+ column: 15
71609
+ }
71610
+ },
71611
+ "12": {
71612
+ start: {
71613
+ line: 41,
70956
71614
  column: 19
70957
71615
  },
70958
71616
  end: {
70959
- line: 94,
71617
+ line: 98,
70960
71618
  column: 1
70961
71619
  }
70962
71620
  },
70963
- "11": {
71621
+ "13": {
70964
71622
  start: {
70965
- line: 44,
71623
+ line: 48,
70966
71624
  column: 62
70967
71625
  },
70968
71626
  end: {
70969
- line: 48,
71627
+ line: 52,
70970
71628
  column: 4
70971
71629
  }
70972
71630
  },
70973
- "12": {
71631
+ "14": {
70974
71632
  start: {
70975
- line: 50,
71633
+ line: 54,
70976
71634
  column: 24
70977
71635
  },
70978
71636
  end: {
70979
- line: 50,
71637
+ line: 54,
70980
71638
  column: 34
70981
71639
  }
70982
71640
  },
70983
- "13": {
71641
+ "15": {
70984
71642
  start: {
70985
- line: 52,
71643
+ line: 56,
70986
71644
  column: 31
70987
71645
  },
70988
71646
  end: {
70989
- line: 68,
71647
+ line: 72,
70990
71648
  column: 3
70991
71649
  }
70992
71650
  },
70993
- "14": {
71651
+ "16": {
70994
71652
  start: {
70995
- line: 54,
71653
+ line: 58,
70996
71654
  column: 6
70997
71655
  },
70998
71656
  end: {
70999
- line: 58,
71657
+ line: 62,
71000
71658
  column: 7
71001
71659
  }
71002
71660
  },
71003
- "15": {
71661
+ "17": {
71004
71662
  start: {
71005
- line: 55,
71663
+ line: 59,
71006
71664
  column: 8
71007
71665
  },
71008
71666
  end: {
71009
- line: 55,
71667
+ line: 59,
71010
71668
  column: 69
71011
71669
  }
71012
71670
  },
71013
- "16": {
71671
+ "18": {
71014
71672
  start: {
71015
- line: 56,
71673
+ line: 60,
71016
71674
  column: 13
71017
71675
  },
71018
71676
  end: {
71019
- line: 58,
71677
+ line: 62,
71020
71678
  column: 7
71021
71679
  }
71022
71680
  },
71023
- "17": {
71681
+ "19": {
71024
71682
  start: {
71025
- line: 57,
71683
+ line: 61,
71026
71684
  column: 8
71027
71685
  },
71028
71686
  end: {
71029
- line: 57,
71687
+ line: 61,
71030
71688
  column: 55
71031
71689
  }
71032
71690
  },
71033
- "18": {
71691
+ "20": {
71034
71692
  start: {
71035
- line: 60,
71693
+ line: 64,
71036
71694
  column: 6
71037
71695
  },
71038
71696
  end: {
71039
- line: 66,
71697
+ line: 70,
71040
71698
  column: 8
71041
71699
  }
71042
71700
  },
71043
- "19": {
71701
+ "21": {
71044
71702
  start: {
71045
- line: 70,
71703
+ line: 74,
71046
71704
  column: 2
71047
71705
  },
71048
71706
  end: {
71049
- line: 76,
71707
+ line: 80,
71050
71708
  column: 3
71051
71709
  }
71052
71710
  },
71053
- "20": {
71711
+ "22": {
71054
71712
  start: {
71055
- line: 71,
71713
+ line: 75,
71056
71714
  column: 4
71057
71715
  },
71058
71716
  end: {
71059
- line: 75,
71717
+ line: 79,
71060
71718
  column: 6
71061
71719
  }
71062
71720
  },
71063
- "21": {
71721
+ "23": {
71064
71722
  start: {
71065
- line: 78,
71723
+ line: 82,
71066
71724
  column: 2
71067
71725
  },
71068
71726
  end: {
71069
- line: 93,
71727
+ line: 97,
71070
71728
  column: 4
71071
71729
  }
71072
71730
  },
71073
- "22": {
71731
+ "24": {
71074
71732
  start: {
71075
- line: 85,
71733
+ line: 89,
71076
71734
  column: 8
71077
71735
  },
71078
71736
  end: {
71079
- line: 90,
71737
+ line: 94,
71080
71738
  column: 14
71081
71739
  }
71082
71740
  }
@@ -71124,7 +71782,7 @@ function cov_29xlle89ll() {
71124
71782
  column: 38
71125
71783
  },
71126
71784
  end: {
71127
- line: 35,
71785
+ line: 39,
71128
71786
  column: 1
71129
71787
  }
71130
71788
  },
@@ -71134,73 +71792,73 @@ function cov_29xlle89ll() {
71134
71792
  name: "(anonymous_2)",
71135
71793
  decl: {
71136
71794
  start: {
71137
- line: 37,
71795
+ line: 41,
71138
71796
  column: 19
71139
71797
  },
71140
71798
  end: {
71141
- line: 37,
71799
+ line: 41,
71142
71800
  column: 20
71143
71801
  }
71144
71802
  },
71145
71803
  loc: {
71146
71804
  start: {
71147
- line: 43,
71805
+ line: 47,
71148
71806
  column: 6
71149
71807
  },
71150
71808
  end: {
71151
- line: 94,
71809
+ line: 98,
71152
71810
  column: 1
71153
71811
  }
71154
71812
  },
71155
- line: 43
71813
+ line: 47
71156
71814
  },
71157
71815
  "3": {
71158
71816
  name: "(anonymous_3)",
71159
71817
  decl: {
71160
71818
  start: {
71161
- line: 52,
71819
+ line: 56,
71162
71820
  column: 31
71163
71821
  },
71164
71822
  end: {
71165
- line: 52,
71823
+ line: 56,
71166
71824
  column: 32
71167
71825
  }
71168
71826
  },
71169
71827
  loc: {
71170
71828
  start: {
71171
- line: 52,
71829
+ line: 56,
71172
71830
  column: 48
71173
71831
  },
71174
71832
  end: {
71175
- line: 68,
71833
+ line: 72,
71176
71834
  column: 3
71177
71835
  }
71178
71836
  },
71179
- line: 52
71837
+ line: 56
71180
71838
  },
71181
71839
  "4": {
71182
71840
  name: "(anonymous_4)",
71183
71841
  decl: {
71184
71842
  start: {
71185
- line: 84,
71843
+ line: 88,
71186
71844
  column: 21
71187
71845
  },
71188
71846
  end: {
71189
- line: 84,
71847
+ line: 88,
71190
71848
  column: 22
71191
71849
  }
71192
71850
  },
71193
71851
  loc: {
71194
71852
  start: {
71195
- line: 85,
71853
+ line: 89,
71196
71854
  column: 8
71197
71855
  },
71198
71856
  end: {
71199
- line: 90,
71857
+ line: 94,
71200
71858
  column: 14
71201
71859
  }
71202
71860
  },
71203
- line: 85
71861
+ line: 89
71204
71862
  }
71205
71863
  },
71206
71864
  branchMap: {
@@ -71339,232 +71997,298 @@ function cov_29xlle89ll() {
71339
71997
  "4": {
71340
71998
  loc: {
71341
71999
  start: {
71342
- line: 38,
72000
+ line: 34,
71343
72001
  column: 2
71344
72002
  },
71345
72003
  end: {
71346
- line: 38,
72004
+ line: 36,
72005
+ column: 3
72006
+ }
72007
+ },
72008
+ type: "if",
72009
+ locations: [{
72010
+ start: {
72011
+ line: 34,
72012
+ column: 2
72013
+ },
72014
+ end: {
72015
+ line: 36,
72016
+ column: 3
72017
+ }
72018
+ }, {
72019
+ start: {
72020
+ line: undefined,
72021
+ column: undefined
72022
+ },
72023
+ end: {
72024
+ line: undefined,
72025
+ column: undefined
72026
+ }
72027
+ }],
72028
+ line: 34
72029
+ },
72030
+ "5": {
72031
+ loc: {
72032
+ start: {
72033
+ line: 35,
72034
+ column: 11
72035
+ },
72036
+ end: {
72037
+ line: 35,
72038
+ column: 51
72039
+ }
72040
+ },
72041
+ type: "cond-expr",
72042
+ locations: [{
72043
+ start: {
72044
+ line: 35,
72045
+ column: 19
72046
+ },
72047
+ end: {
72048
+ line: 35,
72049
+ column: 34
72050
+ }
72051
+ }, {
72052
+ start: {
72053
+ line: 35,
72054
+ column: 37
72055
+ },
72056
+ end: {
72057
+ line: 35,
72058
+ column: 51
72059
+ }
72060
+ }],
72061
+ line: 35
72062
+ },
72063
+ "6": {
72064
+ loc: {
72065
+ start: {
72066
+ line: 42,
72067
+ column: 2
72068
+ },
72069
+ end: {
72070
+ line: 42,
71347
72071
  column: 13
71348
72072
  }
71349
72073
  },
71350
72074
  type: "default-arg",
71351
72075
  locations: [{
71352
72076
  start: {
71353
- line: 38,
72077
+ line: 42,
71354
72078
  column: 11
71355
72079
  },
71356
72080
  end: {
71357
- line: 38,
72081
+ line: 42,
71358
72082
  column: 13
71359
72083
  }
71360
72084
  }],
71361
- line: 38
72085
+ line: 42
71362
72086
  },
71363
- "5": {
72087
+ "7": {
71364
72088
  loc: {
71365
72089
  start: {
71366
- line: 39,
72090
+ line: 43,
71367
72091
  column: 2
71368
72092
  },
71369
72093
  end: {
71370
- line: 39,
72094
+ line: 43,
71371
72095
  column: 19
71372
72096
  }
71373
72097
  },
71374
72098
  type: "default-arg",
71375
72099
  locations: [{
71376
72100
  start: {
71377
- line: 39,
72101
+ line: 43,
71378
72102
  column: 17
71379
72103
  },
71380
72104
  end: {
71381
- line: 39,
72105
+ line: 43,
71382
72106
  column: 19
71383
72107
  }
71384
72108
  }],
71385
- line: 39
72109
+ line: 43
71386
72110
  },
71387
- "6": {
72111
+ "8": {
71388
72112
  loc: {
71389
72113
  start: {
71390
- line: 40,
72114
+ line: 44,
71391
72115
  column: 2
71392
72116
  },
71393
72117
  end: {
71394
- line: 40,
72118
+ line: 44,
71395
72119
  column: 16
71396
72120
  }
71397
72121
  },
71398
72122
  type: "default-arg",
71399
72123
  locations: [{
71400
72124
  start: {
71401
- line: 40,
72125
+ line: 44,
71402
72126
  column: 14
71403
72127
  },
71404
72128
  end: {
71405
- line: 40,
72129
+ line: 44,
71406
72130
  column: 16
71407
72131
  }
71408
72132
  }],
71409
- line: 40
72133
+ line: 44
71410
72134
  },
71411
- "7": {
72135
+ "9": {
71412
72136
  loc: {
71413
72137
  start: {
71414
- line: 41,
72138
+ line: 45,
71415
72139
  column: 2
71416
72140
  },
71417
72141
  end: {
71418
- line: 41,
72142
+ line: 45,
71419
72143
  column: 25
71420
72144
  }
71421
72145
  },
71422
72146
  type: "default-arg",
71423
72147
  locations: [{
71424
72148
  start: {
71425
- line: 41,
72149
+ line: 45,
71426
72150
  column: 23
71427
72151
  },
71428
72152
  end: {
71429
- line: 41,
72153
+ line: 45,
71430
72154
  column: 25
71431
72155
  }
71432
72156
  }],
71433
- line: 41
72157
+ line: 45
71434
72158
  },
71435
- "8": {
72159
+ "10": {
71436
72160
  loc: {
71437
72161
  start: {
71438
- line: 42,
72162
+ line: 46,
71439
72163
  column: 2
71440
72164
  },
71441
72165
  end: {
71442
- line: 42,
72166
+ line: 46,
71443
72167
  column: 18
71444
72168
  }
71445
72169
  },
71446
72170
  type: "default-arg",
71447
72171
  locations: [{
71448
72172
  start: {
71449
- line: 42,
72173
+ line: 46,
71450
72174
  column: 16
71451
72175
  },
71452
72176
  end: {
71453
- line: 42,
72177
+ line: 46,
71454
72178
  column: 18
71455
72179
  }
71456
72180
  }],
71457
- line: 42
72181
+ line: 46
71458
72182
  },
71459
- "9": {
72183
+ "11": {
71460
72184
  loc: {
71461
72185
  start: {
71462
- line: 44,
72186
+ line: 48,
71463
72187
  column: 16
71464
72188
  },
71465
72189
  end: {
71466
- line: 44,
72190
+ line: 48,
71467
72191
  column: 46
71468
72192
  }
71469
72193
  },
71470
72194
  type: "default-arg",
71471
72195
  locations: [{
71472
72196
  start: {
71473
- line: 44,
72197
+ line: 48,
71474
72198
  column: 29
71475
72199
  },
71476
72200
  end: {
71477
- line: 44,
72201
+ line: 48,
71478
72202
  column: 46
71479
72203
  }
71480
72204
  }],
71481
- line: 44
72205
+ line: 48
71482
72206
  },
71483
- "10": {
72207
+ "12": {
71484
72208
  loc: {
71485
72209
  start: {
71486
- line: 47,
72210
+ line: 51,
71487
72211
  column: 16
71488
72212
  },
71489
72213
  end: {
71490
- line: 47,
72214
+ line: 51,
71491
72215
  column: 38
71492
72216
  }
71493
72217
  },
71494
72218
  type: "binary-expr",
71495
72219
  locations: [{
71496
72220
  start: {
71497
- line: 47,
72221
+ line: 51,
71498
72222
  column: 16
71499
72223
  },
71500
72224
  end: {
71501
- line: 47,
72225
+ line: 51,
71502
72226
  column: 22
71503
72227
  }
71504
72228
  }, {
71505
72229
  start: {
71506
- line: 47,
72230
+ line: 51,
71507
72231
  column: 26
71508
72232
  },
71509
72233
  end: {
71510
- line: 47,
72234
+ line: 51,
71511
72235
  column: 38
71512
72236
  }
71513
72237
  }],
71514
- line: 47
72238
+ line: 51
71515
72239
  },
71516
- "11": {
72240
+ "13": {
71517
72241
  loc: {
71518
72242
  start: {
71519
- line: 54,
72243
+ line: 58,
71520
72244
  column: 6
71521
72245
  },
71522
72246
  end: {
71523
- line: 58,
72247
+ line: 62,
71524
72248
  column: 7
71525
72249
  }
71526
72250
  },
71527
72251
  type: "if",
71528
72252
  locations: [{
71529
72253
  start: {
71530
- line: 54,
72254
+ line: 58,
71531
72255
  column: 6
71532
72256
  },
71533
72257
  end: {
71534
- line: 58,
72258
+ line: 62,
71535
72259
  column: 7
71536
72260
  }
71537
72261
  }, {
71538
72262
  start: {
71539
- line: 56,
72263
+ line: 60,
71540
72264
  column: 13
71541
72265
  },
71542
72266
  end: {
71543
- line: 58,
72267
+ line: 62,
71544
72268
  column: 7
71545
72269
  }
71546
72270
  }],
71547
- line: 54
72271
+ line: 58
71548
72272
  },
71549
- "12": {
72273
+ "14": {
71550
72274
  loc: {
71551
72275
  start: {
71552
- line: 56,
72276
+ line: 60,
71553
72277
  column: 13
71554
72278
  },
71555
72279
  end: {
71556
- line: 58,
72280
+ line: 62,
71557
72281
  column: 7
71558
72282
  }
71559
72283
  },
71560
72284
  type: "if",
71561
72285
  locations: [{
71562
72286
  start: {
71563
- line: 56,
72287
+ line: 60,
71564
72288
  column: 13
71565
72289
  },
71566
72290
  end: {
71567
- line: 58,
72291
+ line: 62,
71568
72292
  column: 7
71569
72293
  }
71570
72294
  }, {
@@ -71577,27 +72301,27 @@ function cov_29xlle89ll() {
71577
72301
  column: undefined
71578
72302
  }
71579
72303
  }],
71580
- line: 56
72304
+ line: 60
71581
72305
  },
71582
- "13": {
72306
+ "15": {
71583
72307
  loc: {
71584
72308
  start: {
71585
- line: 70,
72309
+ line: 74,
71586
72310
  column: 2
71587
72311
  },
71588
72312
  end: {
71589
- line: 76,
72313
+ line: 80,
71590
72314
  column: 3
71591
72315
  }
71592
72316
  },
71593
72317
  type: "if",
71594
72318
  locations: [{
71595
72319
  start: {
71596
- line: 70,
72320
+ line: 74,
71597
72321
  column: 2
71598
72322
  },
71599
72323
  end: {
71600
- line: 76,
72324
+ line: 80,
71601
72325
  column: 3
71602
72326
  }
71603
72327
  }, {
@@ -71610,7 +72334,7 @@ function cov_29xlle89ll() {
71610
72334
  column: undefined
71611
72335
  }
71612
72336
  }],
71613
- line: 70
72337
+ line: 74
71614
72338
  }
71615
72339
  },
71616
72340
  s: {
@@ -71636,7 +72360,9 @@ function cov_29xlle89ll() {
71636
72360
  "19": 0,
71637
72361
  "20": 0,
71638
72362
  "21": 0,
71639
- "22": 0
72363
+ "22": 0,
72364
+ "23": 0,
72365
+ "24": 0
71640
72366
  },
71641
72367
  f: {
71642
72368
  "0": 0,
@@ -71650,19 +72376,21 @@ function cov_29xlle89ll() {
71650
72376
  "1": [0, 0],
71651
72377
  "2": [0, 0],
71652
72378
  "3": [0, 0],
71653
- "4": [0],
71654
- "5": [0],
72379
+ "4": [0, 0],
72380
+ "5": [0, 0],
71655
72381
  "6": [0],
71656
72382
  "7": [0],
71657
72383
  "8": [0],
71658
72384
  "9": [0],
71659
- "10": [0, 0],
71660
- "11": [0, 0],
72385
+ "10": [0],
72386
+ "11": [0],
71661
72387
  "12": [0, 0],
71662
- "13": [0, 0]
72388
+ "13": [0, 0],
72389
+ "14": [0, 0],
72390
+ "15": [0, 0]
71663
72391
  },
71664
72392
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
71665
- hash: "c62c7cdd0a05bcdbc09bb134860adb35bde42935"
72393
+ hash: "5bbf5faa11069095565da90858226edff2576be6"
71666
72394
  };
71667
72395
  var coverage = global[gcv] || (global[gcv] = {});
71668
72396
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -71716,41 +72444,49 @@ var getValue = function getValue(_ref2) {
71716
72444
  cov_29xlle89ll().b[3][1]++;
71717
72445
  }
71718
72446
  cov_29xlle89ll().s[9]++;
72447
+ if (kind === QUESTION_KIND.CONDITION.value) {
72448
+ cov_29xlle89ll().b[4][0]++;
72449
+ cov_29xlle89ll().s[10]++;
72450
+ return value ? (cov_29xlle89ll().b[5][0]++, t$1("common.yes")) : (cov_29xlle89ll().b[5][1]++, t$1("common.no"));
72451
+ } else {
72452
+ cov_29xlle89ll().b[4][1]++;
72453
+ }
72454
+ cov_29xlle89ll().s[11]++;
71719
72455
  return value;
71720
72456
  };
71721
- cov_29xlle89ll().s[10]++;
72457
+ cov_29xlle89ll().s[12]++;
71722
72458
  var Submission = function Submission(_ref3) {
71723
72459
  var _ref3$formId = _ref3.formId,
71724
- formId = _ref3$formId === void 0 ? (cov_29xlle89ll().b[4][0]++, "") : _ref3$formId,
72460
+ formId = _ref3$formId === void 0 ? (cov_29xlle89ll().b[6][0]++, "") : _ref3$formId,
71725
72461
  _ref3$submissionId = _ref3.submissionId,
71726
- submissionId = _ref3$submissionId === void 0 ? (cov_29xlle89ll().b[5][0]++, "") : _ref3$submissionId,
72462
+ submissionId = _ref3$submissionId === void 0 ? (cov_29xlle89ll().b[7][0]++, "") : _ref3$submissionId,
71727
72463
  _ref3$className = _ref3.className,
71728
- className = _ref3$className === void 0 ? (cov_29xlle89ll().b[6][0]++, "") : _ref3$className,
72464
+ className = _ref3$className === void 0 ? (cov_29xlle89ll().b[8][0]++, "") : _ref3$className,
71729
72465
  _ref3$questionLabelPr = _ref3.questionLabelProps,
71730
- questionLabelProps = _ref3$questionLabelPr === void 0 ? (cov_29xlle89ll().b[7][0]++, {}) : _ref3$questionLabelPr,
72466
+ questionLabelProps = _ref3$questionLabelPr === void 0 ? (cov_29xlle89ll().b[9][0]++, {}) : _ref3$questionLabelPr,
71731
72467
  _ref3$answerProps = _ref3.answerProps,
71732
- answerProps = _ref3$answerProps === void 0 ? (cov_29xlle89ll().b[8][0]++, {}) : _ref3$answerProps;
72468
+ answerProps = _ref3$answerProps === void 0 ? (cov_29xlle89ll().b[10][0]++, {}) : _ref3$answerProps;
71733
72469
  cov_29xlle89ll().f[2]++;
71734
- var _ref4 = (cov_29xlle89ll().s[11]++, useSubmission({
72470
+ var _ref4 = (cov_29xlle89ll().s[13]++, useSubmission({
71735
72471
  formId: formId,
71736
72472
  submissionId: submissionId,
71737
- enabled: !!((cov_29xlle89ll().b[10][0]++, formId) && (cov_29xlle89ll().b[10][1]++, submissionId))
72473
+ enabled: !!((cov_29xlle89ll().b[12][0]++, formId) && (cov_29xlle89ll().b[12][1]++, submissionId))
71738
72474
  })),
71739
72475
  _ref4$data = _ref4.data,
71740
- submission = _ref4$data === void 0 ? (cov_29xlle89ll().b[9][0]++, {
72476
+ submission = _ref4$data === void 0 ? (cov_29xlle89ll().b[11][0]++, {
71741
72477
  responses: []
71742
72478
  }) : _ref4$data,
71743
72479
  isLoading = _ref4.isLoading;
71744
- var _ref5 = (cov_29xlle89ll().s[12]++, submission),
72480
+ var _ref5 = (cov_29xlle89ll().s[14]++, submission),
71745
72481
  responses = _ref5.responses;
71746
- cov_29xlle89ll().s[13]++;
72482
+ cov_29xlle89ll().s[15]++;
71747
72483
  var renderSubmittedValue = function renderSubmittedValue(kind, value) {
71748
72484
  cov_29xlle89ll().f[3]++;
71749
72485
  {
71750
- cov_29xlle89ll().s[14]++;
72486
+ cov_29xlle89ll().s[16]++;
71751
72487
  if (kind === QUESTION_KIND.RICH_TEXT.value) {
71752
- cov_29xlle89ll().b[11][0]++;
71753
- cov_29xlle89ll().s[15]++;
72488
+ cov_29xlle89ll().b[13][0]++;
72489
+ cov_29xlle89ll().s[17]++;
71754
72490
  return /*#__PURE__*/React__default.createElement(EditorContent, {
71755
72491
  content: getValue({
71756
72492
  value: value,
@@ -71758,20 +72494,20 @@ var Submission = function Submission(_ref3) {
71758
72494
  })
71759
72495
  });
71760
72496
  } else {
71761
- cov_29xlle89ll().b[11][1]++;
71762
- cov_29xlle89ll().s[16]++;
72497
+ cov_29xlle89ll().b[13][1]++;
72498
+ cov_29xlle89ll().s[18]++;
71763
72499
  if (kind === QUESTION_KIND.PHONE.value) {
71764
- cov_29xlle89ll().b[12][0]++;
71765
- cov_29xlle89ll().s[17]++;
72500
+ cov_29xlle89ll().b[14][0]++;
72501
+ cov_29xlle89ll().s[19]++;
71766
72502
  return /*#__PURE__*/React__default.createElement(PhoneNumber$1, {
71767
72503
  showEmoji: true,
71768
72504
  value: value
71769
72505
  });
71770
72506
  } else {
71771
- cov_29xlle89ll().b[12][1]++;
72507
+ cov_29xlle89ll().b[14][1]++;
71772
72508
  }
71773
72509
  }
71774
- cov_29xlle89ll().s[18]++;
72510
+ cov_29xlle89ll().s[20]++;
71775
72511
  return /*#__PURE__*/React__default.createElement(Typography, _extends$9({
71776
72512
  weight: "semibold"
71777
72513
  }, answerProps), /*#__PURE__*/React__default.createElement(_default, {
@@ -71782,17 +72518,17 @@ var Submission = function Submission(_ref3) {
71782
72518
  })));
71783
72519
  }
71784
72520
  };
71785
- cov_29xlle89ll().s[19]++;
72521
+ cov_29xlle89ll().s[21]++;
71786
72522
  if (isLoading) {
71787
- cov_29xlle89ll().b[13][0]++;
71788
- cov_29xlle89ll().s[20]++;
72523
+ cov_29xlle89ll().b[15][0]++;
72524
+ cov_29xlle89ll().s[22]++;
71789
72525
  return /*#__PURE__*/React__default.createElement("div", {
71790
72526
  className: "flex h-full w-full items-center justify-center"
71791
72527
  }, /*#__PURE__*/React__default.createElement(PageLoader, null));
71792
72528
  } else {
71793
- cov_29xlle89ll().b[13][1]++;
72529
+ cov_29xlle89ll().b[15][1]++;
71794
72530
  }
71795
- cov_29xlle89ll().s[21]++;
72531
+ cov_29xlle89ll().s[23]++;
71796
72532
  return /*#__PURE__*/React__default.createElement("div", {
71797
72533
  className: classnames("mx-auto flex h-full w-full flex-col items-start", _defineProperty$a({}, className, className))
71798
72534
  }, responses.map(function (_ref6) {
@@ -71800,7 +72536,7 @@ var Submission = function Submission(_ref3) {
71800
72536
  label = _ref6.label,
71801
72537
  value = _ref6.value;
71802
72538
  cov_29xlle89ll().f[4]++;
71803
- cov_29xlle89ll().s[22]++;
72539
+ cov_29xlle89ll().s[24]++;
71804
72540
  return /*#__PURE__*/React__default.createElement("div", {
71805
72541
  className: "mb-4",
71806
72542
  key: label