"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/service-sidebar"],{1798:(e,s,i)=>{i.r(s),i.d(s,{default:()=>p});var a=i(218),l=i.n(a),n=i(217),t=i(96),r=i(978),d=i(216);const c=t.Locale.getTranslate("smb.controllers.service.index"),o=({version:e,resourceId:s})=>(0,d.jsxs)(r.default,{title:(0,d.jsx)(c,{content:"updateBlockTitle"}),children:[(0,d.jsx)("div",{className:"side-panel__item",children:(0,d.jsx)(c,{content:"newVersionAvailable",params:{version:e}})}),(0,d.jsx)("div",{className:"side-panel__item",children:(0,d.jsx)(n.Action,{href:`/smb/app-update/index/resourceId/${s}`,children:(0,d.jsx)(c,{content:"updateMoreInfo"})})}),(0,d.jsx)("div",{className:"side-panel__item",children:(0,d.jsx)(n.Action,{onClick:()=>Smb.Views.Apps.startUpdate(),children:(0,d.jsx)(c,{content:"updateNow"})})})]});o.propTypes={version:l().string.isRequired,resourceId:l().string.isRequired};const p=o},978:(e,s,i)=>{i.r(s),i.d(s,{default:()=>p});var a=i(218),l=i.n(a),n=i(720),t=i.n(n),r=i(773),d=i(217),c=i(216);const o=({baseClassName:e,className:s,id:i,title:a,children:l,...n})=>{const[o,p]=(0,r.useLocalStorage)(`${i}-hidden`);return(0,c.jsx)(d.Panel,{className:t()(e,s),id:i,title:a?(0,c.jsx)(d.Heading,{level:4,children:a}):null,collapsible:!!i,collapsed:!!a&&"true"===o,onToggle:()=>p("true"===o?"false":"true"),...n,children:l})};o.propTypes={id:l().string,title:l().any,children:l().any.isRequired,className:l().string,baseClassName:l().string},o.defaultProps={id:void 0,title:void 0,className:void 0,baseClassName:"side-panel"};const p=o}}]);
//# sourceMappingURL=service-sidebar.js.map?5c8eabf25f15b4f78cb5