@bigbinary/neeto-form-frontend 3.12.1 → 3.12.3
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/app/javascript/src/translations/en.json +1 -1
- package/dist/BuildForm.js +10 -11
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +9 -10
- package/dist/ExternalForm.js.map +1 -1
- package/dist/Submission.js +170 -155
- package/dist/Submission.js.map +1 -1
- package/dist/UrlBuilder.js +9 -10
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/{buildForm-C8ATbuv6.js → buildForm-BHII-vAK.js} +2 -2
- package/dist/{buildForm-C8ATbuv6.js.map → buildForm-BHII-vAK.js.map} +1 -1
- package/dist/{buildForm-3Wdzcz2x.js → buildForm-C53vOltw.js} +2 -2
- package/dist/{buildForm-3Wdzcz2x.js.map → buildForm-C53vOltw.js.map} +1 -1
- package/dist/cjs/BuildForm.js +12 -13
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +9 -10
- package/dist/cjs/ExternalForm.js.map +1 -1
- package/dist/cjs/Submission.js +168 -153
- package/dist/cjs/Submission.js.map +1 -1
- package/dist/cjs/UrlBuilder.js +17 -18
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/hooks.js +5 -4
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.js +7 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/{constants-CIKOBOUZ.js → constants-B33YjyaT.js} +365 -10
- package/dist/constants-B33YjyaT.js.map +1 -0
- package/dist/{constants-LQk7jxH9.js → constants-DBuFEVFA.js} +4 -4
- package/dist/constants-DBuFEVFA.js.map +1 -0
- package/dist/{constants-CkGU4abB.js → constants-Dq9-rvtB.js} +4 -4
- package/dist/constants-Dq9-rvtB.js.map +1 -0
- package/dist/{constants-DdGn1rF4.js → constants-DyjXQHMR.js} +337 -6
- package/dist/constants-DyjXQHMR.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-OmmVAj8-.js → index-BGEdOqsc.js} +2 -2
- package/dist/{index-OmmVAj8-.js.map → index-BGEdOqsc.js.map} +1 -1
- package/dist/{index-qEhecRV2.js → index-CAtNQTCZ.js} +2 -2
- package/dist/{index-qEhecRV2.js.map → index-CAtNQTCZ.js.map} +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/{useFormSubmission-Cab-hFHR.js → useFormSubmission-Bor3TuEO.js} +2 -2
- package/dist/{useFormSubmission-Cab-hFHR.js.map → useFormSubmission-Bor3TuEO.js.map} +1 -1
- package/dist/{useFormSubmission-CqQgBLsl.js → useFormSubmission-D3Bxhy6g.js} +2 -2
- package/dist/{useFormSubmission-CqQgBLsl.js.map → useFormSubmission-D3Bxhy6g.js.map} +1 -1
- package/dist/{utils-DbT-aQHP.js → utils-O5jbq3ZQ.js} +4 -5
- package/dist/{utils-DbT-aQHP.js.map → utils-O5jbq3ZQ.js.map} +1 -1
- package/dist/{utils-F-H352VB.js → utils-vq3PBRhD.js} +8 -9
- package/dist/{utils-F-H352VB.js.map → utils-vq3PBRhD.js.map} +1 -1
- package/package.json +1 -1
- package/types.d.ts +6 -1
- package/dist/constants-Byuu9IoS.js +0 -339
- package/dist/constants-Byuu9IoS.js.map +0 -1
- package/dist/constants-CIKOBOUZ.js.map +0 -1
- package/dist/constants-CN0KQk0z.js +0 -369
- package/dist/constants-CN0KQk0z.js.map +0 -1
- package/dist/constants-CkGU4abB.js.map +0 -1
- package/dist/constants-DdGn1rF4.js.map +0 -1
- package/dist/constants-LQk7jxH9.js.map +0 -1
package/dist/cjs/hooks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var constants = require('../constants-
|
|
4
|
-
var useFormSubmission = require('../useFormSubmission-
|
|
5
|
-
var buildForm = require('../buildForm-
|
|
3
|
+
var constants = require('../constants-Dq9-rvtB.js');
|
|
4
|
+
var useFormSubmission = require('../useFormSubmission-Bor3TuEO.js');
|
|
5
|
+
var buildForm = require('../buildForm-C53vOltw.js');
|
|
6
6
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -16,7 +16,7 @@ require('axios');
|
|
|
16
16
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
17
17
|
require('@babel/runtime/helpers/slicedToArray');
|
|
18
18
|
require('zustand');
|
|
19
|
-
require('../index-
|
|
19
|
+
require('../index-CAtNQTCZ.js');
|
|
20
20
|
require('@babel/runtime/helpers/typeof');
|
|
21
21
|
require('@bigbinary/neeto-editor/utils');
|
|
22
22
|
|
|
@@ -26,6 +26,7 @@ exports.useCreateForm = constants.useCreateForm;
|
|
|
26
26
|
exports.useDeleteForm = constants.useDeleteForm;
|
|
27
27
|
exports.useForm = constants.useForm;
|
|
28
28
|
exports.useForms = constants.useForms;
|
|
29
|
+
exports.usePublicForm = constants.usePublicForm;
|
|
29
30
|
exports.useUpdateForm = constants.useUpdateForm;
|
|
30
31
|
exports.useFormSubmission = useFormSubmission.useFormSubmission;
|
|
31
32
|
exports.useBuildFormState = buildForm.useBuildFormState;
|
package/dist/cjs/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,9 +5,9 @@ var NeetoFormProvider = require('./NeetoFormProvider.js');
|
|
|
5
5
|
var ExternalForm = require('./ExternalForm.js');
|
|
6
6
|
var Submission = require('./Submission.js');
|
|
7
7
|
var UrlBuilder = require('./UrlBuilder.js');
|
|
8
|
-
var constants = require('../constants-
|
|
9
|
-
var useFormSubmission = require('../useFormSubmission-
|
|
10
|
-
var buildForm = require('../buildForm-
|
|
8
|
+
var constants = require('../constants-Dq9-rvtB.js');
|
|
9
|
+
var useFormSubmission = require('../useFormSubmission-Bor3TuEO.js');
|
|
10
|
+
var buildForm = require('../buildForm-C53vOltw.js');
|
|
11
11
|
require('@babel/runtime/helpers/defineProperty');
|
|
12
12
|
require('react');
|
|
13
13
|
require('@tanstack/react-query');
|
|
@@ -17,14 +17,13 @@ require('@bigbinary/neeto-cist');
|
|
|
17
17
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
18
18
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
19
19
|
require('ramda');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-B33YjyaT.js');
|
|
21
21
|
require('i18next');
|
|
22
22
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
23
23
|
require('react/jsx-runtime');
|
|
24
|
-
require('../constants-CIKOBOUZ.js');
|
|
25
24
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
26
25
|
require('dompurify');
|
|
27
|
-
require('../index-
|
|
26
|
+
require('../index-CAtNQTCZ.js');
|
|
28
27
|
require('@babel/runtime/helpers/typeof');
|
|
29
28
|
require('@bigbinary/neeto-editor/utils');
|
|
30
29
|
require('@bigbinary/neeto-icons/Plus');
|
|
@@ -71,7 +70,7 @@ require('@bigbinary/neetoui/Toastr');
|
|
|
71
70
|
require('@bigbinary/neetoui/Spinner');
|
|
72
71
|
require('@bigbinary/neetoui/Callout');
|
|
73
72
|
require('@bigbinary/neeto-icons/Check');
|
|
74
|
-
require('../utils-
|
|
73
|
+
require('../utils-vq3PBRhD.js');
|
|
75
74
|
require('libphonenumber-js');
|
|
76
75
|
require('@bigbinary/neeto-editor/EditorContent');
|
|
77
76
|
require('@bigbinary/neetoui/MultiEmailInput');
|
|
@@ -86,7 +85,6 @@ require('@bigbinary/neetoui/Select');
|
|
|
86
85
|
require('@bigbinary/neetoui/Radio');
|
|
87
86
|
require('@bigbinary/neetoui/Textarea');
|
|
88
87
|
require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
89
|
-
require('react-dom/server');
|
|
90
88
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
91
89
|
require('axios');
|
|
92
90
|
require('zustand');
|
|
@@ -102,6 +100,7 @@ exports.useCreateForm = constants.useCreateForm;
|
|
|
102
100
|
exports.useDeleteForm = constants.useDeleteForm;
|
|
103
101
|
exports.useForm = constants.useForm;
|
|
104
102
|
exports.useForms = constants.useForms;
|
|
103
|
+
exports.usePublicForm = constants.usePublicForm;
|
|
105
104
|
exports.useUpdateForm = constants.useUpdateForm;
|
|
106
105
|
exports.useFormSubmission = useFormSubmission.useFormSubmission;
|
|
107
106
|
exports.useBuildFormState = buildForm.useBuildFormState;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +1,367 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var i18next = require('i18next');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var constants = require('./constants-Dq9-rvtB.js');
|
|
5
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
7
|
var ramda = require('ramda');
|
|
7
8
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var constants$1 = require('./constants-CN0KQk0z.js');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
12
12
|
var DOMPurify = require('dompurify');
|
|
13
|
-
var index = require('./index-
|
|
13
|
+
var index = require('./index-CAtNQTCZ.js');
|
|
14
14
|
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
15
15
|
|
|
16
|
+
function _interopNamespaceDefault(e) {
|
|
17
|
+
var n = Object.create(null);
|
|
18
|
+
if (e) {
|
|
19
|
+
Object.keys(e).forEach(function (k) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return e[k]; }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
n.default = e;
|
|
30
|
+
return Object.freeze(n);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
34
|
+
|
|
35
|
+
var _excluded$1 = ["size"],
|
|
36
|
+
_excluded2$1 = ["size"],
|
|
37
|
+
_excluded3$1 = ["size"],
|
|
38
|
+
_excluded4$1 = ["size"],
|
|
39
|
+
_excluded5 = ["size"];
|
|
40
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42
|
+
var Star = function Star(props) {
|
|
43
|
+
var _props$size = props.size,
|
|
44
|
+
size = _props$size === void 0 ? 20 : _props$size,
|
|
45
|
+
other = _objectWithoutProperties(props, _excluded$1);
|
|
46
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread$2(_objectSpread$2({
|
|
47
|
+
fill: "none",
|
|
48
|
+
height: size,
|
|
49
|
+
stroke: "currentColor",
|
|
50
|
+
strokeLinecap: "round",
|
|
51
|
+
strokeLinejoin: "round",
|
|
52
|
+
strokeWidth: "2",
|
|
53
|
+
viewBox: "0 0 24 24",
|
|
54
|
+
width: size,
|
|
55
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
56
|
+
}, other), {}, {
|
|
57
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
58
|
+
d: "M12 2L15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2z"
|
|
59
|
+
})
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
var Heart = function Heart(props) {
|
|
63
|
+
var _props$size2 = props.size,
|
|
64
|
+
size = _props$size2 === void 0 ? 20 : _props$size2,
|
|
65
|
+
other = _objectWithoutProperties(props, _excluded2$1);
|
|
66
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread$2(_objectSpread$2({
|
|
67
|
+
fill: "none",
|
|
68
|
+
height: size,
|
|
69
|
+
stroke: "currentColor",
|
|
70
|
+
strokeLinecap: "round",
|
|
71
|
+
strokeLinejoin: "round",
|
|
72
|
+
strokeWidth: "2",
|
|
73
|
+
viewBox: "0 0 24 24",
|
|
74
|
+
width: size,
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
76
|
+
}, other), {}, {
|
|
77
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
78
|
+
d: "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z"
|
|
79
|
+
})
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
var Zap = function Zap(props) {
|
|
83
|
+
var _props$size3 = props.size,
|
|
84
|
+
size = _props$size3 === void 0 ? 20 : _props$size3,
|
|
85
|
+
other = _objectWithoutProperties(props, _excluded3$1);
|
|
86
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread$2(_objectSpread$2({
|
|
87
|
+
fill: "none",
|
|
88
|
+
height: size,
|
|
89
|
+
stroke: "currentColor",
|
|
90
|
+
strokeLinecap: "round",
|
|
91
|
+
strokeLinejoin: "round",
|
|
92
|
+
strokeWidth: "2",
|
|
93
|
+
viewBox: "0 0 24 24",
|
|
94
|
+
width: size,
|
|
95
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
96
|
+
}, other), {}, {
|
|
97
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
98
|
+
d: "M13 2L3 14 12 14 11 22 21 10 12 10 13 2z"
|
|
99
|
+
})
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
var Crown = function Crown(_ref) {
|
|
103
|
+
var _ref$size = _ref.size,
|
|
104
|
+
size = _ref$size === void 0 ? 20 : _ref$size,
|
|
105
|
+
otherProps = _objectWithoutProperties(_ref, _excluded4$1);
|
|
106
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread$2(_objectSpread$2({
|
|
107
|
+
fill: "none",
|
|
108
|
+
height: size,
|
|
109
|
+
stroke: "currentColor",
|
|
110
|
+
strokeLinecap: "round",
|
|
111
|
+
strokeLinejoin: "round",
|
|
112
|
+
strokeWidth: "2",
|
|
113
|
+
viewBox: "0 0 24 24",
|
|
114
|
+
width: size,
|
|
115
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
116
|
+
}, otherProps), {}, {
|
|
117
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
118
|
+
d: "M22.3186 17.8652C22.3186 18.8915 21.4789 19.7311 20.4527 19.7311L20.4714 19.733H5.54466C4.49979 19.733 3.67882 18.912 3.67882 17.8858V8.61254H3.66016C3.66016 8.0901 4.07064 7.67962 4.59308 7.67962C4.761 7.67962 4.94759 7.71693 5.09686 7.82888L9.23902 10.5903L12.1871 6.14963V6.13097C12.4669 5.70182 13.0453 5.57122 13.4745 5.86975C13.5678 5.92573 13.6611 6.01902 13.717 6.11231L16.6651 10.5344L20.8072 7.75425C21.2177 7.45572 21.8129 7.56767 22.0928 7.99681C22.1861 8.14608 22.2421 8.314 22.2421 8.50059V17.7552",
|
|
119
|
+
stroke: "currentColor",
|
|
120
|
+
strokeLinecap: "round",
|
|
121
|
+
strokeLinejoin: "round",
|
|
122
|
+
strokeWidth: "1.5"
|
|
123
|
+
})
|
|
124
|
+
}));
|
|
125
|
+
};
|
|
126
|
+
var Trophy = function Trophy(_ref2) {
|
|
127
|
+
var _ref2$size = _ref2.size,
|
|
128
|
+
size = _ref2$size === void 0 ? 20 : _ref2$size,
|
|
129
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded5);
|
|
130
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", _objectSpread$2(_objectSpread$2({
|
|
131
|
+
fill: "none",
|
|
132
|
+
height: size,
|
|
133
|
+
stroke: "currentColor",
|
|
134
|
+
strokeLinecap: "round",
|
|
135
|
+
strokeLinejoin: "round",
|
|
136
|
+
strokeWidth: "2",
|
|
137
|
+
viewBox: "0 0 24 24",
|
|
138
|
+
width: size,
|
|
139
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
140
|
+
}, otherProps), {}, {
|
|
141
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
142
|
+
d: "M17.6873 8.05176H20.0311V8.05176C20.894 8.05176 21.5936 8.75131 21.5936 9.61426V11.1768C21.5936 12.9026 20.1944 14.3018 18.4686 14.3018H17.5889",
|
|
143
|
+
stroke: "currentColor",
|
|
144
|
+
strokeLinecap: "round",
|
|
145
|
+
strokeLinejoin: "round",
|
|
146
|
+
strokeWidth: "1.5"
|
|
147
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
148
|
+
d: "M13 16.6455V21.333",
|
|
149
|
+
stroke: "currentColor",
|
|
150
|
+
strokeLinecap: "round",
|
|
151
|
+
strokeLinejoin: "round",
|
|
152
|
+
strokeWidth: "1.5"
|
|
153
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
154
|
+
d: "M16.125 21.333H9.875",
|
|
155
|
+
stroke: "currentColor",
|
|
156
|
+
strokeLinecap: "round",
|
|
157
|
+
strokeLinejoin: "round",
|
|
158
|
+
strokeWidth: "1.5"
|
|
159
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
160
|
+
d: "M9.875 5.70801H16.125V5.70801C16.9879 5.70801 17.6875 6.40756 17.6875 7.27051V13.5205C17.6875 15.2464 16.2884 16.6455 14.5625 16.6455H11.4375V16.6455C9.71161 16.6455 8.3125 15.2464 8.3125 13.5205V7.27051V7.27051C8.3125 6.40756 9.01205 5.70801 9.875 5.70801V5.70801Z",
|
|
161
|
+
stroke: "currentColor",
|
|
162
|
+
strokeLinecap: "round",
|
|
163
|
+
strokeLinejoin: "round",
|
|
164
|
+
strokeWidth: "1.5"
|
|
165
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
166
|
+
d: "M8.3125 8.05176H5.96875V8.05176C5.1058 8.05176 4.40625 8.75131 4.40625 9.61426V11.1768V11.1768C4.40625 12.9026 5.80536 14.3018 7.53125 14.3018H8.41094",
|
|
167
|
+
stroke: "currentColor",
|
|
168
|
+
strokeLinecap: "round",
|
|
169
|
+
strokeLinejoin: "round",
|
|
170
|
+
strokeWidth: "1.5"
|
|
171
|
+
})]
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
var MemoizedStar = /*#__PURE__*/React.memo(Star);
|
|
175
|
+
var MemoizedHeart = /*#__PURE__*/React.memo(Heart);
|
|
176
|
+
var MemoizedZap = /*#__PURE__*/React.memo(Zap);
|
|
177
|
+
var MemoizedCrown = /*#__PURE__*/React.memo(Crown);
|
|
178
|
+
var MemoizedTrophy = /*#__PURE__*/React.memo(Trophy);
|
|
179
|
+
|
|
180
|
+
var _path$2, _path2$2;
|
|
181
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
182
|
+
const SvgConfusedFace = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
183
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
184
|
+
width: 32,
|
|
185
|
+
height: 32,
|
|
186
|
+
fill: "none"
|
|
187
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
188
|
+
stroke: "#68737D",
|
|
189
|
+
strokeLinecap: "round",
|
|
190
|
+
strokeLinejoin: "round",
|
|
191
|
+
strokeWidth: 2,
|
|
192
|
+
d: "M16 4C9.383 4 4 9.383 4 16s5.383 12 12 12 12-5.384 12-12S22.616 4 16 4Z"
|
|
193
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
194
|
+
stroke: "#68737D",
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
197
|
+
strokeWidth: 2,
|
|
198
|
+
d: "M20.668 20.918S18.916 22.667 16 22.667c-2.918 0-4.667-1.75-4.667-1.75m9.104-8.25a.333.333 0 1 0 .003.666.333.333 0 0 0-.003-.666Zm-8.918 0a.333.333 0 1 0 .003.666.333.333 0 0 0-.004-.666Z"
|
|
199
|
+
})));
|
|
200
|
+
|
|
201
|
+
var _path$1, _path2$1, _path3;
|
|
202
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
203
|
+
const SvgHappyFace = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
204
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
205
|
+
width: 32,
|
|
206
|
+
height: 32,
|
|
207
|
+
fill: "none"
|
|
208
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
209
|
+
stroke: "#68737D",
|
|
210
|
+
strokeLinecap: "round",
|
|
211
|
+
strokeLinejoin: "round",
|
|
212
|
+
strokeWidth: 2,
|
|
213
|
+
d: "M9.332 13.334c.527-.647 1.247-1.014 2-1.014.753 0 1.453.367 2 1.014m5.333 0c.527-.647 1.247-1.014 2-1.014.754 0 1.454.367 2 1.014"
|
|
214
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
215
|
+
stroke: "#68737D",
|
|
216
|
+
strokeLinecap: "round",
|
|
217
|
+
strokeLinejoin: "round",
|
|
218
|
+
strokeWidth: 2,
|
|
219
|
+
d: "M24.485 7.515c4.687 4.686 4.687 12.284 0 16.97-4.686 4.687-12.284 4.687-16.97 0-4.687-4.686-4.687-12.284 0-16.97 4.686-4.687 12.284-4.687 16.97 0"
|
|
220
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
221
|
+
stroke: "#68737D",
|
|
222
|
+
strokeLinecap: "round",
|
|
223
|
+
strokeLinejoin: "round",
|
|
224
|
+
strokeWidth: 2,
|
|
225
|
+
d: "M20.665 19.584s-1.75 1.75-4.666 1.75c-2.918 0-4.667-1.75-4.667-1.75"
|
|
226
|
+
})));
|
|
227
|
+
|
|
228
|
+
var _path, _path2;
|
|
229
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
230
|
+
const SvgSadFace = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
232
|
+
width: 32,
|
|
233
|
+
height: 32,
|
|
234
|
+
fill: "none"
|
|
235
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
236
|
+
stroke: "#68737D",
|
|
237
|
+
strokeLinecap: "round",
|
|
238
|
+
strokeLinejoin: "round",
|
|
239
|
+
strokeWidth: 2,
|
|
240
|
+
d: "M20.667 12v1.333m3.818-5.818c4.687 4.686 4.687 12.284 0 16.97-4.686 4.687-12.284 4.687-16.97 0-4.687-4.686-4.687-12.284 0-16.97 4.686-4.687 12.284-4.687 16.97 0v0ZM11.333 12v1.333V12Z"
|
|
241
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
242
|
+
stroke: "#68737D",
|
|
243
|
+
strokeLinecap: "round",
|
|
244
|
+
strokeLinejoin: "round",
|
|
245
|
+
strokeWidth: 2,
|
|
246
|
+
d: "M11.332 21.333s1.75-1.749 4.667-1.749 4.666 1.75 4.666 1.75"
|
|
247
|
+
})));
|
|
248
|
+
|
|
249
|
+
var QUESTION_KIND = {
|
|
250
|
+
TEXT: {
|
|
251
|
+
value: "text"
|
|
252
|
+
},
|
|
253
|
+
NAME: {
|
|
254
|
+
value: "name"
|
|
255
|
+
},
|
|
256
|
+
EMAIL: {
|
|
257
|
+
type: "email",
|
|
258
|
+
value: "email"
|
|
259
|
+
},
|
|
260
|
+
PHONE: {
|
|
261
|
+
value: "phone"
|
|
262
|
+
},
|
|
263
|
+
CHECKBOX: {
|
|
264
|
+
value: "checkbox"
|
|
265
|
+
},
|
|
266
|
+
RADIO: {
|
|
267
|
+
value: "radio"
|
|
268
|
+
},
|
|
269
|
+
DROPDOWN: {
|
|
270
|
+
value: "dropdown"
|
|
271
|
+
},
|
|
272
|
+
PARAGRAPH: {
|
|
273
|
+
value: "paragraph"
|
|
274
|
+
},
|
|
275
|
+
TEXTAREA: {
|
|
276
|
+
value: "textarea"
|
|
277
|
+
},
|
|
278
|
+
QUESTION: {
|
|
279
|
+
value: "question"
|
|
280
|
+
},
|
|
281
|
+
RATING: {
|
|
282
|
+
value: "rating"
|
|
283
|
+
},
|
|
284
|
+
STAR_RATING: {
|
|
285
|
+
value: "star_rating"
|
|
286
|
+
},
|
|
287
|
+
TERMS: {
|
|
288
|
+
value: "termsandcondition",
|
|
289
|
+
type: "checkbox"
|
|
290
|
+
},
|
|
291
|
+
CONDITION: {
|
|
292
|
+
value: "condition",
|
|
293
|
+
type: "checkbox"
|
|
294
|
+
},
|
|
295
|
+
DATE: {
|
|
296
|
+
value: "date"
|
|
297
|
+
},
|
|
298
|
+
ADDITIONAL_GUESTS: {
|
|
299
|
+
value: "additional_guests"
|
|
300
|
+
},
|
|
301
|
+
RICH_TEXT: {
|
|
302
|
+
value: "rich_text"
|
|
303
|
+
},
|
|
304
|
+
INTEGER: {
|
|
305
|
+
type: "number",
|
|
306
|
+
value: "integer",
|
|
307
|
+
onKeyDown: function onKeyDown(e) {
|
|
308
|
+
if (e.key === "." || e.key === "e") e.preventDefault();
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
DECIMAL: {
|
|
312
|
+
type: "number",
|
|
313
|
+
value: "decimal",
|
|
314
|
+
onKeyDown: function onKeyDown(e) {
|
|
315
|
+
if (e.key === "e") e.preventDefault();
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
FILE_UPLOAD: {
|
|
319
|
+
value: "file_upload"
|
|
320
|
+
},
|
|
321
|
+
CAPTCHA: {
|
|
322
|
+
value: "captcha"
|
|
323
|
+
},
|
|
324
|
+
SMS_REMINDER: {
|
|
325
|
+
value: "sms_reminder"
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
var RATING_VALUES = {
|
|
329
|
+
GOOD: {
|
|
330
|
+
label: i18next.t("neetoForm.common.good"),
|
|
331
|
+
value: "good"
|
|
332
|
+
},
|
|
333
|
+
AVERAGE: {
|
|
334
|
+
label: i18next.t("neetoForm.common.okay"),
|
|
335
|
+
value: "okay"
|
|
336
|
+
},
|
|
337
|
+
BAD: {
|
|
338
|
+
label: i18next.t("neetoForm.common.bad"),
|
|
339
|
+
value: "bad"
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
var SCHEMA_LESS_QUESTION_KINDS = [QUESTION_KIND.PARAGRAPH.value];
|
|
343
|
+
var RATING_OPTIONS$1 = [{
|
|
344
|
+
icon: SvgHappyFace,
|
|
345
|
+
modifier: "happy",
|
|
346
|
+
value: RATING_VALUES.GOOD.value
|
|
347
|
+
}, {
|
|
348
|
+
icon: SvgConfusedFace,
|
|
349
|
+
modifier: "confused",
|
|
350
|
+
value: RATING_VALUES.AVERAGE.value
|
|
351
|
+
}, {
|
|
352
|
+
icon: SvgSadFace,
|
|
353
|
+
modifier: "sad",
|
|
354
|
+
value: RATING_VALUES.BAD.value
|
|
355
|
+
}];
|
|
356
|
+
var ICONS_MAP = {
|
|
357
|
+
star: MemoizedStar,
|
|
358
|
+
heart: MemoizedHeart,
|
|
359
|
+
crown: MemoizedCrown,
|
|
360
|
+
trophy: MemoizedTrophy,
|
|
361
|
+
zap: MemoizedZap
|
|
362
|
+
};
|
|
363
|
+
var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
|
|
364
|
+
|
|
16
365
|
var PARAGRAPH$1 = constants.QUESTION_TYPES.PARAGRAPH,
|
|
17
366
|
TERMS_AND_CONDITION$1 = constants.QUESTION_TYPES.TERMS_AND_CONDITION,
|
|
18
367
|
CONDITION$1 = constants.QUESTION_TYPES.CONDITION,
|
|
@@ -303,11 +652,11 @@ var FILE_TYPES = {
|
|
|
303
652
|
AUDIO_VIDEO: "audio/video"
|
|
304
653
|
};
|
|
305
654
|
var STAR_RATING_ICONS_MAP = {
|
|
306
|
-
star:
|
|
307
|
-
heart:
|
|
308
|
-
crown:
|
|
309
|
-
trophy:
|
|
310
|
-
zap:
|
|
655
|
+
star: MemoizedStar,
|
|
656
|
+
heart: MemoizedHeart,
|
|
657
|
+
crown: MemoizedCrown,
|
|
658
|
+
trophy: MemoizedTrophy,
|
|
659
|
+
zap: MemoizedZap
|
|
311
660
|
};
|
|
312
661
|
var STAR_RATING_MAX_VALUE_OPTIONS = generateRatingOptions([3, 10]);
|
|
313
662
|
var STAR_RATING_MIN_VALUE_OPTIONS = generateRatingOptions([0, 1]);
|
|
@@ -534,9 +883,11 @@ exports.CALLOUT_POSITIONS = CALLOUT_POSITIONS;
|
|
|
534
883
|
exports.CALLOUT_STYLES = CALLOUT_STYLES;
|
|
535
884
|
exports.DEFAULT_AVAILABLE_LANGUAGES = DEFAULT_AVAILABLE_LANGUAGES;
|
|
536
885
|
exports.Drag = Drag;
|
|
886
|
+
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
537
887
|
exports.FIELD_CODES_REJECT_CHARS_REGEX = FIELD_CODES_REJECT_CHARS_REGEX;
|
|
538
888
|
exports.FILE_GROUPS = FILE_GROUPS;
|
|
539
889
|
exports.FILE_TYPES_MAP = FILE_TYPES_MAP;
|
|
890
|
+
exports.ICONS_MAP = ICONS_MAP;
|
|
540
891
|
exports.INDEPENDENT_LABELS_MAP = INDEPENDENT_LABELS_MAP;
|
|
541
892
|
exports.LABEL_FIELDS = LABEL_FIELDS;
|
|
542
893
|
exports.MANDATORY_KINDS = MANDATORY_KINDS;
|
|
@@ -547,10 +898,14 @@ exports.NON_READ_ONLY_FIELDS = NON_READ_ONLY_FIELDS;
|
|
|
547
898
|
exports.QUESTIONS_INITIAL_VALUE = QUESTIONS_INITIAL_VALUE;
|
|
548
899
|
exports.QUESTIONS_WITHOUT_FIELD_CODE = QUESTIONS_WITHOUT_FIELD_CODE;
|
|
549
900
|
exports.QUESTION_ACTIONS = QUESTION_ACTIONS;
|
|
901
|
+
exports.QUESTION_KIND = QUESTION_KIND;
|
|
550
902
|
exports.QUESTION_KINDS = QUESTION_KINDS;
|
|
551
|
-
exports.RATING_OPTIONS = RATING_OPTIONS;
|
|
903
|
+
exports.RATING_OPTIONS = RATING_OPTIONS$1;
|
|
904
|
+
exports.RATING_OPTIONS$1 = RATING_OPTIONS;
|
|
905
|
+
exports.RATING_VALUES = RATING_VALUES;
|
|
552
906
|
exports.RESERVED_FIELD_CODES = RESERVED_FIELD_CODES;
|
|
553
907
|
exports.RICH_TEXT_QUESTIONS = RICH_TEXT_QUESTIONS;
|
|
908
|
+
exports.SCHEMA_LESS_QUESTION_KINDS = SCHEMA_LESS_QUESTION_KINDS;
|
|
554
909
|
exports.SELECTABLE_KINDS = SELECTABLE_KINDS;
|
|
555
910
|
exports.STAR_RATING_ICONS_MAP = STAR_RATING_ICONS_MAP;
|
|
556
911
|
exports.STAR_RATING_MAX_VALUE_OPTIONS = STAR_RATING_MAX_VALUE_OPTIONS;
|
|
@@ -567,4 +922,4 @@ exports.isElementOverflowing = isElementOverflowing;
|
|
|
567
922
|
exports.isImmutableField = isImmutableField;
|
|
568
923
|
exports.isRichTextQuestion = isRichTextQuestion;
|
|
569
924
|
exports.validateEditorContent = validateEditorContent;
|
|
570
|
-
//# sourceMappingURL=constants-
|
|
925
|
+
//# sourceMappingURL=constants-B33YjyaT.js.map
|