(()=>{"use strict";const e=window.React,t=window.wp.blocks,l=window.wp.blockEditor,n=window.wp.i18n,a=window.wp.components;window.wp.serverSideRender,(0,t.registerBlockType)("fluent-community/page-layout",{title:(0,n.__)("FluentCommunity Page Layout"),icon:"layout",category:"layout",attributes:{showPageHeader:{type:"boolean",default:!0},useFullWidth:{type:"boolean",default:!1},hideCommunityHeader:{type:"boolean",default:!1},disableDarkMode:{type:"boolean",default:!1},useBuildInTheme:{type:"boolean",default:!0}},edit:function(t){const{attributes:o,setAttributes:r}=t,c=(0,l.useBlockProps)();return(0,e.createElement)("div",{...c},(0,e.createElement)(l.InspectorControls,null,(0,e.createElement)(a.PanelBody,{title:(0,n.__)("Layout Settings")},(0,e.createElement)(a.RadioControl,{label:(0,n.__)("Width Setting"),selected:o.useFullWidth?"full":"default",options:[{label:"Default Width",value:"default"},{label:"Full Width",value:"full"}],onChange:e=>r({useFullWidth:"full"===e})}),(0,e.createElement)(a.ToggleControl,{label:(0,n.__)("Disable Dark Mode"),checked:o.disableDarkMode,onChange:e=>r({disableDarkMode:e})}))),(0,e.createElement)("div",{className:"fluent-content-frame"},(0,e.createElement)("div",{className:"fluent-content-frame__inner"},(0,e.createElement)("div",{className:"fluent-content-frame__header"}),(0,e.createElement)("div",{className:"fluent-content-frame-body"},(0,e.createElement)("div",{className:"fluent-content-frame-sidebar"}),(0,e.createElement)("div",{className:"fluent-content-frame__content"},(0,e.createElement)(l.InnerBlocks,{templateLock:!1,template:[["core/post-title"],["core/post-content"]]}))))))},save:function(){return(0,e.createElement)(l.InnerBlocks.Content,null)}})})();