/*! For license information please see DownloadFileLocationTypePlugin-44e9c68848b77f75ba57-FAT.js.LICENSE */
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{2765:function(e,i,t){t(507),Ext.ns("Tine.Tinebase.widgets.file.LocationTypePlugin"),Tine.Tinebase.widgets.file.LocationTypePlugin.Download=function(e){Ext.apply(this,e),this.name=i18n._("My Device")},Ext.extend(Tine.Tinebase.widgets.file.LocationTypePlugin.Download,Tine.Tinebase.widgets.file.LocationTypePlugin.Abstract,{locationType:"download",iconCls:"action_download",getSelectionDialogArea:async function(e,i){return this.selectionDialogInitialised||(this.cmp=i,this.targetForm=new Ext.Panel({height:38,border:!1,frame:!0,layout:"hbox",disabled:!this.cmp.fileName,defaults:{height:38,border:!1,frame:!0},items:[{flex:1},{layout:"form",labelAlign:"left",width:450,items:this.fileNameField=Ext.create({xtype:"textfield",fieldLabel:"Save as",value:this.cmp.fileName,width:300,validate:Ext.emptyFn})},{flex:1,cls:"x-form"}]}),this.pluginPanel=new Ext.Button(Ext.apply({text:i18n._("Download file and save on my local device."),doAutoWidth:Ext.emptyFn,iconCls:"action_download",cls:"tw-FileSelectionArea",handler:this.cmp.onButtonApply,scope:this.cmp},_.get(this,"cmp.pluginConfig."+this.plugin,{}))),this.selectionDialogInitialised=!0),_.get(this,e)},getFileList:function(){return[{file_name:this.fileNameField.getValue()}]},getLocationName:function(e){return this.name},manageButtonApply:function(e){e.setDisabled(!1)}})},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=DownloadFileLocationTypePlugin-44e9c68848b77f75ba57-FAT.js.map