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