function pageGeneratorProTinyMCERegisterPlugin(e){var $;$=jQuery,tinymce.PluginManager.add("page_generator_pro_"+e.name.replaceAll("-","_"),(function(n,t){n.addButton("page_generator_pro_"+e.name.replaceAll("-","_"),{title:e.title,image:e.icon,cmd:"page_generator_pro_"+e.name.replaceAll("-","_")}),n.addCommand("page_generator_pro_"+e.name.replaceAll("-","_"),(function(){if("undefined"!=typeof wpZincModal&&wpZincModal.content(new wpZincModalContent),e.render_callback)var t=[{text:"Cancel",classes:"cancel"},{text:"Insert",subtype:"primary",classes:"insert"}];else var t=[{text:"Cancel",classes:"cancel"},{text:"Run",subtype:"primary",classes:"run"}];n.windowManager.open({id:"wpzinc-tinymce-modal",title:e.title,width:e.modal.width,height:e.modal.height,buttons:t}),$.post(ajaxurl,{action:"page_generator_pro_output_tinymce_modal",nonce:page_generator_pro_tinymce.nonces.tinymce,editor_type:"tinymce",shortcode:e.name},(function(e){$("#wpzinc-tinymce-modal-body").html(e),wp_zinc_tabs_init(),page_generator_pro_reinit_selectize(),"undefined"!=typeof wp_zinc_autocomplete_initialize&&wp_zinc_autocomplete_initialize(".wpzinc-tinymce-popup"),page_generator_pro_conditional_fields_initialize(),$("select.wpzinc-conditional, .wpzinc-conditional select").trigger("change")}))}))}))}