jQuery(function(e){var a;jQuery("body").on("click",".mac-upload_image_button",function(t){$this=e(this),$this.addClass("apple"),t.preventDefault(),a||(a=wp.media.frames.file_frame=wp.media({title:jQuery(this).data("uploader_title"),button:{text:jQuery(this).data("uploader_button_text")},multiple:!1})).on("select",function(){attachment=a.state().get("selection").first().toJSON(),console.log(attachment),$this.parent().addClass("ganta").prev().val(attachment.url);$this.data("t20")}),a.open()}),jQuery("body").on("click",".mac-remove-image-before",function(t){e(".mac-img-before").val(""),e(".img-t20-before").html("")}),jQuery("body").on("click",".mac-remove-image-after",function(t){e(".mac-img-after").val(""),e(".img-t20-after").html("")})});