/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./packages/metaboxes/components/container/index.js":
/*!**********************************************************!*\
  !*** ./packages/metaboxes/components/container/index.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"classnames\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/components/container/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../field */ \"./packages/metaboxes/components/field/index.js\");\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\nclass Container extends _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Component {\n  constructor(...args) {\n    super(...args);\n    /**\n     * Local state.\n     *\n     * @type {Object}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"state\", {\n      currentTab: null\n    });\n    /**\n     * Renders the given field.\n     *\n     * @param  {Object} field\n     * @return {Object}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"renderField\", field => {\n      const FieldEdit = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__.getFieldType)(field.type, 'metabox');\n      if (!FieldEdit) {\n        return null;\n      }\n      return __webpack_provided_wp_dot_element.createElement(_field__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        key: field.id,\n        id: field.id\n      }, __webpack_provided_wp_dot_element.createElement(FieldEdit, {\n        id: field.id,\n        containerId: this.props.id\n      }));\n    });\n    /**\n     * Handles click on the tabs.\n     *\n     * @param  {string} tab\n     * @return {void}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleTabClick\", tab => {\n      this.setState({\n        currentTab: tab\n      });\n    });\n  }\n  /**\n   * Lifecycle hook.\n   *\n   * @return {void}\n   */\n  componentDidMount() {\n    const {\n      container\n    } = this.props;\n    if (this.isTabbed(container)) {\n      this.setState({\n        currentTab: Object.keys(container.settings.tabs)[0]\n      });\n    }\n  }\n\n  /**\n   * Returns whether the container uses tabs.\n   *\n   * @param  {Object} container\n   * @return {boolean}\n   */\n  isTabbed(container) {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(container.settings.tabs);\n  }\n  /**\n   * Renders the component.\n   *\n   * @return {Object}\n   */\n  render() {\n    const {\n      currentTab\n    } = this.state;\n    const {\n      container\n    } = this.props;\n    const hasTabs = this.isTabbed(container);\n    const classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(['cf-container', `cf-container-${container.id}`, `cf-container-${(0,lodash__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(container.type)}`, ...container.classes, {\n      'cf-container--plain': !hasTabs,\n      [`cf-container--tabbed cf-container--${container.layout}`]: hasTabs\n    }]);\n    return __webpack_provided_wp_dot_element.createElement(\"div\", {\n      className: classes\n    }, __webpack_provided_wp_dot_element.createElement(\"input\", {\n      type: \"hidden\",\n      name: container.nonce.name,\n      value: container.nonce.value\n    }), hasTabs && __webpack_provided_wp_dot_element.createElement(\"div\", {\n      className: `cf-container__tabs cf-container__tabs--${container.layout}`\n    }, __webpack_provided_wp_dot_element.createElement(\"ul\", {\n      className: \"cf-container__tabs-list\"\n    }, (0,lodash__WEBPACK_IMPORTED_MODULE_3__.map)(container.settings.tabs, (fieldNames, tabName) => {\n      // eslint-disable-next-line no-shadow\n      const classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('cf-container__tabs-item', {\n        'cf-container__tabs-item--current': tabName === currentTab\n      });\n      return __webpack_provided_wp_dot_element.createElement(\"li\", {\n        key: tabName,\n        className: classes,\n        tabIndex: -1,\n        role: \"tab\",\n        \"aria-selected\": currentTab === tabName\n      }, __webpack_provided_wp_dot_element.createElement(\"button\", {\n        type: \"button\",\n        onClick: () => this.handleTabClick(tabName),\n        dangerouslySetInnerHTML: {\n          __html: tabName\n        }\n      }));\n    }))), hasTabs && (0,lodash__WEBPACK_IMPORTED_MODULE_3__.map)(container.settings.tabs, (fieldNames, tabName) => {\n      return __webpack_provided_wp_dot_element.createElement(\"div\", {\n        className: \"cf-container__fields\",\n        key: tabName,\n        hidden: tabName !== currentTab\n      }, (0,lodash__WEBPACK_IMPORTED_MODULE_3__.map)(fieldNames, fieldName => {\n        const field = (0,lodash__WEBPACK_IMPORTED_MODULE_3__.find)(container.fields, ['name', fieldName]);\n        return this.renderField(field);\n      }));\n    }), !hasTabs && __webpack_provided_wp_dot_element.createElement(\"div\", {\n      className: \"cf-container__fields\"\n    }, (0,lodash__WEBPACK_IMPORTED_MODULE_3__.map)(container.fields, this.renderField)));\n  }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Container);\n\n//# sourceURL=webpack://cf/./packages/metaboxes/components/container/index.js?");

/***/ }),

/***/ "./packages/metaboxes/components/field/index.js":
/*!******************************************************!*\
  !*** ./packages/metaboxes/components/field/index.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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 _carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/components/field/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hocs/with-field */ \"./packages/metaboxes/hocs/with-field/index.js\");\n/**\n * External dependencies.\n */\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.compose)(_hocs_with_field__WEBPACK_IMPORTED_MODULE_3__[\"default\"], (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__.withFilters)('carbon-fields.field-wrapper.metabox'))(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__.Field));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/components/field/index.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/hooks.js":
/*!************************************************!*\
  !*** ./packages/metaboxes/containers/hooks.js ***!
  \************************************************/
/***/ ((__unused_webpack_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 _carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hocs_with_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hocs/with-container */ \"./packages/metaboxes/hocs/with-container/index.js\");\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n/**\n * Extends the containers with necessary hooks.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.register-container-type', 'carbon-fields/metaboxes', (type, context, component) => {\n  return (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.compose)(_hocs_with_container__WEBPACK_IMPORTED_MODULE_3__[\"default\"], (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__.withFilters)(`carbon-fields.${type}.${context}`))(component);\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/hooks.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/index.js":
/*!************************************************!*\
  !*** ./packages/metaboxes/containers/index.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ initializeContainers),\n/* harmony export */   renderContainer: () => (/* binding */ renderContainer)\n/* harmony export */ });\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/* 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_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks */ \"./packages/metaboxes/containers/hooks.js\");\n/* harmony import */ var _widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./widget */ \"./packages/metaboxes/containers/widget/index.js\");\n/* harmony import */ var _term_meta__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./term-meta */ \"./packages/metaboxes/containers/term-meta/index.js\");\n/* harmony import */ var _theme_options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./theme-options */ \"./packages/metaboxes/containers/theme-options/index.js\");\n/* harmony import */ var _user_meta__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./user-meta */ \"./packages/metaboxes/containers/user-meta/index.js\");\n/* harmony import */ var _components_container__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../components/container */ \"./packages/metaboxes/components/container/index.js\");\n/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./registry */ \"./packages/metaboxes/containers/registry.js\");\n/* harmony import */ var _root_registry__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./root-registry */ \"./packages/metaboxes/containers/root-registry.js\");\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n/**\n * Registers the containers.\n */\n['post_meta', 'term_meta', 'user_meta', 'comment_meta', 'network', 'theme_options', 'nav_menu_item', 'widget'].forEach(type => (0,_registry__WEBPACK_IMPORTED_MODULE_10__.registerContainerType)(type, _components_container__WEBPACK_IMPORTED_MODULE_9__[\"default\"]));\n\n/**\n * Renders the given container.\n *\n * @param  {Object} container\n * @param  {string} context\n * @return {void}\n */\nfunction renderContainer(container, context) {\n  const node = document.querySelector(`.container-${container.id}`);\n  const Component = (0,_registry__WEBPACK_IMPORTED_MODULE_10__.getContainerType)(container.type, context);\n  if (node) {\n    const NodeComponent = __webpack_provided_wp_dot_element.createElement(Component, {\n      id: container.id\n    });\n    if (_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot) {\n      const nodeRoot = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot)(node);\n      nodeRoot.render(NodeComponent);\n      (0,_root_registry__WEBPACK_IMPORTED_MODULE_11__.registerContainerRoot)(container.id, nodeRoot);\n    } else {\n      (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.render)(NodeComponent, node, () => {\n        node.dataset.mounted = true;\n      });\n    }\n  } else {\n    // eslint-disable-next-line no-console\n    console.error((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Could not find DOM element for container \"%1$s\".', 'carbon-fields-ui'), container.id));\n  }\n}\n\n/**\n * Initializes the containers.\n *\n * @param  {string} context\n * @return {void}\n */\nfunction initializeContainers(context) {\n  const containers = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('carbon-fields/metaboxes').getContainers();\n  (0,lodash__WEBPACK_IMPORTED_MODULE_3__.forEach)(containers, container => {\n    renderContainer(container, context);\n  });\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/index.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/registry.js":
/*!***************************************************!*\
  !*** ./packages/metaboxes/containers/registry.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getContainerType: () => (/* binding */ getContainerType),\n/* harmony export */   registerContainerType: () => (/* binding */ registerContainerType)\n/* harmony export */ });\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\nconst {\n  registerContainerType,\n  getContainerType\n} = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_0__.createRegistry)('container', ['classic', 'gutenberg']);\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/registry.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/root-registry.js":
/*!********************************************************!*\
  !*** ./packages/metaboxes/containers/root-registry.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getContainerRoot: () => (/* binding */ getContainerRoot),\n/* harmony export */   registerContainerRoot: () => (/* binding */ registerContainerRoot)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nconst rootRegistry = {};\nfunction registerContainerRoot(containerId, root) {\n  rootRegistry[containerId] = _objectSpread(_objectSpread({\n    createdAt: Math.floor(Date.now() / 1000)\n  }, root), {}, {\n    unmount() {\n      // Fix issues with race condition by delaying\n      // the onLoad unmounting of containers\n      // they would be unmounted later\n\n      if (parseFloat(window.cf.config.wp_version) >= 6.2) {\n        const currentTime = Math.floor(Date.now() / 1000);\n        if (currentTime - rootRegistry[containerId].createdAt >= 3) {\n          root.unmount();\n          delete rootRegistry[containerId];\n        }\n      } else {\n        root.unmount();\n        delete rootRegistry[containerId];\n      }\n    }\n  });\n}\nfunction getContainerRoot(containerId) {\n  return rootRegistry[containerId] || null;\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/root-registry.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/term-meta/index.js":
/*!**********************************************************!*\
  !*** ./packages/metaboxes/containers/term-meta/index.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__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 refract_callbag__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_from_event_pattern__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/from-event-pattern */ \"./packages/metaboxes/utils/from-event-pattern.js\");\n/* harmony import */ var _store_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/helpers */ \"./packages/metaboxes/store/helpers.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/**\n * The function that controls the stream of side effects.\n *\n * @return {Object}\n */\nfunction aperture() {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,_utils_from_event_pattern__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(handler => window.jQuery(document).on('ajaxSuccess', handler), handler => window.jQuery(document).off('ajaxSuccess', handler), (e, xhr, options, data) => ({\n    options,\n    data\n  })), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.filter)(({\n    options,\n    data\n  }) => {\n    return options.data && options.data.indexOf('carbon_fields_container') > -1 && options.data.indexOf('add-tag') > -1 && !data.documentElement.querySelector('wp_error');\n  }));\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param  {Object} props\n * @return {Function}\n */\nfunction handler(props) {\n  return function () {\n    // Collects identifiers of current fields so we can remove them later.\n    const oldFieldIds = lodash__WEBPACK_IMPORTED_MODULE_0___default().map(props.container.fields, 'id');\n\n    // Get a fresh copy of the container and fields.\n    const {\n      containers,\n      fields\n    } = (0,_store_helpers__WEBPACK_IMPORTED_MODULE_6__.normalizePreloadedState)(lodash__WEBPACK_IMPORTED_MODULE_0___default().get(window.cf, 'preloaded.containers', []));\n    const container = lodash__WEBPACK_IMPORTED_MODULE_0___default().find(containers, ['id', props.id]);\n    const containerFields = lodash__WEBPACK_IMPORTED_MODULE_0___default().filter(fields, ['container_id', props.id]);\n\n    // Replace the container and add the new fields.\n    const {\n      updateState,\n      removeFields\n    } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.dispatch)('carbon-fields/metaboxes');\n    updateState(lodash__WEBPACK_IMPORTED_MODULE_0___default().keyBy([container], 'id'), lodash__WEBPACK_IMPORTED_MODULE_0___default().keyBy(containerFields, 'id'));\n    removeFields(oldFieldIds);\n  };\n}\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.term_meta.classic', 'carbon-fields/metaboxes', (0,refract_callbag__WEBPACK_IMPORTED_MODULE_3__.withEffects)(aperture, {\n  handler\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/term-meta/index.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/theme-options/index.js":
/*!**************************************************************!*\
  !*** ./packages/metaboxes/containers/theme-options/index.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var callbag_from_event__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-from-event */ \"./node_modules/callbag-from-event/index.js\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/containers/theme-options/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_4__);\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n/**\n * The function that controls the stream of side effects.\n *\n * @return {Object}\n */\nfunction aperture() {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_2__.pipe)((0,callbag_from_event__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(window, 'scroll'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_2__.map)(() => window.jQuery(window).scrollTop()));\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param  {Object} props\n * @return {Function}\n */\nfunction handler() {\n  return function (windowTopOffset) {\n    const $container = window.jQuery('.carbon-box:first');\n    const $panel = window.jQuery('#postbox-container-1');\n    const $bar = window.jQuery('#wpadminbar');\n    const offset = $bar.height() + 10;\n    const threshold = $container.offset().top - offset;\n\n    // In some situations the threshold is negative number because\n    // the container element isn't rendered yet.\n    if (threshold > 0) {\n      $panel.toggleClass('fixed', windowTopOffset >= threshold).css('top', offset);\n    }\n  };\n}\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.addFilter)('carbon-fields.theme_options.classic', 'carbon-fields/metaboxes', (0,refract_callbag__WEBPACK_IMPORTED_MODULE_1__.withEffects)(aperture, {\n  handler\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/theme-options/index.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/user-meta/index.js":
/*!**********************************************************!*\
  !*** ./packages/metaboxes/containers/user-meta/index.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_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/metaboxes/containers/user-meta/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://cf/./packages/metaboxes/containers/user-meta/index.js?");

/***/ }),

/***/ "./packages/metaboxes/containers/widget/index.js":
/*!*******************************************************!*\
  !*** ./packages/metaboxes/containers/widget/index.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__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 refract_callbag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/containers/widget/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__);\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * The function that controls the stream of side effects.\n *\n * @return {Object}\n */\nfunction aperture() {\n  return (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.select)('carbon-fields/metaboxes').isFieldUpdated);\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param  {Object} props\n * @return {Function}\n */\nfunction handler(props) {\n  return function ({\n    action\n  }) {\n    if (!action) {\n      return;\n    }\n    const {\n      container\n    } = props;\n    const {\n      payload\n    } = action;\n    if (container.fields.map(field => field.id).indexOf(payload.fieldId) >= 0) {\n      const $carbonContainer = window.jQuery(`.container-${container.id}`);\n      $carbonContainer.closest('.widget-inside').trigger('change');\n    }\n  };\n}\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.widget.classic', 'carbon-fields/metaboxes', (0,refract_callbag__WEBPACK_IMPORTED_MODULE_2__.withEffects)(aperture, {\n  handler\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/widget/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/association/index.js":
/*!********************************************************!*\
  !*** ./packages/metaboxes/fields/association/index.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__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 lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__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 _utils_strip_compact_input_prefix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/strip-compact-input-prefix */ \"./packages/metaboxes/utils/strip-compact-input-prefix.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 * Returns a field with the given name.\n *\n * @param  {Object[]} fields\n * @param  {string}   name\n * @return {?Object}\n */\nfunction findFieldByName(fields, name) {\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_2__.find)(fields, field => {\n    return field.name === name;\n  });\n}\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.addFilter)('carbon-fields.association.metabox', 'carbon-fields/metaboxes', (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__.withProps)(props => {\n  return {\n    hierarchyResolver() {\n      // Get all fields.\n      const container = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('carbon-fields/metaboxes').getContainerById(props.containerId);\n      const fields = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('carbon-fields/metaboxes').getFieldsByContainerId(props.containerId);\n\n      // Get a clean version of field's name.\n      const fieldName = (0,_utils_strip_compact_input_prefix__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(props.name);\n\n      // Get the path.\n      let path = fieldName.split(/\\[|\\]/g);\n\n      // Remove chunks that are empty.\n      path = path.filter(chunk => chunk !== '');\n      if (container.type === 'widget') {\n        return props.field.base_name;\n      }\n\n      // Get the root field.\n      const rootFieldName = path.shift();\n      const rootField = findFieldByName(fields, rootFieldName);\n\n      // Get the hierarchy.\n      let accessor = fields.indexOf(rootField);\n      let hierarchy = rootField.base_name;\n\n      // Visit every branch in the tree so we can get the full hierarchy.\n      while (path.length > 0) {\n        const chunk = path.shift();\n        const isGroup = !isNaN(chunk);\n        const isSameField = chunk === props.field.base_name;\n        const isNestedComplex = !isGroup && !isSameField;\n        if (isGroup) {\n          accessor = `${accessor}.value.${chunk}.name`;\n          hierarchy = `${hierarchy}[${chunk}]:${(0,lodash__WEBPACK_IMPORTED_MODULE_2__.get)(fields, accessor)}/`;\n        }\n        if (isNestedComplex) {\n          const fieldReferences = (0,lodash__WEBPACK_IMPORTED_MODULE_2__.get)(fields, accessor.replace(/\\.name$/, '.fields'));\n          const fieldReference = findFieldByName(fieldReferences, chunk);\n          const field = (0,lodash__WEBPACK_IMPORTED_MODULE_2__.find)(fields, ['id', fieldReference.id]);\n          accessor = fields.indexOf(field);\n          hierarchy = `${hierarchy}${field.base_name}`;\n        }\n        if (isSameField) {\n          hierarchy = `${hierarchy}${chunk}`;\n        }\n      }\n      return hierarchy;\n    }\n  };\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/association/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/complex/index.js":
/*!****************************************************!*\
  !*** ./packages/metaboxes/fields/complex/index.js ***!
  \****************************************************/
/***/ ((__unused_webpack_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/esm/defineProperty.js\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ \"immer\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(immer__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/fields/complex/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _components_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/field */ \"./packages/metaboxes/components/field/index.js\");\n/* harmony import */ var _utils_flatten_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/flatten-field */ \"./packages/metaboxes/utils/flatten-field.js\");\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\nclass ComplexField extends _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Component {\n  constructor(...args) {\n    super(...args);\n    /**\n     * Handles adding of group.\n     *\n     * @param  {Object}   group\n     * @param  {Function} callback\n     * @return {Object}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleAddGroup\", (group, callback) => {\n      const {\n        id,\n        field,\n        value,\n        addFields,\n        onChange\n      } = this.props;\n\n      // Create a copy of the group to prevent\n      // incidentally modifications.\n      group = (0,lodash__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(group);\n\n      // Get a flat list of all fields for this group.\n      const fields = [];\n      group.id = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.uniqueId)();\n      group.container_id = field.container_id;\n      group.fields = group.fields.map(groupField => (0,_utils_flatten_field__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(groupField, field.container_id, fields));\n\n      // Make sure that the group is expanded even\n      // `set_collapsed(true)` is used.\n      group.collapsed = false;\n\n      // Push the group to the field.\n      addFields(fields);\n      onChange(id, value.concat(group));\n      callback(group);\n    });\n    /**\n     * Handles cloning of group.\n     *\n     * @param  {Object}   group\n     * @param  {Function} callback\n     * @return {void}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleCloneGroup\", (group, callback) => {\n      const {\n        id,\n        value,\n        cloneFields,\n        onChange\n      } = this.props;\n      const originFieldIds = group.fields.map(groupField => groupField.id);\n      const cloneFieldIds = originFieldIds.map(() => (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.uniqueId)());\n      const clonedGroup = (0,lodash__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(group);\n      clonedGroup.id = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.uniqueId)();\n      clonedGroup.fields.forEach((groupField, index) => {\n        groupField.id = cloneFieldIds[index];\n      });\n      cloneFields(originFieldIds, cloneFieldIds);\n      onChange(id, immer__WEBPACK_IMPORTED_MODULE_1___default()(value, draft => {\n        draft.splice(value.indexOf(group) + 1, 0, clonedGroup);\n      }));\n      callback(clonedGroup);\n    });\n    /**\n     * Handles removing of group.\n     *\n     * @param  {Object} group\n     * @return {void}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleRemoveGroup\", group => {\n      const {\n        id,\n        value,\n        onChange\n      } = this.props;\n      onChange(id, (0,lodash__WEBPACK_IMPORTED_MODULE_6__.without)(value, group), group.fields.map(groupField => groupField.id));\n    });\n    /**\n     * Handles expanding/collapsing of group.\n     *\n     * @param  {string} groupId\n     * @return {void}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleToggleGroup\", groupId => {\n      const {\n        field,\n        value,\n        onChange\n      } = this.props;\n      onChange(field.id, immer__WEBPACK_IMPORTED_MODULE_1___default()(value, draft => {\n        const group = (0,lodash__WEBPACK_IMPORTED_MODULE_6__.find)(draft, ['id', groupId]);\n        group.collapsed = !group.collapsed;\n      }));\n    });\n    /**\n     * Handles expanding/collapsing of all groups.\n     *\n     * @param  {boolean} collapsed\n     * @return {void}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleToggleAllGroups\", collapsed => {\n      const {\n        field,\n        value,\n        onChange\n      } = this.props;\n      onChange(field.id, immer__WEBPACK_IMPORTED_MODULE_1___default()(value, draft => {\n        draft.forEach(group => {\n          group.collapsed = collapsed;\n        });\n      }));\n    });\n    /**\n     * Handles setuping of group.\n     *\n     * @param  {Object} group\n     * @param  {Object} props\n     * @return {Object}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleGroupSetup\", (group, props) => {\n      return (0,lodash__WEBPACK_IMPORTED_MODULE_6__.assign)({}, props, {\n        id: group.id,\n        name: group.name,\n        prefix: `${this.props.name}[${props.index}]`,\n        fields: group.fields,\n        collapsed: group.collapsed,\n        context: 'metabox'\n      });\n    });\n    /**\n     * Handles setuping of group's field.\n     *\n     * @param  {Object} field\n     * @param  {Object} props\n     * @param  {Object} groupProps\n     * @return {Array}\n     */\n    (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, \"handleGroupFieldSetup\", (field, props, groupProps) => {\n      return [_components_field__WEBPACK_IMPORTED_MODULE_9__[\"default\"], (0,lodash__WEBPACK_IMPORTED_MODULE_6__.assign)({}, props, {\n        key: field.id,\n        id: field.id,\n        containerId: this.props.containerId,\n        name: `${groupProps.prefix}[${field.name}]`\n      })];\n    });\n  }\n  /**\n   * Renders the component.\n   *\n   * @return {Object}\n   */\n  render() {\n    const {\n      handleGroupSetup,\n      handleGroupFieldSetup,\n      handleAddGroup,\n      handleCloneGroup,\n      handleRemoveGroup,\n      handleToggleGroup,\n      handleToggleAllGroups\n    } = this;\n    const {\n      value,\n      children\n    } = this.props;\n    const allGroupsAreCollapsed = value.every(({\n      collapsed\n    }) => collapsed);\n    return children({\n      allGroupsAreCollapsed,\n      handleGroupSetup,\n      handleGroupFieldSetup,\n      handleAddGroup,\n      handleCloneGroup,\n      handleRemoveGroup,\n      handleToggleGroup,\n      handleToggleAllGroups\n    });\n  }\n}\nconst applyWithSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.withSelect)((select, props) => {\n  const {\n    getComplexGroupValues\n  } = select('carbon-fields/metaboxes');\n  const groupValues = props.value.map(group => {\n    const fieldIds = group.fields.map(field => field.id);\n    return [group.name, getComplexGroupValues(fieldIds)];\n  });\n  return {\n    groupValues\n  };\n});\nconst applyWithDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.withDispatch)(dispatch => {\n  const {\n    addFields,\n    cloneFields\n  } = dispatch('carbon-fields/metaboxes');\n  return {\n    addFields,\n    cloneFields\n  };\n});\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('carbon-fields.complex.metabox', 'carbon-fields/metaboxes', OriginalComplexField => (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.compose)(applyWithSelect, applyWithDispatch)(props => {\n  const {\n    id,\n    field,\n    name,\n    value,\n    groupValues\n  } = props;\n  return __webpack_provided_wp_dot_element.createElement(ComplexField, props, ({\n    allGroupsAreCollapsed,\n    handleGroupSetup,\n    handleGroupFieldSetup,\n    handleAddGroup,\n    handleCloneGroup,\n    handleRemoveGroup,\n    handleToggleGroup,\n    handleToggleAllGroups\n  }) => __webpack_provided_wp_dot_element.createElement(OriginalComplexField, {\n    groupIdKey: \"id\",\n    groupFilterKey: \"name\",\n    id: id,\n    field: field,\n    name: name,\n    value: value,\n    groupValues: groupValues,\n    allGroupsAreCollapsed: allGroupsAreCollapsed,\n    onGroupSetup: handleGroupSetup,\n    onGroupFieldSetup: handleGroupFieldSetup,\n    onAddGroup: handleAddGroup,\n    onCloneGroup: handleCloneGroup,\n    onRemoveGroup: handleRemoveGroup,\n    onToggleGroup: handleToggleGroup,\n    onToggleAllGroups: handleToggleAllGroups,\n    onChange: props.onChange\n  }));\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/complex/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/datetime/index.js":
/*!*****************************************************!*\
  !*** ./packages/metaboxes/fields/datetime/index.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_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/esm/extends.js\");\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_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.date_time.metabox', 'carbon-fields/metaboxes', OriginalDatetimeField => props => __webpack_provided_wp_dot_element.createElement(OriginalDatetimeField, (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n  buttonText: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Date', 'carbon-fields-ui')\n}, props)));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/datetime/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/file/index.js":
/*!*************************************************!*\
  !*** ./packages/metaboxes/fields/file/index.js ***!
  \*************************************************/
/***/ ((__unused_webpack_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/esm/extends.js\");\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_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.file.metabox', 'carbon-fields/metaboxes', OriginalFileField => props => {\n  return __webpack_provided_wp_dot_element.createElement(OriginalFileField, (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    buttonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select File', 'carbon-fields-ui'),\n    mediaLibraryButtonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Use File', 'carbon-fields-ui'),\n    mediaLibraryTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select File', 'carbon-fields-ui')\n  }, props));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/file/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/image/index.js":
/*!**************************************************!*\
  !*** ./packages/metaboxes/fields/image/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_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/esm/extends.js\");\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_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.image.metabox', 'carbon-fields/metaboxes', OriginalImageField => props => {\n  return __webpack_provided_wp_dot_element.createElement(OriginalImageField, (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    buttonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Image', 'carbon-fields-ui'),\n    mediaLibraryButtonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Use Image', 'carbon-fields-ui'),\n    mediaLibraryTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Image', 'carbon-fields-ui')\n  }, props));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/image/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/index.js":
/*!********************************************!*\
  !*** ./packages/metaboxes/fields/index.js ***!
  \********************************************/
/***/ ((__unused_webpack_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_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hocs/with-field */ \"./packages/metaboxes/hocs/with-field/index.js\");\n/* harmony import */ var _hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hocs/with-conditional-logic */ \"./packages/metaboxes/hocs/with-conditional-logic/index.js\");\n/* harmony import */ var _utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/is-gutenberg */ \"./packages/metaboxes/utils/is-gutenberg.js\");\n/* harmony import */ var _association__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./association */ \"./packages/metaboxes/fields/association/index.js\");\n/* harmony import */ var _complex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./complex */ \"./packages/metaboxes/fields/complex/index.js\");\n/* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./datetime */ \"./packages/metaboxes/fields/datetime/index.js\");\n/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./file */ \"./packages/metaboxes/fields/file/index.js\");\n/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./image */ \"./packages/metaboxes/fields/image/index.js\");\n/* harmony import */ var _multiselect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./multiselect */ \"./packages/metaboxes/fields/multiselect/index.js\");\n/* harmony import */ var _media_gallery__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./media-gallery */ \"./packages/metaboxes/fields/media-gallery/index.js\");\n/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./radio */ \"./packages/metaboxes/fields/radio/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./sidebar */ \"./packages/metaboxes/fields/sidebar/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/**\n * Connects every field to the store.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.field-edit.metabox', 'carbon-fields/metaboxes', (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.compose)(_hocs_with_field__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _hocs_with_conditional_logic__WEBPACK_IMPORTED_MODULE_5__[\"default\"], (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.withDispatch)(dispatch => {\n  if ((0,_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_6__[\"default\"])()) {\n    const {\n      lockPostSaving,\n      unlockPostSaving\n    } = dispatch('core/editor');\n    return {\n      lockSaving: lockPostSaving,\n      unlockSaving: unlockPostSaving\n    };\n  }\n  const {\n    lockSaving,\n    unlockSaving\n  } = dispatch('carbon-fields/metaboxes');\n  return {\n    lockSaving,\n    unlockSaving\n  };\n}), _carbon_fields_core__WEBPACK_IMPORTED_MODULE_3__.withValidation));\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/media-gallery/index.js":
/*!**********************************************************!*\
  !*** ./packages/metaboxes/fields/media-gallery/index.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_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/esm/extends.js\");\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_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.scss */ \"./packages/metaboxes/fields/media-gallery/style.scss\");\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_3__);\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * The internal dependencies.\n */\n\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.media_gallery.metabox', 'carbon-fields/metaboxes', OriginalMediaGalleryField => props => {\n  return __webpack_provided_wp_dot_element.createElement(OriginalMediaGalleryField, (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    buttonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Attachments', 'carbon-fields-ui'),\n    mediaLibraryButtonLabel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Use Attachments', 'carbon-fields-ui'),\n    mediaLibraryTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Attachments', 'carbon-fields-ui')\n  }, props));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/media-gallery/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/multiselect/index.js":
/*!********************************************************!*\
  !*** ./packages/metaboxes/fields/multiselect/index.js ***!
  \********************************************************/
/***/ ((__unused_webpack_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/metaboxes/fields/multiselect/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://cf/./packages/metaboxes/fields/multiselect/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/radio/index.js":
/*!**************************************************!*\
  !*** ./packages/metaboxes/fields/radio/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_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/metaboxes/fields/radio/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 * The internal dependencies.\n */\n\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/radio/index.js?");

/***/ }),

/***/ "./packages/metaboxes/fields/sidebar/index.js":
/*!****************************************************!*\
  !*** ./packages/metaboxes/fields/sidebar/index.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__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/**\n * External dependencies.\n */\n\n\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)('carbon-fields.sidebar.metabox', 'carbon-fields/metaboxes', (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.withDispatch)(dispatch => {\n  const {\n    receiveSidebar\n  } = dispatch('carbon-fields/metaboxes');\n  return {\n    onAdded: receiveSidebar\n  };\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/sidebar/index.js?");

/***/ }),

/***/ "./packages/metaboxes/hocs/with-conditional-logic/index.js":
/*!*****************************************************************!*\
  !*** ./packages/metaboxes/hocs/with-conditional-logic/index.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_take_until__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-take-until */ \"./node_modules/callbag-take-until/index.js\");\n/* harmony import */ var callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-distinct-until-changed */ \"./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_6__);\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Returns all root fields from the given holder\n * while excluding some of them.\n *\n * @param  {Object}   fieldsHolder\n * @param  {Object}   allFields\n * @param  {string[]} excludedIds\n * @return {Object[]}\n */\nfunction getFieldsFromFieldsHolder(fieldsHolder, allFields, excludedIds = []) {\n  if (typeof fieldsHolder === 'undefined') {\n    return [];\n  }\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_5__.pick)(allFields, (0,lodash__WEBPACK_IMPORTED_MODULE_5__.difference)((0,lodash__WEBPACK_IMPORTED_MODULE_5__.map)(fieldsHolder.fields, 'id'), excludedIds));\n}\n\n/**\n * Adds the `parent.` parent prefix to field's name.\n *\n * @param  {Object[]} fields\n * @param  {number}   depth\n * @return {Array[]}\n */\nfunction mapParentPrefix(fields, depth = 0) {\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_5__.map)(fields, field => [field.id, `${(0,lodash__WEBPACK_IMPORTED_MODULE_5__.repeat)('parent.', depth)}${field.base_name}`]);\n}\n\n/**\n * The function used to track dependencies required\n * by conditional logic.\n *\n * @param  {Object} props\n * @param  {Object} component\n * @return {Object}\n */\nfunction input(props, component) {\n  const {\n    getFieldsByContainerId\n  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('carbon-fields/metaboxes');\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.pipe)((0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.merge)((0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(getFieldsByContainerId(props.containerId)), (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_6__.fromSelector)(getFieldsByContainerId, props.containerId)), (0,callbag_take_until__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(component.unmount), (0,callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(lodash__WEBPACK_IMPORTED_MODULE_5__.isEqual));\n}\n\n/**\n * The function that provides the data that needs to be\n * evaluated by conditional logic.\n *\n * @param  {Object} props\n * @param  {Object} fields\n * @return {Object}\n */\nfunction output(props, fields) {\n  fields = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.keyBy)(fields, 'id');\n  const container = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('carbon-fields/metaboxes').getContainerById(props.containerId);\n  const isTopLevelField = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.some)(container.fields, ['id', props.id]);\n  let siblingFields = [];\n  if (isTopLevelField) {\n    siblingFields = getFieldsFromFieldsHolder(container, fields, [props.id]);\n    siblingFields = mapParentPrefix(siblingFields);\n  } else {\n    const fieldName = props.name.replace(new RegExp(`^${window.cf.config.compactInputKey}\\\\[(.+?)\\\\]`), '$1');\n\n    // Get the root field.\n    const rootField = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.find)(fields, field => {\n      return field.container_id === props.containerId && (0,lodash__WEBPACK_IMPORTED_MODULE_5__.startsWith)(fieldName, field.name);\n    });\n\n    // Get the hierarchy.\n    let path = fieldName.split(/\\[|\\]/g);\n\n    // Remove the chunk with name of root field\n    // because we already have it.\n    path.shift();\n\n    // Remove any chunks that don't have a value.\n    path = path.filter(chunk => chunk !== '');\n\n    // Remove the chunk with name of field\n    // because we don't needed it.\n    path.pop();\n\n    // Keep reference to the depth\n    // so we can add the `parent.` prefix.\n    let depth = path.reduce((accumulator, chunk) => {\n      return isNaN(chunk) ? accumulator + 1 : accumulator;\n    }, 0);\n\n    // Collect fields that are siblings of root field.\n    siblingFields = getFieldsFromFieldsHolder(container, fields, [rootField.id]);\n    siblingFields = mapParentPrefix(siblingFields, depth + 1);\n\n    // Keep reference to the full path of the field.\n    let pathPrefix = `${rootField.id}.value`;\n    while (path.length > 0) {\n      const chunk = path.shift();\n      const isGroup = !isNaN(chunk);\n      const isNestedComplex = !isGroup;\n      if (isGroup) {\n        pathPrefix = `${pathPrefix}[${chunk}]`;\n        const group = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.get)(fields, pathPrefix);\n        const groupFields = getFieldsFromFieldsHolder(group, fields, [props.id]);\n        siblingFields = siblingFields.concat(mapParentPrefix(groupFields, depth));\n        pathPrefix = `${pathPrefix}.fields`;\n      }\n      if (isNestedComplex) {\n        const groupField = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.find)((0,lodash__WEBPACK_IMPORTED_MODULE_5__.get)(fields, pathPrefix), ['name', chunk]);\n        if (groupField) {\n          pathPrefix = `${groupField.id}.value`;\n        }\n        depth--;\n      }\n    }\n  }\n  siblingFields = siblingFields.map(([id, name]) => [name, (0,lodash__WEBPACK_IMPORTED_MODULE_5__.get)(fields, `${id}.value`)]);\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_5__.fromPairs)(siblingFields);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_6__.withConditionalLogic)(input, output));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/hocs/with-conditional-logic/index.js?");

/***/ }),

/***/ "./packages/metaboxes/hocs/with-container/index.js":
/*!*********************************************************!*\
  !*** ./packages/metaboxes/hocs/with-container/index.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__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/**\n * External dependencies.\n */\n\n\n\n/**\n * Creates a high-order component which adds connection\n * to the store.\n *\n * @param  {Function} Component\n * @return {Function}\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(Component => {\n  const applyWithSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.withSelect)((select, {\n    id\n  }) => {\n    const container = select('carbon-fields/metaboxes').getContainerById(id);\n    return {\n      container\n    };\n  });\n  return applyWithSelect(Component);\n}, 'withContainer'));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/hocs/with-container/index.js?");

/***/ }),

/***/ "./packages/metaboxes/hocs/with-field/index.js":
/*!*****************************************************!*\
  !*** ./packages/metaboxes/hocs/with-field/index.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__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/**\n * External dependencies.\n */\n\n\n\n/**\n * Creates a high-order component which adds connection\n * to the store.\n *\n * @param  {Function} Component\n * @return {Function}\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(Component => {\n  const applyWithSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.withSelect)((select, props) => {\n    const {\n      compactInput,\n      compactInputKey\n    } = window.cf.config;\n    const field = select('carbon-fields/metaboxes').getFieldById(props.id);\n    const value = field && field.value;\n    let name = props.name || field.name;\n\n    /**\n     * Wrap top-level field names in compact input key.\n     *\n     * The fields in widgets don't need this prefix because\n     * their input is already compacted by the `widget` namespace.\n     */\n    if (compactInput && !props.name && name.indexOf('widget-carbon_fields') === -1) {\n      name = `${compactInputKey}[${name}]`;\n    }\n    return {\n      field,\n      name,\n      value\n    };\n  });\n  const applyWithDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.withDispatch)(dispatch => {\n    const {\n      updateFieldValue\n    } = dispatch('carbon-fields/metaboxes');\n    return {\n      onChange: updateFieldValue\n    };\n  });\n  return (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.compose)(applyWithSelect, applyWithDispatch)(Component);\n}, 'withField'));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/hocs/with-field/index.js?");

/***/ }),

/***/ "./packages/metaboxes/index.js":
/*!*************************************!*\
  !*** ./packages/metaboxes/index.js ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getContainerType: () => (/* reexport safe */ _containers_registry__WEBPACK_IMPORTED_MODULE_7__.getContainerType),\n/* harmony export */   registerContainerType: () => (/* reexport safe */ _containers_registry__WEBPACK_IMPORTED_MODULE_7__.registerContainerType)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./store */ \"./packages/metaboxes/store/index.js\");\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fields */ \"./packages/metaboxes/fields/index.js\");\n/* harmony import */ var _monitors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitors */ \"./packages/metaboxes/monitors/index.js\");\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/is-gutenberg */ \"./packages/metaboxes/utils/is-gutenberg.js\");\n/* harmony import */ var _containers_registry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./containers/registry */ \"./packages/metaboxes/containers/registry.js\");\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n/**\n * Public API.\n */\n\n\n/**\n * Sets the locale data for the package type\n */\n(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.setLocaleData)(window.cf.config.locale, 'carbon-fields-ui');\n\n/**\n * Determines the rendering context.\n *\n * @type {string}\n */\nconst context = (0,_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_6__[\"default\"])() ? 'gutenberg' : 'classic';\n\n/**\n * Abracadabra! Poof! Containers everywhere ...\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addAction)('carbon-fields.init', 'carbon-fields/metaboxes', () => {\n  (0,_containers__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context);\n  (0,_monitors__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context);\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/index.js?");

/***/ }),

/***/ "./packages/metaboxes/lib/constants.js":
/*!*********************************************!*\
  !*** ./packages/metaboxes/lib/constants.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CARBON_FIELDS_CONTAINER_ID_PREFIX: () => (/* binding */ CARBON_FIELDS_CONTAINER_ID_PREFIX),\n/* harmony export */   CARBON_FIELDS_CONTAINER_WIDGET_ID_PREFIX: () => (/* binding */ CARBON_FIELDS_CONTAINER_WIDGET_ID_PREFIX),\n/* harmony export */   PAGE_NOW_CUSTOMIZE: () => (/* binding */ PAGE_NOW_CUSTOMIZE),\n/* harmony export */   PAGE_NOW_WIDGETS: () => (/* binding */ PAGE_NOW_WIDGETS)\n/* harmony export */ });\nconst PAGE_NOW_WIDGETS = 'widgets.php';\nconst PAGE_NOW_CUSTOMIZE = 'customize.php';\nconst CARBON_FIELDS_CONTAINER_ID_PREFIX = 'carbon_fields_container_';\nconst CARBON_FIELDS_CONTAINER_WIDGET_ID_PREFIX = 'carbon_fields_';\n\n//# sourceURL=webpack://cf/./packages/metaboxes/lib/constants.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/index.js":
/*!***************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/index.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ aperture)\n/* harmony export */ });\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immer */ \"immer\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(immer__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 lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _post_parent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./post-parent */ \"./packages/metaboxes/monitors/conditional-display/aperture/post-parent.js\");\n/* harmony import */ var _post_format__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./post-format */ \"./packages/metaboxes/monitors/conditional-display/aperture/post-format.js\");\n/* harmony import */ var _post_template__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./post-template */ \"./packages/metaboxes/monitors/conditional-display/aperture/post-template.js\");\n/* harmony import */ var _post_term__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./post-term */ \"./packages/metaboxes/monitors/conditional-display/aperture/post-term.js\");\n/* harmony import */ var _term_parent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./term-parent */ \"./packages/metaboxes/monitors/conditional-display/aperture/term-parent.js\");\n/* harmony import */ var _user_role__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./user-role */ \"./packages/metaboxes/monitors/conditional-display/aperture/user-role.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n/**\n * The function that controls the stream of side effects.\n *\n * @param  {Object} props\n * @param  {string} props.context\n * @return {Object}\n */\n// eslint-disable-next-line no-unused-vars\nfunction aperture(component, {\n  context\n}) {\n  const postParent$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-post-parent.${context}`);\n  const postFormat$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-post-format.${context}`);\n  const postTemplate$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-post-template.${context}`);\n  const postTerm$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-post-term.${context}`);\n  const termParent$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-term-parent.${context}`);\n  const userRole$ = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.applyFilters)(`carbon-fields.conditional-display-user-role.${context}`);\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.pipe)((0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.merge)(postParent$, postFormat$, postTemplate$, postTerm$, termParent$, userRole$), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.scan)((previous, current) => immer__WEBPACK_IMPORTED_MODULE_0___default()(previous, draft => {\n    (0,lodash__WEBPACK_IMPORTED_MODULE_2__.assign)(draft, current);\n  })));\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/post-format.js":
/*!*********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/post-format.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\n/* harmony import */ var callbag_from_delegated_event__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-from-delegated-event */ \"./node_modules/callbag-from-delegated-event/index.js\");\n/* harmony import */ var callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-distinct-until-changed */ \"./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__);\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * The default state.\n *\n * @type {Object}\n */\nconst INITIAL_STATE = {\n  post_format: 'standard'\n};\n\n/**\n * Extracts `post_format` from the input.\n *\n * @param  {Object} input\n * @return {Object}\n */\nfunction getPostFormatFromRadioInput(input) {\n  let value = input.value;\n\n  // Normalize the value of \"Standard\" input.\n  if (value === '0') {\n    value = 'standard';\n  }\n  return {\n    post_format: value\n  };\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_4__.addFilter)('carbon-fields.conditional-display-post-format.classic', 'carbon-fields/metaboxes', () => {\n  const node = document.querySelector('div#post-formats-select');\n  if (!node) {\n    return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(INITIAL_STATE);\n  }\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)((0,callbag_from_delegated_event__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(node, 'input.post-format', 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(({\n    target\n  }) => getPostFormatFromRadioInput(target)), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(getPostFormatFromRadioInput(node.querySelector('input.post-format:checked'))));\n});\n\n/**\n * Defines the side effects for Gutenberg.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_4__.addFilter)('carbon-fields.conditional-display-post-format.gutenberg', 'carbon-fields/metaboxes', () => {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)((0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.select)('core/editor').getEditedPostAttribute, 'format'), (0,callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.filter)(Boolean), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(postFormat => ({\n    post_format: postFormat\n  })), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(INITIAL_STATE));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/post-format.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/post-parent.js":
/*!*********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/post-parent.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\n/* harmony import */ var callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-distinct-until-changed */ \"./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _utils_get_parent_id_from_option__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/get-parent-id-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-parent-id-from-option.js\");\n/* harmony import */ var _utils_get_level_from_option__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/get-level-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js\");\n/* harmony import */ var _utils_get_ancestors_from_option__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/get-ancestors-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-ancestors-from-option.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n/**\n * The default state.\n *\n * @type {Object}\n */\nconst INITIAL_STATE = {\n  post_ancestors: [],\n  post_parent_id: 0,\n  post_level: 1\n};\n\n/**\n * Extracts the `post_ancestors`, `post_parent_id` & `post_level` from the select.\n *\n * @param  {Object} node\n * @return {Object}\n */\nfunction getParentIdAncestorsAndLevelFromSelect(node) {\n  const option = node.options[node.selectedIndex];\n  const ancestors = (0,_utils_get_ancestors_from_option__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(option);\n  const parentId = (0,_utils_get_parent_id_from_option__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(option);\n  const level = (0,_utils_get_level_from_option__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(option) + 1;\n  return {\n    post_ancestors: ancestors,\n    post_parent_id: parentId,\n    post_level: level\n  };\n}\n\n/**\n * Extracts `post_ancestors` from the list.\n *\n * @param  {number}   parentId\n * @param  {Object[]} posts\n * @param  {Array}    ancestors\n * @return {number[]}\n */\nfunction getAncestorsFromPostsList(parentId, posts, ancestors = []) {\n  const parent = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.find)(posts, ['id', parentId]);\n  if (!parent) {\n    return ancestors;\n  }\n  ancestors.unshift(parent.id);\n  if (parent.parent) {\n    return getAncestorsFromPostsList(parent.parent, posts, ancestors);\n  }\n  return ancestors;\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('carbon-fields.conditional-display-post-parent.classic', 'carbon-fields/metaboxes', () => {\n  const node = document.querySelector('select#parent_id');\n  if (!node) {\n    return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(INITIAL_STATE);\n  }\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)(callbag_basics__WEBPACK_IMPORTED_MODULE_6__.fromEvent.default(node, 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(({\n    target\n  }) => getParentIdAncestorsAndLevelFromSelect(target)), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(getParentIdAncestorsAndLevelFromSelect(node)));\n});\n\n/**\n * Defines the side effects for Gutenberg.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('carbon-fields.conditional-display-post-parent.gutenberg', 'carbon-fields/metaboxes', () => {\n  const {\n    getPostType,\n    getEntityRecords\n  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('core');\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)((0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.combine)((0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('core/editor').getCurrentPostId), (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('core/editor').getEditedPostAttribute, 'type'), (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('core/editor').getEditedPostAttribute, 'parent')), (0,callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(lodash__WEBPACK_IMPORTED_MODULE_5__.isEqual), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(([postId, postTypeSlug, parentId]) => {\n    parentId = parseInt(parentId, 10);\n    if (isNaN(parentId)) {\n      return INITIAL_STATE;\n    }\n    const postType = getPostType(postTypeSlug);\n    const isHierarchical = (0,lodash__WEBPACK_IMPORTED_MODULE_5__.get)(postType, ['hierarchical'], false);\n    if (!isHierarchical) {\n      return INITIAL_STATE;\n    }\n\n    // Borrowed from https://github.com/WordPress/gutenberg/blob/master/packages/editor/src/components/page-attributes/parent.js\n    const items = getEntityRecords('postType', postTypeSlug, {\n      per_page: -1,\n      exclude: postId,\n      parent_exclude: postId,\n      orderby: 'menu_order',\n      order: 'asc'\n    }) || [];\n    const ancestors = getAncestorsFromPostsList(parentId, items);\n    const level = ancestors.length + 1;\n    return {\n      post_ancestors: ancestors,\n      post_parent_id: parentId,\n      post_level: level\n    };\n  }));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/post-parent.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/post-template.js":
/*!***********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/post-template.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\n/* harmony import */ var callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-distinct-until-changed */ \"./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__);\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * The default state.\n *\n * @type {Object}\n */\nconst INITIAL_STATE = {\n  post_template: ''\n};\n\n/**\n * Extracts `post_template` from the select.\n *\n * @param  {Object} node\n * @return {Object}\n */\nfunction getPostTemplateFromSelect(node) {\n  let {\n    value\n  } = node;\n\n  // In Gutenberg for the \"Default\" template is used an empty string.\n  if (value === 'default') {\n    value = '';\n  }\n  return {\n    post_template: value\n  };\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('carbon-fields.conditional-display-post-template.classic', 'carbon-fields/metaboxes', () => {\n  const node = document.querySelector('select#page_template');\n  if (!node) {\n    return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(INITIAL_STATE);\n  }\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)(callbag_basics__WEBPACK_IMPORTED_MODULE_6__.fromEvent.default(node, 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(({\n    target\n  }) => getPostTemplateFromSelect(target)), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(getPostTemplateFromSelect(node)));\n});\n\n/**\n * Defines the side effects for Gutenberg.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('carbon-fields.conditional-display-post-template.gutenberg', 'carbon-fields/metaboxes', () => {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.pipe)((0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_7__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.select)('core/editor').getEditedPostAttribute, 'template'), (0,callbag_distinct_until_changed__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.filter)(lodash__WEBPACK_IMPORTED_MODULE_5__.isString), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_6__.map)(postTemplate => ({\n    post_template: postTemplate\n  })), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(INITIAL_STATE));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/post-template.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/post-term.js":
/*!*******************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/post-term.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_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/esm/defineProperty.js\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ \"immer\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(immer__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\n/* harmony import */ var callbag_from_delegated_event__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-from-delegated-event */ \"./node_modules/callbag-from-delegated-event/index.js\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_8__);\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\nconst TAGS_DELIMITER = ',';\n\n/**\n * Applies a monkey patch to the specified method of `window.tagBox` API\n * so we can detect changes of the non-hierarchical taxonomies.\n *\n * @param  {Object} tagBox\n * @param  {string} method\n * @return {void}\n */\nfunction patchWordPressTagBoxAPI(tagBox, method) {\n  tagBox[`original_${method}`] = tagBox[method];\n  tagBox[method] = function (...args) {\n    const event = new Event('change');\n    const textarea = window.jQuery(args[0]).closest('.postbox').find('textarea.the-tags').get(0);\n    const result = tagBox[`original_${method}`](...args);\n    textarea.dispatchEvent(event);\n    return result;\n  };\n}\nif (window.tagBox) {\n  patchWordPressTagBoxAPI(window.tagBox, 'parseTags');\n  patchWordPressTagBoxAPI(window.tagBox, 'flushTags');\n}\n\n/**\n * Extracts the terms of a hierarchical taxonomy.\n *\n * @param  {string} taxonomy\n * @return {Object}\n */\nfunction getTermsFromChecklist(taxonomy) {\n  const inputs = document.querySelectorAll(`#${taxonomy}checklist input[type=\"checkbox\"]:checked`);\n  return [...inputs].reduce((memo, input) => {\n    const value = parseInt(input.value, 10);\n    memo[taxonomy].push(value);\n    return memo;\n  }, {\n    [taxonomy]: []\n  });\n}\n\n/**\n * Extracts the terms of a non-hierarchical taxonomy.\n *\n * @param  {string} taxonomy\n * @return {Object}\n */\nfunction getTermsFromText(taxonomy) {\n  const node = document.querySelector(`#tagsdiv-${taxonomy} textarea.the-tags`);\n  const terms = node.value ? node.value.split(TAGS_DELIMITER) : [];\n  return {\n    [taxonomy]: terms\n  };\n}\n\n/**\n * Keeps track of the hierarchical taxonomies like `categories`.\n *\n * @return {Function}\n */\nfunction trackHierarchicalTaxonomies() {\n  const nodes = document.querySelectorAll('div[id^=\"taxonomy-\"]');\n  return [...nodes].map(node => {\n    const taxonomy = node.id.replace('taxonomy-', '');\n    return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,callbag_from_delegated_event__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(node.querySelector(`#${taxonomy}checklist`), 'input[type=\"checkbox\"]', 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.scan)((stack, {\n      target\n    }) => {\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(stack, draft => {\n        const value = parseInt(target.value, 10);\n        if (target.checked) {\n          draft[taxonomy].push(value);\n        } else {\n          (0,lodash__WEBPACK_IMPORTED_MODULE_7__.pull)(draft[taxonomy], value);\n        }\n      });\n    }, {\n      [taxonomy]: []\n    }), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(getTermsFromChecklist(taxonomy)));\n  });\n}\n\n/**\n * Keeps track of the non-hierarchical taxonomies like `tags`.\n *\n * @return {Function}\n */\nfunction trackNonHierarchicalTaxonomies() {\n  const nodes = document.querySelectorAll('div[id^=\"tagsdiv-\"]');\n  return [...nodes].map(node => {\n    const taxonomy = node.id.replace('tagsdiv-', '');\n    return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)(callbag_basics__WEBPACK_IMPORTED_MODULE_4__.fromEvent.default(node.querySelector('textarea.the-tags'), 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.map)(({\n      target\n    }) => ({\n      [taxonomy]: target.value ? target.value.split(TAGS_DELIMITER) : []\n    })), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(getTermsFromText(taxonomy)));\n  });\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)('carbon-fields.conditional-display-post-term.classic', 'carbon-fields/metaboxes', () => {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.merge)(...trackHierarchicalTaxonomies(), ...trackNonHierarchicalTaxonomies()), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.scan)((previous, current) => {\n    return {\n      post_term: _objectSpread(_objectSpread({}, previous.post_term), current)\n    };\n  }, {\n    post_term: {}\n  }));\n});\n\n/**\n * Defines the side effects for Gutenberg.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)('carbon-fields.conditional-display-post-term.gutenberg', 'carbon-fields/metaboxes', () => {\n  const {\n    getTaxonomies\n  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core');\n  const {\n    getEditedPostAttribute\n  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/editor');\n\n  // Borrowed from https://github.com/WordPress/gutenberg/blob/master/packages/editor/src/components/post-taxonomies/index.js\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_8__.fromSelector)(getTaxonomies, {\n    per_page: -1\n  }), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.filter)(Boolean), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.map)(taxonomies => {\n    const pairs = taxonomies.map(taxonomy => [taxonomy.slug, getEditedPostAttribute(taxonomy.rest_base) || []]);\n    return {\n      post_term: (0,lodash__WEBPACK_IMPORTED_MODULE_7__.fromPairs)(pairs)\n    };\n  }));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/post-term.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/term-parent.js":
/*!*********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/term-parent.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\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 callbag_basics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _utils_get_parent_id_from_option__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/get-parent-id-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-parent-id-from-option.js\");\n/* harmony import */ var _utils_get_level_from_option__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/get-level-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js\");\n/* harmony import */ var _utils_get_ancestors_from_option__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/get-ancestors-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-ancestors-from-option.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n/**\n * The default state.\n *\n * @type {Object}\n */\nconst INITIAL_STATE = {\n  term_ancestors: [],\n  term_parent: 0,\n  term_level: 1\n};\n\n/**\n * Extracts the `term_ancestors`, `term_parent` & `term_level` from the select.\n *\n * @param  {Object} node\n * @return {Object}\n */\nfunction getParentIdAncestorsAndLevelFromSelect(node) {\n  const option = node.options[node.selectedIndex];\n  const ancestors = (0,_utils_get_ancestors_from_option__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(option);\n  const parentId = (0,_utils_get_parent_id_from_option__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(option);\n  const level = (0,_utils_get_level_from_option__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(option) + 1;\n  return {\n    term_ancestors: ancestors,\n    term_parent: parentId,\n    term_level: level\n  };\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__.addFilter)('carbon-fields.conditional-display-term-parent.classic', 'carbon-fields/metaboxes', () => {\n  const node = document.querySelector('select#parent');\n  if (!node) {\n    return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(INITIAL_STATE);\n  }\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.pipe)(callbag_basics__WEBPACK_IMPORTED_MODULE_3__.fromEvent.default(node, 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.map)(({\n    target\n  }) => getParentIdAncestorsAndLevelFromSelect(target)), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(getParentIdAncestorsAndLevelFromSelect(node)));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/term-parent.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/aperture/user-role.js":
/*!*******************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/aperture/user-role.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var callbag_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-of */ \"./node_modules/callbag-of/dist/callbag-of.esm.js\");\n/* harmony import */ var callbag_start_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-start-with */ \"./node_modules/callbag-start-with/index.js\");\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 callbag_basics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_3__);\n/**\n * External dependencies.\n */\n\n\n\n\n\n/**\n * The default state.\n *\n * @type {Object}\n */\nconst INITIAL_STATE = {\n  user_role: ''\n};\n\n/**\n * Extracts `user_role` from a select.\n *\n * @param  {Object} node\n * @return {Object}\n */\nfunction getRoleFromSelect(node) {\n  return {\n    user_role: node.value\n  };\n}\n\n/**\n * Defines the side effects for Classic Editor.\n */\n(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__.addFilter)('carbon-fields.conditional-display-user-role.classic', 'carbon-fields/metaboxes', () => {\n  const node = document.querySelector('select#role');\n  if (!node) {\n    const fieldset = document.querySelector('fieldset[data-profile-role]');\n\n    // The selectbox doesn't exist on the \"Profile\" page.\n    // So we need to read the role from the container in DOM.\n    if (fieldset) {\n      return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n        user_role: fieldset.dataset.profileRole\n      });\n    }\n    return (0,callbag_of__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(INITIAL_STATE);\n  }\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.pipe)(callbag_basics__WEBPACK_IMPORTED_MODULE_3__.fromEvent.default(node, 'change'), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_3__.map)(({\n    target\n  }) => getRoleFromSelect(target)), (0,callbag_start_with__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(getRoleFromSelect(node)));\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/aperture/user-role.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/any-contain.js":
/*!**********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/any-contain.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/comparers/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  operators: ['IN', 'NOT IN'],\n  /**\n   * @inheritdoc\n   */\n  evaluate(a, operator, b) {\n    switch (operator) {\n      case 'IN':\n        return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.intersection)(a, b).length > 0;\n      case 'NOT IN':\n        return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.intersection)(a, b).length === 0;\n      default:\n        return false;\n    }\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/any-contain.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js":
/*!***********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/comparers/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  operators: ['=', '!='],\n  /**\n   * @inheritdoc\n   */\n  evaluate(a, operator, b) {\n    switch (operator) {\n      case '=':\n        return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.includes)(a, b);\n      case '!=':\n        return !(0,lodash__WEBPACK_IMPORTED_MODULE_1__.includes)(a, b);\n      default:\n        return false;\n    }\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/base.js":
/*!***************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/base.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n  /**\n   * The supported operators.\n   *\n   * @type {string[]}\n   */\n  operators: [],\n  /**\n   * Checks if the operator is supported.\n   *\n   * @param  {string} operator\n   * @return {boolean}\n   */\n  isOperatorSupported(operator) {\n    return this.operators.indexOf(operator) > -1;\n  },\n  /**\n   * Performs the comparison.\n   *\n   * @param  {mixed}  a\n   * @param  {string} operator\n   * @param  {mixed}  b\n   * @return {boolean}\n   */\n  evaluate() {\n    return false;\n  }\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/base.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/contain.js":
/*!******************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/contain.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/comparers/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_1__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  operators: ['IN', 'NOT IN'],\n  /**\n   * @inheritdoc\n   */\n  evaluate(a, operator, b) {\n    switch (operator) {\n      case 'IN':\n        return b.indexOf(a) > -1;\n      case 'NOT IN':\n        return b.indexOf(a) === -1;\n      default:\n        return false;\n    }\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/contain.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/equality.js":
/*!*******************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/equality.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/comparers/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/* eslint eqeqeq: \"off\" */\n\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_1__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  operators: ['=', '!='],\n  /**\n   * @inheritdoc\n   */\n  evaluate(a, operator, b) {\n    switch (operator) {\n      case '=':\n        return a == b;\n      case '!=':\n        return a != b;\n      default:\n        return false;\n    }\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/equality.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/comparers/scalar.js":
/*!*****************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/comparers/scalar.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/comparers/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_1__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  operators: ['>', '>=', '<', '<='],\n  /**\n   * @inheritdoc\n   */\n  evaluate(a, operator, b) {\n    switch (operator) {\n      case '>':\n        return a > b;\n      case '>=':\n        return a >= b;\n      case '<':\n        return a < b;\n      case '<=':\n        return a <= b;\n      default:\n        return false;\n    }\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/comparers/scalar.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/base.js":
/*!****************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/base.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _comparers_equality__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../comparers/equality */ \"./packages/metaboxes/monitors/conditional-display/comparers/equality.js\");\n/* harmony import */ var _comparers_contain__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../comparers/contain */ \"./packages/metaboxes/monitors/conditional-display/comparers/contain.js\");\n/* harmony import */ var _comparers_scalar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../comparers/scalar */ \"./packages/metaboxes/monitors/conditional-display/comparers/scalar.js\");\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n  /**\n   * The supported comparers.\n   *\n   * @type {Function[]}\n   */\n  comparers: [_comparers_equality__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _comparers_contain__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _comparers_scalar__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n  /**\n   * Checks if the condition is fulfiled.\n   *\n   * @param  {Object} definition\n   * @param  {Object} values\n   * @return {boolean}\n   */\n  isFulfiled(definition, values) {\n    const {\n      compare,\n      value\n    } = definition;\n    return this.firstComparerIsCorrect(this.getEnvironmentValue(definition, values), compare, value);\n  },\n  /**\n   * Checks if any comparer is correct for `a` and `b`.\n   *\n   * @param  {mixed}  a\n   * @param  {string} operator\n   * @param  {mixed}  b\n   * @return {boolean}\n   */\n  firstComparerIsCorrect(a, operator, b) {\n    const comparer = (0,lodash__WEBPACK_IMPORTED_MODULE_1__.find)(this.comparers, item => item.isOperatorSupported(operator));\n    if (!comparer) {\n      // eslint-disable-next-line no-console\n      console.error((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Unsupported container condition comparison operator used - \"%1$s\".', 'carbon-fields-ui'), operator));\n      return false;\n    }\n    return comparer.evaluate(a, operator, b);\n  },\n  /**\n   * Returns the value from the environment.\n   *\n   * @param  {Object} definition\n   * @param  {Object} values\n   * @return {Object}\n   */\n  getEnvironmentValue(definition, values) {\n    return values[definition.type];\n  }\n});\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/base.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/boolean.js":
/*!*******************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/boolean.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_1__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  getEnvironmentValue() {\n    return true;\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/boolean.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js":
/*!****************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../comparers/any-equality */ \"./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js\");\n/* harmony import */ var _comparers_any_contain__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../comparers/any-contain */ \"./packages/metaboxes/monitors/conditional-display/comparers/any-contain.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  comparers: [_comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _comparers_any_contain__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n  /**\n   * @inheritdoc\n   */\n  getEnvironmentValue(definition, values) {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.get)(values, 'post_ancestors', []);\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/post-template.js":
/*!*************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/post-template.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  isFulfiled(definition, values) {\n    definition = _objectSpread({}, definition);\n\n    // In Gutenberg for the \"Default\" template is used an empty string.\n    if (definition.value === 'default') {\n      definition.value = '';\n    } else if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isArray)(definition.value)) {\n      const defaultIndex = definition.value.indexOf('default');\n      if (defaultIndex !== -1) {\n        definition.value[defaultIndex] = '';\n      }\n    }\n    return _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isFulfiled(definition, values);\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/post-template.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/post-term.js":
/*!*********************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/post-term.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../comparers/any-equality */ \"./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_3__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  comparers: [_comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n  /**\n   * @inheritdoc\n   */\n  isFulfiled(definition, values) {\n    let {\n      compare,\n      value\n    } = definition;\n    if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {\n      let method;\n      switch (compare) {\n        case 'IN':\n          compare = '=';\n          method = 'some';\n          break;\n        case 'NOT IN':\n          compare = '!=';\n          method = 'every';\n          break;\n        default:\n          return false;\n      }\n      const results = value.map(descriptor => {\n        return this.isFulfiled(_objectSpread(_objectSpread({}, definition), {}, {\n          compare,\n          value: descriptor\n        }), values);\n      });\n      return results[method](Boolean);\n    }\n\n    // TODO: Improve value resolution in context of Gutenberg\n    value = value.taxonomy_object.hierarchical ? value.term_object.term_id : value.term_object.name;\n    return this.firstComparerIsCorrect(this.getEnvironmentValue(definition, values), compare, value);\n  },\n  /**\n   * @inheritdoc\n   */\n  getEnvironmentValue(definition, values) {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.get)(values, `post_term.${definition.value.taxonomy}`, []);\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/post-term.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js":
/*!****************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../comparers/any-equality */ \"./packages/metaboxes/monitors/conditional-display/comparers/any-equality.js\");\n/* harmony import */ var _comparers_any_contain__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../comparers/any-contain */ \"./packages/metaboxes/monitors/conditional-display/comparers/any-contain.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  comparers: [_comparers_any_equality__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _comparers_any_contain__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n  /**\n   * @inheritdoc\n   */\n  isFulfiled(definition, values) {\n    const {\n      compare\n    } = definition;\n    let {\n      value\n    } = definition;\n    if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {\n      value = value.map(item => item.term_object.term_id);\n    } else if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) {\n      value = value.term_object.term_id;\n    }\n    return this.firstComparerIsCorrect(this.getEnvironmentValue(definition, values), compare, value);\n  },\n  /**\n   * @inheritdoc\n   */\n  getEnvironmentValue(definition, values) {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_1__.get)(values, 'term_ancestors', []);\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js":
/*!**************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), {}, {\n  /**\n   * @inheritdoc\n   */\n  isFulfiled(definition, values) {\n    const {\n      compare\n    } = definition;\n    let {\n      value\n    } = definition;\n    if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {\n      value = value.map(item => item.term_object.term_id);\n    } else if ((0,lodash__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) {\n      value = value.term_object.term_id;\n    }\n    return this.firstComparerIsCorrect(this.getEnvironmentValue(definition, values), compare, value);\n  }\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/handler/index.js":
/*!**************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/handler/index.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ handler)\n/* harmony export */ });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _conditions_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../conditions/base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n/* harmony import */ var _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../conditions/boolean */ \"./packages/metaboxes/monitors/conditional-display/conditions/boolean.js\");\n/* harmony import */ var _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../conditions/post-term */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-term.js\");\n/* harmony import */ var _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../conditions/post-template */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-template.js\");\n/* harmony import */ var _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../conditions/post-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js\");\n/* harmony import */ var _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../conditions/term-parent-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js\");\n/* harmony import */ var _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../conditions/term-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js\");\n/* harmony import */ var _containers_root_registry__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../containers/root-registry */ \"./packages/metaboxes/containers/root-registry.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * Keeps track of supported conditions.\n *\n * @type {Object}\n */\nconst conditions = {\n  boolean: _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n  post_term: _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n  post_ancestor_id: _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n  post_parent_id: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  post_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  post_format: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  post_template: _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n  term_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n  term_parent: _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n  term_ancestor: _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n  user_role: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n};\n\n/**\n * Walks through the definitions and evaluates the conditions.\n *\n * @param  {Object[]} definitions\n * @param  {Object}   values\n * @param  {string}   relation\n * @return {boolean}\n */\nfunction evaluate(definitions, values, relation) {\n  const results = definitions.map(definition => {\n    if (!definition.relation) {\n      const condition = (0,lodash__WEBPACK_IMPORTED_MODULE_1__.get)(conditions, definition.type);\n      if (condition) {\n        return condition.isFulfiled(definition, values);\n      } else {\n        // eslint-disable-line no-else-return\n        // eslint-disable-next-line no-console\n        console.error((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Unsupported container condition - \"%1$s\".', 'carbon-fields-ui'), definition.type));\n        return false;\n      }\n    } else {\n      // eslint-disable-line no-else-return\n      return evaluate(definition.conditions, values, definition.relation);\n    }\n  });\n  switch (relation) {\n    case 'AND':\n      return results.every(Boolean);\n    case 'OR':\n      return results.some(Boolean);\n    default:\n      // eslint-disable-next-line no-console\n      console.error((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Unsupported container condition relation used - \"%1$s\".', 'carbon-fields-ui'), relation));\n      return false;\n  }\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param  {Object} props\n * @param  {Object} props.containers\n * @param  {string} props.context\n * @return {Function}\n */\nfunction handler({\n  containers,\n  context\n}) {\n  return function (effect) {\n    const results = (0,lodash__WEBPACK_IMPORTED_MODULE_1__.map)(containers, (container, id) => {\n      return [id, evaluate(container.conditions.conditions, effect, container.conditions.relation)];\n    });\n    results.forEach(([id, result]) => {\n      const postboxNode = document.getElementById(id);\n      const containerNode = document.querySelector(`.container-${id}`);\n      const isMounted = !!containerNode?.dataset?.mounted;\n      if (postboxNode) {\n        postboxNode.hidden = !result;\n      }\n      if (containerNode) {\n        if (_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createRoot) {\n          const containerRoot = (0,_containers_root_registry__WEBPACK_IMPORTED_MODULE_11__.getContainerRoot)(id);\n          if (result && !containerRoot) {\n            (0,_containers__WEBPACK_IMPORTED_MODULE_3__.renderContainer)(containers[id], context);\n          }\n          if (!result && containerRoot) {\n            containerRoot.unmount();\n          }\n        } else {\n          if (result && !isMounted) {\n            (0,_containers__WEBPACK_IMPORTED_MODULE_3__.renderContainer)(containers[id], context);\n          }\n          if (!result && isMounted) {\n            delete containerNode?.dataset?.mounted;\n\n            // Rely on React's internals instead of `unmountComponentAtNode`\n            // due to https://github.com/facebook/react/issues/13690.\n            // TODO: Conditionally render the fields in the container, this way\n            // we can move away from mount/unmount cycles.\n            containerNode?._reactRootContainer?.unmount();\n          }\n        }\n      }\n    });\n  };\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/handler/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/index.js":
/*!******************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/index.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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_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 refract_callbag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _aperture__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./aperture */ \"./packages/metaboxes/monitors/conditional-display/aperture/index.js\");\n/* harmony import */ var _handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./handler */ \"./packages/metaboxes/monitors/conditional-display/handler/index.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n/**\n * Performs the evaluation of conditions.\n *\n * @return {null}\n */\nfunction ConditionalDisplay() {\n  return null;\n}\nconst applyWithSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.withSelect)(select => {\n  const containers = select('carbon-fields/metaboxes').getContainers();\n  return {\n    containers\n  };\n});\nconst applyWithEffects = (0,refract_callbag__WEBPACK_IMPORTED_MODULE_2__.withEffects)(_aperture__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n  handler: _handler__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n});\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.compose)(applyWithSelect, applyWithEffects)(ConditionalDisplay));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/utils/get-ancestors-from-option.js":
/*!********************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/utils/get-ancestors-from-option.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ getAncestorsFromOption)\n/* harmony export */ });\n/* harmony import */ var _get_level_from_option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-level-from-option */ \"./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js\");\n/**\n * Internal dependencies.\n */\n\n\n/**\n * Extracts the ancestors of the post/term from an option.\n *\n * @param  {Object} option\n * @return {number[]}\n */\nfunction getAncestorsFromOption(option) {\n  const ancestors = [];\n  let previousOption = option;\n  let level = (0,_get_level_from_option__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(option);\n  while (level > 0 && previousOption) {\n    if ((0,_get_level_from_option__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(previousOption) !== level) {\n      previousOption = previousOption.previousSibling;\n\n      // Skip this iteration because the option isn't an ancestor.\n      continue;\n    }\n    const id = parseInt(previousOption.value, 10);\n    if (id > 0) {\n      ancestors.unshift(id);\n    }\n    previousOption = previousOption.previousSibling;\n    level--;\n  }\n  return ancestors;\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/utils/get-ancestors-from-option.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js":
/*!****************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ getLevelFromOption)\n/* harmony export */ });\n/**\n * Extracts the level from an option.\n *\n * @param  {Object} option\n * @return {number}\n */\nfunction getLevelFromOption(option) {\n  let level = 0;\n  if (option.className) {\n    const matches = option.className.match(/^level-(\\d+)/);\n    if (matches) {\n      level = parseInt(matches[1], 10) + 1;\n    }\n  }\n  return level;\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/utils/get-level-from-option.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/conditional-display/utils/get-parent-id-from-option.js":
/*!********************************************************************************************!*\
  !*** ./packages/metaboxes/monitors/conditional-display/utils/get-parent-id-from-option.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ getParentIdFromOption)\n/* harmony export */ });\n/**\n * Extracts the id of the post/term parent from an option.\n *\n * @param  {Object} option\n * @return {number}\n */\nfunction getParentIdFromOption(option) {\n  const value = parseInt(option.value, 10);\n  return !isNaN(value) && value >= 0 ? value : 0;\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/conditional-display/utils/get-parent-id-from-option.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/index.js":
/*!**********************************************!*\
  !*** ./packages/metaboxes/monitors/index.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ initializeMonitors)\n/* harmony export */ });\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/* harmony import */ var _save_lock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./save-lock */ \"./packages/metaboxes/monitors/save-lock/index.js\");\n/* harmony import */ var _conditional_display__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./conditional-display */ \"./packages/metaboxes/monitors/conditional-display/index.js\");\n/* harmony import */ var _widget_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./widget-handler */ \"./packages/metaboxes/monitors/widget-handler/index.js\");\n/* harmony import */ var _revisions_flag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./revisions-flag */ \"./packages/metaboxes/monitors/revisions-flag/index.js\");\n/* harmony import */ var _utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/is-gutenberg */ \"./packages/metaboxes/utils/is-gutenberg.js\");\n/* harmony import */ var _lib_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lib/constants */ \"./packages/metaboxes/lib/constants.js\");\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n/**\n * Initializes the monitors.\n *\n * @param  {string} context\n * @return {void}\n */\nfunction initializeMonitors(context) {\n  const {\n    pagenow\n  } = window.cf.config;\n  const MonitorElement = document.createElement('div');\n  const MonitorComponent = __webpack_provided_wp_dot_element.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, !(0,_utils_is_gutenberg__WEBPACK_IMPORTED_MODULE_5__[\"default\"])() && __webpack_provided_wp_dot_element.createElement(_save_lock__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null), (pagenow === _lib_constants__WEBPACK_IMPORTED_MODULE_6__.PAGE_NOW_WIDGETS || pagenow === _lib_constants__WEBPACK_IMPORTED_MODULE_6__.PAGE_NOW_CUSTOMIZE) && __webpack_provided_wp_dot_element.createElement(_widget_handler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null), __webpack_provided_wp_dot_element.createElement(_conditional_display__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    context: context\n  }));\n  if (_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot) {\n    (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot)(MonitorElement).render(MonitorComponent);\n  } else {\n    (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.render)(MonitorComponent, MonitorElement);\n  }\n  const postStuffNode = document.querySelector('#poststuff');\n  if (postStuffNode) {\n    const postStuffElement = document.createElement('div');\n    const postStuffComponenet = __webpack_provided_wp_dot_element.createElement(_revisions_flag__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null);\n    const postStuffChildElement = postStuffNode.appendChild(postStuffElement);\n    if (_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot) {\n      (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createRoot)(postStuffChildElement).render(postStuffComponenet);\n    } else {\n      (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.render)(postStuffComponenet, postStuffChildElement);\n    }\n  }\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/revisions-flag/index.js":
/*!*************************************************************!*\
  !*** ./packages/metaboxes/monitors/revisions-flag/index.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);\n/* provided dependency */ var __webpack_provided_wp_dot_element = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/**\n * External dependencies.\n */\n\n\n/**\n * Renders the input used to notify the backend about the changes.\n *\n * @param  {Object}  props\n * @param  {boolean} props.isDirty\n * @return {mixed}\n */\nfunction RevisionsFlag(props) {\n  return __webpack_provided_wp_dot_element.createElement(\"input\", {\n    type: \"hidden\",\n    name: window.cf.config.revisionsInputKey,\n    disabled: !props.isDirty,\n    value: \"1\"\n  });\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.withSelect)(select => ({\n  isDirty: select('carbon-fields/metaboxes').isDirty()\n}))(RevisionsFlag));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/revisions-flag/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/save-lock/index.js":
/*!********************************************************!*\
  !*** ./packages/metaboxes/monitors/save-lock/index.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__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 _carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__);\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Toggles the ability to save the page.\n *\n * @return {null}\n */\nfunction SaveLock() {\n  return null;\n}\n\n/**\n * The function that controls the stream of side effects.\n *\n * @return {Object}\n */\nfunction aperture() {\n  return (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_2__.fromSelector)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('carbon-fields/metaboxes').isSavingLocked);\n}\n\n/**\n * The function that causes the side effects.\n *\n * @return {Function}\n */\nfunction handler() {\n  return function (isLocked) {\n    const nodes = document.querySelectorAll(`\n\t\t\t#publishing-action input#publish,\n\t\t\t#publishing-action input#save,\n\t\t\t#addtag input#submit,\n\t\t\t#edittag input[type=\"submit\"],\n\t\t\t#your-profile input#submit\n\t\t`);\n    nodes.forEach(node => {\n      node.disabled = isLocked;\n    });\n  };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,refract_callbag__WEBPACK_IMPORTED_MODULE_0__.withEffects)(aperture, {\n  handler\n})(SaveLock));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/save-lock/index.js?");

/***/ }),

/***/ "./packages/metaboxes/monitors/widget-handler/index.js":
/*!*************************************************************!*\
  !*** ./packages/metaboxes/monitors/widget-handler/index.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! refract-callbag */ \"refract-callbag\");\n/* harmony import */ var refract_callbag__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(refract_callbag__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! callbag-basics */ \"callbag-basics\");\n/* harmony import */ var callbag_basics__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(callbag_basics__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_urldecode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/urldecode */ \"./packages/metaboxes/utils/urldecode.js\");\n/* harmony import */ var _utils_flatten_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/flatten-field */ \"./packages/metaboxes/utils/flatten-field.js\");\n/* harmony import */ var _utils_from_event_pattern__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/from-event-pattern */ \"./packages/metaboxes/utils/from-event-pattern.js\");\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _lib_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lib/constants */ \"./packages/metaboxes/lib/constants.js\");\n/**\n * External dependencies.\n */\n\n\n\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n/**\n * Performs the re-initialization of widgets.\n *\n * @return {null}\n */\nfunction WidgetHandler() {\n  return null;\n}\n\n/**\n * Returns whether the widget is created by Carbon Fields.\n *\n * @param  {string} identifier\n * @return {boolean}\n */\nfunction isCarbonFieldsWidget(identifier) {\n  return identifier.indexOf(_lib_constants__WEBPACK_IMPORTED_MODULE_9__.CARBON_FIELDS_CONTAINER_WIDGET_ID_PREFIX) > -1;\n}\n\n/**\n * The function that controls the stream of side effects.\n *\n * @return {Object}\n */\nfunction aperture() {\n  return (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.merge)((0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,_utils_from_event_pattern__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(handler => window.jQuery(document).on('widget-added widget-updated', handler), handler => window.jQuery(document).off('widget-added widget-updated', handler), (event, $widget) => ({\n    event,\n    $widget\n  })), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.filter)(({\n    $widget\n  }) => {\n    return isCarbonFieldsWidget($widget[0].id);\n  }), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.map)(payload => ({\n    type: 'WIDGET_CREATED_OR_UPDATED',\n    payload\n  }))), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.pipe)((0,_utils_from_event_pattern__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(handler => window.jQuery(document).on('ajaxSend', handler), handler => window.jQuery(document).off('ajaxSend', handler), (event, xhr, options, data) => ({\n    event,\n    xhr,\n    options,\n    data\n  })), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.filter)(({\n    options\n  }) => {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_2__.startsWith)(options.data, _lib_constants__WEBPACK_IMPORTED_MODULE_9__.CARBON_FIELDS_CONTAINER_ID_PREFIX);\n  }), (0,callbag_basics__WEBPACK_IMPORTED_MODULE_4__.map)(payload => ({\n    type: 'WIDGET_BEIGN_UPDATED_OR_DELETED',\n    payload\n  }))));\n}\n\n/**\n * The function that causes the side effects.\n *\n * @return {Function}\n */\nfunction handler() {\n  return function (effect) {\n    const {\n      getContainerById\n    } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.select)('carbon-fields/metaboxes');\n    const {\n      addContainer,\n      removeContainer,\n      addFields,\n      removeFields\n    } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('carbon-fields/metaboxes');\n    switch (effect.type) {\n      case 'WIDGET_CREATED_OR_UPDATED':\n        {\n          const {\n            event,\n            $widget\n          } = effect.payload;\n          const container = (0,lodash__WEBPACK_IMPORTED_MODULE_2__.flow)(_utils_urldecode__WEBPACK_IMPORTED_MODULE_5__[\"default\"], JSON.parse)($widget.find('[data-json]').data('json'));\n          const fields = [];\n          container.fields = container.fields.map(field => (0,_utils_flatten_field__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(field, container, fields));\n          addFields(fields);\n          addContainer(container);\n          (0,_containers__WEBPACK_IMPORTED_MODULE_8__.renderContainer)(container, 'classic');\n\n          // WARNING: This piece of code manipulates the core behavior of WordPress Widgets.\n          // Some day this code will stop to work and we'll need to find another workaround.\n          //\n          // * Disable the submit { handler } since it breaks our validation logic.\n          // * Disable live preview mode because we can't detect when the widget is updated/synced.\n          // * Show the \"Apply\" button because it's hidden by the live mode.\n          if (window.cf.config.pagenow === _lib_constants__WEBPACK_IMPORTED_MODULE_9__.PAGE_NOW_CUSTOMIZE && event.type === 'widget-added') {\n            const widgetId = $widget.find('[name=\"widget-id\"]').val();\n            $widget.find('[name=\"savewidget\"]').show().end().find('.widget-content:first').off('keydown', 'input').off('change input propertychange', ':input');\n            const instance = wp.customize.Widgets.getWidgetFormControlForWidget(widgetId);\n\n            // Change the flag for 'live mode' so we can receive proper `widget-updated` events.\n            instance.liveUpdateMode = false;\n          }\n          break;\n        }\n      case 'WIDGET_BEIGN_UPDATED_OR_DELETED':\n        {\n          const [, widgetId] = effect.payload.options.data.match(/widget-id=(.+?)&/);\n          const containerId = `${_lib_constants__WEBPACK_IMPORTED_MODULE_9__.CARBON_FIELDS_CONTAINER_ID_PREFIX}${widgetId}`;\n\n          // Get the container from the store.\n          const container = getContainerById(containerId);\n\n          // Remove the current instance from DOM.\n          (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.unmountComponentAtNode)(document.querySelector(`.container-${containerId}`));\n\n          // Get the fields that belongs to the container.\n          const fieldsIds = _.map(container.fields, 'id');\n\n          // Remove everything from the store.\n          removeContainer(containerId);\n          removeFields(fieldsIds);\n          break;\n        }\n    }\n  };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,refract_callbag__WEBPACK_IMPORTED_MODULE_3__.withEffects)(aperture, {\n  handler\n})(WidgetHandler));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/monitors/widget-handler/index.js?");

/***/ }),

/***/ "./packages/metaboxes/store/actions.js":
/*!*********************************************!*\
  !*** ./packages/metaboxes/store/actions.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   addContainer: () => (/* binding */ addContainer),\n/* harmony export */   addFields: () => (/* binding */ addFields),\n/* harmony export */   cloneFields: () => (/* binding */ cloneFields),\n/* harmony export */   lockSaving: () => (/* binding */ lockSaving),\n/* harmony export */   receiveSidebar: () => (/* binding */ receiveSidebar),\n/* harmony export */   removeContainer: () => (/* binding */ removeContainer),\n/* harmony export */   removeFields: () => (/* binding */ removeFields),\n/* harmony export */   setupState: () => (/* binding */ setupState),\n/* harmony export */   unlockSaving: () => (/* binding */ unlockSaving),\n/* harmony export */   updateFieldValue: () => (/* binding */ updateFieldValue),\n/* harmony export */   updateState: () => (/* binding */ updateState)\n/* harmony export */ });\n/**\n * Returns an action object used to setup the state when first opening an editor.\n *\n * @param  {Object[]} containers\n * @param  {Object}   fields\n * @return {Object}\n */\nfunction setupState(containers, fields) {\n  return {\n    type: 'SETUP_STATE',\n    payload: {\n      containers,\n      fields\n    }\n  };\n}\n\n/**\n * Returns an action object used to update the state.\n *\n * @param  {Object[]} containers\n * @param  {Object}   fields\n * @return {Object}\n */\nfunction updateState(containers, fields) {\n  return {\n    type: 'UPDATE_STATE',\n    payload: {\n      containers,\n      fields\n    }\n  };\n}\n\n/**\n * Returns an action object used to update the field's value.\n *\n * @param  {string}   fieldId\n * @param  {mixed}    value\n * @param  {string[]} fieldsToRemove It's used by the complex fields to remove the nested\n *                                 fields within a single action.\n * @return {Object}\n */\nfunction updateFieldValue(fieldId, value, fieldsToRemove = []) {\n  return {\n    type: 'UPDATE_FIELD_VALUE',\n    payload: {\n      fieldId,\n      value,\n      fieldsToRemove\n    }\n  };\n}\n\n/**\n * Returns an action object used to add the fields.\n *\n * @param  {Object[]} fields\n * @return {Object}\n */\nfunction addFields(fields) {\n  return {\n    type: 'ADD_FIELDS',\n    payload: {\n      fields\n    }\n  };\n}\n\n/**\n * Returns an action object used to clone the fields.\n *\n * @param  {string[]} originFieldIds\n * @param  {string[]} cloneFieldIds\n * @return {Object}\n */\nfunction cloneFields(originFieldIds, cloneFieldIds) {\n  return {\n    type: 'CLONE_FIELDS',\n    payload: {\n      originFieldIds,\n      cloneFieldIds\n    }\n  };\n}\n\n/**\n * Returns an action object used to remove the fields.\n *\n * @param  {string[]} fieldIds\n * @return {Object}\n */\nfunction removeFields(fieldIds) {\n  return {\n    type: 'REMOVE_FIELDS',\n    payload: {\n      fieldIds\n    }\n  };\n}\n\n/**\n * Returns an action object used to add a container to all containers.\n *\n * @param  {Object} container\n * @return {Object}\n */\nfunction addContainer(container) {\n  return {\n    type: 'ADD_CONTAINER',\n    payload: container\n  };\n}\n\n/**\n * Returns an action object used to remove a container from all containers.\n *\n * @param  {Object} container\n * @return {Object}\n */\nfunction removeContainer(container) {\n  return {\n    type: 'REMOVE_CONTAINER',\n    payload: container\n  };\n}\n\n/**\n * Returns an action object used to add the created sidebar to all fields.\n *\n * @param  {Object} sidebar\n * @return {Object}\n */\nfunction receiveSidebar(sidebar) {\n  return {\n    type: 'RECEIVE_SIDEBAR',\n    payload: sidebar\n  };\n}\n\n/**\n * Returns an action object used to signal that saving is locked.\n *\n * @param  {string} lockName\n * @return {Object}\n */\nfunction lockSaving(lockName) {\n  return {\n    type: 'LOCK_SAVING',\n    payload: {\n      lockName\n    }\n  };\n}\n\n/**\n * Returns an action object used to signal that saving is unlocked.\n *\n * @param  {string} lockName\n * @return {Object}\n */\nfunction unlockSaving(lockName) {\n  return {\n    type: 'UNLOCK_SAVING',\n    payload: {\n      lockName\n    }\n  };\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/store/actions.js?");

/***/ }),

/***/ "./packages/metaboxes/store/helpers.js":
/*!*********************************************!*\
  !*** ./packages/metaboxes/store/helpers.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   normalizePreloadedState: () => (/* binding */ normalizePreloadedState)\n/* harmony export */ });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils_flatten_field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/flatten-field */ \"./packages/metaboxes/utils/flatten-field.js\");\n/**\n * External dependencies.\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\n/**\n * Transform the shape of the given state to be more Redux friendly.\n *\n * @param  {Object} state\n * @return {Object}\n */\nfunction normalizePreloadedState(state) {\n  const fields = [];\n  const containers = state.filter(({\n    id\n  }) => !(0,lodash__WEBPACK_IMPORTED_MODULE_0__.endsWith)(id, '__i__')).map(container => {\n    return (0,lodash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, container, {\n      fields: container.fields.map(field => (0,_utils_flatten_field__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(field, container.id, fields))\n    });\n  });\n  return {\n    containers,\n    fields\n  };\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/store/helpers.js?");

/***/ }),

/***/ "./packages/metaboxes/store/index.js":
/*!*******************************************!*\
  !*** ./packages/metaboxes/store/index.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reducer */ \"./packages/metaboxes/store/reducer.js\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./actions */ \"./packages/metaboxes/store/actions.js\");\n/* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selectors */ \"./packages/metaboxes/store/selectors.js\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ \"./packages/metaboxes/store/helpers.js\");\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n/**\n * Register the store.\n */\n(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.registerStore)('carbon-fields/metaboxes', {\n  reducer: _reducer__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n  actions: _actions__WEBPACK_IMPORTED_MODULE_3__,\n  selectors: _selectors__WEBPACK_IMPORTED_MODULE_4__\n});\n\n/**\n * Hydrate the store's state.\n */\nconst {\n  containers,\n  fields\n} = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.normalizePreloadedState)((0,lodash__WEBPACK_IMPORTED_MODULE_1__.get)(window.cf, 'preloaded.containers', []));\n(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('carbon-fields/metaboxes').setupState((0,lodash__WEBPACK_IMPORTED_MODULE_1__.keyBy)(containers, 'id'), (0,lodash__WEBPACK_IMPORTED_MODULE_1__.keyBy)(fields, 'id'));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/store/index.js?");

/***/ }),

/***/ "./packages/metaboxes/store/reducer.js":
/*!*********************************************!*\
  !*** ./packages/metaboxes/store/reducer.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   containers: () => (/* binding */ containers),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   fields: () => (/* binding */ fields),\n/* harmony export */   isDirty: () => (/* binding */ isDirty),\n/* harmony export */   isFieldUpdated: () => (/* binding */ isFieldUpdated),\n/* harmony export */   savingLock: () => (/* binding */ savingLock)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ \"immer\");\n/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(immer__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 lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__);\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * External dependencies.\n */\n\n\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * The reducer that keeps track of the containers.\n *\n * @param  {Object} state\n * @param  {Object} action\n * @return {Object}\n */\nfunction containers(state = {}, action) {\n  switch (action.type) {\n    case 'SETUP_STATE':\n      return action.payload.containers;\n    case 'UPDATE_STATE':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        (0,lodash__WEBPACK_IMPORTED_MODULE_3__.values)(action.payload.containers).forEach(container => {\n          draft[container.id] = container;\n        });\n      });\n    case 'ADD_CONTAINER':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        draft[action.payload.id] = action.payload;\n      });\n    case 'REMOVE_CONTAINER':\n      return (0,lodash__WEBPACK_IMPORTED_MODULE_3__.omit)(state, action.payload);\n    default:\n      return state;\n  }\n}\n\n/**\n * Clones a field.\n *\n * @param  {string}   originId\n * @param  {string}   cloneId\n * @param  {Object}   fields\n * @param  {Object[]} accumulator\n * @return {Object[]}\n */\nfunction cloneField(originId, cloneId, fields, accumulator) {\n  const field = (0,lodash__WEBPACK_IMPORTED_MODULE_3__.cloneDeep)(fields[originId]);\n  field.id = cloneId;\n  if (field.type === 'complex') {\n    field.value.forEach(group => {\n      group.id = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__.uniqueId)();\n      accumulator = group.fields.reduce((groupAccumulator, groupField) => {\n        const originGroupFieldId = groupField.id;\n        const cloneGroupFieldId = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_4__.uniqueId)();\n        groupField.id = cloneGroupFieldId;\n        return cloneField(originGroupFieldId, cloneGroupFieldId, fields, groupAccumulator);\n      }, accumulator);\n    });\n  }\n  return accumulator.concat(field);\n}\n\n/**\n * Returns a list of field ids by a given root id.\n *\n * @param  {string}   fieldId\n * @param  {Object}   fields\n * @param  {string[]} accumulator\n * @return {string[]}\n */\nfunction getFieldIdsByRootId(fieldId, fields, accumulator) {\n  const field = fields[fieldId];\n  if (field.type === 'complex') {\n    field.value.forEach(group => {\n      accumulator = group.fields.reduce((groupAccumulator, groupField) => {\n        return getFieldIdsByRootId(groupField.id, fields, groupAccumulator);\n      }, accumulator);\n    });\n  }\n  return accumulator.concat(fieldId);\n}\n\n/**\n * The reducer that keeps track of the fields.\n *\n * @param  {Object} state\n * @param  {Object} action\n * @return {Object}\n */\nfunction fields(state = {}, action) {\n  switch (action.type) {\n    case 'SETUP_STATE':\n      return action.payload.fields;\n    case 'UPDATE_STATE':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        (0,lodash__WEBPACK_IMPORTED_MODULE_3__.values)(action.payload.fields).forEach(field => {\n          draft[field.id] = field;\n        });\n      });\n    case 'UPDATE_FIELD_VALUE':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        const {\n          fieldId,\n          value,\n          fieldsToRemove\n        } = action.payload;\n        draft[fieldId].value = value;\n        const fieldIdsToRemove = fieldsToRemove.reduce((accumulator, fieldIdToRemove) => {\n          return getFieldIdsByRootId(fieldIdToRemove, state, accumulator);\n        }, []);\n        fieldIdsToRemove.forEach(fieldIdToRemove => {\n          (0,lodash__WEBPACK_IMPORTED_MODULE_3__.unset)(draft, fieldIdToRemove);\n        });\n      });\n    case 'ADD_FIELDS':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        action.payload.fields.forEach(field => {\n          draft[field.id] = field;\n        });\n      });\n    case 'CLONE_FIELDS':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        const {\n          originFieldIds,\n          cloneFieldIds\n        } = action.payload;\n        const clonedFields = originFieldIds.reduce((accumulator, originFieldId, index) => {\n          return cloneField(originFieldId, cloneFieldIds[index], draft, accumulator);\n        }, []);\n        (0,lodash__WEBPACK_IMPORTED_MODULE_3__.assign)(draft, (0,lodash__WEBPACK_IMPORTED_MODULE_3__.keyBy)(clonedFields, 'id'));\n      });\n    case 'REMOVE_FIELDS':\n      const fieldIds = action.payload.fieldIds.reduce((accumulator, fieldId) => {\n        return getFieldIdsByRootId(fieldId, state, accumulator);\n      }, []);\n      return (0,lodash__WEBPACK_IMPORTED_MODULE_3__.omit)(state, fieldIds);\n    case 'RECEIVE_SIDEBAR':\n      return immer__WEBPACK_IMPORTED_MODULE_1___default()(state, draft => {\n        (0,lodash__WEBPACK_IMPORTED_MODULE_3__.forEach)(draft, field => {\n          if (field.type === 'sidebar') {\n            field.options.unshift(action.payload);\n          }\n        });\n      });\n    default:\n      return state;\n  }\n}\n\n/**\n * The reducer that keeps track of the save locks.\n *\n * @param  {Object} state\n * @param  {Object} action\n * @return {Object}\n */\nfunction savingLock(state = {}, action) {\n  switch (action.type) {\n    case 'LOCK_SAVING':\n      return _objectSpread(_objectSpread({}, state), {}, {\n        [action.payload.lockName]: true\n      });\n    case 'UNLOCK_SAVING':\n      return (0,lodash__WEBPACK_IMPORTED_MODULE_3__.omit)(state, [action.payload.lockName]);\n    default:\n      return state;\n  }\n}\n\n/**\n * The reducer that keeps track if there is dirty fields.\n *\n * @param  {boolean} state\n * @param  {Object}  action\n * @return {Object}\n */\nfunction isDirty(state = false, action) {\n  switch (action.type) {\n    case 'UPDATE_FIELD_VALUE':\n      return true;\n    default:\n      return state;\n  }\n}\n\n/**\n * The reducer that keeps track if an update is being made.\n *\n * @param  {boolean} state\n * @param  {Object}  action\n * @return {Object}\n */\nfunction isFieldUpdated(state, action) {\n  switch (action.type) {\n    case 'UPDATE_FIELD_VALUE':\n      return {\n        action\n      };\n    default:\n      return false;\n  }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.combineReducers)({\n  containers,\n  fields,\n  savingLock,\n  isDirty,\n  isFieldUpdated\n}));\n\n//# sourceURL=webpack://cf/./packages/metaboxes/store/reducer.js?");

/***/ }),

/***/ "./packages/metaboxes/store/selectors.js":
/*!***********************************************!*\
  !*** ./packages/metaboxes/store/selectors.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getComplexGroupValues: () => (/* binding */ getComplexGroupValues),\n/* harmony export */   getContainerById: () => (/* binding */ getContainerById),\n/* harmony export */   getContainers: () => (/* binding */ getContainers),\n/* harmony export */   getFieldById: () => (/* binding */ getFieldById),\n/* harmony export */   getFields: () => (/* binding */ getFields),\n/* harmony export */   getFieldsByContainerId: () => (/* binding */ getFieldsByContainerId),\n/* harmony export */   isDirty: () => (/* binding */ isDirty),\n/* harmony export */   isFieldUpdated: () => (/* binding */ isFieldUpdated),\n/* harmony export */   isSavingLocked: () => (/* binding */ isSavingLocked)\n/* harmony export */ });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Returns the containers.\n *\n * @param  {Object} state\n * @return {Object[]}\n */\nfunction getContainers(state) {\n  return state.containers;\n}\n\n/**\n * Returns a container by an id.\n *\n * @param  {Object} state\n * @param  {string} containerId\n * @return {?Object}\n */\nfunction getContainerById(state, containerId) {\n  return state.containers[containerId];\n}\n\n/**\n * Returns the fields.\n *\n * @param  {Object} state\n * @return {Object}\n */\nfunction getFields(state) {\n  return state.fields;\n}\n\n/**\n * Returns the fields that belong to the specified container.\n *\n * @param  {Object} state\n * @param  {string} containerId\n * @return {Object[]}\n */\nfunction getFieldsByContainerId(state, containerId) {\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_0__.filter)(state.fields, ['container_id', containerId]);\n}\n\n/**\n * Returns a field by an id.\n *\n * @param  {Object} state\n * @param  {string} fieldId\n * @return {?Object}\n */\nfunction getFieldById(state, fieldId) {\n  return state.fields[fieldId];\n}\n\n/**\n * Returns whether saving is locked.\n *\n * @param  {Object} state\n * @return {boolean}\n */\nfunction isSavingLocked(state) {\n  return Object.keys(state.savingLock).length > 0;\n}\n\n/**\n * Returns whether the metaboxes fields contain unsaved changed.\n *\n * @param  {Object} state\n * @return {boolean}\n */\nfunction isDirty(state) {\n  return state.isDirty;\n}\n\n/**\n * Returns whether the metaboxes fields contain unsaved changed.\n *\n * @param  {Object} state\n * @return {boolean}\n */\nfunction isFieldUpdated(state) {\n  return state.isFieldUpdated;\n}\n\n/**\n * Returns a map of field values for a given group.\n *\n * @param  {Object}   state\n * @param  {string[]} fieldIds\n * @return {Object}\n */\nfunction getComplexGroupValues(state, fieldIds) {\n  let fields = (0,lodash__WEBPACK_IMPORTED_MODULE_0__.pick)(getFields(state), fieldIds);\n  fields = (0,lodash__WEBPACK_IMPORTED_MODULE_0__.mapKeys)(fields, field => field.base_name.replace(/\\-/g, '_'));\n  fields = (0,lodash__WEBPACK_IMPORTED_MODULE_0__.mapValues)(fields, field => field.value);\n  return fields;\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/store/selectors.js?");

/***/ }),

/***/ "./packages/metaboxes/utils/flatten-field.js":
/*!***************************************************!*\
  !*** ./packages/metaboxes/utils/flatten-field.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ flattenField)\n/* harmony export */ });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @carbon-fields/core */ \"@carbon-fields/core\");\n/* harmony import */ var _carbon_fields_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Carbon Fields dependencies.\n */\n\n\n/**\n * Flattens a field.\n *\n * @param  {Object}   field\n * @param  {string}   containerId\n * @param  {Object[]} accumulator\n * @return {Object}\n */\nfunction flattenField(field, containerId, accumulator) {\n  field = (0,lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(field);\n\n  // Replace the id of the field.\n  field.id = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__.uniqueId)();\n\n  // Keep reference to the container.\n  field.container_id = containerId;\n\n  // The complex fields represent a nested structure of fields.\n  // So we need to flat them as well.\n  if (field.type === 'complex') {\n    field.value.forEach(group => {\n      group.id = (0,_carbon_fields_core__WEBPACK_IMPORTED_MODULE_1__.uniqueId)();\n      group.container_id = containerId;\n      group.fields = group.fields.map(groupField => flattenField(groupField, containerId, accumulator));\n    });\n  }\n  accumulator.push(field);\n  return (0,lodash__WEBPACK_IMPORTED_MODULE_0__.pick)(field, ['id', 'type', 'name', 'base_name']);\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/utils/flatten-field.js?");

/***/ }),

/***/ "./packages/metaboxes/utils/from-event-pattern.js":
/*!********************************************************!*\
  !*** ./packages/metaboxes/utils/from-event-pattern.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ fromEventPattern)\n/* harmony export */ });\n/* harmony import */ var callbag_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-create */ \"./node_modules/callbag-create/index.js\");\n/* harmony import */ var callbag_create__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(callbag_create__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Callbag source factory from `addHandler` and `removeHandler` pair.\n *\n * @see https://github.com/Andarist/callbag-from-event-pattern\n * @param  {Function} addHandler\n * @param  {Function} removeHandler\n * @param  {Function} argsTransformer\n * @return {Function}\n */\nfunction fromEventPattern(addHandler, removeHandler, argsTransformer = (...args) => args) {\n  return callbag_create__WEBPACK_IMPORTED_MODULE_0___default()(sink => {\n    const handler = (...args) => sink(1, argsTransformer(...args));\n    addHandler(handler);\n    return () => removeHandler(handler);\n  });\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/utils/from-event-pattern.js?");

/***/ }),

/***/ "./packages/metaboxes/utils/is-gutenberg.js":
/*!**************************************************!*\
  !*** ./packages/metaboxes/utils/is-gutenberg.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ isGutenberg)\n/* harmony export */ });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies.\n */\n\n\n/**\n * Returns true if Gutenberg is presented.\n *\n * @return {boolean}\n */\nfunction isGutenberg() {\n  return !(0,lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(window._wpLoadBlockEditor);\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/utils/is-gutenberg.js?");

/***/ }),

/***/ "./packages/metaboxes/utils/strip-compact-input-prefix.js":
/*!****************************************************************!*\
  !*** ./packages/metaboxes/utils/strip-compact-input-prefix.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ stripCompactInputPrefix)\n/* harmony export */ });\n/**\n * Removes the prefix used to compact the input of Carbon Fields.\n *\n * @param  {string} str\n * @return {string}\n */\nfunction stripCompactInputPrefix(str) {\n  const {\n    compactInput,\n    compactInputKey\n  } = window.cf.config;\n  if (!compactInput || str.indexOf(compactInputKey) !== 0) {\n    return str;\n  }\n  return str.replace(new RegExp(`^${compactInputKey}\\\\[(.+?)\\\\]`), '$1');\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/utils/strip-compact-input-prefix.js?");

/***/ }),

/***/ "./packages/metaboxes/utils/urldecode.js":
/*!***********************************************!*\
  !*** ./packages/metaboxes/utils/urldecode.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ urldecode)\n/* harmony export */ });\n/**\n * Source: https://github.com/kvz/locutus/blob/master/src/php/url/urldecode.js\n *\n * @param  {string} str\n * @return {string}\n */\nfunction urldecode(str) {\n  return decodeURIComponent((str + '').replace(/%(?![\\da-f]{2})/gi, function () {\n    // PHP tolerates poorly formed escape sequences\n    return '%25';\n  }).replace(/\\+/g, '%20'));\n}\n\n//# sourceURL=webpack://cf/./packages/metaboxes/utils/urldecode.js?");

/***/ }),

/***/ "./node_modules/callbag-create/index.js":
/*!**********************************************!*\
  !*** ./node_modules/callbag-create/index.js ***!
  \**********************************************/
/***/ ((module) => {

eval("const create = prod => (start, sink) => {\n  if (start !== 0) return;\n  if (typeof prod !== 'function') {\n    sink(0, () => {});\n    sink(2);\n    return;\n  }\n  let end;\n  let unsub;\n  const maybeDispose = t => {\n    end = end || t === 2;\n    if (end && typeof unsub === 'function') unsub();\n  };\n  sink(0, maybeDispose);\n  unsub = prod((t, d) => {\n    if (end || t === 0) return;\n    sink(t, d);\n    maybeDispose(t);\n  });\n};\n\nmodule.exports = create;\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-create/index.js?");

/***/ }),

/***/ "./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar is = function is(previous, current) {\n  return previous === current;\n};\n\nfunction distinctUntilChanged(compare) {\n  if (compare === void 0) {\n    compare = is;\n  }\n\n  return function (source) {\n    return function (start, sink) {\n      if (start !== 0) return;\n      var inited = false;\n      var prev;\n      var talkback;\n      source(0, function (type, data) {\n        if (type === 0) {\n          talkback = data;\n        }\n\n        if (type !== 1) {\n          sink(type, data);\n          return;\n        }\n\n        if (inited && compare(prev, data)) {\n          talkback(1);\n          return;\n        }\n\n        inited = true;\n        prev = data;\n        sink(1, data);\n      });\n    };\n  };\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (distinctUntilChanged);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-distinct-until-changed/dist/callbag-distinct-until-changed.es.js?");

/***/ }),

/***/ "./node_modules/callbag-filter/readme.js":
/*!***********************************************!*\
  !*** ./node_modules/callbag-filter/readme.js ***!
  \***********************************************/
/***/ ((module) => {

eval("/**\n * callbag-filter\n * --------------\n *\n * Callbag operator that conditionally lets data pass through. Works on either\n * pullable or listenable sources.\n *\n * `npm install callbag-filter`\n *\n * Example:\n *\n *     const fromIter = require('callbag-from-iter');\n *     const iterate = require('callbag-iterate');\n *     const filter = require('callbag-filter');\n *\n *     const source = filter(x => x % 2)(fromIter([1,2,3,4,5]));\n *\n *     iterate(x => console.log(x))(source); // 1\n *                                           // 3\n *                                           // 5\n */\n\nconst filter = condition => source => (start, sink) => {\n  if (start !== 0) return;\n  let talkback;\n  source(0, (t, d) => {\n    if (t === 0) {\n      talkback = d;\n      sink(t, d);\n    } else if (t === 1) {\n      if (condition(d)) sink(t, d);\n      else talkback(1);\n    }\n    else sink(t, d);\n  });\n};\n\nmodule.exports = filter;\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-filter/readme.js?");

/***/ }),

/***/ "./node_modules/callbag-from-delegated-event/index.js":
/*!************************************************************!*\
  !*** ./node_modules/callbag-from-delegated-event/index.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var callbag_from_event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! callbag-from-event */ \"./node_modules/callbag-from-event/index.js\");\n/* harmony import */ var callbag_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! callbag-filter */ \"./node_modules/callbag-filter/readme.js\");\n/* harmony import */ var callbag_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(callbag_filter__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\nconst fromDelegatedEvent = (root, sel, evt) => callbag_filter__WEBPACK_IMPORTED_MODULE_1___default()(e => {\n  let at = e.target;\n  while(at !== root){\n    if (at.matches(sel)) {\n      return true;\n    }\n    at = at.parentElement;\n  }\n  return false;\n})((0,callbag_from_event__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(root, evt));\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fromDelegatedEvent);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-from-delegated-event/index.js?");

/***/ }),

/***/ "./node_modules/callbag-from-event/index.js":
/*!**************************************************!*\
  !*** ./node_modules/callbag-from-event/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nconst fromEvent = (node, name, options) => (start, sink) => {\n  if (start !== 0) return;\n  let disposed = false;\n  const handler = ev => {\n    sink(1, ev)\n  };\n\n  sink(0, t => {\n    if (t !== 2) {\n      return;\n    }\n    disposed = true;\n    if (node.removeEventListener) node.removeEventListener(name, handler, options);\n    else if (node.removeListener) node.removeListener(name, handler);\n    else throw new Error('cannot remove listener from node. No method found.');\n  });\n\n  if (disposed) {\n    return;\n  }\n\n  if (node.addEventListener) node.addEventListener(name, handler, options);\n  else if (node.addListener) node.addListener(name, handler);\n  else throw new Error('cannot add listener to node. No method found.');\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fromEvent);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-from-event/index.js?");

/***/ }),

/***/ "./node_modules/callbag-of/dist/callbag-of.esm.js":
/*!********************************************************!*\
  !*** ./node_modules/callbag-of/dist/callbag-of.esm.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nfunction of() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return function (start, sink) {\n    if (start !== 0) return;\n    var disposed = false;\n    sink(0, function (type) {\n      if (type !== 2) return;\n      disposed = true;\n      values.length = 0;\n    });\n\n    while (values.length !== 0) {\n      sink(1, values.shift());\n    }\n\n    if (disposed) return;\n    sink(2);\n  };\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (of);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-of/dist/callbag-of.esm.js?");

/***/ }),

/***/ "./node_modules/callbag-start-with/index.js":
/*!**************************************************!*\
  !*** ./node_modules/callbag-start-with/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\nconst startWith = (...xs) => inputSource => (start, outputSink) => {\n  if (start !== 0) return;\n  let disposed = false;\n  let inputTalkback;\n  let trackPull = false;\n  let lastPull;\n\n  outputSink(0, (ot, od) => {\n    if (trackPull && ot === 1) {\n      lastPull = [1, od];\n    }\n\n    if (ot === 2) {\n      disposed = true;\n      xs.length = 0;\n    }\n\n    if (!inputTalkback) return;\n    inputTalkback(ot, od);\n  });\n\n  while (xs.length !== 0) {\n    if (xs.length === 1) {\n      trackPull = true;\n    }\n    outputSink(1, xs.shift());\n  }\n\n  if (disposed) return;\n\n  inputSource(0, (it, id) => {\n    if (it === 0) {\n      inputTalkback = id;\n      trackPull = false;\n\n      if (lastPull) {\n        inputTalkback(...lastPull);\n        lastPull = null;\n      }\n      return;\n    }\n    outputSink(it, id);\n  });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (startWith);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-start-with/index.js?");

/***/ }),

/***/ "./node_modules/callbag-take-until/index.js":
/*!**************************************************!*\
  !*** ./node_modules/callbag-take-until/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nconst UNIQUE = {};\n\nconst takeUntil = notifier => source => (start, sink) => {\n  if (start !== 0) return;\n  let sourceTalkback;\n  let notifierTalkback;\n  let inited = false;\n  let done = UNIQUE;\n\n  source(0, (type, data) => {\n    if (type === 0) {\n      sourceTalkback = data;\n\n      notifier(0, (t, d) => {\n        if (t === 0) {\n          notifierTalkback = d;\n          notifierTalkback(1);\n          return;\n        }\n        if (t === 1) {\n          done = void 0;\n          notifierTalkback(2);\n          sourceTalkback(2);\n          if (inited) sink(2);\n          return;\n        }\n        if (t === 2) {\n          notifierTalkback = null;\n          if (d != null) {\n            done = d;\n            sourceTalkback(2);\n            if (inited) sink(t, d);\n          }\n        }\n      });\n\n      inited = true;\n\n      sink(0, (t, d) => {\n        if (done !== UNIQUE) return;\n        if (t === 2 && notifierTalkback) notifierTalkback(2);\n        sourceTalkback(t, d);\n      });\n\n      if (done !== UNIQUE) sink(2, done);\n      return;\n    }\n\n    if (type === 2 && notifierTalkback) notifierTalkback(2);\n    sink(type, data);\n  });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (takeUntil);\n\n\n//# sourceURL=webpack://cf/./node_modules/callbag-take-until/index.js?");

/***/ }),

/***/ "./packages/metaboxes/components/container/style.scss":
/*!************************************************************!*\
  !*** ./packages/metaboxes/components/container/style.scss ***!
  \************************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/components/container/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/components/field/style.scss":
/*!********************************************************!*\
  !*** ./packages/metaboxes/components/field/style.scss ***!
  \********************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/components/field/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/containers/theme-options/style.scss":
/*!****************************************************************!*\
  !*** ./packages/metaboxes/containers/theme-options/style.scss ***!
  \****************************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/theme-options/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/containers/user-meta/style.scss":
/*!************************************************************!*\
  !*** ./packages/metaboxes/containers/user-meta/style.scss ***!
  \************************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/user-meta/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/containers/widget/style.scss":
/*!*********************************************************!*\
  !*** ./packages/metaboxes/containers/widget/style.scss ***!
  \*********************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/containers/widget/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/fields/complex/style.scss":
/*!******************************************************!*\
  !*** ./packages/metaboxes/fields/complex/style.scss ***!
  \******************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/complex/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/fields/media-gallery/style.scss":
/*!************************************************************!*\
  !*** ./packages/metaboxes/fields/media-gallery/style.scss ***!
  \************************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/media-gallery/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/fields/multiselect/style.scss":
/*!**********************************************************!*\
  !*** ./packages/metaboxes/fields/multiselect/style.scss ***!
  \**********************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/multiselect/style.scss?");

/***/ }),

/***/ "./packages/metaboxes/fields/radio/style.scss":
/*!****************************************************!*\
  !*** ./packages/metaboxes/fields/radio/style.scss ***!
  \****************************************************/
/***/ (() => {

eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://cf/./packages/metaboxes/fields/radio/style.scss?");

/***/ }),

/***/ "@carbon-fields/core":
/*!******************************!*\
  !*** external ["cf","core"] ***!
  \******************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["core"]; }());

/***/ }),

/***/ "@wordpress/compose":
/*!*****************************************************!*\
  !*** external ["cf","vendor","@wordpress/compose"] ***!
  \*****************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["@wordpress/compose"]; }());

/***/ }),

/***/ "@wordpress/data":
/*!**************************************************!*\
  !*** external ["cf","vendor","@wordpress/data"] ***!
  \**************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["@wordpress/data"]; }());

/***/ }),

/***/ "@wordpress/element":
/*!*****************************************************!*\
  !*** external ["cf","vendor","@wordpress/element"] ***!
  \*****************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["@wordpress/element"]; }());

/***/ }),

/***/ "@wordpress/hooks":
/*!***************************************************!*\
  !*** external ["cf","vendor","@wordpress/hooks"] ***!
  \***************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["@wordpress/hooks"]; }());

/***/ }),

/***/ "@wordpress/i18n":
/*!**************************************************!*\
  !*** external ["cf","vendor","@wordpress/i18n"] ***!
  \**************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["@wordpress/i18n"]; }());

/***/ }),

/***/ "callbag-basics":
/*!*************************************************!*\
  !*** external ["cf","vendor","callbag-basics"] ***!
  \*************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["callbag-basics"]; }());

/***/ }),

/***/ "classnames":
/*!*********************************************!*\
  !*** external ["cf","vendor","classnames"] ***!
  \*********************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["classnames"]; }());

/***/ }),

/***/ "immer":
/*!****************************************!*\
  !*** external ["cf","vendor","immer"] ***!
  \****************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["immer"]; }());

/***/ }),

/***/ "lodash":
/*!*****************************************!*\
  !*** external ["cf","vendor","lodash"] ***!
  \*****************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["lodash"]; }());

/***/ }),

/***/ "refract-callbag":
/*!**************************************************!*\
  !*** external ["cf","vendor","refract-callbag"] ***!
  \**************************************************/
/***/ ((module) => {

module.exports = (function() { return this["cf"]["vendor"]["refract-callbag"]; }());

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ _defineProperty)\n/* harmony export */ });\n/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ \"./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js\");\n\nfunction _defineProperty(obj, key, value) {\n  key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(key);\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}\n\n//# sourceURL=webpack://cf/./node_modules/@babel/runtime/helpers/esm/defineProperty.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ _extends)\n/* harmony export */ });\nfunction _extends() {\n  _extends = Object.assign ? Object.assign.bind() : function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n    return target;\n  };\n  return _extends.apply(this, arguments);\n}\n\n//# sourceURL=webpack://cf/./node_modules/@babel/runtime/helpers/esm/extends.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
/*!****************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
  \****************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ _toPrimitive)\n/* harmony export */ });\n/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ \"./node_modules/@babel/runtime/helpers/esm/typeof.js\");\n\nfunction _toPrimitive(input, hint) {\n  if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(input) !== \"object\" || input === null) return input;\n  var prim = input[Symbol.toPrimitive];\n  if (prim !== undefined) {\n    var res = prim.call(input, hint || \"default\");\n    if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(res) !== \"object\") return res;\n    throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n  }\n  return (hint === \"string\" ? String : Number)(input);\n}\n\n//# sourceURL=webpack://cf/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
  \******************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ _toPropertyKey)\n/* harmony export */ });\n/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ \"./node_modules/@babel/runtime/helpers/esm/typeof.js\");\n/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ \"./node_modules/@babel/runtime/helpers/esm/toPrimitive.js\");\n\n\nfunction _toPropertyKey(arg) {\n  var key = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arg, \"string\");\n  return (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(key) === \"symbol\" ? key : String(key);\n}\n\n//# sourceURL=webpack://cf/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
/*!***********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
  \***********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ _typeof)\n/* harmony export */ });\nfunction _typeof(o) {\n  \"@babel/helpers - typeof\";\n\n  return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n    return typeof o;\n  } : function (o) {\n    return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n  }, _typeof(o);\n}\n\n//# sourceURL=webpack://cf/./node_modules/@babel/runtime/helpers/esm/typeof.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./packages/metaboxes/index.js");
/******/ 	(this.cf = this.cf || {}).metaboxes = __webpack_exports__;
/******/ 	
/******/ })()
;