diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index d8deaf725..719fed944 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -41,7 +41,7 @@ if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires * Copyright 2013 Gregory Pike * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ -(function(t){var e='   ';t.fn.bootstrapFileInput=function(i){this.each(function(n,a){var l=t(a);if(typeof l.attr("data-bfi-disabled")!="undefined"){return}var s="Browse";if(typeof l.attr("title")!="undefined"){s=l.attr("title")}var f="";if(!!l.attr("class")){f=" "+l.attr("class")}var p=i?e+theme_language("upload_initial_info"):'';l.wrap('').parent().prepend(t("").html(p))}).promise().done(function(){t(".file-input-wrapper").mousemove(function(e){var i,n,a,l,s,f,p,r;n=t(this);i=n.find("input");a=n.offset().left;l=n.offset().top;s=i.width();f=i.height();p=e.pageX;r=e.pageY;moveInputX=p-a-s+20;moveInputY=r-l-f/2;i.css({left:moveInputX,top:moveInputY})});var e="change.fiw";t("body").off(e);t("body").on(e,".file-input-wrapper input[type=file]",function(){var e,n;e=Convert.htmlEscape(t(this).val());n=e;t(this).parent().next(".file-input-name").remove();if(!!t(this).prop("files")&&t(this).prop("files").length>1){e=t(this)[0].files.length+" files"}else{e=e.substring(e.lastIndexOf("\\")+1,e.length)}if(!e){return}var a=theme_language("global_file_selected"),l=theme_language("global_files_selected"),s=$(this.files).map(function(t,e){return e.name}).get(),f=s.join("\n");if(i){var p=this,r=(p?p.files.length>0?p.files.length:"":"")+" "+(p&&p.files.length>0?p.files.length===1?a:l:theme_language("upload_initial_info"));t(this).siblings("span").html(r);t(this).attr("title",f);var o=i[1];if(!p||p.files.length===0){o.addClass("disabled")}else{o.removeClass("disabled")}}else{var u;if(!$(this).attr("multiple")){u="1 "+a;t(this).attr("title",e)}else{var h=this.files.length;u=h+" "+(h>1?l:a);t(this).attr("title",f)}t(this).parent().after(''+u+"")}})})};t.fn.bootstrapFileInputReset=function(t){$.each(t.find(".file-input-wrapper"),function(){$(this).find("span").html(e+theme_language("upload_initial_info"));$(this).find('input[type="file"]').attr("title",String())})}})(jQuery); +(function(t){var e='   ';t.fn.bootstrapFileInput=function(i){this.each(function(n,a){var l=t(a);if(typeof l.attr("data-bfi-disabled")!="undefined"){return}var s="Browse";if(typeof l.attr("title")!="undefined"){s=l.attr("title")}var f="";if(!!l.attr("class")){f=" "+l.attr("class")}var p=i?e+theme_language("upload_initial_info"):'';l.wrap('').parent().prepend(t("").html(p))}).promise().done(function(){t(".file-input-wrapper").mousemove(function(e){var i,n,a,l,s,f,p,r;n=t(this);i=n.find("input");a=n.offset().left;l=n.offset().top;s=i.width();f=i.height();p=e.pageX;r=e.pageY;moveInputX=p-a-s+20;moveInputY=r-l-f/2;i.css({left:moveInputX,top:moveInputY})});var e="change.fiw";t("body").off(e);t("body").on(e,".file-input-wrapper input[type=file]",function(){var e,n;e=Convert.htmlEscape(t(this).val());n=e;t(this).parent().next(".file-input-name").remove();if(!!t(this).prop("files")&&t(this).prop("files").length>1){e=t(this)[0].files.length+" files"}else{e=e.substring(e.lastIndexOf("\\")+1,e.length)}if(!e){return}var a=!$(this).attr("multiple")?e:null,l=theme_language("global_file_selected"),s=theme_language("global_files_selected"),f=$(this.files).map(function(t,e){return e.name}).get(),p=f.join("\n");if(i){var r=this,o=(r?r.files.length>0?r.files.length:"":"")+" "+(r&&r.files.length>0?r.files.length===1?a||l:s:theme_language("upload_initial_info"));t(this).siblings("span").html(o);t(this).attr("title",p);var u=i[1];if(!r||r.files.length===0){u.addClass("disabled")}else{u.removeClass("disabled")}}else{let i;if(a){const n="1 "+l;i=a||n;t(this).attr("title",a?n:e)}else{var h=this.files.length;i=h+" "+(h>1?s:l);t(this).attr("title",p)}t(this).parent().after(''+i+"")}})})};t.fn.bootstrapFileInputReset=function(t){$.each(t.find(".file-input-wrapper"),function(){$(this).find("span").html(e+theme_language("upload_initial_info"));$(this).find('input[type="file"]').attr("title",String())})}})(jQuery); /*! * DataTables 1.13.11 (http://datatables.net) * Copyright 2008-2024 SpryMedia Ltd. diff --git a/unauthenticated/js/bundle.min.js.gz b/unauthenticated/js/bundle.min.js.gz index 0af78e980..65092bf53 100644 Binary files a/unauthenticated/js/bundle.min.js.gz and b/unauthenticated/js/bundle.min.js.gz differ