!function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},e.apply(this,arguments)}var t=window.wp.element,r=window.wp.blocks,o=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"cakewp/no-result","title":"No Result","category":"text","description":"A blockslider block that will be rendered when the blockslider query is empty.","keywords":["no","result"],"version":"1.0.0","textdomain":"block-slider","usesContext":["isBlocksliderPreview"],"attributes":{},"supports":{"color":{"text":true,"background":true},"spacing":{"padding":true,"margin":true},"align":["full","wide"],"html":false,"multiple":false},"editorScript":[]}'),n=window.wp.primitives,s=(0,t.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(n.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),l=window.wp.blockEditor,c=window.wp.data;(0,r.registerBlockType)(o,{apiVersion:2,icon:s,edit:o=>{const n=(0,t.useRef)();return(0,t.useEffect)((()=>{const e=new MutationObserver((()=>{console.log("called");const e=(0,c.select)("core/block-editor").getBlock(o.clientId);(0,c.dispatch)("core/editor").editPost({meta:{blockslider_fallback_content:(0,r.serialize)(e)}})}));return e.observe(n.current,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>{e.disconnect()}}),[]),(0,t.createElement)("div",e({},(0,l.useBlockProps)(),{ref:n}),(0,t.createElement)(l.InnerBlocks,null))},save:()=>(0,t.createElement)("div",l.useBlockProps.save(),(0,t.createElement)(l.InnerBlocks.Content,null))})}();