!function(t,e){"use strict";"undefined"!=typeof pum_shortcode_ui_vars&&e.PluginManager.add("pum_shortcodes",function(t){var e=pum_shortcode_ui_vars.shortcodes||{},o=[];_.each(e,function(e,n){o.push({text:e.label,value:n,onclick:function(){var o,u="["+n+"]",c={};e.has_content&&(u+=t.selection.getContent()+"[/"+n+"]"),o=wp.mce.views.get(n),c.text=u,c.encodedText=encodeURIComponent(u),(o=new o(c)).renderForm({},function(t){send_to_editor(t)})}})}),t.addButton("pum_shortcodes",{type:"menubutton",icon:"pum_shortcodes",tooltip:pum_shortcode_ui_vars.I10n.shortcode_ui_button_tooltip||"",menu:o})})}(jQuery,tinymce||{});