(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/sessions/list"],{844:(e,s,t)=>{"use strict";t.r(s);var n=t(154),i=t(261),l=t.n(i),o=t(144),a=t(602),r=t(648),d=t(576);const c=o.Locale.getSection("admin.components.lists.sessions"),p=({allowSettings:e,data:s,searchFilters:i})=>{const l={adminSession:{icon:t(845),alt:c.lmsg("altAdminIcon"),description:c.lmsg("typeAdmin")},resellerSession:{icon:t(846),alt:c.lmsg("altResellerIcon"),description:c.lmsg("typeReseller")},clientSession:{icon:t(847),alt:c.lmsg("altClientIcon"),description:c.lmsg("typeClient")}};return(0,n.createElement)(d.default,null,(()=>new o.Panel({cls:"list-box",items:[new o.List({data:s,searchFilters:i,id:"active-plesk-sessions-list",dataUrl:"/admin/sessions/list-data",operations:[{componentType:"Jsw.SmallButton",id:"buttonRefresh",title:c.lmsg("buttonRefresh"),description:c.lmsg("buttonRefreshDescription"),addCls:"sb-refresh",handler(){(0,o.getComponent)("active-plesk-sessions-list").reload()}},{componentType:"Jsw.bar.Separator"},{componentType:"Jsw.SmallButton",id:"buttonRemove",title:c.lmsg("buttonRemove"),description:c.lmsg("buttonRemoveDescription"),addCls:"sb-remove-selected",handler(e){(0,o.getComponent)("active-plesk-sessions-list").execGroupOperation({url:"/admin/sessions/remove/",subtype:"delete",mouseEvent:e,locale:{confirmOnGroupOperation:c.lmsg("removeConfirmMessage")}})}},e?{componentType:"Jsw.bar.Separator"}:null,e?{componentType:"Jsw.SmallButton",id:"buttonSettings",title:c.lmsg("buttonSettings"),description:c.lmsg("buttonSettingsDescription"),addCls:"sb-settings",href:"/admin/sessions/settings/"}:null].filter(Boolean),columns:[o.list.COLUMN_SELECTION,{header:c.lmsg("headerType"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"sessionTypeIcon",renderer({sessionType:e}){const{icon:s,alt:t,description:n}=l[e];return`<i class="icon"><img src="${s}" alt="${t}" /></i><span class="tooltipData">${n}</span>`}},{header:c.lmsg("headerLogin"),sortable:!0,dataIndex:"login"},{header:c.lmsg("headerIpAddress"),sortable:!0,dataIndex:"ip_address"},{header:c.lmsg("headerLogonTime"),sortable:!0,dataIndex:"loginTime"},{header:c.lmsg("headerIdleTime"),sortable:!0,dataIndex:"idleTime"}],isDisabledItem:({isDisabled:e})=>e})]})))};p.propTypes={allowSettings:l().bool,data:l().object.isRequired,searchFilters:l().object.isRequired},p.defaultProps={allowSettings:!1},s.default=(0,a.withPageLayout)((0,r.withPageContent)(p))},845:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/admin.png?144d3e2283d0111dbc297b21492ae3e3"},847:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/customer.png?af8f4cde2514944f9c83409d034b2b99"},846:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/reseller.png?463eeaee68db9945ef2f0988e5fa736a"}}]);
//# sourceMappingURL=list.js.map?a366cd6ce2ea6ac30090