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