'),$("#filefield").change(function(){var n=document.querySelector("#"+o.options.mainContainer),i=new FormData(n);this.client.uploadFiles(i,o.uploadProgress).then(function(n){o.options.afterLoadingFn.call(this);var i=n.data.id,e=n.data.data.full_url;t.call(this,i,e)}).catch(function(n){o.options.afterLoadingFn.call(this),o.error(n,function(o){t.call(this,objReturn)},function(){console.log("uploadFile")})})}),$("#filefield").focus().click()},DirectusHandler.prototype.logForm=function(t){for(var o of t.values())console.log(o)},DirectusHandler.prototype.uploadProgress=function(t){var o=Math.round(100*t.loaded/t.total);console.log(o+"% Done")}}();