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