jQuery(document).ready(function(t){"use strict";var e=wp.media({title:CCImageParams.media_title,library:{type:"image"},button:null});e.on("open",function(){t(".media-toolbar-primary a").css("opacity","0"),t(".media-button-select").css("opacity","0"),t(".media-router a").each(function(){t(this).text().indexOf(CCImageParams.tab_title)!==-1?t(this).click().addClass("active"):(t(this).removeClass("active"),t(this).remove())})}),t("body").on("click",".cc-image-search-button",function(){e.open()}),t(".drag-drop-inside").css("width","100%"),t(".drag-drop-buttons").append('&nbsp; <input type="button" value="'+CCImageParams.media_title+'" class="button cc-image-search-button" />'),setTimeout(function(){t(".uploader-inline .upload-ui").append('&nbsp; <input type="button" value="'+CCImageParams.media_title+'" class="button button-hero cc-image-search-button" />')},1)});