parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"l6vy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=wp,t=e.blockEditor.InspectorControls,n=e.components,r=n.Disabled,l=n.PanelBody,o=n.RangeControl,s=n.TextControl,i=e.element,a=i.Fragment,u=i.createElement,b=e.i18n.__,d=bp,m=d.blockComponents.ServerSideRender,p=function(e){var n=e.attributes,i=e.setAttributes,d=n.title,p=n.maxMembers;return u(a,null,u(t,null,u(l,{title:b("Settings","buddypress"),initialOpen:!0},u(s,{label:b("Title","buddypress"),value:d,onChange:function(e){i({title:e})}}),u(o,{label:b("Max members to show","buddypress"),value:p,onChange:function(e){return i({maxMembers:e})},min:1,max:15,required:!0}))),u(r,null,u(m,{block:"bp/online-members",attributes:n})))},c=p;exports.default=c;
},{}],"VbKe":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=wp,r=e.blocks.createBlock,t={from:[{type:"block",blocks:["core/legacy-widget"],isMatch:function(e){var r=e.idBase,t=e.instance;return!(null==t||!t.raw)&&"bp_core_whos_online_widget"===r},transform:function(e){var t=e.instance;return r("bp/online-members",{title:t.raw.title,maxMembers:t.raw.max_members})}}]},o=t;exports.default=o;
},{}],"to6R":[function(require,module,exports) {
"use strict";var e=s(require("./online-members/edit")),r=s(require("./online-members/transforms"));function s(e){return e&&e.__esModule?e:{default:e}}var t=wp,n=t.blocks.registerBlockType,i=t.i18n.__;n("bp/online-members",{title:i("Online Members","buddypress"),description:i("Profile photos of online users.","buddypress"),icon:{background:"#fff",foreground:"#d84800",src:"groups"},category:"buddypress",attributes:{title:{type:"string",default:i("Who's Online","buddypress")},maxMembers:{type:"number",default:15}},edit:e.default,transforms:r.default});
},{"./online-members/edit":"l6vy","./online-members/transforms":"VbKe"}]},{},["to6R"], null)
//# sourceMappingURL=/bp-members/js/blocks/online-members.js.map