(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,r=window.React,s=window.wp.blockEditor,n=window.wp.components,o=window.wp.i18n,i=window.wp.serverSideRender;var l=e.n(i);const a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"bp/active-members","title":"Recently Active Members","category":"widgets","icon":"groups","description":"Profile photos of recently active members.","keywords":["BuddyPress","members","community"],"textdomain":"buddypress","attributes":{"title":{"type":"string","default":""},"maxMembers":{"type":"number","default":15}},"supports":{"align":true},"editorScript":"file:index.js","style":"file:index.css"}');(0,t.registerBlockType)(a,{icon:{background:"#fff",foreground:"#d84800",src:"groups"},edit:({attributes:e,setAttributes:t})=>{const i=(0,s.useBlockProps)(),{title:a,maxMembers:d}=e,c=a||(0,o.__)("Recently Active Members","buddypress"),m={...e,title:c};return(0,r.createElement)("div",{...i},(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(n.PanelBody,{title:(0,o.__)("Settings","buddypress"),initialOpen:!0},(0,r.createElement)(n.TextControl,{label:(0,o.__)("Title","buddypress"),value:c,onChange:e=>{t({title:e})}}),(0,r.createElement)(n.RangeControl,{label:(0,o.__)("Max members to show","buddypress"),value:d,onChange:e=>t({maxMembers:e}),min:1,max:15,required:!0}))),(0,r.createElement)(n.Disabled,null,(0,r.createElement)(l(),{block:"bp/active-members",attributes:m})))}})})();