((e,t,a)=>{"use strict";let i,l=!1;t.blocks.registerBlockType("themify-builder/canvas",{title:"Themify Builder",icon:"layout",category:"layout",useOnce:!0,supports:{multiple:!1,reusable:!1,inserter:!1,html:!1,duplicate:!1},attributes:{content:{source:"raw"}},edit:t=>(clearTimeout(i),i=setTimeout((()=>{if(i=null,e.body.classList.contains("tb_editor_disabled"))t.setAttributes({content:""});else if(!1===l)l=!0,e.tfId("block-"+t.clientId)?.removeAttribute("tabindex"),Themify.trigger("tb_canvas_loaded"),Themify.on("themify_builder_save_data",(e=>{t.setAttributes({content:e.static_content||""})}));else if(window.tb_app?.Builder.get()){const t=tb_app.Builder.get(0).el,a=tb_app.ToolBar.rootEl,i=e.tfId("tb_canvas_block");!t.isConnected&&i&&(i.parentNode.insertBefore(a,i),i.append(t))}}),200),[a("div",{id:"tb_canvas_block",className:"tf_rel",key:"canvas"},""),a("textarea",{className:t.className+" tf_hide",onChange(e){t.setAttributes({content:e})},value:t.attributes.content,key:"static"})]),save:e=>a("",{dangerouslySetInnerHTML:{__html:e.attributes.content}})})})(document,wp,wp.element.createElement);