"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/key-info"],{1328:(e,n,s)=>{s.r(n);var t=s(209),a=s(208),i=s(210),l=s.n(i),r=s(705);const o=({isDefaultLicense:e,tools:n,keyInfo:s})=>{const[i,l]=(0,a.useState)([]),[o,u]=(0,a.useState)(!1),c=(0,a.useCallback)((({keyCode:e})=>{const n=[...i,e].slice(-5);l(n),"73;68;68;81;68"===n.join(";")&&u(!0)}),[i,l,u]);return(0,r.useEventListener)("keyup",c,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},n.default=o}}]);
//# sourceMappingURL=key-info.js.map?9f94fe60b58eb8cae010