(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/ftp-sessions/list"],{1115:(e,s,t)=>{"use strict";t.r(s);var n=t(144),a=t(1116);class o extends n.List{_initConfiguration(e){super._initConfiguration({locale:n.Locale.getSection("admin.components.lists.ftpsessions"),...e}),this._operations=this._operations||[],this._operations.push({componentType:n.SmallButton,id:"buttonRefresh",title:this.lmsg("buttonRefresh"),description:this.lmsg("buttonRefreshDescription"),addCls:"sb-refresh",handler:()=>this.reload()}),this._operations.push({componentType:n.SmallButton,id:"buttonRemove",title:this.lmsg("buttonRemove"),description:this.lmsg("buttonRemoveDescription"),addCls:"sb-remove-selected",handler:e=>{this.execGroupOperation({url:"/ftp-sessions/delete-sessions/",subtype:"delete",mouseEvent:e,locale:{confirmOnGroupOperation:this.lmsg("confirmOnDelete")},onSuccess:()=>this.reload()})}}),this._columns.push(n.list.COLUMN_SELECTION),this._columns.push({header:this.lmsg("typeColumnName"),sortable:!0,dataIndex:"type",headerCls:"icon",cls:"icon",renderer:({type:s})=>(0,a.default)(e.types[s])}),this._columns.push({header:this.lmsg("statusColumnName"),sortable:!0,dataIndex:"actions",headerCls:"icon",cls:"icon",renderer:({actions:s})=>(0,a.default)(e.statuses[s]||e.statuses.UNKNOWN)}),this._columns.push({header:this.lmsg("loginColumnName"),sortable:!0,dataIndex:"name"}),this._columns.push({header:this.lmsg("domainColumnName"),sortable:!0,dataIndex:"domain"}),this._columns.push({header:this.lmsg("currentLocationColumnName"),sortable:!0,dataIndex:"path"}),this._columns.push({header:this.lmsg("fileNameColumnName"),sortable:!0,dataIndex:"file"}),this._columns.push({header:this.lmsg("speedColumnName"),sortable:!0,dataIndex:"speed"}),this._columns.push({header:this.lmsg("progressColumnName"),sortable:!0,dataIndex:"percent"}),this._columns.push({header:this.lmsg("ipAddressColumnName"),sortable:!0,dataIndex:"ipAddr"}),this._columns.push({header:this.lmsg("logonTimeColumnName"),sortable:!0,dataIndex:"loginTime"}),this._columns.push({header:this.lmsg("idleTimeColumnName"),sortable:!0,dataIndex:"idle"})}}s.default=o},1114:(e,s,t)=>{"use strict";t.r(s);var n=t(144),a=t(1115);s.default=({sessionsList:e})=>{(0,n.render)(document.getElementById("main"),new n.Panel({cls:"list-box",items:[new a.default(e)]}))}},1116:(e,s,t)=>{"use strict";t.r(s);s.default=({icon:e,hint:s})=>'<i class="icon"><img src="'.concat(e,'"/><span class="tooltipData">').concat(s,"</span>")}}]);
//# sourceMappingURL=list.js.map?e9cb822bd146ba206ae1