(()=>{"use strict";const e=window.React,t=window.wp.hooks,i=window.wp.compose,n=window.wp.data,o=window.wp.blocks,s=window.wp.i18n,l="gutenify",r=window?.[`_${l}_vars`]?window[`_${l}_vars`]:{},{is_pro_activated:a,pro_account_url:c,pro_license_status:d,title:u,prefix:p,slug:_,authorWebSite:m,authorDemoWebSite:w,authorWebSiteProPage:y,defaultTheme:b,authorWebSiteSupport:$,plugin_directory_url:g,brand_color:k,plugin_main_version:h,documentationsURL:S,pro_title:f,active_blocks:E,plugin_main_camel_case_name:v}=r,{CustomEditorStyles:C}=(r?.siteUrl?r.siteUrl:r.site_url,(0,s.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+y+'" target="_blank">',f,"</a>"),window?.[`_${p}_vars`]?.components);(0,t.addFilter)("blocks.registerBlockType",`${_}--add-dynamic-css-attributes`,(function(e){const{name:i}=e,n=i.split("/");return!n||n.lenght<2?e:{...e,[`${v}`]:{customStylesCallback(e){const n=i.replace("/","--");let o=(0,t.applyFilters)(`${_}--${n}--inline-styles`,"",e);return o=(0,t.applyFilters)(`${_}--inline-styles--${n}`,o,e),o=(0,t.applyFilters)(`${_}--${n}--dynamic-css`,o,e),o}}}}));const F=(0,i.createHigherOrderComponent)((t=>function(i){const{name:s}=i,{blockSettings:l}=(0,n.useSelect)((()=>({blockSettings:(0,o.getBlockType)(s)})),[s]),r=l?.[v]?.customStylesCallback(i);return r?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...i}),r&&(0,e.createElement)(C,{styles:r})):(0,e.createElement)(t,{...i})}),"withEditorDynamicCss");(0,t.addFilter)("editor.BlockEdit",`${_}--add-editor-dynamic-css`,F)})();