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