!function(t){"use strict";t(".input-uploadfile").each((function(){var e=t(this).find('input[type="text"]');t(this).find(".selectfileimage").on("click",(function(t){t.preventDefault(),custom_uploader=wp.media.frames.file_frame=wp.media({multiple:!1}),custom_uploader.on("select",(function(){attachment=custom_uploader.state().get("selection").first().toJSON();var t=attachment.url;e.val(t)})),custom_uploader.open()}))}))}(window.jQuery);