"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/key-info"],{1782:(e,n,s)=>{s.r(n),s.d(n,{default:()=>c});var t=s(217),a=s(216),i=s(218),l=s.n(i),r=s(773);const o=({isDefaultLicense:e,tools:n,keyInfo:s})=>{const[i,l]=(0,a.useState)([]),[o,c]=(0,a.useState)(!1),u=(0,a.useCallback)((({keyCode:e})=>{const n=[...i,e].slice(-5);l(n),"73;68;68;81;68"===n.join(";")&&c(!0)}),[i,l,c]);return(0,r.useEventListener)("keyup",u,document.body),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.Section,{className:"toolsArea",title:(0,a.jsx)(t.Translate,{content:"toolsLegend"}),children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n.join(" ")}})}),e?null:(0,a.jsx)(t.Section,{className:"inputArea",title:(0,a.jsx)(t.Translate,{content:"infoLegend"}),children:s.map((({name:e,value:n})=>(0,a.jsx)(t.SectionItem,{title:e,children:o?(0,a.jsx)(t.Status,{intent:"danger",children:(0,a.jsx)(t.Translate,{content:"unlimited"})}):n},e)))})]})};o.propTypes={isDefaultLicense:l().bool.isRequired,tools:l().arrayOf(l().string).isRequired,keyInfo:l().arrayOf(l().shape({name:l().string,value:l().oneOfType([l().string,l().number])})).isRequired};const c=o}}]);
//# sourceMappingURL=key-info.js.map?ca5c4d6a5b4b2b992a25