PageSourceSearch

https://www.dotsource.de/_assets/9088b55273bf883ebff3856471d0169d/…e-upload-validation.js?c5dfbe5a9d2fb0c7a243

js dotsource.de collected 2026-10-03 21:08:13 UTC 1,987 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdotSource_Theme_Build_Configuration=self.webpackChunkdotSource_Theme_Build_Configuration||[]).push([[4037],{4163:function(e,t,r){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}r.r(t),r.d(t,{default:function(){return l}});var l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$el=t,this.init()},(t=[{key:"init",value:function(){var e=this;this.$el.on("change",(function(){e.validate()}))}}
1,{key:"validate",value:function(){var e=$(".uploadError");if(e)for(var t=0,r=e.length;t<r;t++)e[t].parentNode.removeChild(e[t]);var i=$("html").attr("lang"),n=null,o=null;if(window.ActiveXObject){var l=new ActiveXObject("Scripting.FileSystemObject"),a=this.$el.val(),u=l.getFile(a);u&&(n=u.size,o=u.name)}else this.$el.prop("files")[0]&&(n=this.$el.prop("files")[0].size,o=this.$el.prop("files")[0].name);var f="";if(f="de"===i?"Die Datei ("+o+") ist zu groß zum hochladen! (max. 20 MB)":"The file ("+o+") is to big for upload! (max. 20 MB)",n&&n>20971520){this.$el.val("");var c=document.createElement("span");$(c).html(f),$(c).addClass("error help-block uploadError"),this.$el.parent().parent().prepend(c)}}}])&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.