(()=>{"use strict";const e=window.wp.element,t=window.wp.compose,n=window.wp.hooks,l=window.wp.blockEditor,o=window.wp.i18n,r=window.wp.components,a=[{name:"content",title:(0,o.__)("Content")},{name:"style",title:(0,o.__)("Style")},{name:"advance",title:(0,o.__)("Advance")}],i=t=>{let{hookPrefix:l,props:i,hookSuffix:c}=t;const s={},p=a.filter((e=>{let t=(0,n.applyFilters)(`${l}--inspector-controls--${e.name}`,[],{...i},e);return t=(0,n.applyFilters)(`${l}--inspector-controls--${c}--${e.name}`,[...t],{...i},e),s[e.name]=t,t.length>0}));return(0,e.createElement)(e.Fragment,null,p.length>0?(0,e.createElement)(r.PanelBody,{title:(0,o.__)("Options"),key:`${l}--inspector-controls--${c}`},(0,e.createElement)(r.TabPanel,{className:`${l}-editor-tab-panel`,activeClass:"active-tab",tabs:[...p]},(t=>(0,e.createElement)(e.Fragment,null,s[t.name])))):"")};var c;const s=null!==(c=window)&&void 0!==c&&c._gutenify_vars?window._gutenify_vars:{},{is_pro_activated:p,pro_account_url:m,pro_license_status:u,title:_,prefix:d,slug:w,authorWebSite:$,authorDemoWebSite:b,authorWebSiteProPage:f,defaultTheme:g,authorWebSiteSupport:h,plugin_directory_url:k,brand_color:y,plugin_main_version:E,documentationsURL:v,pro_title:F,active_blocks:S,plugin_main_camel_case_name:C}=s,x=(null!=s&&s.siteUrl?s.siteUrl:s.site_url,(0,o.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+f+'" target="_blank">',F,"</a>"),(0,t.createHigherOrderComponent)((t=>o=>{const{name:r,isSelected:a}=o,c=r.split("/");if(!c||c.lenght<2)return(0,e.createElement)(t,o);const s=w,p=r.replaceAll("/","--");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.BlockControls,null,(0,n.applyFilters)(`${s}--block-controls--${p}`,[],o)),(0,e.createElement)(l.InspectorControls,null,(0,n.applyFilters)(`${s}--inspector-controls--${p}`,[(0,e.createElement)(i,{key:`${s}--option-tabs--${p}`,hookPrefix:s,props:o,hookSuffix:p})],o)),(0,e.createElement)(l.InspectorAdvancedControls,null,(0,n.applyFilters)(`${s}--inspector-advance-controls--${p}`,[],o))))}),"onUpdate"));(0,n.addFilter)("editor.BlockEdit",`${w}--extend--block-inspector-controls`,x)})();