/******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./src/ast-checkbox.js": /*!*****************************!*\ !*** ./src/ast-checkbox.js ***! \*****************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); const { ToggleControl } = wp.components; const AstCheckboxControl = props => { return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(ToggleControl, { className: props.name, label: props.label, checked: props.value, onChange: val => { val = true === val ? 'disabled' : ''; props.onChange(val); } }); }; /* harmony default export */ __webpack_exports__["default"] = (AstCheckboxControl); /***/ }), /***/ "./src/ast-radio-image.js": /*!********************************!*\ !*** ./src/ast-radio-image.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../assets/svg/svgs.json */ "../../../assets/svg/svgs.json"); const AstRadioImageControl = props => { const { label, description, id, choices, metavalue } = props; const onLayoutChange = value => { props.onChange(value); }; let htmlLabel = null, htmlDescription = null, htmlRadio; const counterClass = Object.keys(choices).length ? 'ast-radio-option-' + Object.keys(choices).length : ''; if (label) { htmlLabel = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "customize-control-title" }, label); } if (description) { htmlDescription = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "description customize-control-description" }, description); } htmlRadio = Object.entries(choices).map(([key, data]) => { let value = data.value; let checked = metavalue === value ? true : false; return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: key }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", { className: "image-select", type: "radio", value: value, name: id, id: id + '-' + value, checked: checked, onChange: () => onLayoutChange(value) }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", { htmlFor: id + '-' + value, className: "ast-radio-img-svg" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-meta-image-tooltip" }, data.label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { dangerouslySetInnerHTML: { __html: _assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_1__[value] } }))); }); return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-radio-image-controller" }, (htmlLabel || htmlDescription) && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, htmlLabel, htmlDescription), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { id: `input_${id}`, className: `options-wrapper ${counterClass}` }, htmlRadio)); }; /* harmony default export */ __webpack_exports__["default"] = (AstRadioImageControl); /***/ }), /***/ "./src/ast-selector.js": /*!*****************************!*\ !*** ./src/ast-selector.js ***! \*****************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); const AstSelectorControl = props => { const { label, description, id, metavalue, choices } = props; const onValueChange = value => { props.onChange(value); }; if (!choices) { return; } let labelHtml = null; let descriptionHtml = null; if (label) { labelHtml = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-meta-sortable-title" }, label); } if (description) { descriptionHtml = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-meta-sortable-description" }, description); } let optionsHtml = Object.entries(choices).map(([key, data]) => { let value = data.value; var html = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-selector-inner-wrap", key: key }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { key: key, onClick: () => onValueChange(value), "aria-pressed": value === metavalue, isPrimary: value === metavalue, label: data.label }, data.label)); return html; }); return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { id: id, className: "ast-meta-selector-controller" }, (labelHtml || descriptionHtml) && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, labelHtml, descriptionHtml), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-meta-selector-wrapper" }, optionsHtml)); }; /* harmony default export */ __webpack_exports__["default"] = (AstSelectorControl); /***/ }), /***/ "./src/settings.js": /*!*************************!*\ !*** ./src/settings.js ***! \*************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/edit-post */ "@wordpress/edit-post"); /* harmony import */ var _wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _ast_checkbox_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ast-checkbox.js */ "./src/ast-checkbox.js"); /* harmony import */ var _ast_radio_image_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ast-radio-image.js */ "./src/ast-radio-image.js"); /* harmony import */ var _ast_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ast-selector.js */ "./src/ast-selector.js"); /* harmony import */ var _assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../assets/svg/svgs.json */ "../../../assets/svg/svgs.json"); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! html-react-parser */ "./node_modules/html-react-parser/index.mjs"); /** * Meta Options build. */ const { __ } = wp.i18n; const MetaSettings = props => { const modalIcon = (0,html_react_parser__WEBPACK_IMPORTED_MODULE_10__["default"])(_assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_8__["meta-popup-icon"]); const brandIcon = astMetaParams.isWhiteLabelled ? '' : (0,html_react_parser__WEBPACK_IMPORTED_MODULE_10__["default"])(_assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_8__["astra-brand-icon"]); const [isOpen, setOpen] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); const openModal = () => setOpen(true); const closeModal = () => setOpen(false); // Adjust spacing & borders for table. const topTableSpacing = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-extra-spacing" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-border" }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", null)); const bottomTableSpacing = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-extra-spacing ast-extra-spacing-bottom" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-border" }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", null)); const icon = (0,html_react_parser__WEBPACK_IMPORTED_MODULE_10__["default"])(_assets_svg_svgs_json__WEBPACK_IMPORTED_MODULE_8__["astra-meta-settings"]); const sidebarOptions = Object.entries(astMetaParams.sidebar_options).map(([key, name]) => { return { label: name, value: key }; }); const contentLayoutOptions = Object.entries(astMetaParams.content_layout).map(([key, name]) => { return { label: name, value: key }; }); // Taransparent and Sticky Header Options. const headerOptions = Object.entries(astMetaParams.header_options).map(([key, name]) => { return { label: name, value: key }; }); // Page header optins. const pageHeaderOptions = Object.entries(astMetaParams.page_header_options).map(([key, name]) => { return { label: name, value: key }; }); // Checkbox control const disableSections = Object.entries(astMetaParams.disable_sections).map(([key, value]) => { let sectionValue = 'disabled' === props.meta[value['key']] ? true : false; return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_checkbox_js__WEBPACK_IMPORTED_MODULE_5__["default"], { label: value['label'], value: sectionValue, key: key, name: value['key'], onChange: val => { props.setMetaFieldValue(val, value['key']); } }); }); const headers_meta_options = Object.entries(astMetaParams.headers_meta_options).map(([key, value]) => { let sectionValue = 'disabled' === props.meta[value['key']] ? true : false; return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_checkbox_js__WEBPACK_IMPORTED_MODULE_5__["default"], { label: value['label'], value: sectionValue, key: key, name: value['key'], onChange: val => { props.setMetaFieldValue(val, value['key']); } }); }); // Checkbox control const stickyHeadderOptions = Object.entries(astMetaParams.sticky_header_options).map(([key, value]) => { let stickyValue = 'disabled' === props.meta[value['key']] ? true : false; return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_checkbox_js__WEBPACK_IMPORTED_MODULE_5__["default"], { label: value['label'], value: stickyValue, key: key, name: value['key'], onChange: val => { props.setMetaFieldValue(val, value['key']); } }); }); return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__.PluginSidebarMoreMenuItem, { target: "theme-meta-panel", icon: icon }, astMetaParams.title), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__.PluginSidebar, { isPinnable: true, icon: icon, name: "theme-meta-panel", title: astMetaParams.title }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sidebar-container components-panel__body is-opened", id: "astra_settings_meta_box" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.PanelBody, { title: __('Content Layout', 'astra'), initialOpen: true }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sidebar-layout-meta-wrap components-base-control__field" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_radio_image_js__WEBPACK_IMPORTED_MODULE_6__["default"], { metavalue: undefined !== props.meta['site-content-layout'] && '' !== props.meta['site-content-layout'] ? props.meta['site-content-layout'] : 'default', choices: contentLayoutOptions, id: 'site-content-layout', onChange: val => { props.setMetaFieldValue(val, 'site-content-layout'); } }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.PanelBody, { title: __('Sidebar', 'astra'), initialOpen: false }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sidebar-layout-meta-wrap components-base-control__field" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_radio_image_js__WEBPACK_IMPORTED_MODULE_6__["default"], { metavalue: undefined !== props.meta['site-sidebar-layout'] && '' !== props.meta['site-sidebar-layout'] ? props.meta['site-sidebar-layout'] : 'default', choices: sidebarOptions, id: 'site-sidebar-layout', onChange: val => { props.setMetaFieldValue(val, 'site-sidebar-layout'); } }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.PanelBody, { title: __('Disable Elements', 'astra'), initialOpen: false }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sidebar-layout-meta-wrap components-base-control__field" }, disableSections)), undefined !== props.meta['ast-global-header-display'] && 'disabled' !== props.meta['ast-global-header-display'] && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-custom-layout-panel components-panel__body" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", { className: "components-panel__body-title" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", { className: "components-button components-panel__body-toggle", onClick: openModal }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-title-container" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-title" }, " ", __('Advanced Settings', 'astra'))), modalIcon))), isOpen && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.Modal, { title: __('Advanced Settings', 'astra'), className: "ast-header-settings-modal", shouldCloseOnClickOutside: false, onRequestClose: closeModal, icon: brandIcon }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-meta-settings-content" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("table", { className: "ast-meta-settings-hook-table widefat" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tbody", null, topTableSpacing, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-advanced-hook-row" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-heading" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, " ", __('Header Rows', 'astra'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-content" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", { className: "components-base-control__field" }, headers_meta_options))), bottomTableSpacing, topTableSpacing, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-advanced-hook-row" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-heading" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, " ", astMetaParams.transparent_header_title)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-content" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "components-base-control__field" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_selector_js__WEBPACK_IMPORTED_MODULE_7__["default"], { metavalue: undefined !== props.meta['theme-transparent-header-meta'] && '' !== props.meta['theme-transparent-header-meta'] ? props.meta['theme-transparent-header-meta'] : 'default', choices: headerOptions, id: 'theme-transparent-header-meta', onChange: val => { props.setMetaFieldValue(val, 'theme-transparent-header-meta'); } }))))), bottomTableSpacing, 'disabled' !== props.meta['ast-main-header-display'] && astMetaParams.is_addon_activated && astMetaParams.sticky_addon_enabled && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, topTableSpacing, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-advanced-hook-row" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-heading" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, " ", astMetaParams.sticky_header_title)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-content" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ast_selector_js__WEBPACK_IMPORTED_MODULE_7__["default"], { metavalue: undefined !== props.meta['stick-header-meta'] && '' !== props.meta['stick-header-meta'] ? props.meta['stick-header-meta'] : 'default', choices: headerOptions, id: 'stick-header-meta', onChange: val => { props.setMetaFieldValue(val, 'stick-header-meta'); } })))), topTableSpacing), astMetaParams.is_addon_activated && astMetaParams.sticky_addon_enabled && 'enabled' == props.meta['stick-header-meta'] && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { className: "ast-advanced-hook-row" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-heading" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, " ", astMetaParams.sticky_header_title)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("td", { className: "ast-advanced-hook-row-content" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sticky-header-options components-base-control__field" }, stickyHeadderOptions)))), topTableSpacing)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-cl-footer-container" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-button-container" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-cl-popup-notice" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", { className: "dashicons dashicons-warning" }), __('Make sure to update your post for changes to take effect.', 'astra'), " "), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", { className: "button button-default", onClick: closeModal }, " ", __('Return To Post', 'astra'))))), astMetaParams.is_bb_themer_layout && astMetaParams.is_addon_activated && astMetaParams.page_header_availability && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.PanelBody, { title: astMetaParams.page_header_title, initialOpen: false }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-sidebar-layout-meta-wrap components-base-control__field" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__.SelectControl, { value: undefined !== props.meta['adv-header-id-meta'] && '' !== props.meta['adv-header-id-meta'] ? props.meta['adv-header-id-meta'] : '', options: pageHeaderOptions.reverse(), onChange: val => { props.setMetaFieldValue(val, 'adv-header-id-meta'); } })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("br", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", { className: "description" }, __('If you would like to apply custom header for this page, select the one from the list above. Page headers can be created and customized from ', 'astra'), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", { href: astMetaParams.page_header_edit_link, target: "__blank" }, __('here.', 'astra'))))))); }; /* harmony default export */ __webpack_exports__["default"] = ((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__.compose)((0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.withSelect)(select => { const postMeta = select('core/editor').getEditedPostAttribute('meta'); const oldPostMeta = select('core/editor').getCurrentPostAttribute('meta'); return { meta: { ...oldPostMeta, ...postMeta }, oldMeta: oldPostMeta }; }), (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.withDispatch)(dispatch => ({ setMetaFieldValue: (value, field) => dispatch('core/editor').editPost({ meta: { [field]: value } }) })))(MetaSettings)); /***/ }), /***/ "./node_modules/domelementtype/lib/index.js": /*!**************************************************!*\ !*** ./node_modules/domelementtype/lib/index.js ***! \**************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0; /** Types of elements found in htmlparser2's DOM */ var ElementType; (function (ElementType) { /** Type for the root element of a document */ ElementType["Root"] = "root"; /** Type for Text */ ElementType["Text"] = "text"; /** Type for */ ElementType["Directive"] = "directive"; /** Type for */ ElementType["Comment"] = "comment"; /** Type for