(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/database-sidebar"],{1012:(e,s,a)=>{"use strict";a.r(s);var t=a(153),n=a.n(t),r=a(154),l=a(261),c=a.n(l),o=a(155),i=a(144),d=a(793);const b=i.Locale.getTranslate("smb.controllers.database.list"),u=({canManageServerDb:e,canManageBackup:s})=>{const t=[{key:"buttonUsersManagement",icon:(0,r.createElement)(o.Icon,{src:a(1013),size:"16"}),href:"/smb/database/users-list",children:(0,r.createElement)(b,{content:"buttonUsersManagement"})}];return e&&t.push({key:"buttonDatabaseServers",icon:(0,r.createElement)(o.Icon,{src:a(831),size:"16"}),href:"/smb/settings/tools-proxy?url=/plesk/server/db/",children:(0,r.createElement)(b,{content:"buttonDatabaseServers"})}),s&&t.push({key:"buttonBackup",icon:(0,r.createElement)(o.Icon,{src:a(1014),size:"16"}),href:"/smb/web/backup",children:(0,r.createElement)(b,{content:"buttonBackup"})}),(0,r.createElement)(d.default,{id:"panel-database-commonButtonsSection"},(0,r.createElement)(o.ItemList,null,t.map((({key:e,...s})=>(0,r.createElement)(o.Item,n()({key:e,component:"a"},s))))))};u.propTypes={canManageServerDb:c().bool.isRequired,canManageBackup:c().bool.isRequired},s.default=u},793:(e,s,a)=>{"use strict";a.r(s);var t=a(153),n=a.n(t),r=a(154),l=a(261),c=a.n(l),o=a(578),i=a.n(o),d=a(613),b=a(155);const u=({baseClassName:e,className:s,id:a,title:t,children:l,...c})=>{const[o,u]=(0,d.useLocalStorage)("".concat(a,"-hidden"));return(0,r.createElement)(b.Panel,n()({className:i()(e,s),id:a,title:t?(0,r.createElement)(b.Heading,{level:4},t):null,collapsible:!!a,collapsed:!!t&&"true"===o,onToggle:()=>u("true"===o?"false":"true")},c),l)};u.propTypes={id:c().string,title:c().any,children:c().any.isRequired,className:c().string,baseClassName:c().string},u.defaultProps={id:void 0,title:void 0,className:void 0,baseClassName:"side-panel"},s.default=u},1014:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/backup.png?3f3852712b314cd50f03f091d9b8eb34"},1013:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/db-users.png?f4ba8b31dd02154657af88ddfdde886f"},831:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/server.png?972b6d4fd5488c8de0c79459dfbdd65e"}}]);
//# sourceMappingURL=database-sidebar.js.map?ffe8d35596c3ffbb7d79