(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/custom-buttons/list"],{1144:(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(1145),alt:s.lmsg("altPublicEnabledIcon"),description:s.lmsg("publicEnabledDescription")},disabled:{icon:t(1146),alt:s.lmsg("altPublicDisabledIcon"),description:s.lmsg("publicDisabledDescription")}},i={admin:{icon:t(845),description:s.lmsg("placeAdminDescription")},"admin-settings":{icon:t(936),description:s.lmsg("placeAdminSettingsDescription")},client:{icon:t(847),description:s.lmsg("placeClientDescription")},domain:{icon:t(923),description:s.lmsg("placeDomainDescription")},"domain-properties":{icon:t(923),description:s.lmsg("placeDomainPropertiesDescription")},navigation:{icon:t(1147),description:s.lmsg("placeNavigationDescription")},reseller:{icon:t(846),description:s.lmsg("placeResellerDescription")},"reseller-settings":{icon:t(1148),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(1149);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"}]})]})}},845:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/admin.png?144d3e2283d0111dbc297b21492ae3e3"},1149:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/custom-button.png?d9e8889f207b169878a87382e55278d3"},847:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/customer.png?af8f4cde2514944f9c83409d034b2b99"},936:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/customize.png?847e39cbbadb3ad07a58c2ab7bded4e4"},923:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/domain.png?efca404644beb4b094c73d06dacbbd17"},1147:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/navigation.png?c3fff54f1cddcb82423cebaf81488fd1"},1148:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/preferences.png?dc96d8ef94ff672ec1ee7c6705b55cbb"},846:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/reseller.png?463eeaee68db9945ef2f0988e5fa736a"},1145:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/user-group.png?7ea8cf3859e69a260e9ee4982d3a1dbd"},1146:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/user.png?af8f4cde2514944f9c83409d034b2b99"}}]);
//# sourceMappingURL=list.js.map?4386346d8308632b1c52