(()=>{"use strict";var e,r={6963:()=>{const e=window.React,r=window.wp.i18n,t=window.wp.components,n=window.wp.blocks,o=window.wp.element,i=window.wp.data,s=window.wp.blockEditor,c=JSON.parse('{"UU":"gutenify/masonry"}'),l="gutenify",u=window?.[`_${l}_vars`]?window[`_${l}_vars`]:{},{is_pro_activated:a,pro_account_url:p,pro_license_status:d,title:f,prefix:w,slug:v,authorWebSite:_,authorDemoWebSite:g,authorWebSiteProPage:k,defaultTheme:m,authorWebSiteSupport:b,plugin_directory_url:h,brand_color:y,plugin_main_version:O,documentationsURL:S,pro_title:B,active_blocks:I,plugin_main_camel_case_name:$}=u,{map:E}=(u?.siteUrl?u.siteUrl:u.site_url,(0,r.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+k+'" target="_blank">',B,"</a>"),window?.[`_${w}_vars`]?.components?.Icons),{UU:P}=c,U={icon:(0,e.createElement)(t.Icon,{icon:E}),edit:r=>{const{attributes:t,isSelected:n,setAttributes:c,clientId:l}=r,{linkTarget:u,rel:a,url:p}=t,d=(0,o.useRef)(),f=React.useRef();let[w,v]=(0,o.useState)(null);const _=(0,s.useBlockProps)({ref:d}),g=(0,s.useInnerBlocksProps)(_,{renderAppender:s.InnerBlocks.DefaultBlockAppender}),{innerBlocks:k}=(0,i.useSelect)((e=>{const{getBlock:r}=e(s.store);return{innerBlocks:r(l)}}),[l]);return(0,o.useEffect)((function(){return(()=>{const{ownerDocument:e}=d.current,r=`#block-${l}`;var t=e.querySelector(`${r}`);f.current=new Isotope(t,{itemSelector:".grid-item",columnWidth:200,gutter:10})})(),console.log(f),()=>f.current.destroy()}),[]),(0,o.useEffect)((function(){if(f?.current?.element)return f.current.reloadItems(),console.log("effect 12323"),()=>f.current.destroy()}),[k,d,f?.current]),(0,e.createElement)("div",{...g},g.children)},save:function(r){const{attributes:t}=r,{url:n,linkTarget:o,rel:i}=t,c=s.useBlockProps.save(),l=s.useInnerBlocksProps.save(c);return(0,e.createElement)("div",{...l},l.children)}};(0,n.registerBlockType)(P,{...U})}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,n),i.exports}n.m=r,e=[],n.O=(r,t,o,i)=>{if(!t){var s=1/0;for(a=0;a<e.length;a++){for(var[t,o,i]=e[a],c=!0,l=0;l<t.length;l++)(!1&i||s>=i)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(c=!1,i<s&&(s=i));if(c){e.splice(a--,1);var u=o();void 0!==u&&(r=u)}}return r}i=i||0;for(var a=e.length;a>0&&e[a-1][2]>i;a--)e[a]=e[a-1];e[a]=[t,o,i]},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5385:0,2221:0};n.O.j=r=>0===e[r];var r=(r,t)=>{var o,i,[s,c,l]=t,u=0;if(s.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var a=l(n)}for(r&&r(t);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(a)},t=globalThis.webpackChunkgutenify=globalThis.webpackChunkgutenify||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var o=n.O(void 0,[2221],(()=>n(6963)));o=n.O(o)})();