diff --git a/build/classic/core.js b/build/classic/core.js index 173084a4..b975d1bf 100644 --- a/build/classic/core.js +++ b/build/classic/core.js @@ -6062,7 +6062,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Renders the field.\n *\n * @param {Object} props\n * @param {Object} props.field\n * @return {Object}\n */\nfunction BlockPreviewField(_ref) {\n var field = _ref.field;\n return __webpack_provided_wp_dot_element.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"RawHTML\"], {\n className: \"cf-html__content cf-html__content--block-preview\"\n }, field.html);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockPreviewField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/block-preview/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * Renders the field.\r\n *\r\n * @param {Object} props\r\n * @param {Object} props.field\r\n * @return {Object}\r\n */\nfunction BlockPreviewField(_ref) {\n var field = _ref.field;\n return __webpack_provided_wp_dot_element.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"RawHTML\"], {\n className: \"cf-html__content cf-html__content--block-preview\"\n }, field.html);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockPreviewField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/block-preview/index.js?"); /***/ }), @@ -6285,7 +6285,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(f /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hocs/with-filters */ \"./packages/core/hocs/with-filters/index.js\");\n/* harmony import */ var _registry_fields__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../registry/fields */ \"./packages/core/registry/fields.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./association */ \"./packages/core/fields/association/index.js\");\n/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./checkbox */ \"./packages/core/fields/checkbox/index.js\");\n/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./color */ \"./packages/core/fields/color/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./complex */ \"./packages/core/fields/complex/index.js\");\n/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date */ \"./packages/core/fields/date/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./datetime */ \"./packages/core/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./file */ \"./packages/core/fields/file/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/core/fields/hidden/index.js\");\n/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./html */ \"./packages/core/fields/html/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/core/fields/map/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./media-gallery */ \"./packages/core/fields/media-gallery/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./multiselect */ \"./packages/core/fields/multiselect/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/core/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/core/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/core/fields/radio-image/index.js\");\n/* harmony import */ var _rich_text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rich-text */ \"./packages/core/fields/rich-text/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./select */ \"./packages/core/fields/select/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./separator */ \"./packages/core/fields/separator/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./set */ \"./packages/core/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sidebar */ \"./packages/core/fields/sidebar/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./text */ \"./packages/core/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./textarea */ \"./packages/core/fields/textarea/index.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./time */ \"./packages/core/fields/time/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./block-preview */ \"./packages/core/fields/block-preview/index.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Extends the fields with necessary hooks.\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__[\"addFilter\"])('carbon-fields.register-field-type', 'carbon-fields/core', function (type, context, component) {\n return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__[\"compose\"])(Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.field-edit.\".concat(context)), Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.\".concat(type, \".\").concat(context)))(component);\n});\n\n/**\n * Registers the fields.\n */\n[['association', _association__WEBPACK_IMPORTED_MODULE_5__[\"default\"]], ['checkbox', _checkbox__WEBPACK_IMPORTED_MODULE_6__[\"default\"]], ['color', _color__WEBPACK_IMPORTED_MODULE_7__[\"default\"]], ['complex', _complex__WEBPACK_IMPORTED_MODULE_8__[\"default\"]], ['date', _date__WEBPACK_IMPORTED_MODULE_9__[\"default\"]], ['date_time', _datetime__WEBPACK_IMPORTED_MODULE_10__[\"default\"]], ['file', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['footer_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['gravity_form', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['header_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['hidden', _hidden__WEBPACK_IMPORTED_MODULE_12__[\"default\"]], ['html', _html__WEBPACK_IMPORTED_MODULE_13__[\"default\"]], ['image', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['map', _map__WEBPACK_IMPORTED_MODULE_14__[\"default\"]], ['multiselect', _multiselect__WEBPACK_IMPORTED_MODULE_16__[\"default\"]], ['media_gallery', _media_gallery__WEBPACK_IMPORTED_MODULE_15__[\"default\"]], ['oembed', _oembed__WEBPACK_IMPORTED_MODULE_17__[\"default\"]], ['radio', _radio__WEBPACK_IMPORTED_MODULE_18__[\"default\"]], ['radio_image', _radio_image__WEBPACK_IMPORTED_MODULE_19__[\"default\"]], ['rich_text', _rich_text__WEBPACK_IMPORTED_MODULE_20__[\"default\"]], ['select', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['separator', _separator__WEBPACK_IMPORTED_MODULE_22__[\"default\"]], ['set', _set__WEBPACK_IMPORTED_MODULE_23__[\"default\"]], ['sidebar', _sidebar__WEBPACK_IMPORTED_MODULE_24__[\"default\"]], ['text', _text__WEBPACK_IMPORTED_MODULE_25__[\"default\"]], ['textarea', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['time', _time__WEBPACK_IMPORTED_MODULE_27__[\"default\"]], ['block_preview', _block_preview__WEBPACK_IMPORTED_MODULE_28__[\"default\"]]].forEach(function (field) {\n return _registry_fields__WEBPACK_IMPORTED_MODULE_4__[\"registerFieldType\"].apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(field));\n});\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hocs/with-filters */ \"./packages/core/hocs/with-filters/index.js\");\n/* harmony import */ var _registry_fields__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../registry/fields */ \"./packages/core/registry/fields.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./association */ \"./packages/core/fields/association/index.js\");\n/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./checkbox */ \"./packages/core/fields/checkbox/index.js\");\n/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./color */ \"./packages/core/fields/color/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./complex */ \"./packages/core/fields/complex/index.js\");\n/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date */ \"./packages/core/fields/date/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./datetime */ \"./packages/core/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./file */ \"./packages/core/fields/file/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/core/fields/hidden/index.js\");\n/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./html */ \"./packages/core/fields/html/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/core/fields/map/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./media-gallery */ \"./packages/core/fields/media-gallery/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./multiselect */ \"./packages/core/fields/multiselect/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/core/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/core/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/core/fields/radio-image/index.js\");\n/* harmony import */ var _rich_text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rich-text */ \"./packages/core/fields/rich-text/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./select */ \"./packages/core/fields/select/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./separator */ \"./packages/core/fields/separator/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./set */ \"./packages/core/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sidebar */ \"./packages/core/fields/sidebar/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./text */ \"./packages/core/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./textarea */ \"./packages/core/fields/textarea/index.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./time */ \"./packages/core/fields/time/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./block-preview */ \"./packages/core/fields/block-preview/index.js\");\n\n/**\r\n * External dependencies.\r\n */\n\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * Extends the fields with necessary hooks.\r\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__[\"addFilter\"])('carbon-fields.register-field-type', 'carbon-fields/core', function (type, context, component) {\n return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__[\"compose\"])(Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.field-edit.\".concat(context)), Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.\".concat(type, \".\").concat(context)))(component);\n});\n\n/**\r\n * Registers the fields.\r\n */\n[['association', _association__WEBPACK_IMPORTED_MODULE_5__[\"default\"]], ['checkbox', _checkbox__WEBPACK_IMPORTED_MODULE_6__[\"default\"]], ['color', _color__WEBPACK_IMPORTED_MODULE_7__[\"default\"]], ['complex', _complex__WEBPACK_IMPORTED_MODULE_8__[\"default\"]], ['date', _date__WEBPACK_IMPORTED_MODULE_9__[\"default\"]], ['date_time', _datetime__WEBPACK_IMPORTED_MODULE_10__[\"default\"]], ['file', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['footer_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['gravity_form', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['header_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['hidden', _hidden__WEBPACK_IMPORTED_MODULE_12__[\"default\"]], ['html', _html__WEBPACK_IMPORTED_MODULE_13__[\"default\"]], ['image', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['map', _map__WEBPACK_IMPORTED_MODULE_14__[\"default\"]], ['multiselect', _multiselect__WEBPACK_IMPORTED_MODULE_16__[\"default\"]], ['media_gallery', _media_gallery__WEBPACK_IMPORTED_MODULE_15__[\"default\"]], ['oembed', _oembed__WEBPACK_IMPORTED_MODULE_17__[\"default\"]], ['radio', _radio__WEBPACK_IMPORTED_MODULE_18__[\"default\"]], ['radio_image', _radio_image__WEBPACK_IMPORTED_MODULE_19__[\"default\"]], ['rich_text', _rich_text__WEBPACK_IMPORTED_MODULE_20__[\"default\"]], ['select', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['separator', _separator__WEBPACK_IMPORTED_MODULE_22__[\"default\"]], ['set', _set__WEBPACK_IMPORTED_MODULE_23__[\"default\"]], ['sidebar', _sidebar__WEBPACK_IMPORTED_MODULE_24__[\"default\"]], ['text', _text__WEBPACK_IMPORTED_MODULE_25__[\"default\"]], ['textarea', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['time', _time__WEBPACK_IMPORTED_MODULE_27__[\"default\"]], ['block_preview', _block_preview__WEBPACK_IMPORTED_MODULE_28__[\"default\"]]].forEach(function (field) {\n return _registry_fields__WEBPACK_IMPORTED_MODULE_4__[\"registerFieldType\"].apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(field));\n});\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/index.js?"); /***/ }), @@ -6436,7 +6436,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/radio/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n/**\n * The internal dependencies.\n */\n\n\nvar RadioField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RadioField, _Component);\n var _super = _createSuper(RadioField);\n function RadioField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, RadioField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(RadioField, [{\n key: \"renderOptions\",\n value:\n /**\n * Renders the radio options\n *\n * @return {Object}\n */\n function renderOptions() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n field = _this$props2.field,\n value = _this$props2.value,\n name = _this$props2.name;\n return __webpack_provided_wp_dot_element.createElement(\"ul\", {\n className: \"cf-radio__list\"\n }, field.options.map(function (option, index) {\n return __webpack_provided_wp_dot_element.createElement(\"li\", {\n className: \"cf-radio__list-item\",\n key: index\n }, __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: name,\n value: option.value,\n checked: value === option.value,\n className: \"cf-radio__input\",\n onChange: _this2.handleChange\n }, field.attributes)), __webpack_provided_wp_dot_element.createElement(\"label\", {\n className: \"cf-radio__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n }));\n }\n\n /**\n * Renders the component.\n *\n * @return {Object}\n */\n }, {\n key: \"render\",\n value: function render() {\n var field = this.props.field;\n return field.options.length > 0 ? this.renderOptions() : __webpack_provided_wp_dot_element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_10__[\"default\"], null);\n }\n }]);\n return RadioField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadioField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/radio/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/radio/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * The internal dependencies.\r\n */\n\n\nvar RadioField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RadioField, _Component);\n var _super = _createSuper(RadioField);\n function RadioField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, RadioField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(RadioField, [{\n key: \"renderOptions\",\n value:\n /**\r\n * Renders the radio options\r\n *\r\n * @return {Object}\r\n */\n function renderOptions() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n field = _this$props2.field,\n value = _this$props2.value,\n name = _this$props2.name;\n return __webpack_provided_wp_dot_element.createElement(\"ul\", {\n className: \"cf-radio__list\"\n }, field.options.map(function (option, index) {\n return __webpack_provided_wp_dot_element.createElement(\"li\", {\n className: \"cf-radio__list-item\",\n key: index\n }, __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: name,\n value: option.value,\n checked: value === option.value,\n className: \"cf-radio__input\",\n onChange: _this2.handleChange\n }, field.attributes)), __webpack_provided_wp_dot_element.createElement(\"label\", {\n className: \"cf-radio__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n }));\n }\n\n /**\r\n * Renders the component.\r\n *\r\n * @return {Object}\r\n */\n }, {\n key: \"render\",\n value: function render() {\n var field = this.props.field;\n return field.options.length > 0 ? this.renderOptions() : __webpack_provided_wp_dot_element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_10__[\"default\"], null);\n }\n }]);\n return RadioField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadioField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/radio/index.js?"); /***/ }), @@ -6517,7 +6517,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/set/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\nvar SetField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SetField, _Component);\n var _super = _createSuper(SetField);\n function SetField(props) {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SetField);\n _this = _super.call(this, props);\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n value = _this$props.value,\n onChange = _this$props.onChange;\n onChange(id, Object(lodash__WEBPACK_IMPORTED_MODULE_9__[\"xor\"])(value, [e.target.value]));\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"isChecked\", function (values, option) {\n return values.indexOf(option.value) > -1;\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"toggleOptions\", function (e) {\n e.preventDefault();\n _this.setState({\n showAll: !_this.state.showAll\n });\n });\n _this.state = {\n showAll: false\n };\n return _this;\n }\n\n /**\n * Handles the change of the field.\n *\n * @param {Object} e\n * @return {void}\n */\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SetField, [{\n key: \"render\",\n value:\n /**\n * Render the component.\n *\n * @return {Object}\n */\n function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n var shouldPrintLink = field.limit_options > 0 && field.limit_options < field.options.length;\n return field.options.length > 0 ? __webpack_provided_wp_dot_element.createElement(__webpack_provided_wp_dot_element.Fragment, null, __webpack_provided_wp_dot_element.createElement(\"ul\", {\n className: \"cf-set__list\"\n }, field.options.map(function (option, index) {\n var isHidden = !_this2.state.showAll && shouldPrintLink && field.limit_options < index + 1;\n var classNames = \"cf-set__list-item\" + (isHidden ? ' hidden' : '');\n return __webpack_provided_wp_dot_element.createElement(\"li\", {\n className: classNames,\n key: index\n }, __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: \"\".concat(name, \"[]\"),\n checked: _this2.isChecked(value, option),\n value: option.value,\n className: \"cf-set__input\",\n onChange: _this2.handleChange\n }, field.attributes)), __webpack_provided_wp_dot_element.createElement(\"label\", {\n className: \"cf-set__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n })), shouldPrintLink && __webpack_provided_wp_dot_element.createElement(\"p\", null, __webpack_provided_wp_dot_element.createElement(\"a\", {\n href: \"#\",\n onClick: this.toggleOptions\n }, !this.state.showAll ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show All Options', 'carbon-fields-ui') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show Less Options', 'carbon-fields-ui')))) : __webpack_provided_wp_dot_element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_12__[\"default\"], null);\n }\n }]);\n return SetField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (SetField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/set/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/set/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\nvar SetField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SetField, _Component);\n var _super = _createSuper(SetField);\n function SetField(props) {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SetField);\n _this = _super.call(this, props);\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n value = _this$props.value,\n onChange = _this$props.onChange;\n onChange(id, Object(lodash__WEBPACK_IMPORTED_MODULE_9__[\"xor\"])(value, [e.target.value]));\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"isChecked\", function (values, option) {\n return values.indexOf(option.value) > -1;\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"toggleOptions\", function (e) {\n e.preventDefault();\n _this.setState({\n showAll: !_this.state.showAll\n });\n });\n _this.state = {\n showAll: false\n };\n return _this;\n }\n\n /**\r\n * Handles the change of the field.\r\n *\r\n * @param {Object} e\r\n * @return {void}\r\n */\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SetField, [{\n key: \"render\",\n value:\n /**\r\n * Render the component.\r\n *\r\n * @return {Object}\r\n */\n function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n var shouldPrintLink = field.limit_options > 0 && field.limit_options < field.options.length;\n return field.options.length > 0 ? __webpack_provided_wp_dot_element.createElement(__webpack_provided_wp_dot_element.Fragment, null, __webpack_provided_wp_dot_element.createElement(\"ul\", {\n className: \"cf-set__list\"\n }, field.options.map(function (option, index) {\n var isHidden = !_this2.state.showAll && shouldPrintLink && field.limit_options < index + 1;\n var classNames = \"cf-set__list-item\" + (isHidden ? ' hidden' : '');\n return __webpack_provided_wp_dot_element.createElement(\"li\", {\n className: classNames,\n key: index\n }, __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: \"\".concat(name, \"[]\"),\n checked: _this2.isChecked(value, option),\n value: option.value,\n className: \"cf-set__input\",\n onChange: _this2.handleChange\n }, field.attributes)), __webpack_provided_wp_dot_element.createElement(\"label\", {\n className: \"cf-set__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n })), shouldPrintLink && __webpack_provided_wp_dot_element.createElement(\"p\", null, __webpack_provided_wp_dot_element.createElement(\"a\", {\n href: \"#\",\n onClick: this.toggleOptions\n }, !this.state.showAll ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show All Options', 'carbon-fields-ui') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show Less Options', 'carbon-fields-ui')))) : __webpack_provided_wp_dot_element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_12__[\"default\"], null);\n }\n }]);\n return SetField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (SetField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/set/index.js?"); /***/ }), @@ -6552,7 +6552,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(f /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/text/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\nvar TextField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(TextField, _Component);\n var _super = _createSuper(TextField);\n function TextField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TextField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TextField, [{\n key: \"render\",\n value:\n /**\n * Render the component.\n *\n * @return {Object}\n */\n function render() {\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n if (field.attributes && field.attributes.inputmode) {\n field.attributes.inputMode = field.attributes.inputmode;\n delete field.attributes.inputmode;\n }\n return __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"text\",\n id: id,\n name: name,\n value: value,\n className: \"cf-text__input\",\n onChange: this.handleChange\n }, field.attributes));\n }\n }]);\n return TextField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (TextField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/text/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_wp_dot_element) {/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/text/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * Internal dependencies.\r\n */\n\nvar TextField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(TextField, _Component);\n var _super = _createSuper(TextField);\n function TextField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TextField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TextField, [{\n key: \"render\",\n value:\n /**\r\n * Render the component.\r\n *\r\n * @return {Object}\r\n */\n function render() {\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n if (field.attributes && field.attributes.inputmode) {\n field.attributes.inputMode = field.attributes.inputmode;\n delete field.attributes.inputmode;\n }\n return __webpack_provided_wp_dot_element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"text\",\n id: id,\n name: name,\n value: value,\n className: \"cf-text__input\",\n onChange: this.handleChange\n }, field.attributes));\n }\n }]);\n return TextField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (TextField);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\")))\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/text/index.js?"); /***/ }), diff --git a/build/gutenberg/blocks.js b/build/gutenberg/blocks.js index 1b18170d..22b423f0 100644 --- a/build/gutenberg/blocks.js +++ b/build/gutenberg/blocks.js @@ -670,7 +670,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack:///./pack /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./style.scss */ \"./packages/blocks/fields/block-preview/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * Internal dependencies.\n */\n\n\n//# sourceURL=webpack:///./packages/blocks/fields/block-preview/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./style.scss */ \"./packages/blocks/fields/block-preview/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_0__);\n/**\r\n * Internal dependencies.\r\n */\n\n\n//# sourceURL=webpack:///./packages/blocks/fields/block-preview/index.js?"); /***/ }), @@ -810,7 +810,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hocs/with-conditional-logic */ \"./packages/blocks/hocs/with-conditional-logic/index.js\");\n/* harmony import */ var _metaboxes_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../metaboxes/utils/is-gutenberg */ \"./packages/metaboxes/utils/is-gutenberg.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./association */ \"./packages/blocks/fields/association/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./complex */ \"./packages/blocks/fields/complex/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./datetime */ \"./packages/blocks/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./file */ \"./packages/blocks/fields/file/index.js\");\n/* harmony import */ var _footer_scripts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./footer-scripts */ \"./packages/blocks/fields/footer-scripts/index.js\");\n/* harmony import */ var _header_scripts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./header-scripts */ \"./packages/blocks/fields/header-scripts/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/blocks/fields/hidden/index.js\");\n/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./image */ \"./packages/blocks/fields/image/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/blocks/fields/map/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./multiselect */ \"./packages/blocks/fields/multiselect/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./media-gallery */ \"./packages/blocks/fields/media-gallery/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/blocks/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/blocks/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/blocks/fields/radio-image/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./select */ \"./packages/blocks/fields/select/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./set */ \"./packages/blocks/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sidebar */ \"./packages/blocks/fields/sidebar/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./separator */ \"./packages/blocks/fields/separator/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./text */ \"./packages/blocks/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./textarea */ \"./packages/blocks/fields/textarea/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./block-preview */ \"./packages/blocks/fields/block-preview/index.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/**\n * Connects every field to the store.\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__[\"addFilter\"])('carbon-fields.field-edit.block', 'carbon-fields/blocks', Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__[\"compose\"])(_hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_4__[\"default\"], Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__[\"withDispatch\"])(function (dispatch) {\n // Widgets support - WordPress 5.8\n if (Object(_metaboxes_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__[\"default\"])()) {\n var _dispatch = dispatch('core/editor'),\n lockPostSaving = _dispatch.lockPostSaving,\n unlockPostSaving = _dispatch.unlockPostSaving;\n return {\n lockSaving: lockPostSaving,\n unlockSaving: unlockPostSaving\n };\n }\n return {};\n}), _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__[\"withValidation\"]));\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack:///./packages/blocks/fields/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hocs/with-conditional-logic */ \"./packages/blocks/hocs/with-conditional-logic/index.js\");\n/* harmony import */ var _metaboxes_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../metaboxes/utils/is-gutenberg */ \"./packages/metaboxes/utils/is-gutenberg.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./association */ \"./packages/blocks/fields/association/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./complex */ \"./packages/blocks/fields/complex/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./datetime */ \"./packages/blocks/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./file */ \"./packages/blocks/fields/file/index.js\");\n/* harmony import */ var _footer_scripts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./footer-scripts */ \"./packages/blocks/fields/footer-scripts/index.js\");\n/* harmony import */ var _header_scripts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./header-scripts */ \"./packages/blocks/fields/header-scripts/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/blocks/fields/hidden/index.js\");\n/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./image */ \"./packages/blocks/fields/image/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/blocks/fields/map/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./multiselect */ \"./packages/blocks/fields/multiselect/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./media-gallery */ \"./packages/blocks/fields/media-gallery/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/blocks/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/blocks/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/blocks/fields/radio-image/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./select */ \"./packages/blocks/fields/select/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./set */ \"./packages/blocks/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sidebar */ \"./packages/blocks/fields/sidebar/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./separator */ \"./packages/blocks/fields/separator/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./text */ \"./packages/blocks/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./textarea */ \"./packages/blocks/fields/textarea/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./block-preview */ \"./packages/blocks/fields/block-preview/index.js\");\n/**\r\n * External dependencies.\r\n */\n\n\n\n\n/**\r\n * Carbon Fields dependencies.\r\n */\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\n\n/**\r\n * Connects every field to the store.\r\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__[\"addFilter\"])('carbon-fields.field-edit.block', 'carbon-fields/blocks', Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__[\"compose\"])(_hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_4__[\"default\"], Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__[\"withDispatch\"])(function (dispatch) {\n // Widgets support - WordPress 5.8\n if (Object(_metaboxes_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__[\"default\"])()) {\n var _dispatch = dispatch('core/editor'),\n lockPostSaving = _dispatch.lockPostSaving,\n unlockPostSaving = _dispatch.unlockPostSaving;\n return {\n lockSaving: lockPostSaving,\n unlockSaving: unlockPostSaving\n };\n }\n return {};\n}), _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__[\"withValidation\"]));\n\n/**\r\n * Internal dependencies.\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack:///./packages/blocks/fields/index.js?"); /***/ }), @@ -1099,7 +1099,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var call /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields */ \"./packages/blocks/fields/index.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./store */ \"./packages/blocks/store/index.js\");\n/* harmony import */ var _components_block_edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/block-edit */ \"./packages/blocks/components/block-edit/index.js\");\n/* harmony import */ var _components_block_save__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/block-save */ \"./packages/blocks/components/block-save/index.js\");\n/* harmony import */ var _utils_transform_fields_to_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/transform-fields-to-attributes */ \"./packages/blocks/utils/transform-fields-to-attributes.js\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */\n\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n/**\n * Sets the locale data for the package type\n */\nObject(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"setLocaleData\"])(window.cf.config.locale, 'carbon-fields-ui');\n\n/**\n * Register the blocks.\n */\nvar containerDefinitions = {};\nvar fieldDefinitions = {};\nObject(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(window.cf, 'preloaded.blocks', []).forEach(function (container) {\n var name = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"kebabCase\"])(container.id).replace('carbon-fields-container-', '');\n var fields = Object(_utils_transform_fields_to_attributes__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(container.fields);\n var getBlockSetting = function getBlockSetting(key) {\n var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(container, \"settings.\".concat(key), def);\n };\n containerDefinitions[name] = container;\n fieldDefinitions[name] = container.fields.map(function (field) {\n return _objectSpread({}, field);\n });\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__[\"registerBlockType\"])(\"carbon-fields/\".concat(name), {\n title: container.title,\n icon: getBlockSetting('icon'),\n parent: getBlockSetting('parent', []),\n category: getBlockSetting('category.slug'),\n keywords: getBlockSetting('keywords', []),\n description: getBlockSetting('description', ''),\n attributes: {\n data: {\n type: 'object',\n \"default\": fields\n }\n },\n supports: {\n tabs: Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(getBlockSetting('tabs')),\n preview: getBlockSetting('preview'),\n innerBlocks: getBlockSetting('inner_blocks.enabled'),\n alignWide: false,\n anchor: false,\n html: false\n },\n edit: _components_block_edit__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n save: _components_block_save__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n example: true\n });\n});\n\n/**\n * Load the definitions in store.\n */\nObject(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('carbon-fields/blocks').setupContainerDefinitions(containerDefinitions);\nObject(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('carbon-fields/blocks').setupFieldDefinitions(fieldDefinitions);\n\n//# sourceURL=webpack:///./packages/blocks/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields */ \"./packages/blocks/fields/index.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./store */ \"./packages/blocks/store/index.js\");\n/* harmony import */ var _components_block_edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/block-edit */ \"./packages/blocks/components/block-edit/index.js\");\n/* harmony import */ var _components_block_save__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/block-save */ \"./packages/blocks/components/block-save/index.js\");\n/* harmony import */ var _utils_transform_fields_to_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/transform-fields-to-attributes */ \"./packages/blocks/utils/transform-fields-to-attributes.js\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */\n\n/**\r\n * External dependencies.\r\n */\n\n\n\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\n\n\n\n\n/**\r\n * Sets the locale data for the package type\r\n */\nObject(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"setLocaleData\"])(window.cf.config.locale, 'carbon-fields-ui');\n\n/**\r\n * Register the blocks.\r\n */\nvar containerDefinitions = {};\nvar fieldDefinitions = {};\nObject(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(window.cf, 'preloaded.blocks', []).forEach(function (container) {\n var name = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"kebabCase\"])(container.id).replace('carbon-fields-container-', '');\n var fields = Object(_utils_transform_fields_to_attributes__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(container.fields);\n var getBlockSetting = function getBlockSetting(key) {\n var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(container, \"settings.\".concat(key), def);\n };\n containerDefinitions[name] = container;\n fieldDefinitions[name] = container.fields.map(function (field) {\n return _objectSpread({}, field);\n });\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__[\"registerBlockType\"])(\"carbon-fields/\".concat(name), {\n title: container.title,\n icon: getBlockSetting('icon'),\n parent: getBlockSetting('parent', []),\n category: getBlockSetting('category.slug'),\n keywords: getBlockSetting('keywords', []),\n description: getBlockSetting('description', ''),\n attributes: {\n data: {\n type: 'object',\n \"default\": fields\n }\n },\n supports: {\n tabs: Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(getBlockSetting('tabs')),\n preview: getBlockSetting('preview'),\n innerBlocks: getBlockSetting('inner_blocks.enabled'),\n alignWide: false,\n anchor: false,\n html: false\n },\n edit: _components_block_edit__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n save: _components_block_save__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n example: true\n });\n});\n\n/**\r\n * Load the definitions in store.\r\n */\nObject(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('carbon-fields/blocks').setupContainerDefinitions(containerDefinitions);\nObject(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('carbon-fields/blocks').setupFieldDefinitions(fieldDefinitions);\n\n//# sourceURL=webpack:///./packages/blocks/index.js?"); /***/ }), diff --git a/build/gutenberg/core.js b/build/gutenberg/core.js index 9fd512ef..16934f74 100644 --- a/build/gutenberg/core.js +++ b/build/gutenberg/core.js @@ -6062,7 +6062,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Renders the field.\n *\n * @param {Object} props\n * @param {Object} props.field\n * @return {Object}\n */\nfunction BlockPreviewField(_ref) {\n var field = _ref.field;\n return wp.element.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"RawHTML\"], {\n className: \"cf-html__content cf-html__content--block-preview\"\n }, field.html);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockPreviewField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/block-preview/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * Renders the field.\r\n *\r\n * @param {Object} props\r\n * @param {Object} props.field\r\n * @return {Object}\r\n */\nfunction BlockPreviewField(_ref) {\n var field = _ref.field;\n return wp.element.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"RawHTML\"], {\n className: \"cf-html__content cf-html__content--block-preview\"\n }, field.html);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockPreviewField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/block-preview/index.js?"); /***/ }), @@ -6285,7 +6285,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wor /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hocs/with-filters */ \"./packages/core/hocs/with-filters/index.js\");\n/* harmony import */ var _registry_fields__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../registry/fields */ \"./packages/core/registry/fields.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./association */ \"./packages/core/fields/association/index.js\");\n/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./checkbox */ \"./packages/core/fields/checkbox/index.js\");\n/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./color */ \"./packages/core/fields/color/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./complex */ \"./packages/core/fields/complex/index.js\");\n/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date */ \"./packages/core/fields/date/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./datetime */ \"./packages/core/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./file */ \"./packages/core/fields/file/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/core/fields/hidden/index.js\");\n/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./html */ \"./packages/core/fields/html/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/core/fields/map/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./media-gallery */ \"./packages/core/fields/media-gallery/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./multiselect */ \"./packages/core/fields/multiselect/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/core/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/core/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/core/fields/radio-image/index.js\");\n/* harmony import */ var _rich_text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rich-text */ \"./packages/core/fields/rich-text/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./select */ \"./packages/core/fields/select/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./separator */ \"./packages/core/fields/separator/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./set */ \"./packages/core/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sidebar */ \"./packages/core/fields/sidebar/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./text */ \"./packages/core/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./textarea */ \"./packages/core/fields/textarea/index.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./time */ \"./packages/core/fields/time/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./block-preview */ \"./packages/core/fields/block-preview/index.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Extends the fields with necessary hooks.\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__[\"addFilter\"])('carbon-fields.register-field-type', 'carbon-fields/core', function (type, context, component) {\n return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__[\"compose\"])(Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.field-edit.\".concat(context)), Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.\".concat(type, \".\").concat(context)))(component);\n});\n\n/**\n * Registers the fields.\n */\n[['association', _association__WEBPACK_IMPORTED_MODULE_5__[\"default\"]], ['checkbox', _checkbox__WEBPACK_IMPORTED_MODULE_6__[\"default\"]], ['color', _color__WEBPACK_IMPORTED_MODULE_7__[\"default\"]], ['complex', _complex__WEBPACK_IMPORTED_MODULE_8__[\"default\"]], ['date', _date__WEBPACK_IMPORTED_MODULE_9__[\"default\"]], ['date_time', _datetime__WEBPACK_IMPORTED_MODULE_10__[\"default\"]], ['file', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['footer_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['gravity_form', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['header_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['hidden', _hidden__WEBPACK_IMPORTED_MODULE_12__[\"default\"]], ['html', _html__WEBPACK_IMPORTED_MODULE_13__[\"default\"]], ['image', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['map', _map__WEBPACK_IMPORTED_MODULE_14__[\"default\"]], ['multiselect', _multiselect__WEBPACK_IMPORTED_MODULE_16__[\"default\"]], ['media_gallery', _media_gallery__WEBPACK_IMPORTED_MODULE_15__[\"default\"]], ['oembed', _oembed__WEBPACK_IMPORTED_MODULE_17__[\"default\"]], ['radio', _radio__WEBPACK_IMPORTED_MODULE_18__[\"default\"]], ['radio_image', _radio_image__WEBPACK_IMPORTED_MODULE_19__[\"default\"]], ['rich_text', _rich_text__WEBPACK_IMPORTED_MODULE_20__[\"default\"]], ['select', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['separator', _separator__WEBPACK_IMPORTED_MODULE_22__[\"default\"]], ['set', _set__WEBPACK_IMPORTED_MODULE_23__[\"default\"]], ['sidebar', _sidebar__WEBPACK_IMPORTED_MODULE_24__[\"default\"]], ['text', _text__WEBPACK_IMPORTED_MODULE_25__[\"default\"]], ['textarea', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['time', _time__WEBPACK_IMPORTED_MODULE_27__[\"default\"]], ['block_preview', _block_preview__WEBPACK_IMPORTED_MODULE_28__[\"default\"]]].forEach(function (field) {\n return _registry_fields__WEBPACK_IMPORTED_MODULE_4__[\"registerFieldType\"].apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(field));\n});\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hocs/with-filters */ \"./packages/core/hocs/with-filters/index.js\");\n/* harmony import */ var _registry_fields__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../registry/fields */ \"./packages/core/registry/fields.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./association */ \"./packages/core/fields/association/index.js\");\n/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./checkbox */ \"./packages/core/fields/checkbox/index.js\");\n/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./color */ \"./packages/core/fields/color/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./complex */ \"./packages/core/fields/complex/index.js\");\n/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date */ \"./packages/core/fields/date/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./datetime */ \"./packages/core/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./file */ \"./packages/core/fields/file/index.js\");\n/* harmony import */ var _hidden__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hidden */ \"./packages/core/fields/hidden/index.js\");\n/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./html */ \"./packages/core/fields/html/index.js\");\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./map */ \"./packages/core/fields/map/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./media-gallery */ \"./packages/core/fields/media-gallery/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./multiselect */ \"./packages/core/fields/multiselect/index.js\");\n/* harmony import */ var _oembed__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./oembed */ \"./packages/core/fields/oembed/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./radio */ \"./packages/core/fields/radio/index.js\");\n/* harmony import */ var _radio_image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./radio-image */ \"./packages/core/fields/radio-image/index.js\");\n/* harmony import */ var _rich_text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rich-text */ \"./packages/core/fields/rich-text/index.js\");\n/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./select */ \"./packages/core/fields/select/index.js\");\n/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./separator */ \"./packages/core/fields/separator/index.js\");\n/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./set */ \"./packages/core/fields/set/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sidebar */ \"./packages/core/fields/sidebar/index.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./text */ \"./packages/core/fields/text/index.js\");\n/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./textarea */ \"./packages/core/fields/textarea/index.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./time */ \"./packages/core/fields/time/index.js\");\n/* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./block-preview */ \"./packages/core/fields/block-preview/index.js\");\n\n/**\r\n * External dependencies.\r\n */\n\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * Extends the fields with necessary hooks.\r\n */\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__[\"addFilter\"])('carbon-fields.register-field-type', 'carbon-fields/core', function (type, context, component) {\n return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__[\"compose\"])(Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.field-edit.\".concat(context)), Object(_hocs_with_filters__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\"carbon-fields.\".concat(type, \".\").concat(context)))(component);\n});\n\n/**\r\n * Registers the fields.\r\n */\n[['association', _association__WEBPACK_IMPORTED_MODULE_5__[\"default\"]], ['checkbox', _checkbox__WEBPACK_IMPORTED_MODULE_6__[\"default\"]], ['color', _color__WEBPACK_IMPORTED_MODULE_7__[\"default\"]], ['complex', _complex__WEBPACK_IMPORTED_MODULE_8__[\"default\"]], ['date', _date__WEBPACK_IMPORTED_MODULE_9__[\"default\"]], ['date_time', _datetime__WEBPACK_IMPORTED_MODULE_10__[\"default\"]], ['file', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['footer_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['gravity_form', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['header_scripts', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['hidden', _hidden__WEBPACK_IMPORTED_MODULE_12__[\"default\"]], ['html', _html__WEBPACK_IMPORTED_MODULE_13__[\"default\"]], ['image', _file__WEBPACK_IMPORTED_MODULE_11__[\"default\"]], ['map', _map__WEBPACK_IMPORTED_MODULE_14__[\"default\"]], ['multiselect', _multiselect__WEBPACK_IMPORTED_MODULE_16__[\"default\"]], ['media_gallery', _media_gallery__WEBPACK_IMPORTED_MODULE_15__[\"default\"]], ['oembed', _oembed__WEBPACK_IMPORTED_MODULE_17__[\"default\"]], ['radio', _radio__WEBPACK_IMPORTED_MODULE_18__[\"default\"]], ['radio_image', _radio_image__WEBPACK_IMPORTED_MODULE_19__[\"default\"]], ['rich_text', _rich_text__WEBPACK_IMPORTED_MODULE_20__[\"default\"]], ['select', _select__WEBPACK_IMPORTED_MODULE_21__[\"default\"]], ['separator', _separator__WEBPACK_IMPORTED_MODULE_22__[\"default\"]], ['set', _set__WEBPACK_IMPORTED_MODULE_23__[\"default\"]], ['sidebar', _sidebar__WEBPACK_IMPORTED_MODULE_24__[\"default\"]], ['text', _text__WEBPACK_IMPORTED_MODULE_25__[\"default\"]], ['textarea', _textarea__WEBPACK_IMPORTED_MODULE_26__[\"default\"]], ['time', _time__WEBPACK_IMPORTED_MODULE_27__[\"default\"]], ['block_preview', _block_preview__WEBPACK_IMPORTED_MODULE_28__[\"default\"]]].forEach(function (field) {\n return _registry_fields__WEBPACK_IMPORTED_MODULE_4__[\"registerFieldType\"].apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(field));\n});\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/index.js?"); /***/ }), @@ -6436,7 +6436,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/radio/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n/**\n * The internal dependencies.\n */\n\n\nvar RadioField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RadioField, _Component);\n var _super = _createSuper(RadioField);\n function RadioField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, RadioField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(RadioField, [{\n key: \"renderOptions\",\n value:\n /**\n * Renders the radio options\n *\n * @return {Object}\n */\n function renderOptions() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n field = _this$props2.field,\n value = _this$props2.value,\n name = _this$props2.name;\n return wp.element.createElement(\"ul\", {\n className: \"cf-radio__list\"\n }, field.options.map(function (option, index) {\n return wp.element.createElement(\"li\", {\n className: \"cf-radio__list-item\",\n key: index\n }, wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: name,\n value: option.value,\n checked: value === option.value,\n className: \"cf-radio__input\",\n onChange: _this2.handleChange\n }, field.attributes)), wp.element.createElement(\"label\", {\n className: \"cf-radio__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n }));\n }\n\n /**\n * Renders the component.\n *\n * @return {Object}\n */\n }, {\n key: \"render\",\n value: function render() {\n var field = this.props.field;\n return field.options.length > 0 ? this.renderOptions() : wp.element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_10__[\"default\"], null);\n }\n }]);\n return RadioField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadioField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/radio/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/radio/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * The internal dependencies.\r\n */\n\n\nvar RadioField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RadioField, _Component);\n var _super = _createSuper(RadioField);\n function RadioField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, RadioField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(RadioField, [{\n key: \"renderOptions\",\n value:\n /**\r\n * Renders the radio options\r\n *\r\n * @return {Object}\r\n */\n function renderOptions() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n field = _this$props2.field,\n value = _this$props2.value,\n name = _this$props2.name;\n return wp.element.createElement(\"ul\", {\n className: \"cf-radio__list\"\n }, field.options.map(function (option, index) {\n return wp.element.createElement(\"li\", {\n className: \"cf-radio__list-item\",\n key: index\n }, wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: name,\n value: option.value,\n checked: value === option.value,\n className: \"cf-radio__input\",\n onChange: _this2.handleChange\n }, field.attributes)), wp.element.createElement(\"label\", {\n className: \"cf-radio__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n }));\n }\n\n /**\r\n * Renders the component.\r\n *\r\n * @return {Object}\r\n */\n }, {\n key: \"render\",\n value: function render() {\n var field = this.props.field;\n return field.options.length > 0 ? this.renderOptions() : wp.element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_10__[\"default\"], null);\n }\n }]);\n return RadioField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadioField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/radio/index.js?"); /***/ }), @@ -6517,7 +6517,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf.%5Bn /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/set/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\nvar SetField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SetField, _Component);\n var _super = _createSuper(SetField);\n function SetField(props) {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SetField);\n _this = _super.call(this, props);\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n value = _this$props.value,\n onChange = _this$props.onChange;\n onChange(id, Object(lodash__WEBPACK_IMPORTED_MODULE_9__[\"xor\"])(value, [e.target.value]));\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"isChecked\", function (values, option) {\n return values.indexOf(option.value) > -1;\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"toggleOptions\", function (e) {\n e.preventDefault();\n _this.setState({\n showAll: !_this.state.showAll\n });\n });\n _this.state = {\n showAll: false\n };\n return _this;\n }\n\n /**\n * Handles the change of the field.\n *\n * @param {Object} e\n * @return {void}\n */\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SetField, [{\n key: \"render\",\n value:\n /**\n * Render the component.\n *\n * @return {Object}\n */\n function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n var shouldPrintLink = field.limit_options > 0 && field.limit_options < field.options.length;\n return field.options.length > 0 ? wp.element.createElement(wp.element.Fragment, null, wp.element.createElement(\"ul\", {\n className: \"cf-set__list\"\n }, field.options.map(function (option, index) {\n var isHidden = !_this2.state.showAll && shouldPrintLink && field.limit_options < index + 1;\n var classNames = \"cf-set__list-item\" + (isHidden ? ' hidden' : '');\n return wp.element.createElement(\"li\", {\n className: classNames,\n key: index\n }, wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: \"\".concat(name, \"[]\"),\n checked: _this2.isChecked(value, option),\n value: option.value,\n className: \"cf-set__input\",\n onChange: _this2.handleChange\n }, field.attributes)), wp.element.createElement(\"label\", {\n className: \"cf-set__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n })), shouldPrintLink && wp.element.createElement(\"p\", null, wp.element.createElement(\"a\", {\n href: \"#\",\n onClick: this.toggleOptions\n }, !this.state.showAll ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show All Options', 'carbon-fields-ui') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show Less Options', 'carbon-fields-ui')))) : wp.element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_12__[\"default\"], null);\n }\n }]);\n return SetField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (SetField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/set/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/set/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_no_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/no-options */ \"./packages/core/components/no-options/index.js\");\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n\n\n/**\r\n * Internal dependencies.\r\n */\n\n\nvar SetField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SetField, _Component);\n var _super = _createSuper(SetField);\n function SetField(props) {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SetField);\n _this = _super.call(this, props);\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n value = _this$props.value,\n onChange = _this$props.onChange;\n onChange(id, Object(lodash__WEBPACK_IMPORTED_MODULE_9__[\"xor\"])(value, [e.target.value]));\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"isChecked\", function (values, option) {\n return values.indexOf(option.value) > -1;\n });\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"toggleOptions\", function (e) {\n e.preventDefault();\n _this.setState({\n showAll: !_this.state.showAll\n });\n });\n _this.state = {\n showAll: false\n };\n return _this;\n }\n\n /**\r\n * Handles the change of the field.\r\n *\r\n * @param {Object} e\r\n * @return {void}\r\n */\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SetField, [{\n key: \"render\",\n value:\n /**\r\n * Render the component.\r\n *\r\n * @return {Object}\r\n */\n function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n var shouldPrintLink = field.limit_options > 0 && field.limit_options < field.options.length;\n return field.options.length > 0 ? wp.element.createElement(wp.element.Fragment, null, wp.element.createElement(\"ul\", {\n className: \"cf-set__list\"\n }, field.options.map(function (option, index) {\n var isHidden = !_this2.state.showAll && shouldPrintLink && field.limit_options < index + 1;\n var classNames = \"cf-set__list-item\" + (isHidden ? ' hidden' : '');\n return wp.element.createElement(\"li\", {\n className: classNames,\n key: index\n }, wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"checkbox\",\n id: \"\".concat(id, \"-\").concat(option.value),\n name: \"\".concat(name, \"[]\"),\n checked: _this2.isChecked(value, option),\n value: option.value,\n className: \"cf-set__input\",\n onChange: _this2.handleChange\n }, field.attributes)), wp.element.createElement(\"label\", {\n className: \"cf-set__label\",\n htmlFor: \"\".concat(id, \"-\").concat(option.value)\n }, option.label));\n })), shouldPrintLink && wp.element.createElement(\"p\", null, wp.element.createElement(\"a\", {\n href: \"#\",\n onClick: this.toggleOptions\n }, !this.state.showAll ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show All Options', 'carbon-fields-ui') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Show Less Options', 'carbon-fields-ui')))) : wp.element.createElement(_components_no_options__WEBPACK_IMPORTED_MODULE_12__[\"default\"], null);\n }\n }]);\n return SetField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (SetField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/set/index.js?"); /***/ }), @@ -6552,7 +6552,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/text/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\nvar TextField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(TextField, _Component);\n var _super = _createSuper(TextField);\n function TextField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TextField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TextField, [{\n key: \"render\",\n value:\n /**\n * Render the component.\n *\n * @return {Object}\n */\n function render() {\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n if (field.attributes && field.attributes.inputmode) {\n field.attributes.inputMode = field.attributes.inputmode;\n delete field.attributes.inputmode;\n }\n return wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"text\",\n id: id,\n name: name,\n value: value,\n className: \"cf-text__input\",\n onChange: this.handleChange\n }, field.attributes));\n }\n }]);\n return TextField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (TextField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/text/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./style.scss */ \"./packages/core/fields/text/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * External dependencies.\r\n */\n\n\n/**\r\n * Internal dependencies.\r\n */\n\nvar TextField = /*#__PURE__*/function (_Component) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(TextField, _Component);\n var _super = _createSuper(TextField);\n function TextField() {\n var _this;\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TextField);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), \"handleChange\", function (e) {\n var _this$props = _this.props,\n id = _this$props.id,\n onChange = _this$props.onChange;\n onChange(id, e.target.value);\n });\n return _this;\n }\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TextField, [{\n key: \"render\",\n value:\n /**\r\n * Render the component.\r\n *\r\n * @return {Object}\r\n */\n function render() {\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n value = _this$props2.value,\n field = _this$props2.field;\n if (field.attributes && field.attributes.inputmode) {\n field.attributes.inputMode = field.attributes.inputmode;\n delete field.attributes.inputmode;\n }\n return wp.element.createElement(\"input\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n type: \"text\",\n id: id,\n name: name,\n value: value,\n className: \"cf-text__input\",\n onChange: this.handleChange\n }, field.attributes));\n }\n }]);\n return TextField;\n}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__[\"Component\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (TextField);\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/core/fields/text/index.js?"); /***/ }), diff --git a/config.php b/config.php index 63836cfe..afcb4709 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ # Define version constant if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { - define( __NAMESPACE__ . '\VERSION', '3.5.0' ); + define( __NAMESPACE__ . '\VERSION', '3.5.2' ); } # Define root directory diff --git a/package.json b/package.json index c6e68e54..3deff1a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-fields", - "version": "3.5.0", + "version": "3.5.2", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "directories": { "test": "tests"