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}({"atl5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GROUP_STATI=exports.AVATAR_SIZES=void 0;var e=wp,s=e.i18n.__,d=[{label:s("None","buddypress"),value:"none"},{label:s("Thumb","buddypress"),value:"thumb"},{label:s("Full","buddypress"),value:"full"}];exports.AVATAR_SIZES=d;var r={public:s("Public","buddypress"),private:s("Private","buddypress"),hidden:s("Hidden","buddypress")};exports.GROUP_STATI=r;
},{}],"cCC3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./constants"),t=wp,o=t.blockEditor,r=o.InspectorControls,s=o.BlockControls,n=t.components,a=n.Placeholder,l=n.Disabled,u=n.PanelBody,i=n.SelectControl,p=n.ToggleControl,d=n.Toolbar,c=n.ToolbarButton,b=t.element,g=b.Fragment,h=b.createElement,y=t.i18n.__,m=bp,v=m.blockComponents,C=v.AutoCompleter,S=v.ServerSideRender,A=m.blockData.isActive,I=function(t){return t&&t.status&&e.GROUP_STATI[t.status]?e.GROUP_STATI[t.status]:null},f=function(t){var o=t.attributes,n=t.setAttributes,b=A("groups","avatar"),m=A("groups","cover"),v=o.avatarSize,f=o.displayDescription,k=o.displayActionButton,T=o.displayCoverImage;return o.itemID?h(g,null,h(s,null,h(d,{label:y("Block toolbar","buddypress")},h(c,{icon:"edit",title:y("Select another group","buddypress"),onClick:function(){n({itemID:0})}}))),h(r,null,h(u,{title:y("Settings","buddypress"),initialOpen:!0},h(p,{label:y("Display Group's home button","buddypress"),checked:!!k,onChange:function(){n({displayActionButton:!k})},help:y(k?"Include a link to the group's home page under their name.":"Toggle to display a link to the group's home page under their name.","buddypress")}),h(p,{label:y("Display group's description","buddypress"),checked:!!f,onChange:function(){n({displayDescription:!f})},help:y(f?"Include the group's description under their name.":"Toggle to display the group's description under their name.","buddypress")}),b&&h(i,{label:y("Avatar size","buddypress"),value:v,options:e.AVATAR_SIZES,help:y('Select "None" to disable the avatar.',"buddypress"),onChange:function(e){n({avatarSize:e})}}),m&&h(p,{label:y("Display Cover Image","buddypress"),checked:!!T,onChange:function(){n({displayCoverImage:!T})},help:y(T?"Include the group's cover image over their name.":"Toggle to display the group's cover image over their name.","buddypress")}))),h(l,null,h(S,{block:"bp/group",attributes:o}))):h(a,{icon:"buddicons-groups",label:y("BuddyPress Group","buddypress"),instructions:y("Start typing the name of the group you want to feature into this post.","buddypress")},h(C,{component:"groups",objectQueryArgs:{show_hidden:!1},slugValue:I,ariaLabel:y("Group's name","buddypress"),placeholder:y("Enter Group's name here…","buddypress"),onSelectItem:n,useAvatar:b}))},k=f;exports.default=k;
},{"./constants":"atl5"}],"pvse":[function(require,module,exports) {
"use strict";var e=t(require("./group/edit"));function t(e){return e&&e.__esModule?e:{default:e}}var r=wp,d=r.blocks.registerBlockType,u=r.i18n.__;d("bp/group",{title:u("Group","buddypress"),description:u("BuddyPress Group.","buddypress"),icon:{background:"#fff",foreground:"#d84800",src:"buddicons-groups"},category:"buddypress",attributes:{itemID:{type:"integer",default:0},avatarSize:{type:"string",default:"full"},displayDescription:{type:"boolean",default:!0},displayActionButton:{type:"boolean",default:!0},displayCoverImage:{type:"boolean",default:!0}},edit:e.default});
},{"./group/edit":"cCC3"}]},{},["pvse"], null)
//# sourceMappingURL=/bp-groups/js/blocks/group.js.map