jQuery(function(t){t("#tag-generator-list button").on("click",function(a){a.preventDefault();var e=t(this).data("target"),n=function(t,a){return a?a.replace("tag-generator-panel-",""):""}(0,e);n.startsWith("dipe")&&t("#".concat(e)).dialog({modal:!0,dialogClass:"wp-dialog",width:"auto",title:t(this).text()})}),window.insertGridShortcode=function(a){!function(a){var e=t("#wpcf7-form"),n=e[0],o="[".concat(a,"]"),i="[/".concat(a,"]"),c=n.selectionStart,l=n.selectionEnd,r=e.val(),s=r.slice(0,c)+o+r.slice(c,l)+i+r.slice(l);e.val(s)}(a),t("#tag-generator-panel-".concat(a)).dialog("close")}});