jQuery(function($){$(".fl-builder-bar-actions .fl-builder-tools-button").after('<span class="fl-builder-tesseract-blocks-button fl-builder-button">Content Blocks</span>');var t=new FLLightbox({className:"fl-builder-tesseract-blocks-lightbox"});$(".fl-builder-tesseract-blocks-button").on("click",function(){$.post( ajaxurl, {action: 'tesseract_add_button_to_page_builder'}, function( blocksHtml ) {t.open($( blocksHtml ).html())},$(".fl-builder-tesseract-blocks-lightbox .fl-builder-cancel-button").on("click",function(e){e.preventDefault(),t.close()}),$(".fl-builder-tesseract-blocks-lightbox .append-content-button").on("click",function(e){e.preventDefault(),t.close(),FLBuilder._applyTemplate($(this).data("template-id"),!0,"user")})})});