function pageGeneratorProGutenbergRegisterBlockToolbarButton(e){!function(e,t,o,n,r){const{Fragment:a,useState:i,createElement:g}=o,{registerFormatType:c,toggleFormat:l,applyFormat:u,useAnchorRef:b}=t,{BlockControls:_,RichTextToolbarButton:p}=e,{Button:s}=n;var w="dashicons-tablet";void 0!==r.gutenberg_icon&&(w=r.gutenberg_icon.search("svg")>=0?o.RawHTML({children:r.gutenberg_icon}):r.gutenberg_icon),c("page-generator-pro/"+r.name,{title:r.title,tagName:r.tag,className:r.name,edit:function(e){return g(p,{key:"page_generator_pro_"+r.name+"_rich_text_toolbar_button",icon:w,title:r.title,onClick:function(){alert("Clicked!")}})}})}(window.wp.blockEditor,window.wp.richText,window.wp.element,window.wp.components,e)}if("undefined"!=typeof wp&&void 0!==wp.blocks)for(const e in page_generator_pro_gutenberg_block_toolbar_buttons.buttons)pageGeneratorProGutenbergRegisterBlockToolbarButton(page_generator_pro_gutenberg_block_toolbar_buttons.buttons[e]);