(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,i=window.React,n=window.wp.blockEditor,o=window.wp.components,s=window.wp.i18n,r=window.wp.serverSideRender;var d=e.n(r);const l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"bp/sitewide-notices","title":"Sitewide Notices","category":"widgets","icon":"megaphone","description":"Display Sitewide Notices posted by the site administrator.","keywords":["BuddyPress","notices","community"],"textdomain":"buddypress","attributes":{"title":{"type":"string","default":""}},"supports":{"align":true},"editorScript":"file:index.js","style":"file:index.css"}');(0,t.registerBlockType)(l,{icon:{background:"#fff",foreground:"#d84800",src:"megaphone"},edit:({attributes:e,setAttributes:t})=>{const r=(0,n.useBlockProps)(),{title:l}=e;return(0,i.createElement)("div",{...r},(0,i.createElement)(n.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,s.__)("Settings","buddypress"),initialOpen:!0},(0,i.createElement)(o.TextControl,{label:(0,s.__)("Title","buddypress"),value:l,onChange:e=>{t({title:e})}}))),(0,i.createElement)(o.Disabled,null,(0,i.createElement)(d(),{block:"bp/sitewide-notices",attributes:e})))}})})();