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