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