(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/key-info"],{1190:(e,t,n)=>{"use strict";n.r(t);var a=n(154),s=n(153),l=n(260),r=n.n(l),i=n(620);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?a8236b763e03c067cd46