/*! For license information please see UploadFileLocationTypePlugin-03fc160a734600b0153b-FAT.js.LICENSE */
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{180: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){}}},2630:function(e,i,t){t(180),t(512),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)}})}}]);
//# sourceMappingURL=UploadFileLocationTypePlugin-03fc160a734600b0153b-FAT.js.map