(()=>{"use strict";var e,o={203:(e,o,t)=>{const n=window.React,s=window.wp.blocks,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"buddyboss/readylaunch-header","title":"BB ReadyLaunch Header","category":"buddyboss","icon":"align-wide","description":"Use with page templates to add the BuddyBoss ReadyLaunch menu as a Block theme heading","keywords":["BuddyBoss","Header","ReadyLaunch","BB","Navigation"],"textdomain":"buddyboss","attributes":{"showSearch":{"type":"boolean","default":true},"showMessages":{"type":"boolean","default":true},"showNotifications":{"type":"boolean","default":true},"showProfileMenu":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorScript":"file:index.js","style":"file:style-index.css","editorStyle":["bb-icons-rl-css"]}'),r=window.wp.blockEditor,l=window.wp.components,i=window.wp.i18n,d=window.wp.serverSideRender;var c=t.n(d);const h=(0,n.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)("path",{d:"M9 6.5C8.44771 6.5 8 6.94772 8 7.5V10.5C8 11.0523 8.44771 11.5 9 11.5H15C15.5523 11.5 16 11.0523 16 10.5V7.5C16 6.94772 15.5523 6.5 15 6.5H9Z",fill:"black"}),(0,n.createElement)("path",{d:"M8 13.75C8 14.1642 8.33579 14.5 8.75 14.5H15.25C15.6642 14.5 16 14.1642 16 13.75C16 13.3358 15.6642 13 15.25 13H8.75C8.33579 13 8 13.3358 8 13.75Z",fill:"black"}),(0,n.createElement)("path",{d:"M8.75 16C8.33579 16 8 16.3358 8 16.75C8 17.1642 8.33579 17.5 8.75 17.5H15.25C15.6642 17.5 16 17.1642 16 16.75C16 16.3358 15.6642 16 15.25 16H8.75Z",fill:"black"}),(0,n.createElement)("path",{d:"M7.5 2.00024C5.567 2.00024 4 3.56725 4 5.50024V18.5002C4 20.4332 5.567 22.0002 7.5 22.0002H16.5C18.433 22.0002 20 20.4332 20 18.5002V7.64084C20 6.9061 19.7304 6.1969 19.2422 5.64775L16.895 3.00715C16.3257 2.36669 15.5097 2.00024 14.6528 2.00024H7.5ZM18.5 7.64084V18.5002C18.5 19.6048 17.6046 20.5002 16.5 20.5002H7.5C6.39543 20.5002 5.5 19.6048 5.5 18.5002V5.50024C5.5 4.39567 6.39543 3.50024 7.5 3.50024H14.6528C15.0813 3.50024 15.4893 3.68347 15.7739 4.0037L18.1211 6.6443C18.3652 6.91887 18.5 7.27347 18.5 7.64084Z",fill:"black"}));(0,s.registerBlockType)(a,{icon:{src:h},edit:({attributes:e,setAttributes:o})=>{const{showSearch:t,showMessages:s,showNotifications:a,showProfileMenu:d}=e,h=(0,r.useBlockProps)(),u=1===window.BP_ADMIN?.components?.messages,w=1===window.BP_ADMIN?.components?.notifications,b=1===window.BP_ADMIN?.components?.search;return(0,n.createElement)("div",{...h},(0,n.createElement)(r.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,i.__)("Header Settings","buddyboss"),initialOpen:!0},b&&(0,n.createElement)(l.ToggleControl,{label:(0,i.__)("Show Search","buddyboss"),checked:t,onChange:()=>o({showSearch:!t})}),u&&(0,n.createElement)(l.ToggleControl,{label:(0,i.__)("Show Messages","buddyboss"),checked:s,onChange:()=>o({showMessages:!s})}),w&&(0,n.createElement)(l.ToggleControl,{label:(0,i.__)("Show Notifications","buddyboss"),checked:a,onChange:()=>o({showNotifications:!a})}),(0,n.createElement)(l.ToggleControl,{label:(0,i.__)("Show Profile Menu","buddyboss"),checked:d,onChange:()=>o({showProfileMenu:!d})}))),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(c(),{block:"buddyboss/readylaunch-header",attributes:e})))}})}},t={};function n(e){var s=t[e];if(void 0!==s)return s.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,t,s,a)=>{if(!t){var r=1/0;for(c=0;c<e.length;c++){for(var[t,s,a]=e[c],l=!0,i=0;i<t.length;i++)(!1&a||r>=a)&&Object.keys(n.O).every((e=>n.O[e](t[i])))?t.splice(i--,1):(l=!1,a<r&&(r=a));if(l){e.splice(c--,1);var d=s();void 0!==d&&(o=d)}}return o}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[t,s,a]},n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={748:0,276:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var s,a,[r,l,i]=t,d=0;if(r.some((o=>0!==e[o]))){for(s in l)n.o(l,s)&&(n.m[s]=l[s]);if(i)var c=i(n)}for(o&&o(t);d<r.length;d++)a=r[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(c)},t=globalThis.webpackChunk=globalThis.webpackChunk||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var s=n.O(void 0,[276],(()=>n(203)));s=n.O(s)})();