(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["views/default/custom-buttons/list"],{1109:function(e,n,s){"use strict";s.r(n);var t=s(145);n.default=({customButtonsList:e})=>{const n=t.Locale.getSection("components.lists.custombuttons"),o={enabled:{icon:s(1110),alt:n.lmsg("altPublicEnabledIcon"),description:n.lmsg("publicEnabledDescription")},disabled:{icon:s(1111),alt:n.lmsg("altPublicDisabledIcon"),description:n.lmsg("publicDisabledDescription")}},i={admin:{icon:s(848),description:n.lmsg("placeAdminDescription")},"admin-settings":{icon:s(887),description:n.lmsg("placeAdminSettingsDescription")},client:{icon:s(850),description:n.lmsg("placeClientDescription")},domain:{icon:s(877),description:n.lmsg("placeDomainDescription")},"domain-properties":{icon:s(877),description:n.lmsg("placeDomainPropertiesDescription")},navigation:{icon:s(1112),description:n.lmsg("placeNavigationDescription")},reseller:{icon:s(849),description:n.lmsg("placeResellerDescription")},"reseller-settings":{icon:s(1113),description:n.lmsg("placeResellerSettingsDescription")}};new t.Panel({cls:"list-box",renderTo:"main",items:[new t.List({...e,id:"custom-buttons-list",operations:[{componentType:t.SmallButton,id:"buttonAdd",title:n.lmsg("buttonAdd"),description:n.lmsg("buttonAddDescription"),addCls:"sb-add-new",href:"/custom-buttons/create"},{componentType:t.bar.Separator},{componentType:t.SmallButton,id:"buttonRemove",title:n.lmsg("buttonRemove"),description:n.lmsg("buttonRemoveDescription"),addCls:"sb-remove-selected",handler(e){Object(t.getComponent)("custom-buttons-list").execGroupOperation({url:"/custom-buttons/remove",subtype:"delete",mouseEvent:e,locale:{confirmOnGroupOperation:n.lmsg("removeConfirmMessage")}})}}],columns:[t.list.COLUMN_SELECTION,{header:n.lmsg("headerPublic"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"publicState",renderer:({id:e,publicState:n})=>{const{description:s,icon:i,alt:c}=o[n];return'<span class="tooltipData">'.concat(s,"</span>")+'<a href="'.concat(Object(t.prepareUrl)("/custom-buttons/toggle/id/".concat(e)),'" data-method="post">')+'<img src="'.concat(i,'" alt="').concat(c,'" />')+"</a>"}},{header:n.lmsg("headerLocation"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"place",renderer:({place:e})=>'<i class="icon"><img src="'.concat(i[e].icon,'" /></i>')+'<span class="tooltipData">'.concat(i[e].description,"</span>")},{header:n.lmsg("headerImage"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"file",renderer:({file:e})=>{const n=e?"/images/custom_buttons/".concat(e):s(1114);return'<i class="icon"><img src="'.concat(n,'" /></i>')}},{header:n.lmsg("headerPriority"),sortable:!0,headerCls:"number",cls:"number",dataIndex:"sort_key"},{header:n.lmsg("headerLabel"),sortable:!0,dataIndex:"text",cls:"nowrap",renderer:({id:e,text:n})=>'<a href="'.concat(Object(t.prepareUrl)("/custom-buttons/edit/id/".concat(e)),'">').concat(Object(t.escapeHtml)(n),"</a>")},{header:n.lmsg("headerUrl"),sortable:!0,dataIndex:"fullUrl"},{header:n.lmsg("headerDescription"),sortable:!0,dataIndex:"conhelp"}]})]})}},1110:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/user-group.png?7ea8cf3859e69a260e9ee4982d3a1dbd"},1111:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/user.png?af8f4cde2514944f9c83409d034b2b99"},1112:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/navigation.png?c3fff54f1cddcb82423cebaf81488fd1"},1113:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/preferences.png?dc96d8ef94ff672ec1ee7c6705b55cbb"},1114:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/custom-button.png?d9e8889f207b169878a87382e55278d3"},848:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/admin.png?144d3e2283d0111dbc297b21492ae3e3"},849:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/reseller.png?463eeaee68db9945ef2f0988e5fa736a"},850:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/customer.png?af8f4cde2514944f9c83409d034b2b99"},877:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/domain.png?efca404644beb4b094c73d06dacbbd17"},887:function(e,n){e.exports=Jsw.skinUrl+"/icons/16/plesk/customize.png?847e39cbbadb3ad07a58c2ab7bded4e4"}}]);
//# sourceMappingURL=list.js.map?a4208ee2325b9a174779