"use strict";(function($){$(".fileupload").each(function(){var $input=$(this),$label=$input.next("label"),labelVal=$label.html();$input.on("change",function(e){var fileName="";this.files&&this.files.length>1?fileName=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):e.target.value&&(fileName=e.target.value.split("\\").pop());fileName?$label.find("span").html(fileName):$label.html(labelVal)});$input.on("focus",function(){$input.addClass("has-focus")}).on("blur",function(){$input.removeClass("has-focus")})})})(jQuery,window,document)