@bigbinary/neeto-form-frontend 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +97 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +104 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$2 from 'react';
|
|
2
|
-
import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState, createContext, createElement, Fragment, forwardRef, useCallback as useCallback$1, Component } from 'react';
|
|
2
|
+
import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState, createContext, createElement, Fragment, forwardRef, useCallback as useCallback$1, Component, memo } from 'react';
|
|
3
3
|
import { useField, useFormikContext, FieldArray, Form as Form$1, Formik, Field, FastField } from 'formik';
|
|
4
4
|
import { noop as noop$5, findBy, removeBy, isPresent, findById } from '@bigbinary/neeto-commons-frontend/pure';
|
|
5
5
|
import PageLoader from 'neetomolecules/PageLoader';
|
|
6
|
-
import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$
|
|
6
|
+
import { Toastr, Typography, Dropdown as Dropdown$2, Button as Button$1, Label, Alert, Spinner as Spinner$2 } 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$
|
|
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$4, Smiley, Checkbox as Checkbox$1, Calendar, Check, Close } from '@bigbinary/neeto-icons';
|
|
10
10
|
import axios from 'axios';
|
|
11
|
-
import { Input as Input$3, Textarea as Textarea$
|
|
11
|
+
import { Input as Input$3, Textarea as Textarea$2, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
12
12
|
import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
13
13
|
import { create as create$1 } from 'zustand';
|
|
14
14
|
import classnames from 'classnames';
|
|
@@ -6406,7 +6406,7 @@ var _excluded$n = ["size"],
|
|
|
6406
6406
|
_excluded5 = ["size"];
|
|
6407
6407
|
function cov_3ymiqznmu() {
|
|
6408
6408
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/StarRatingIcons.jsx";
|
|
6409
|
-
var hash = "
|
|
6409
|
+
var hash = "f4b29b283fd872c4616470d709f8f141dd8337fd";
|
|
6410
6410
|
var global = new Function("return this")();
|
|
6411
6411
|
var gcv = "__coverage__";
|
|
6412
6412
|
var coverageData = {
|
|
@@ -6541,6 +6541,56 @@ function cov_3ymiqznmu() {
|
|
|
6541
6541
|
line: 137,
|
|
6542
6542
|
column: 8
|
|
6543
6543
|
}
|
|
6544
|
+
},
|
|
6545
|
+
"13": {
|
|
6546
|
+
start: {
|
|
6547
|
+
line: 140,
|
|
6548
|
+
column: 21
|
|
6549
|
+
},
|
|
6550
|
+
end: {
|
|
6551
|
+
line: 140,
|
|
6552
|
+
column: 37
|
|
6553
|
+
}
|
|
6554
|
+
},
|
|
6555
|
+
"14": {
|
|
6556
|
+
start: {
|
|
6557
|
+
line: 141,
|
|
6558
|
+
column: 22
|
|
6559
|
+
},
|
|
6560
|
+
end: {
|
|
6561
|
+
line: 141,
|
|
6562
|
+
column: 39
|
|
6563
|
+
}
|
|
6564
|
+
},
|
|
6565
|
+
"15": {
|
|
6566
|
+
start: {
|
|
6567
|
+
line: 142,
|
|
6568
|
+
column: 20
|
|
6569
|
+
},
|
|
6570
|
+
end: {
|
|
6571
|
+
line: 142,
|
|
6572
|
+
column: 35
|
|
6573
|
+
}
|
|
6574
|
+
},
|
|
6575
|
+
"16": {
|
|
6576
|
+
start: {
|
|
6577
|
+
line: 143,
|
|
6578
|
+
column: 22
|
|
6579
|
+
},
|
|
6580
|
+
end: {
|
|
6581
|
+
line: 143,
|
|
6582
|
+
column: 39
|
|
6583
|
+
}
|
|
6584
|
+
},
|
|
6585
|
+
"17": {
|
|
6586
|
+
start: {
|
|
6587
|
+
line: 144,
|
|
6588
|
+
column: 23
|
|
6589
|
+
},
|
|
6590
|
+
end: {
|
|
6591
|
+
line: 144,
|
|
6592
|
+
column: 41
|
|
6593
|
+
}
|
|
6544
6594
|
}
|
|
6545
6595
|
},
|
|
6546
6596
|
fnMap: {
|
|
@@ -6800,7 +6850,12 @@ function cov_3ymiqznmu() {
|
|
|
6800
6850
|
"9": 0,
|
|
6801
6851
|
"10": 0,
|
|
6802
6852
|
"11": 0,
|
|
6803
|
-
"12": 0
|
|
6853
|
+
"12": 0,
|
|
6854
|
+
"13": 0,
|
|
6855
|
+
"14": 0,
|
|
6856
|
+
"15": 0,
|
|
6857
|
+
"16": 0,
|
|
6858
|
+
"17": 0
|
|
6804
6859
|
},
|
|
6805
6860
|
f: {
|
|
6806
6861
|
"0": 0,
|
|
@@ -6817,7 +6872,7 @@ function cov_3ymiqznmu() {
|
|
|
6817
6872
|
"4": [0]
|
|
6818
6873
|
},
|
|
6819
6874
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6820
|
-
hash: "
|
|
6875
|
+
hash: "f4b29b283fd872c4616470d709f8f141dd8337fd"
|
|
6821
6876
|
};
|
|
6822
6877
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
6823
6878
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -6973,6 +7028,11 @@ var Trophy = function Trophy(_ref5) {
|
|
|
6973
7028
|
strokeWidth: "1.5"
|
|
6974
7029
|
}));
|
|
6975
7030
|
};
|
|
7031
|
+
var MemoizedStar = (cov_3ymiqznmu().s[13]++, /*#__PURE__*/React__default.memo(Star));
|
|
7032
|
+
var MemoizedHeart = (cov_3ymiqznmu().s[14]++, /*#__PURE__*/React__default.memo(Heart));
|
|
7033
|
+
var MemoizedZap = (cov_3ymiqznmu().s[15]++, /*#__PURE__*/React__default.memo(Zap));
|
|
7034
|
+
var MemoizedCrown = (cov_3ymiqznmu().s[16]++, /*#__PURE__*/React__default.memo(Crown));
|
|
7035
|
+
var MemoizedTrophy = (cov_3ymiqznmu().s[17]++, /*#__PURE__*/React__default.memo(Trophy));
|
|
6976
7036
|
|
|
6977
7037
|
function cov_2qs8napxwn() {
|
|
6978
7038
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
|
|
@@ -7163,11 +7223,11 @@ var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
|
|
|
7163
7223
|
}]);
|
|
7164
7224
|
(cov_2qs8napxwn().s[4]++, /\+\d{11,14}$/);
|
|
7165
7225
|
var ICONS_MAP = (cov_2qs8napxwn().s[5]++, {
|
|
7166
|
-
star:
|
|
7167
|
-
heart:
|
|
7168
|
-
crown:
|
|
7169
|
-
trophy:
|
|
7170
|
-
zap:
|
|
7226
|
+
star: MemoizedStar,
|
|
7227
|
+
heart: MemoizedHeart,
|
|
7228
|
+
crown: MemoizedCrown,
|
|
7229
|
+
trophy: MemoizedTrophy,
|
|
7230
|
+
zap: MemoizedZap
|
|
7171
7231
|
});
|
|
7172
7232
|
|
|
7173
7233
|
function _arrayWithHoles$6(arr) {
|
|
@@ -24262,7 +24322,7 @@ var TextAreaWithMaxLength = function TextAreaWithMaxLength(_ref) {
|
|
|
24262
24322
|
}, [value, maxLength, setValue]);
|
|
24263
24323
|
var shouldShowMaxLength = (cov_1c261hpheg().s[5]++, (cov_1c261hpheg().b[2][0]++, value) && (cov_1c261hpheg().b[2][1]++, value.length > maxLength - 10));
|
|
24264
24324
|
cov_1c261hpheg().s[6]++;
|
|
24265
|
-
return /*#__PURE__*/React__default.createElement(Textarea$
|
|
24325
|
+
return /*#__PURE__*/React__default.createElement(Textarea$2, _extends$9({}, props, (cov_1c261hpheg().b[3][0]++, shouldShowMaxLength) && (cov_1c261hpheg().b[3][1]++, {
|
|
24266
24326
|
maxLength: maxLength
|
|
24267
24327
|
})));
|
|
24268
24328
|
};
|
|
@@ -24649,11 +24709,11 @@ var DROPDOWN_FIELD_MIN_OPTIONS$1 = (cov_5u7jgeqcn().s[1]++, 2);
|
|
|
24649
24709
|
(cov_5u7jgeqcn().s[3]++, 40);
|
|
24650
24710
|
(cov_5u7jgeqcn().s[4]++, 150);
|
|
24651
24711
|
var STAR_RATING_ICONS_MAP = (cov_5u7jgeqcn().s[5]++, {
|
|
24652
|
-
star:
|
|
24653
|
-
heart:
|
|
24654
|
-
crown:
|
|
24655
|
-
trophy:
|
|
24656
|
-
zap:
|
|
24712
|
+
star: MemoizedStar,
|
|
24713
|
+
heart: MemoizedHeart,
|
|
24714
|
+
crown: MemoizedCrown,
|
|
24715
|
+
trophy: MemoizedTrophy,
|
|
24716
|
+
zap: MemoizedZap
|
|
24657
24717
|
});
|
|
24658
24718
|
|
|
24659
24719
|
function cov_2dmleb6ptc() {
|
|
@@ -26564,7 +26624,7 @@ var RatingItem = function RatingItem(_ref) {
|
|
|
26564
26624
|
}, children);
|
|
26565
26625
|
};
|
|
26566
26626
|
cov_2mbawiwhpy().s[2]++;
|
|
26567
|
-
var Rating$
|
|
26627
|
+
var Rating$3 = function Rating(_ref2) {
|
|
26568
26628
|
var name = _ref2.name,
|
|
26569
26629
|
isRequired = _ref2.isRequired,
|
|
26570
26630
|
isLabelDisabled = _ref2.isLabelDisabled;
|
|
@@ -27756,7 +27816,7 @@ function cov_h8r08qzr() {
|
|
|
27756
27816
|
}
|
|
27757
27817
|
cov_h8r08qzr();
|
|
27758
27818
|
cov_h8r08qzr().s[0]++;
|
|
27759
|
-
var StarRating$
|
|
27819
|
+
var StarRating$3 = function StarRating(_ref) {
|
|
27760
27820
|
var name = _ref.name,
|
|
27761
27821
|
isRequired = _ref.isRequired,
|
|
27762
27822
|
isLabelDisabled = _ref.isLabelDisabled;
|
|
@@ -28157,9 +28217,9 @@ var Fields = (cov_2qk3dozy47().s[0]++, {
|
|
|
28157
28217
|
MultipleChoice: MultipleChoice$1,
|
|
28158
28218
|
SingleChoice: SingleChoice$1,
|
|
28159
28219
|
Phone: Phone$1,
|
|
28160
|
-
Rating: Rating$
|
|
28220
|
+
Rating: Rating$3,
|
|
28161
28221
|
Terms: Terms$3,
|
|
28162
|
-
StarRating: StarRating$
|
|
28222
|
+
StarRating: StarRating$3,
|
|
28163
28223
|
AdditionalGuests: AdditionalGuests$1,
|
|
28164
28224
|
RichText: RichText$1,
|
|
28165
28225
|
Condition: Condition$3
|
|
@@ -28602,9 +28662,9 @@ var _ref$1 = (cov_2j8tlu2ul5().s[0]++, Fields),
|
|
|
28602
28662
|
MultipleChoice = _ref$1.MultipleChoice,
|
|
28603
28663
|
SingleChoice = _ref$1.SingleChoice,
|
|
28604
28664
|
Phone = _ref$1.Phone,
|
|
28605
|
-
Rating$
|
|
28665
|
+
Rating$2 = _ref$1.Rating,
|
|
28606
28666
|
Terms$2 = _ref$1.Terms,
|
|
28607
|
-
StarRating$
|
|
28667
|
+
StarRating$2 = _ref$1.StarRating,
|
|
28608
28668
|
AdditionalGuests = _ref$1.AdditionalGuests,
|
|
28609
28669
|
RichText = _ref$1.RichText,
|
|
28610
28670
|
Condition$2 = _ref$1.Condition;
|
|
@@ -28730,8 +28790,8 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28730
28790
|
type: "star_rating",
|
|
28731
28791
|
label: instance.t("fields.rif"),
|
|
28732
28792
|
isSingular: false,
|
|
28733
|
-
icon: Rating$
|
|
28734
|
-
component: StarRating$
|
|
28793
|
+
icon: Rating$4,
|
|
28794
|
+
component: StarRating$2,
|
|
28735
28795
|
defaults: {
|
|
28736
28796
|
label: "",
|
|
28737
28797
|
isRequired: true,
|
|
@@ -28743,7 +28803,7 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
28743
28803
|
label: instance.t("fields.fbf"),
|
|
28744
28804
|
isSingular: false,
|
|
28745
28805
|
icon: Smiley,
|
|
28746
|
-
component: Rating$
|
|
28806
|
+
component: Rating$2,
|
|
28747
28807
|
defaults: {
|
|
28748
28808
|
label: "",
|
|
28749
28809
|
isRequired: true,
|
|
@@ -35919,6 +35979,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
35919
35979
|
strokeWidth: "1.5"
|
|
35920
35980
|
})));
|
|
35921
35981
|
};
|
|
35982
|
+
var Spinner$1 = /*#__PURE__*/React__default.memo(Spinner);
|
|
35922
35983
|
|
|
35923
35984
|
var _excluded$e = ["label", "loading", "success", "className"];
|
|
35924
35985
|
function cov_2ndo8sz9m4() {
|
|
@@ -36255,7 +36316,7 @@ var Button = function Button(_ref) {
|
|
|
36255
36316
|
cov_2ndo8sz9m4().s[1]++;
|
|
36256
36317
|
return /*#__PURE__*/React__default.createElement("button", _extends$9({
|
|
36257
36318
|
className: classnames("neeto-form-engine-button", className)
|
|
36258
|
-
}, otherProps), (cov_2ndo8sz9m4().b[3][0]++, loading) && (cov_2ndo8sz9m4().b[3][1]++, /*#__PURE__*/React__default.createElement(ButtonLoader, null)), (cov_2ndo8sz9m4().b[4][0]++, success) && (cov_2ndo8sz9m4().b[4][1]++, /*#__PURE__*/React__default.createElement(Success$
|
|
36319
|
+
}, otherProps), (cov_2ndo8sz9m4().b[3][0]++, loading) && (cov_2ndo8sz9m4().b[3][1]++, /*#__PURE__*/React__default.createElement(ButtonLoader, null)), (cov_2ndo8sz9m4().b[4][0]++, success) && (cov_2ndo8sz9m4().b[4][1]++, /*#__PURE__*/React__default.createElement(Success$2, null)), label);
|
|
36259
36320
|
};
|
|
36260
36321
|
cov_2ndo8sz9m4().s[2]++;
|
|
36261
36322
|
var ButtonLoader = function ButtonLoader() {
|
|
@@ -36263,10 +36324,10 @@ var ButtonLoader = function ButtonLoader() {
|
|
|
36263
36324
|
cov_2ndo8sz9m4().s[3]++;
|
|
36264
36325
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36265
36326
|
className: "neeto-form-engine-button__loader"
|
|
36266
|
-
}, /*#__PURE__*/React__default.createElement(Spinner, null));
|
|
36327
|
+
}, /*#__PURE__*/React__default.createElement(Spinner$1, null));
|
|
36267
36328
|
};
|
|
36268
36329
|
cov_2ndo8sz9m4().s[4]++;
|
|
36269
|
-
var Success$
|
|
36330
|
+
var Success$2 = function Success() {
|
|
36270
36331
|
cov_2ndo8sz9m4().f[2]++;
|
|
36271
36332
|
cov_2ndo8sz9m4().s[5]++;
|
|
36272
36333
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -58860,7 +58921,7 @@ var Condition = function Condition(_ref, ref) {
|
|
|
58860
58921
|
className: "neeto-form-engine-input__error"
|
|
58861
58922
|
}, error)));
|
|
58862
58923
|
};
|
|
58863
|
-
var Condition$1 = /*#__PURE__*/forwardRef(Condition);
|
|
58924
|
+
var Condition$1 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Condition));
|
|
58864
58925
|
|
|
58865
58926
|
function cov_2lhrgkh8e4() {
|
|
58866
58927
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/ConditionField.jsx";
|
|
@@ -60465,6 +60526,7 @@ var Choices = function Choices(_ref) {
|
|
|
60465
60526
|
className: "neeto-form-engine-input__error"
|
|
60466
60527
|
}, error)));
|
|
60467
60528
|
};
|
|
60529
|
+
var Choices$1 = /*#__PURE__*/React__default.memo(Choices);
|
|
60468
60530
|
|
|
60469
60531
|
var _excluded$5 = ["size", "label", "error", "helpText", "className", "innerRef"];
|
|
60470
60532
|
function cov_2mja3ufqil() {
|
|
@@ -61560,7 +61622,7 @@ var OptionsField = function OptionsField(_ref) {
|
|
|
61560
61622
|
isRequired = _ref3.isRequired,
|
|
61561
61623
|
_ref3$optionsAttribut = _ref3.optionsAttributes,
|
|
61562
61624
|
options = _ref3$optionsAttribut === void 0 ? (cov_1i8uylwhkg().b[0][0]++, []) : _ref3$optionsAttribut;
|
|
61563
|
-
var Component = (cov_1i8uylwhkg().s[3]++, kind === QUESTION_KIND.DROPDOWN.value ? (cov_1i8uylwhkg().b[1][0]++, Select) : (cov_1i8uylwhkg().b[1][1]++, Choices));
|
|
61625
|
+
var Component = (cov_1i8uylwhkg().s[3]++, kind === QUESTION_KIND.DROPDOWN.value ? (cov_1i8uylwhkg().b[1][0]++, Select) : (cov_1i8uylwhkg().b[1][1]++, Choices$1));
|
|
61564
61626
|
var transformedOptions = (cov_1i8uylwhkg().s[4]++, kind === QUESTION_KIND.DROPDOWN.value ? (cov_1i8uylwhkg().b[2][0]++, options.map(function (option) {
|
|
61565
61627
|
cov_1i8uylwhkg().f[1]++;
|
|
61566
61628
|
cov_1i8uylwhkg().s[5]++;
|
|
@@ -62231,6 +62293,7 @@ var Rating = function Rating(_ref) {
|
|
|
62231
62293
|
className: "neeto-form-engine-input__error"
|
|
62232
62294
|
}, error)));
|
|
62233
62295
|
};
|
|
62296
|
+
var Rating$1 = /*#__PURE__*/React__default.memo(Rating);
|
|
62234
62297
|
|
|
62235
62298
|
function cov_2lj2o2sww7() {
|
|
62236
62299
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/RatingField.jsx";
|
|
@@ -62525,7 +62588,7 @@ var RatingField = function RatingField(_ref) {
|
|
|
62525
62588
|
field = _ref3.field;
|
|
62526
62589
|
cov_2lj2o2sww7().f[1]++;
|
|
62527
62590
|
cov_2lj2o2sww7().s[3]++;
|
|
62528
|
-
return /*#__PURE__*/React__default.createElement(Rating, _extends$9({
|
|
62591
|
+
return /*#__PURE__*/React__default.createElement(Rating$1, _extends$9({
|
|
62529
62592
|
averageRatingLabel: (cov_2lj2o2sww7().b[0][0]++, averageRatingLabel) || (cov_2lj2o2sww7().b[0][1]++, RATING_VALUES.AVERAGE.label),
|
|
62530
62593
|
error: meta.touched ? (cov_2lj2o2sww7().b[1][0]++, meta.error) : (cov_2lj2o2sww7().b[1][1]++, ""),
|
|
62531
62594
|
highestRatingLabel: (cov_2lj2o2sww7().b[2][0]++, highestRatingLabel) || (cov_2lj2o2sww7().b[2][1]++, RATING_VALUES.GOOD.label),
|
|
@@ -63324,6 +63387,7 @@ var StarRating = function StarRating(_ref2) {
|
|
|
63324
63387
|
className: "neeto-form-engine-input__error"
|
|
63325
63388
|
}, error)));
|
|
63326
63389
|
};
|
|
63390
|
+
var StarRating$1 = /*#__PURE__*/React__default.memo(StarRating);
|
|
63327
63391
|
|
|
63328
63392
|
function cov_14fczoh42d() {
|
|
63329
63393
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/StarRatingField.jsx";
|
|
@@ -63515,7 +63579,7 @@ var StarRatingField = function StarRatingField(_ref) {
|
|
|
63515
63579
|
field = _ref3.field;
|
|
63516
63580
|
cov_14fczoh42d().f[1]++;
|
|
63517
63581
|
cov_14fczoh42d().s[3]++;
|
|
63518
|
-
return /*#__PURE__*/React__default.createElement(StarRating, _extends$9({
|
|
63582
|
+
return /*#__PURE__*/React__default.createElement(StarRating$1, _extends$9({
|
|
63519
63583
|
count: count,
|
|
63520
63584
|
error: meta.touched ? (cov_14fczoh42d().b[0][0]++, meta.error) : (cov_14fczoh42d().b[0][1]++, ""),
|
|
63521
63585
|
label: getLabel$1(label, isRequired),
|
|
@@ -63679,7 +63743,7 @@ var Terms = function Terms(_ref, ref) {
|
|
|
63679
63743
|
className: "neeto-form-engine-input__error"
|
|
63680
63744
|
}, error)));
|
|
63681
63745
|
};
|
|
63682
|
-
var Terms$1 = /*#__PURE__*/forwardRef(Terms);
|
|
63746
|
+
var Terms$1 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Terms));
|
|
63683
63747
|
|
|
63684
63748
|
function cov_14h4eyw3wy() {
|
|
63685
63749
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/TermsField.jsx";
|
|
@@ -65035,6 +65099,7 @@ var Textarea = function Textarea(props) {
|
|
|
65035
65099
|
className: "neeto-form-engine-input__error"
|
|
65036
65100
|
}, error)));
|
|
65037
65101
|
};
|
|
65102
|
+
var Textarea$1 = /*#__PURE__*/React__default.memo(Textarea);
|
|
65038
65103
|
|
|
65039
65104
|
function cov_h64dar2vv() {
|
|
65040
65105
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/TextField.jsx";
|
|
@@ -65401,7 +65466,7 @@ var TextField = function TextField(_ref) {
|
|
|
65401
65466
|
_ref3$type = _ref3.type,
|
|
65402
65467
|
type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
|
|
65403
65468
|
otherProps = _ref3.otherProps;
|
|
65404
|
-
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea) : (cov_h64dar2vv().b[1][1]++, FormInput));
|
|
65469
|
+
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea$1) : (cov_h64dar2vv().b[1][1]++, FormInput));
|
|
65405
65470
|
cov_h64dar2vv().s[4]++;
|
|
65406
65471
|
return /*#__PURE__*/React__default.createElement(Field, {
|
|
65407
65472
|
name: (cov_h64dar2vv().b[2][0]++, name) || (cov_h64dar2vv().b[2][1]++, nodeId),
|
|
@@ -65848,6 +65913,7 @@ var Success = function Success() {
|
|
|
65848
65913
|
style: "h1"
|
|
65849
65914
|
}, t("successPage.title2")));
|
|
65850
65915
|
};
|
|
65916
|
+
var Success$1 = /*#__PURE__*/React__default.memo(Success);
|
|
65851
65917
|
|
|
65852
65918
|
function cov_2jkcclu7mz() {
|
|
65853
65919
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/index.jsx";
|
|
@@ -68902,7 +68968,7 @@ var ExternalForm = function ExternalForm(_ref) {
|
|
|
68902
68968
|
if ((cov_2jkcclu7mz().b[29][0]++, displayThankYou) && (cov_2jkcclu7mz().b[29][1]++, showSuccess)) {
|
|
68903
68969
|
cov_2jkcclu7mz().b[28][0]++;
|
|
68904
68970
|
cov_2jkcclu7mz().s[64]++;
|
|
68905
|
-
return /*#__PURE__*/React__default.createElement(Success, null);
|
|
68971
|
+
return /*#__PURE__*/React__default.createElement(Success$1, null);
|
|
68906
68972
|
} else {
|
|
68907
68973
|
cov_2jkcclu7mz().b[28][1]++;
|
|
68908
68974
|
}
|
|
@@ -68970,7 +69036,7 @@ var ExternalForm = function ExternalForm(_ref) {
|
|
|
68970
69036
|
}
|
|
68971
69037
|
}), (cov_2jkcclu7mz().b[36][0]++, submission === null || submission === void 0 ? void 0 : submission.isLoading) && (cov_2jkcclu7mz().b[36][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
68972
69038
|
className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
|
|
68973
|
-
}, /*#__PURE__*/React__default.createElement(Spinner$
|
|
69039
|
+
}, /*#__PURE__*/React__default.createElement(Spinner$2, null))), renderedQuestions.map(function (question) {
|
|
68974
69040
|
var _ref20;
|
|
68975
69041
|
cov_2jkcclu7mz().f[13]++;
|
|
68976
69042
|
var FieldComponent = (cov_2jkcclu7mz().s[75]++, getFieldComponent(question));
|