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