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