(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["views/admin/sessions/list"],{847:function(e,s,t){"use strict";t.r(s);var n=t(155),o=t(276),i=t.n(o),l=(t(157),t(145)),a=t(697),r=t(631);const d=l.Locale.getSection("admin.components.lists.sessions"),c=({allowSettings:e,data:s,searchFilters:o})=>{const i={adminSession:{icon:t(848),alt:d.lmsg("altAdminIcon"),description:d.lmsg("typeAdmin")},resellerSession:{icon:t(849),alt:d.lmsg("altResellerIcon"),description:d.lmsg("typeReseller")},clientSession:{icon:t(850),alt:d.lmsg("altClientIcon"),description:d.lmsg("typeClient")}};return Object(n.createElement)(r.default,null,()=>new l.Panel({cls:"list-box",items:[new l.List({data:s,searchFilters:o,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(){Object(l.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){Object(l.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:[l.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="'.concat(s,'" alt="').concat(t,'" /></i><span class="tooltipData">').concat(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.a.bool,data:i.a.object.isRequired,searchFilters:i.a.object.isRequired},c.defaultProps={allowSettings:!1},s.default=Object(a.withPageContent)(c)},848:function(e,s){e.exports=Jsw.skinUrl+"/icons/16/plesk/admin.png?144d3e2283d0111dbc297b21492ae3e3"},849:function(e,s){e.exports=Jsw.skinUrl+"/icons/16/plesk/reseller.png?463eeaee68db9945ef2f0988e5fa736a"},850:function(e,s){e.exports=Jsw.skinUrl+"/icons/16/plesk/customer.png?af8f4cde2514944f9c83409d034b2b99"}}]);
//# sourceMappingURL=list.js.map?237396ef9ff607389554