(()=>{var e=wp.plugins.registerPlugin,n=wp.editor.PluginDocumentSettingPanel,t=wp.components.SelectControl,i=wp.components.CheckboxControl,l=wp.data.useSelect,o=wp.coreData.useEntityProp,g=wp.element.createElement,a=(wp.element.Fragment,window.lightningPanelI18n||{});e("lightning-design-setting-panel",{render:function(){var e=l(function(e){return e("core/editor").getCurrentPostType()},[]),s=o("postType",e,"meta"),d=s[0],u=s[1],r=d&&d._lightning_design_setting?d._lightning_design_setting:{},c=r.layout||"default",p="true"===r.site_body_padding,m=function(e,n){var t=Object.assign({},r);t[e]=n;var i=Object.assign({},d);i._lightning_design_setting=t,u(i)};return g(n,{name:"lightning-design-setting",title:a.panelTitle||"Lightning design setting"},g(t,{label:a.layoutSetting||"Layout setting",value:c,options:[{label:a.useCommon||"Use common settings",value:"default"},{label:a.col2||"2 column",value:"col-two"},{label:a.col1||"1 column",value:"col-one-no-subsection"},{label:a.col1Sidebar||"1 column (with sidebar element)",value:"col-one"}],onChange:function(e){m("layout",e)}}),g("h4",{style:{marginTop:"16px",marginBottom:"8px"}},a.paddingMargin||"Padding and margin setting"),g(i,{label:a.deletePadding||"Delete site-body padding",checked:p,onChange:function(e){m("site_body_padding",e?"true":"")}}))},icon:"admin-settings"})})();