!function(){"use strict";var e=window.wp.i18n,t=window.wp.element,r=window.wp.compose,n=window.wp.data,i=window.wp.components,o=window.wp.plugins;function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a=window.ReactJSXRuntime,f=(0,r.compose)([(0,n.withSelect)((function(){return{hideTitle:(0,n.select)("core/editor").getEditedPostAttribute("meta")._genesis_hide_title}})),(0,n.withDispatch)((function(e){return{onUpdate:function(t){var r,i;e("core/editor").editPost({meta:(r=!!t,i=(0,n.select)("core/editor").getEditedPostAttribute("meta"),s(s({},Object.keys(i).filter((function(e){return e.startsWith("_genesis")})).reduce((function(e,t){return e[t]=i[t],null===e[t]&&(e[t]=!1),e}),{})),{},u({},"_genesis_hide_title",r)))})}}}))])((function(r){var n=r.hideTitle,o=void 0!==n&&n,c=r.onUpdate;return(0,a.jsx)(t.Fragment,{children:(0,a.jsx)(i.Fill,{name:"GenesisSidebar",children:(0,a.jsx)(i.PanelBody,{initialOpen:!0,title:(0,e.__)("Title","genesis"),children:(0,a.jsx)(i.PanelRow,{children:(0,a.jsx)(i.CheckboxControl,{label:(0,e.__)("Hide Title","genesis"),checked:!!o,onChange:function(){return c(!o)}})})})})})}));(0,o.registerPlugin)("genesis-title-toggle",{render:f})}();