/*! For license information please see UploadFileLocationTypePlugin-4a33b65a617be919b14e-FAT.js.LICENSE */
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{2766:function(e,i,t){t(507),t(681),Ext.ns("Tine.Tinebase.widgets.file.LocationTypePlugin"),Tine.Tinebase.widgets.file.LocationTypePlugin.Upload=function(e){Ext.apply(this,e),this.name=i18n._("My Device")},Ext.extend(Tine.Tinebase.widgets.file.LocationTypePlugin.Upload,Tine.Tinebase.widgets.file.LocationTypePlugin.Abstract,{locationType:"upload",iconCls:"action_upload",uploadMode:"select",getSelectionDialogArea:async function(e,i){if(!this.selectionDialogInitialised){if(this.cmp=i,"select"!==this.uploadMode)throw new Error("implement me");this.pluginPanel=new Tine.widgets.form.FileSelectionArea(Ext.apply({text:i18n._("Select or drop file to upload")},_.get(this,"cmp.pluginConfig."+this.plugin,{}))),this.pluginPanel.on("fileSelected",this.onFilesSelected,this),this.selectionDialogInitialised=!0}return _.get(this,e)},getFileList:function(){if("select"===this.uploadMode)return this.pluginPanel.fileList;throw new Error("implement me")},onFilesSelected:function(e,i){"select"===this.uploadMode&&this.cmp.onButtonApply()},manageButtonApply:function(e){"select"===this.uploadMode&&e.setDisabled(!0)}})},507:function(e,i){Ext.ns("Tine.Tinebase.widgets.file.LocationTypePlugin"),Tine.Tinebase.widgets.file.LocationTypePlugin.Abstract=function(e){Ext.apply(this,e)},Tine.Tinebase.widgets.file.LocationTypePlugin.Abstract.prototype={locationType:"",name:"",iconCls:"",getSelectionDialogArea:async function(e,i){},getFileList:function(){},manageButtonApply:function(e){},validateSelection:async function(){},getLocationName:function(e){}}}}]);
//# sourceMappingURL=UploadFileLocationTypePlugin-4a33b65a617be919b14e-FAT.js.map