"use strict";(function(n){var t=n.querySelectorAll(".inputfile");Array.prototype.forEach.call(t,function(n){var t=n.nextElementSibling,i=t.innerHTML;n.addEventListener("change",function(n){var r="";r=this.files&&this.files.length>1?(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):n.target.value.split("\\").pop();r?t.querySelector("span").innerHTML=r:t.innerHTML=i});n.addEventListener("focus",function(){n.classList.add("has-focus")});n.addEventListener("blur",function(){n.classList.remove("has-focus")})})})(document,window,0),function(n){n(".inputfile").each(function(){var t=n(this),i=t.next("label"),r=i.html();t.on("change",function(n){var t="";this.files&&this.files.length>1?t=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):n.target.value&&(t=n.target.value.split("\\").pop());t?i.find("span").html(t):i.html(r)});t.on("focus",function(){t.addClass("has-focus")}).on("blur",function(){t.removeClass("has-focus")})})}(jQuery,window,document)