(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/ftp-sessions/list"],{797:(e,s,t)=>{"use strict";t.r(s);var a=t(143),i=t(798);class n extends a.List{_initConfiguration(e){super._initConfiguration({locale:a.Locale.getSection("admin.components.lists.ftpsessions"),...e}),this._operations=this._operations||[],this._operations.push({componentType:a.SmallButton,id:"buttonRefresh",title:this.lmsg("buttonRefresh"),description:this.lmsg("buttonRefreshDescription"),addCls:"sb-refresh",handler:()=>this.reload()}),this._operations.push({componentType:a.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(a.list.COLUMN_SELECTION),this._columns.push({header:this.lmsg("typeColumnName"),sortable:!0,dataIndex:"type",headerCls:"icon",cls:"icon",renderer:({type:s})=>(0,i.default)(e.types[s])}),this._columns.push({header:this.lmsg("statusColumnName"),sortable:!0,dataIndex:"actions",headerCls:"icon",cls:"icon",renderer:({actions:s})=>(0,i.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=n},796:(e,s,t)=>{"use strict";t.r(s);var a=t(153),i=t(260),n=t.n(i),o=t(143),l=t(608),r=t(576),d=t(797);const u=({...e})=>(0,a.createElement)(r.default,null,(()=>new o.Panel({cls:"list-box",items:[new d.default({id:"admin-ftp-sessions-list",searchOveral:"name",...e})]})));u.propTypes={data:n().object.isRequired,searchFilters:n().object.isRequired,dataUrl:n().string.isRequired,types:n().object.isRequired,statuses:n().object.isRequired},s.default=(0,l.withPageLayout)(u)},795:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>a.default});var a=t(796)},798:(e,s,t)=>{"use strict";t.r(s);s.default=({icon:e,hint:s})=>`<i class="icon"><img src="${e}"/><span class="tooltipData">${s}</span>`}}]);
//# sourceMappingURL=list.js.map?0e2dea6f78d63ff87c9c