@bigbinary/neeto-form-frontend 4.4.37 → 4.4.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.
Files changed (87) hide show
  1. package/app/javascript/src/translations/en.json +5 -1
  2. package/dist/.ready +1 -1
  3. package/dist/BuildForm.js +57 -7
  4. package/dist/BuildForm.js.map +1 -1
  5. package/dist/ExternalForm.js +5 -4
  6. package/dist/ExternalForm.js.map +1 -1
  7. package/dist/Submission.js +1 -1
  8. package/dist/UrlBuilder.js +5 -4
  9. package/dist/UrlBuilder.js.map +1 -1
  10. package/dist/{buildForm-Ds5d1DR8.js → buildForm-C5642_SF.js} +2 -2
  11. package/dist/{buildForm-Ds5d1DR8.js.map → buildForm-C5642_SF.js.map} +1 -1
  12. package/dist/cjs/BuildForm.js +57 -7
  13. package/dist/cjs/BuildForm.js.map +1 -1
  14. package/dist/cjs/ExternalForm.js +5 -4
  15. package/dist/cjs/ExternalForm.js.map +1 -1
  16. package/dist/cjs/Submission.js +1 -1
  17. package/dist/cjs/UrlBuilder.js +5 -4
  18. package/dist/cjs/UrlBuilder.js.map +1 -1
  19. package/dist/cjs/{buildForm-CtHZCSpo.js → buildForm-BO5Vcxv_.js} +2 -2
  20. package/dist/cjs/{buildForm-CtHZCSpo.js.map → buildForm-BO5Vcxv_.js.map} +1 -1
  21. package/dist/cjs/{constants-CUBwzMb-.js → constants-D3en9KhN.js} +2 -1
  22. package/dist/cjs/constants-D3en9KhN.js.map +1 -0
  23. package/dist/cjs/hooks.js +4 -4
  24. package/dist/cjs/{index-Bj56Ua86.js → index-B9L6Cdpy.js} +2 -2
  25. package/dist/cjs/{index-Bj56Ua86.js.map → index-B9L6Cdpy.js.map} +1 -1
  26. package/dist/cjs/index.js +10 -9
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/cjs/{useFormSubmission-DGRHK3u9.js → useFormSubmission-CdbaJ9RK.js} +2 -2
  29. package/dist/cjs/{useFormSubmission-DGRHK3u9.js.map → useFormSubmission-CdbaJ9RK.js.map} +1 -1
  30. package/dist/cjs/{utils-Xnit8PUn.js → utils-ojUD_GO6.js} +188 -96
  31. package/dist/cjs/utils-ojUD_GO6.js.map +1 -0
  32. package/dist/cjs/v2/BuildForm.js +54 -5
  33. package/dist/cjs/v2/BuildForm.js.map +1 -1
  34. package/dist/cjs/v2/ExternalForm.js +3 -3
  35. package/dist/cjs/v2/Submission.js +1 -1
  36. package/dist/cjs/v2/UrlBuilder.js +3 -3
  37. package/dist/cjs/v2/{constants-DIy-d-Pb.js → constants-DyPOVMyi.js} +2 -1
  38. package/dist/cjs/v2/constants-DyPOVMyi.js.map +1 -0
  39. package/dist/cjs/v2/index.js +4 -4
  40. package/dist/cjs/v2/{utils-DHGS4O20.js → utils-ChwdTdnN.js} +190 -98
  41. package/dist/cjs/v2/utils-ChwdTdnN.js.map +1 -0
  42. package/dist/cjs/v2/{yup-B-A1W_Vi.js → yup-CKeWnmJ3.js} +337 -37
  43. package/dist/cjs/v2/yup-CKeWnmJ3.js.map +1 -0
  44. package/dist/cjs/{yup-DZgfXVgs.js → yup-DvB9BGdG.js} +340 -39
  45. package/dist/cjs/yup-DvB9BGdG.js.map +1 -0
  46. package/dist/{constants-fjoeNdhb.js → constants-ClqQe4qZ.js} +2 -1
  47. package/dist/constants-ClqQe4qZ.js.map +1 -0
  48. package/dist/hooks.js +4 -4
  49. package/dist/{index-Cx0yvXwJ.js → index-CAR9-spo.js} +2 -2
  50. package/dist/{index-Cx0yvXwJ.js.map → index-CAR9-spo.js.map} +1 -1
  51. package/dist/index.js +10 -9
  52. package/dist/index.js.map +1 -1
  53. package/dist/main.css +1 -1
  54. package/dist/main.css.map +1 -1
  55. package/dist/{useFormSubmission-DMpf1msR.js → useFormSubmission-DMRpRRj4.js} +2 -2
  56. package/dist/{useFormSubmission-DMpf1msR.js.map → useFormSubmission-DMRpRRj4.js.map} +1 -1
  57. package/dist/{utils-Chj7ZOKi.js → utils-6l6j_LN6.js} +188 -96
  58. package/dist/utils-6l6j_LN6.js.map +1 -0
  59. package/dist/v2/BuildForm.js +54 -5
  60. package/dist/v2/BuildForm.js.map +1 -1
  61. package/dist/v2/ExternalForm.js +3 -3
  62. package/dist/v2/Submission.js +1 -1
  63. package/dist/v2/UrlBuilder.js +3 -3
  64. package/dist/v2/{constants-CZ7swzMG.js → constants-BlY0KFT4.js} +2 -1
  65. package/dist/v2/constants-BlY0KFT4.js.map +1 -0
  66. package/dist/v2/index.js +4 -4
  67. package/dist/v2/main.css +1 -1
  68. package/dist/v2/main.css.map +1 -1
  69. package/dist/v2/{utils-CemGJeLy.js → utils-B8sTYkWG.js} +190 -98
  70. package/dist/v2/utils-B8sTYkWG.js.map +1 -0
  71. package/dist/v2/{yup-eUr74YY2.js → yup-Cf-x7SqN.js} +336 -39
  72. package/dist/v2/yup-Cf-x7SqN.js.map +1 -0
  73. package/dist/{yup-CwN-8JrO.js → yup-7qmI_2fI.js} +338 -40
  74. package/dist/yup-7qmI_2fI.js.map +1 -0
  75. package/package.json +16 -16
  76. package/dist/cjs/constants-CUBwzMb-.js.map +0 -1
  77. package/dist/cjs/utils-Xnit8PUn.js.map +0 -1
  78. package/dist/cjs/v2/constants-DIy-d-Pb.js.map +0 -1
  79. package/dist/cjs/v2/utils-DHGS4O20.js.map +0 -1
  80. package/dist/cjs/v2/yup-B-A1W_Vi.js.map +0 -1
  81. package/dist/cjs/yup-DZgfXVgs.js.map +0 -1
  82. package/dist/constants-fjoeNdhb.js.map +0 -1
  83. package/dist/utils-Chj7ZOKi.js.map +0 -1
  84. package/dist/v2/constants-CZ7swzMG.js.map +0 -1
  85. package/dist/v2/utils-CemGJeLy.js.map +0 -1
  86. package/dist/v2/yup-eUr74YY2.js.map +0 -1
  87. package/dist/yup-CwN-8JrO.js.map +0 -1
@@ -1,9 +1,10 @@
1
1
  import { t } from 'i18next';
2
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
4
  import * as React from 'react';
3
5
  import { memo } from 'react';
6
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
7
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
5
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
6
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
7
8
  import Address from '@bigbinary/neeto-icons/Address';
8
9
  import Calendar from '@bigbinary/neeto-icons/Calendar';
9
10
  import Captcha from '@bigbinary/neeto-icons/Captcha';
@@ -26,27 +27,27 @@ import Sms from '@bigbinary/neeto-icons/Sms';
26
27
  import Terms from '@bigbinary/neeto-icons/Terms';
27
28
  import TextLines from '@bigbinary/neeto-icons/TextLines';
28
29
  import UserRoundedRect from '@bigbinary/neeto-icons/UserRoundedRect';
29
- import { Q as QUESTION_TYPES, C as CAPTCHA_TYPES } from './constants-fjoeNdhb.js';
30
+ import YesNo from '@bigbinary/neeto-icons/YesNo';
31
+ import { Q as QUESTION_TYPES, C as CAPTCHA_TYPES } from './constants-ClqQe4qZ.js';
30
32
  import { includes, __, equals, curry, assoc, prop, dissoc, mergeAll, reduce, range, reject, filter, values, pipe, toLower, map } from 'ramda';
31
- import { jsx, jsxs } from 'react/jsx-runtime';
32
33
  import { dynamicArray, findBy, toLabelAndValue } from '@bigbinary/neeto-cist';
33
34
  import DOMPurify from 'dompurify';
34
- import { f as fieldWithFallback } from './index-Cx0yvXwJ.js';
35
+ import { f as fieldWithFallback } from './index-CAR9-spo.js';
35
36
  import Plus from '@bigbinary/neeto-icons/Plus';
36
37
  import * as yup from 'yup';
37
38
 
38
- var _excluded$2 = ["size"],
39
- _excluded2$1 = ["size"],
40
- _excluded3$1 = ["size"],
41
- _excluded4 = ["size"],
42
- _excluded5 = ["size"];
43
- function ownKeys$3(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; }
44
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39
+ var _excluded$3 = ["size"],
40
+ _excluded2$2 = ["size"],
41
+ _excluded3$2 = ["size"],
42
+ _excluded4$1 = ["size"],
43
+ _excluded5$1 = ["size"];
44
+ function ownKeys$4(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; }
45
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
45
46
  var Star = function Star(props) {
46
47
  var _props$size = props.size,
47
48
  size = _props$size === void 0 ? 20 : _props$size,
48
- other = _objectWithoutProperties(props, _excluded$2);
49
- return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
49
+ other = _objectWithoutProperties(props, _excluded$3);
50
+ return /*#__PURE__*/jsx("svg", _objectSpread$4(_objectSpread$4({
50
51
  fill: "none",
51
52
  height: size,
52
53
  stroke: "currentColor",
@@ -65,8 +66,8 @@ var Star = function Star(props) {
65
66
  var Heart = function Heart(props) {
66
67
  var _props$size2 = props.size,
67
68
  size = _props$size2 === void 0 ? 20 : _props$size2,
68
- other = _objectWithoutProperties(props, _excluded2$1);
69
- return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
69
+ other = _objectWithoutProperties(props, _excluded2$2);
70
+ return /*#__PURE__*/jsx("svg", _objectSpread$4(_objectSpread$4({
70
71
  fill: "none",
71
72
  height: size,
72
73
  stroke: "currentColor",
@@ -85,8 +86,8 @@ var Heart = function Heart(props) {
85
86
  var Zap = function Zap(props) {
86
87
  var _props$size3 = props.size,
87
88
  size = _props$size3 === void 0 ? 20 : _props$size3,
88
- other = _objectWithoutProperties(props, _excluded3$1);
89
- return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
89
+ other = _objectWithoutProperties(props, _excluded3$2);
90
+ return /*#__PURE__*/jsx("svg", _objectSpread$4(_objectSpread$4({
90
91
  fill: "none",
91
92
  height: size,
92
93
  stroke: "currentColor",
@@ -105,8 +106,8 @@ var Zap = function Zap(props) {
105
106
  var Crown = function Crown(_ref) {
106
107
  var _ref$size = _ref.size,
107
108
  size = _ref$size === void 0 ? 20 : _ref$size,
108
- otherProps = _objectWithoutProperties(_ref, _excluded4);
109
- return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
109
+ otherProps = _objectWithoutProperties(_ref, _excluded4$1);
110
+ return /*#__PURE__*/jsx("svg", _objectSpread$4(_objectSpread$4({
110
111
  fill: "none",
111
112
  height: size,
112
113
  stroke: "currentColor",
@@ -129,8 +130,8 @@ var Crown = function Crown(_ref) {
129
130
  var Trophy = function Trophy(_ref2) {
130
131
  var _ref2$size = _ref2.size,
131
132
  size = _ref2$size === void 0 ? 20 : _ref2$size,
132
- otherProps = _objectWithoutProperties(_ref2, _excluded5);
133
- return /*#__PURE__*/jsxs("svg", _objectSpread$3(_objectSpread$3({
133
+ otherProps = _objectWithoutProperties(_ref2, _excluded5$1);
134
+ return /*#__PURE__*/jsxs("svg", _objectSpread$4(_objectSpread$4({
134
135
  fill: "none",
135
136
  height: size,
136
137
  stroke: "currentColor",
@@ -180,20 +181,173 @@ var MemoizedZap = /*#__PURE__*/memo(Zap);
180
181
  var MemoizedCrown = /*#__PURE__*/memo(Crown);
181
182
  var MemoizedTrophy = /*#__PURE__*/memo(Trophy);
182
183
 
183
- var _path$2, _path2$2;
184
- 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); }
185
- const SvgConfusedFace = props => /*#__PURE__*/React.createElement("svg", _extends$2({
184
+ var _excluded$2 = ["size"],
185
+ _excluded2$1 = ["size"],
186
+ _excluded3$1 = ["size"],
187
+ _excluded4 = ["size"],
188
+ _excluded5 = ["size"],
189
+ _excluded6 = ["size"];
190
+ function ownKeys$3(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; }
191
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
192
+ var ThumbsUp = function ThumbsUp(props) {
193
+ var _props$size = props.size,
194
+ size = _props$size === void 0 ? 20 : _props$size,
195
+ other = _objectWithoutProperties(props, _excluded$2);
196
+ return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
197
+ fill: "none",
198
+ height: size,
199
+ stroke: "currentColor",
200
+ strokeLinecap: "round",
201
+ strokeLinejoin: "round",
202
+ strokeWidth: "2",
203
+ viewBox: "0 0 24 24",
204
+ width: size,
205
+ xmlns: "http://www.w3.org/2000/svg"
206
+ }, other), {}, {
207
+ children: /*#__PURE__*/jsx("path", {
208
+ d: "M14 9V5a3 3 0 00-3-3l-4 9v11h11.28a2 2 0 002-1.7l1.38-9a2 2 0 00-2-2.3zM7 22H4a2 2 0 01-2-2v-7a2 2 0 012-2h3"
209
+ })
210
+ }));
211
+ };
212
+ var ThumbsDown = function ThumbsDown(props) {
213
+ var _props$size2 = props.size,
214
+ size = _props$size2 === void 0 ? 20 : _props$size2,
215
+ other = _objectWithoutProperties(props, _excluded2$1);
216
+ return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
217
+ fill: "none",
218
+ height: size,
219
+ stroke: "currentColor",
220
+ strokeLinecap: "round",
221
+ strokeLinejoin: "round",
222
+ strokeWidth: "2",
223
+ viewBox: "0 0 24 24",
224
+ width: size,
225
+ xmlns: "http://www.w3.org/2000/svg"
226
+ }, other), {}, {
227
+ children: /*#__PURE__*/jsx("path", {
228
+ d: "M10 15v4a3 3 0 003 3l4-9V2H5.72a2 2 0 00-2 1.7l-1.38 9a2 2 0 002 2.3zm7-13h2.67A2.31 2.31 0 0122 4v7a2.31 2.31 0 01-2.33 2H17"
229
+ })
230
+ }));
231
+ };
232
+ var Check = function Check(props) {
233
+ var _props$size3 = props.size,
234
+ size = _props$size3 === void 0 ? 20 : _props$size3,
235
+ other = _objectWithoutProperties(props, _excluded3$1);
236
+ return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({
237
+ fill: "none",
238
+ height: size,
239
+ stroke: "currentColor",
240
+ strokeLinecap: "round",
241
+ strokeLinejoin: "round",
242
+ strokeWidth: "2",
243
+ viewBox: "0 0 24 24",
244
+ width: size,
245
+ xmlns: "http://www.w3.org/2000/svg"
246
+ }, other), {}, {
247
+ children: /*#__PURE__*/jsx("path", {
248
+ d: "M20 6L9 17 4 12"
249
+ })
250
+ }));
251
+ };
252
+ var Close = function Close(props) {
253
+ var _props$size4 = props.size,
254
+ size = _props$size4 === void 0 ? 20 : _props$size4,
255
+ other = _objectWithoutProperties(props, _excluded4);
256
+ return /*#__PURE__*/jsxs("svg", _objectSpread$3(_objectSpread$3({
257
+ fill: "none",
258
+ height: size,
259
+ stroke: "currentColor",
260
+ strokeLinecap: "round",
261
+ strokeLinejoin: "round",
262
+ strokeWidth: "2",
263
+ viewBox: "0 0 24 24",
264
+ width: size,
265
+ xmlns: "http://www.w3.org/2000/svg"
266
+ }, other), {}, {
267
+ children: [/*#__PURE__*/jsx("path", {
268
+ d: "M18 6L6 18"
269
+ }), /*#__PURE__*/jsx("path", {
270
+ d: "M6 6L18 18"
271
+ })]
272
+ }));
273
+ };
274
+ var HappySmiley = function HappySmiley(props) {
275
+ var _props$size5 = props.size,
276
+ size = _props$size5 === void 0 ? 20 : _props$size5,
277
+ other = _objectWithoutProperties(props, _excluded5);
278
+ return /*#__PURE__*/jsxs("svg", _objectSpread$3(_objectSpread$3({
279
+ fill: "none",
280
+ height: size,
281
+ stroke: "currentColor",
282
+ strokeLinecap: "round",
283
+ strokeLinejoin: "round",
284
+ strokeWidth: "2",
285
+ viewBox: "0 0 24 24",
286
+ width: size,
287
+ xmlns: "http://www.w3.org/2000/svg"
288
+ }, other), {}, {
289
+ children: [/*#__PURE__*/jsx("circle", {
290
+ cx: "12",
291
+ cy: "12",
292
+ r: "10"
293
+ }), /*#__PURE__*/jsx("path", {
294
+ d: "M8 14s1.5 2 4 2 4-2 4-2"
295
+ }), /*#__PURE__*/jsx("path", {
296
+ d: "M9 9L9.01 9"
297
+ }), /*#__PURE__*/jsx("path", {
298
+ d: "M15 9L15.01 9"
299
+ })]
300
+ }));
301
+ };
302
+ var SadSmiley = function SadSmiley(props) {
303
+ var _props$size6 = props.size,
304
+ size = _props$size6 === void 0 ? 20 : _props$size6,
305
+ other = _objectWithoutProperties(props, _excluded6);
306
+ return /*#__PURE__*/jsxs("svg", _objectSpread$3(_objectSpread$3({
307
+ fill: "none",
308
+ height: size,
309
+ stroke: "currentColor",
310
+ strokeLinecap: "round",
311
+ strokeLinejoin: "round",
312
+ strokeWidth: "2",
313
+ viewBox: "0 0 24 24",
314
+ width: size,
315
+ xmlns: "http://www.w3.org/2000/svg"
316
+ }, other), {}, {
317
+ children: [/*#__PURE__*/jsx("circle", {
318
+ cx: "12",
319
+ cy: "12",
320
+ r: "10"
321
+ }), /*#__PURE__*/jsx("path", {
322
+ d: "M16 16s-1.5-2-4-2-4 2-4 2"
323
+ }), /*#__PURE__*/jsx("path", {
324
+ d: "M9 9L9.01 9"
325
+ }), /*#__PURE__*/jsx("path", {
326
+ d: "M15 9L15.01 9"
327
+ })]
328
+ }));
329
+ };
330
+ var MemoizedThumbsUp = /*#__PURE__*/memo(ThumbsUp);
331
+ var MemoizedThumbsDown = /*#__PURE__*/memo(ThumbsDown);
332
+ var MemoizedCheck = /*#__PURE__*/memo(Check);
333
+ var MemoizedClose = /*#__PURE__*/memo(Close);
334
+ var MemoizedHappySmiley = /*#__PURE__*/memo(HappySmiley);
335
+ var MemoizedSadSmiley = /*#__PURE__*/memo(SadSmiley);
336
+
337
+ var _path$8, _path2$3;
338
+ function _extends$8() { return _extends$8 = 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$8.apply(null, arguments); }
339
+ const SvgConfusedFace = props => /*#__PURE__*/React.createElement("svg", _extends$8({
186
340
  xmlns: "http://www.w3.org/2000/svg",
187
341
  width: 32,
188
342
  height: 32,
189
343
  fill: "none"
190
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
344
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
191
345
  stroke: "#68737D",
192
346
  strokeLinecap: "round",
193
347
  strokeLinejoin: "round",
194
348
  strokeWidth: 2,
195
349
  d: "M16 4C9.383 4 4 9.383 4 16s5.383 12 12 12 12-5.384 12-12S22.616 4 16 4Z"
196
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
350
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
197
351
  stroke: "#68737D",
198
352
  strokeLinecap: "round",
199
353
  strokeLinejoin: "round",
@@ -201,20 +355,20 @@ const SvgConfusedFace = props => /*#__PURE__*/React.createElement("svg", _extend
201
355
  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"
202
356
  })));
203
357
 
204
- var _path$1, _path2$1, _path3;
205
- 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); }
206
- const SvgHappyFace = props => /*#__PURE__*/React.createElement("svg", _extends$1({
358
+ var _path$7, _path2$2, _path3;
359
+ function _extends$7() { return _extends$7 = 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$7.apply(null, arguments); }
360
+ const SvgHappyFace = props => /*#__PURE__*/React.createElement("svg", _extends$7({
207
361
  xmlns: "http://www.w3.org/2000/svg",
208
362
  width: 32,
209
363
  height: 32,
210
364
  fill: "none"
211
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
365
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
212
366
  stroke: "#68737D",
213
367
  strokeLinecap: "round",
214
368
  strokeLinejoin: "round",
215
369
  strokeWidth: 2,
216
370
  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"
217
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
371
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
218
372
  stroke: "#68737D",
219
373
  strokeLinecap: "round",
220
374
  strokeLinejoin: "round",
@@ -228,20 +382,20 @@ const SvgHappyFace = props => /*#__PURE__*/React.createElement("svg", _extends$1
228
382
  d: "M20.665 19.584s-1.75 1.75-4.666 1.75c-2.918 0-4.667-1.75-4.667-1.75"
229
383
  })));
230
384
 
231
- var _path, _path2;
232
- 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); }
233
- const SvgSadFace = props => /*#__PURE__*/React.createElement("svg", _extends({
385
+ var _path$6, _path2$1;
386
+ function _extends$6() { return _extends$6 = 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$6.apply(null, arguments); }
387
+ const SvgSadFace = props => /*#__PURE__*/React.createElement("svg", _extends$6({
234
388
  xmlns: "http://www.w3.org/2000/svg",
235
389
  width: 32,
236
390
  height: 32,
237
391
  fill: "none"
238
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
392
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
239
393
  stroke: "#68737D",
240
394
  strokeLinecap: "round",
241
395
  strokeLinejoin: "round",
242
396
  strokeWidth: 2,
243
397
  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"
244
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
398
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
245
399
  stroke: "#68737D",
246
400
  strokeLinecap: "round",
247
401
  strokeLinejoin: "round",
@@ -290,6 +444,9 @@ var QUESTION_KIND = {
290
444
  OPINION_SCALE: {
291
445
  value: "opinion_scale"
292
446
  },
447
+ YES_NO: {
448
+ value: "yes_no"
449
+ },
293
450
  TERMS: {
294
451
  value: "termsandcondition",
295
452
  type: "checkbox"
@@ -373,6 +530,33 @@ var ICONS_MAP = {
373
530
  trophy: MemoizedTrophy,
374
531
  zap: MemoizedZap
375
532
  };
533
+ var YES_NO_VALUES = {
534
+ YES: {
535
+ label: t("neetoForm.common.yes"),
536
+ value: "Yes"
537
+ },
538
+ NO: {
539
+ label: t("neetoForm.common.no"),
540
+ value: "No"
541
+ }
542
+ };
543
+
544
+ // Keys mirror YES_NO_ICONS in BuildForm/Questions/Fields/constants. Importing it
545
+ // here would close a cycle: BuildForm/index -> ExternalForm/constants -> BuildForm.
546
+ var YES_NO_DISPLAY_ICONS_MAP = {
547
+ thumbs: {
548
+ Yes: MemoizedThumbsUp,
549
+ No: MemoizedThumbsDown
550
+ },
551
+ check: {
552
+ Yes: MemoizedCheck,
553
+ No: MemoizedClose
554
+ },
555
+ emoji: {
556
+ Yes: MemoizedHappySmiley,
557
+ No: MemoizedSadSmiley
558
+ }
559
+ };
376
560
  var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
377
561
  var SIX_DIGIT_NUMBER_REGEX = /^\d{6}$/;
378
562
  var PARENTHESES_REGEX = /[()]/g;
@@ -520,6 +704,90 @@ GoodSmiley.defaultProps = {
520
704
  strokeWidth: "1.5"
521
705
  };
522
706
 
707
+ var _path$5;
708
+ function _extends$5() { return _extends$5 = 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$5.apply(null, arguments); }
709
+ const SvgCheck = props => /*#__PURE__*/React.createElement("svg", _extends$5({
710
+ xmlns: "http://www.w3.org/2000/svg",
711
+ width: 16,
712
+ height: 16,
713
+ fill: "none"
714
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
715
+ fill: "currentColor",
716
+ d: "M5.876 10.568 3.11 7.804l-.942.942 3.707 3.698 7.955-7.956-.942-.933-7.013 7.013Z"
717
+ })));
718
+
719
+ var _path$4;
720
+ function _extends$4() { return _extends$4 = 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$4.apply(null, arguments); }
721
+ const SvgClose = props => /*#__PURE__*/React.createElement("svg", _extends$4({
722
+ xmlns: "http://www.w3.org/2000/svg",
723
+ width: 16,
724
+ height: 16,
725
+ fill: "none"
726
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
727
+ fill: "currentColor",
728
+ d: "m12.915 4.026-.942-.942L8 7.057 4.026 3.084l-.942.942L7.057 8l-3.973 3.973.942.942L8 8.942l3.973 3.973.942-.942L8.942 8l3.973-3.974Z"
729
+ })));
730
+
731
+ var _path$3;
732
+ function _extends$3() { return _extends$3 = 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$3.apply(null, arguments); }
733
+ const SvgNeutral = props => /*#__PURE__*/React.createElement("svg", _extends$3({
734
+ xmlns: "http://www.w3.org/2000/svg",
735
+ width: 16,
736
+ height: 16,
737
+ fill: "none"
738
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
739
+ stroke: "currentColor",
740
+ strokeLinecap: "round",
741
+ strokeLinejoin: "round",
742
+ strokeWidth: 1.5,
743
+ d: "M8 14.667A6.667 6.667 0 1 0 8 1.334a6.667 6.667 0 0 0 0 13.333ZM5.333 10h5.333M6 6h.007M10 6h.007"
744
+ })));
745
+
746
+ var _path$2, _path2;
747
+ 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); }
748
+ const SvgSmile = props => /*#__PURE__*/React.createElement("svg", _extends$2({
749
+ xmlns: "http://www.w3.org/2000/svg",
750
+ width: 16,
751
+ height: 16,
752
+ fill: "none"
753
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
754
+ stroke: "currentColor",
755
+ strokeLinecap: "round",
756
+ strokeLinejoin: "round",
757
+ strokeWidth: 1.5,
758
+ d: "M8 14.667A6.667 6.667 0 1 0 8 1.334a6.667 6.667 0 0 0 0 13.333Z"
759
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
760
+ stroke: "currentColor",
761
+ strokeLinecap: "round",
762
+ strokeLinejoin: "round",
763
+ strokeWidth: 1.5,
764
+ d: "M5.333 9.334s1 1.333 2.667 1.333c1.666 0 2.666-1.333 2.666-1.333M6 6h.007M10 6h.007"
765
+ })));
766
+
767
+ var _path$1;
768
+ 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); }
769
+ const SvgThumbDown = props => /*#__PURE__*/React.createElement("svg", _extends$1({
770
+ xmlns: "http://www.w3.org/2000/svg",
771
+ width: 16,
772
+ height: 16,
773
+ fill: "none"
774
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
775
+ fill: "currentColor",
776
+ d: "M10 2H4c-.553 0-1.026.333-1.226.813L.76 7.513C.7 7.667.667 7.827.667 8v1.273l.007.007-.007.053c0 .734.6 1.334 1.333 1.334h4.207l-.633 3.046-.02.214c0 .273.113.526.293.706l.707.7 4.393-4.393c.24-.24.387-.573.387-.94V3.333C11.334 2.6 10.734 2 10 2Zm2.667 0v8h2.667V2h-2.667Z"
777
+ })));
778
+
779
+ var _path;
780
+ 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); }
781
+ const SvgThumbUp = props => /*#__PURE__*/React.createElement("svg", _extends({
782
+ xmlns: "http://www.w3.org/2000/svg",
783
+ width: 16,
784
+ height: 16,
785
+ fill: "none"
786
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
787
+ fill: "currentColor",
788
+ d: "M.667 14h2.667V6H.667v8Zm14.667-7.334c0-.733-.6-1.333-1.334-1.333H9.794l.633-3.047.02-.213c0-.274-.113-.527-.293-.707l-.707-.7L5.06 5.059c-.246.24-.393.574-.393.94v6.667c0 .733.6 1.333 1.333 1.333h6c.554 0 1.027-.333 1.227-.813l2.013-4.7c.06-.153.094-.313.094-.487V6.726l-.007-.007.007-.053Z"
789
+ })));
790
+
523
791
  var CALLOUT_STYLES = {
524
792
  ERROR: "error",
525
793
  INFO: "info"
@@ -753,6 +1021,24 @@ var DEFAULT_ADDRESS_FIELDS = [{
753
1021
  label: t("neetoForm.questions.address.defaultFields.postalZipCode"),
754
1022
  labelKey: "neetoForm.questions.address.defaultFields.postalZipCode"
755
1023
  }];
1024
+ var YES_NO_ICONS = {
1025
+ THUMBS: "thumbs",
1026
+ CHECK: "check",
1027
+ EMOJI: "emoji"
1028
+ };
1029
+
1030
+ // Small filled glyphs for the builder swatches; the rendered form uses the
1031
+ // stroked YES_NO_DISPLAY_ICONS_MAP in ExternalForm/constants.
1032
+ var YES_NO_ICONS_MAP = _defineProperty(_defineProperty(_defineProperty({}, YES_NO_ICONS.THUMBS, {
1033
+ Yes: SvgThumbUp,
1034
+ No: SvgThumbDown
1035
+ }), YES_NO_ICONS.CHECK, {
1036
+ Yes: SvgCheck,
1037
+ No: SvgClose
1038
+ }), YES_NO_ICONS.EMOJI, {
1039
+ Yes: SvgSmile,
1040
+ No: SvgNeutral
1041
+ });
756
1042
  var MIN_WORDS_SWITCH_LABEL_PROPS = {
757
1043
  helpIconProps: {
758
1044
  "data-testid": "min-words-help-popover-button",
@@ -787,7 +1073,8 @@ var NAME = QUESTION_TYPES.NAME,
787
1073
  CAPTCHA = QUESTION_TYPES.CAPTCHA,
788
1074
  SMS_REMINDER = QUESTION_TYPES.SMS_REMINDER,
789
1075
  SPOT = QUESTION_TYPES.SPOT,
790
- ADDRESS = QUESTION_TYPES.ADDRESS;
1076
+ ADDRESS = QUESTION_TYPES.ADDRESS,
1077
+ YES_NO = QUESTION_TYPES.YES_NO;
791
1078
  var PARAGRAPH_SEARCH_ALIASES = t("neetoForm.questionAliases.def").split(",").map(function (alias) {
792
1079
  return alias.trim().toLowerCase();
793
1080
  });
@@ -938,6 +1225,17 @@ var QUESTION_KINDS = [{
938
1225
  label: "",
939
1226
  isRequired: true
940
1227
  }, OPINION_SCALE_DEFAULT_VALUES)
1228
+ }, {
1229
+ type: YES_NO,
1230
+ label: t("neetoForm.fields.yesNo"),
1231
+ icon: YesNo,
1232
+ isSingular: false,
1233
+ defaults: {
1234
+ label: "",
1235
+ isRequired: true,
1236
+ isIconEnabled: false,
1237
+ iconType: YES_NO_ICONS.EMOJI
1238
+ }
941
1239
  }, {
942
1240
  type: RATING,
943
1241
  label: t("neetoForm.fields.fbf"),
@@ -1042,5 +1340,5 @@ yup.addMethod(yup.array, "unique", function () {
1042
1340
  });
1043
1341
  });
1044
1342
 
1045
- export { STAR_RATING_MIN_VALUE_OPTIONS as $, ADDRESS_FIELD_TYPES as A, RICH_TEXT_QUESTIONS as B, CALLOUT_POSITIONS as C, DEFAULT_CHOICE_QUESTION_ATTRIBUTES as D, EMAIL_REGEX as E, FIELD_CODES_REJECT_CHARS_REGEX as F, generateDefaultOptions as G, MINIMUM_ADDRESS_FIELDS as H, ICONS_MAP as I, getDeletedRecords as J, randomId as K, LAST_ELEMENTS_THRESHOLD as L, MIN_WORDS_SWITCH_LABEL_PROPS as M, NON_BASIC_LATIN_CHARACTERS_REGEX as N, OPINION_LABEL_MAX_LENGTH as O, PARENTHESES_REGEX as P, QUESTION_KIND as Q, RATING_VALUES as R, SPOT_QUESTION_DEFAULT_VALUE as S, getActiveRecords as T, FILE_TYPES_MAP as U, FILE_GROUPS as V, OPINION_SCALE_MIN_VALUE_OPTIONS as W, OPINION_SCALE_MAX_VALUE_OPTIONS as X, MINIMUM_OPTIONS as Y, IMAGE_HEIGHT_SLIDER_DEFAULTS as Z, RATING_OPTIONS as _, QUESTIONS_WITHOUT_FIELD_CODE as a, STAR_RATING_MAX_VALUE_OPTIONS as a0, STAR_RATING_ICONS_MAP as a1, buildDisabledAddButtonHelpPopoverProps as a2, buildReorderPayload as a3, QUESTIONS_INITIAL_VALUE as a4, isMandatoryField as a5, QUESTION_KINDS as a6, getActiveQuestionKindDetails as a7, DEFAULT_AVAILABLE_LANGUAGES as a8, DEFAULT_ADVANCED_FEATURES as a9, CALLOUT_STYLES as b, SCHEMA_LESS_QUESTION_KINDS as c, SIX_DIGIT_NUMBER_REGEX as d, ADDRESS_FIELD_WIDTHS as e, LABEL_FIELDS as f, generateArray as g, RADIO_DESELECT_KEYS as h, RATING_OPTIONS$1 as i, QUESTION_ACTIONS as j, INDEPENDENT_LABELS_MAP as k, buildDisplayLabel as l, isElementOverflowing as m, SELECTABLE_KINDS as n, isAutoGeneratedQuestion as o, isRichTextQuestion as p, SPOT_QUESTION_FIELD_CODE as q, RESERVED_FIELD_CODES as r, renameKey as s, isDefaultLanguage as t, buildAddQuestionButtonProps as u, validateEditorContent as v, MIN_WORDS as w, isImmutableField as x, NON_HIDEABLE_FIELDS as y, NON_READ_ONLY_FIELDS as z };
1046
- //# sourceMappingURL=yup-CwN-8JrO.js.map
1343
+ export { IMAGE_HEIGHT_SLIDER_DEFAULTS as $, ADDRESS_FIELD_TYPES as A, NON_READ_ONLY_FIELDS as B, CALLOUT_POSITIONS as C, DEFAULT_CHOICE_QUESTION_ATTRIBUTES as D, EMAIL_REGEX as E, FIELD_CODES_REJECT_CHARS_REGEX as F, RICH_TEXT_QUESTIONS as G, generateDefaultOptions as H, ICONS_MAP as I, MINIMUM_ADDRESS_FIELDS as J, getDeletedRecords as K, LAST_ELEMENTS_THRESHOLD as L, MIN_WORDS_SWITCH_LABEL_PROPS as M, NON_BASIC_LATIN_CHARACTERS_REGEX as N, OPINION_LABEL_MAX_LENGTH as O, PARENTHESES_REGEX as P, QUESTION_KIND as Q, RATING_VALUES as R, SPOT_QUESTION_DEFAULT_VALUE as S, randomId as T, getActiveRecords as U, FILE_TYPES_MAP as V, FILE_GROUPS as W, OPINION_SCALE_MIN_VALUE_OPTIONS as X, YES_NO_VALUES as Y, OPINION_SCALE_MAX_VALUE_OPTIONS as Z, MINIMUM_OPTIONS as _, QUESTIONS_WITHOUT_FIELD_CODE as a, RATING_OPTIONS as a0, STAR_RATING_MIN_VALUE_OPTIONS as a1, STAR_RATING_MAX_VALUE_OPTIONS as a2, STAR_RATING_ICONS_MAP as a3, YES_NO_ICONS_MAP as a4, buildDisabledAddButtonHelpPopoverProps as a5, buildReorderPayload as a6, QUESTIONS_INITIAL_VALUE as a7, isMandatoryField as a8, QUESTION_KINDS as a9, getActiveQuestionKindDetails as aa, DEFAULT_AVAILABLE_LANGUAGES as ab, DEFAULT_ADVANCED_FEATURES as ac, CALLOUT_STYLES as b, SCHEMA_LESS_QUESTION_KINDS as c, SIX_DIGIT_NUMBER_REGEX as d, ADDRESS_FIELD_WIDTHS as e, LABEL_FIELDS as f, generateArray as g, RADIO_DESELECT_KEYS as h, RATING_OPTIONS$1 as i, YES_NO_DISPLAY_ICONS_MAP as j, QUESTION_ACTIONS as k, INDEPENDENT_LABELS_MAP as l, buildDisplayLabel as m, isElementOverflowing as n, SELECTABLE_KINDS as o, isAutoGeneratedQuestion as p, isRichTextQuestion as q, SPOT_QUESTION_FIELD_CODE as r, RESERVED_FIELD_CODES as s, renameKey as t, isDefaultLanguage as u, buildAddQuestionButtonProps as v, validateEditorContent as w, MIN_WORDS as x, isImmutableField as y, NON_HIDEABLE_FIELDS as z };
1344
+ //# sourceMappingURL=yup-7qmI_2fI.js.map