!function(){"use strict";var e=window.wp.i18n,t=window.wp.element,n=window.wp.components,r=window.wp.plugins,o=window.wp.compose,i=window.wp.data;function s(e){return s="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},s(e)}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){var n=(0,i.select)("core/editor").getEditedPostAttribute("meta");return l(l({},Object.keys(n).filter((function(e){return e.startsWith("_genesis")})).reduce((function(e,t){return e[t]=n[t],null===e[t]&&(e[t]=!1),e}),{})),{},c({},e,t))}var p=window.ReactJSXRuntime,f=(0,o.compose)([(0,i.withSelect)((function(){return{bodyClass:(0,i.select)("core/editor").getEditedPostAttribute("meta")._genesis_custom_body_class}})),(0,i.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({meta:a("_genesis_custom_body_class",t)})}}}))])((function(t){var r=t.bodyClass,o=t.onUpdate;return(0,p.jsx)(n.TextControl,{label:(0,e.__)("Body Class","genesis"),value:r,onChange:function(e){return o(e)}})})),d=(0,o.compose)([(0,i.withSelect)((function(){return{postClass:(0,i.select)("core/editor").getEditedPostAttribute("meta")._genesis_custom_post_class}})),(0,i.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({meta:a("_genesis_custom_post_class",t)})}}}))])((function(t){var r=t.postClass,o=t.onUpdate;return(0,p.jsx)(n.TextControl,{label:(0,e.__)("Post Class","genesis"),value:r,onChange:function(e){return o(e)}})}));(0,r.registerPlugin)("genesis-custom-classes",{render:function(){return(0,p.jsx)(t.Fragment,{children:(0,p.jsx)(n.Fill,{name:"GenesisSidebar",children:(0,p.jsx)(n.Panel,{children:(0,p.jsxs)(n.PanelBody,{initialOpen:!0,title:(0,e.__)("Custom Classes","genesis"),children:[(0,p.jsx)(f,{}),(0,p.jsx)(d,{})]})})})})}})}();