@bigbinary/neeto-form-frontend 4.6.3-beta1 → 4.6.4-beta1

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
@@ -98,7 +98,7 @@ import '@bigbinary/neeto-hotkeys';
98
98
  import '@bigbinary/neeto-icons/Warning';
99
99
  import '@bigbinary/neeto-molecules/PageLoader';
100
100
  import '@bigbinary/neeto-icons/Check';
101
- import './utils-BQ-x2S1l.js';
101
+ import './utils-6cJmwuWa.js';
102
102
  import 'libphonenumber-js';
103
103
  import '@bigbinary/neeto-editor-frontend/EditorContent';
104
104
  import '@bigbinary/neetoui/MultiEmailInput';
@@ -2348,17 +2348,12 @@ var OptionsField = function OptionsField(_ref) {
2348
2348
  };
2349
2349
 
2350
2350
  var WhatsappConsentField = function WhatsappConsentField(_ref) {
2351
- var label = _ref.label,
2352
- hasPhoneNumber = _ref.hasPhoneNumber;
2351
+ var label = _ref.label;
2353
2352
  var _useField = useField(WHATSAPP_CONSENT_FIELD),
2354
2353
  _useField2 = _slicedToArray(_useField, 3),
2355
2354
  _useField2$0$value = _useField2[0].value,
2356
2355
  value = _useField2$0$value === void 0 ? false : _useField2$0$value,
2357
2356
  setValue = _useField2[2].setValue;
2358
- useEffect(function () {
2359
- if (!hasPhoneNumber && value) setValue(false);
2360
- }, [hasPhoneNumber, value, setValue]);
2361
- if (!hasPhoneNumber) return null;
2362
2357
  return /*#__PURE__*/jsx(Checkbox, {
2363
2358
  label: label,
2364
2359
  checked: value,
@@ -2421,7 +2416,6 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
2421
2416
  },
2422
2417
  onChange: setValue
2423
2418
  }), whatsappConsent && /*#__PURE__*/jsx(WhatsappConsentField, {
2424
- hasPhoneNumber: Boolean(phoneData === null || phoneData === void 0 ? void 0 : phoneData.number),
2425
2419
  label: whatsappConsent.label
2426
2420
  })]
2427
2421
  });
@@ -2949,4 +2943,4 @@ var getVisibleOptions = function getVisibleOptions(options) {
2949
2943
  };
2950
2944
 
2951
2945
  export { FormikWrap as F, buildAutoCompleteAttribute as a, buildDateQueryParameters as b, generateInitValues as c, clientI18nInstance as d, getWithExpiry as e, clearEmailVerificationDetails as f, getFieldComponent as g, generateFormResponse as h, clearLocalStorageValues as i, mergeRefs as m, renderButtonsInOrder as r };
2952
- //# sourceMappingURL=utils-BQ-x2S1l.js.map
2946
+ //# sourceMappingURL=utils-6cJmwuWa.js.map