(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/custom-buttons/list"],{783:(e,s,t)=>{"use strict";t.r(s);var i=t(153),n=t(260),a=t.n(n),o=t(608),r=t(576),l=t(784);const c=({...e})=>(0,i.createElement)(r.default,null,(()=>(0,l.default)(e)));c.propTypes={data:a().object.isRequired,dataUrl:a().string.isRequired,searchFilters:a().object.isRequired},s.default=(0,o.withPageLayout)(c)},784:(e,s,t)=>{"use strict";t.r(s);var i=t(143);const n=i.Locale.getSection("components.lists.custombuttons"),a={enabled:{icon:t(785),alt:n.lmsg("altPublicEnabledIcon"),description:n.lmsg("publicEnabledDescription")},disabled:{icon:t(786),alt:n.lmsg("altPublicDisabledIcon"),description:n.lmsg("publicDisabledDescription")}},o={admin:{icon:t(787),description:n.lmsg("placeAdminDescription")},"admin-settings":{icon:t(788),description:n.lmsg("placeAdminSettingsDescription")},client:{icon:t(789),description:n.lmsg("placeClientDescription")},domain:{icon:t(790),description:n.lmsg("placeDomainDescription")},"domain-properties":{icon:t(790),description:n.lmsg("placeDomainPropertiesDescription")},navigation:{icon:t(791),description:n.lmsg("placeNavigationDescription")},reseller:{icon:t(792),description:n.lmsg("placeResellerDescription")},"reseller-settings":{icon:t(793),description:n.lmsg("placeResellerSettingsDescription")}};s.default=({data:e,dataUrl:s,searchFilters:r})=>new i.Panel({cls:"list-box",items:[new i.List({data:e,dataUrl:s,searchFilters:r,id:"custom-buttons-list",operations:[{componentType:i.SmallButton,id:"buttonAdd",title:n.lmsg("buttonAdd"),description:n.lmsg("buttonAddDescription"),addCls:"sb-add-new btn-primary",href:"/custom-buttons/create"},{componentType:i.bar.Separator},{componentType:i.SmallButton,id:"buttonRemove",title:n.lmsg("buttonRemove"),description:n.lmsg("buttonRemoveDescription"),addCls:"sb-remove-selected",handler(e){(0,i.getComponent)("custom-buttons-list").execGroupOperation({url:"/custom-buttons/remove",subtype:"delete",mouseEvent:e,locale:{confirmOnGroupOperation:n.lmsg("removeConfirmMessage")}})}}],columns:[i.list.COLUMN_SELECTION,{header:n.lmsg("headerPublic"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"publicState",renderer:({id:e,publicState:s})=>{const{description:t,icon:n,alt:o}=a[s];return`<span class="tooltipData">${t}</span><a href="${(0,i.prepareUrl)(`/custom-buttons/toggle/id/${e}`)}" data-method="post"><img src="${n}" alt="${o}" /></a>`}},{header:n.lmsg("headerLocation"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"place",renderer:({place:e})=>`<i class="icon"><img src="${o[e].icon}" /></i><span class="tooltipData">${o[e].description}</span>`},{header:n.lmsg("headerImage"),sortable:!0,headerCls:"icon",cls:"icon",dataIndex:"file",renderer:({file:e})=>`<i class="icon"><img src="${e?`/images/custom_buttons/${e}`:t(794)}" /></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:s})=>`<a href="${(0,i.prepareUrl)(`/custom-buttons/edit/id/${e}`)}">${(0,i.escapeHtml)(s)}</a>`},{header:n.lmsg("headerUrl"),sortable:!0,dataIndex:"fullUrl"},{header:n.lmsg("headerDescription"),sortable:!0,dataIndex:"conhelp"}]})]})},782:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>i.default});var i=t(783)},787:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/admin.png?144d3e2283d0111dbc297b21492ae3e3"},794:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/custom-button.png?d9e8889f207b169878a87382e55278d3"},789:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/customer.png?af8f4cde2514944f9c83409d034b2b99"},788:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/customize.png?847e39cbbadb3ad07a58c2ab7bded4e4"},790:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/domain.png?efca404644beb4b094c73d06dacbbd17"},791:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/navigation.png?c3fff54f1cddcb82423cebaf81488fd1"},793:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/preferences.png?dc96d8ef94ff672ec1ee7c6705b55cbb"},792:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/reseller.png?463eeaee68db9945ef2f0988e5fa736a"},785:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/user-group.png?7ea8cf3859e69a260e9ee4982d3a1dbd"},786:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/user.png?af8f4cde2514944f9c83409d034b2b99"}}]);
//# sourceMappingURL=list.js.map?b7f34c32c9aacfafa864