"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/key-update"],{1330:(e,s,r)=>{r.r(s);var l=r(210),a=r.n(l),n=r(209),d=r(208);const i=({params:e})=>(0,d.jsx)("table",{className:"formFields",width:"100%",cellSpacing:"0",children:(0,d.jsx)("tbody",{children:e.map((({name:e,value:s})=>(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"name",children:e}),(0,d.jsx)("td",{children:s})]},e)))})});i.propTypes={params:a().arrayOf(a().shape({name:a().string,value:a().string})).isRequired};const t=({errorMessage:e,keyResultDesc:s,keyInfo:r,additionalKeysErrors:l,additionalKeys:a})=>e?(0,d.jsx)(n.Alert,{intent:"danger",children:(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}):(0,d.jsxs)("div",{className:"formArea",children:[(0,d.jsxs)("fieldset",{children:[(0,d.jsx)("legend",{children:(0,d.jsx)(n.Translate,{content:"keyResultLegend"})}),(0,d.jsx)("table",{width:"100%",cellSpacing:"0",cellPadding:"0",border:"0",children:(0,d.jsx)("tbody",{children:(0,d.jsx)("tr",{children:(0,d.jsxs)("td",{children:[(0,d.jsx)(n.Plaintext,{children:s}),r.length?(0,d.jsx)(i,{params:r}):null]})})})})]}),l.map((({name:e,resultDesc:s})=>(0,d.jsxs)("fieldset",{children:[(0,d.jsx)("legend",{children:e}),(0,d.jsx)("table",{width:"100%",cellSpacing:"0",cellPadding:"0",border:"0",children:(0,d.jsx)("tbody",{children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{children:(0,d.jsx)(n.Plaintext,{children:s})})})})})]},e))),a.map((({title:e,params:s})=>(0,d.jsxs)("fieldset",{children:[(0,d.jsx)("legend",{children:e}),(0,d.jsx)("table",{width:"100%",cellSpacing:"0",cellPadding:"0",border:"0",children:(0,d.jsx)("tbody",{children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{children:s.length?(0,d.jsx)(i,{params:s}):null})})})})]},e)))]});t.propTypes={errorMessage:a().string,keyResultDesc:a().string.isRequired,keyInfo:a().arrayOf(a().shape({name:a().string,value:a().string})).isRequired,additionalKeysErrors:a().arrayOf(a().shape({name:a().string,resultDesc:a().string})).isRequired,additionalKeys:a().arrayOf(a().shape({title:a().string,params:a().array})).isRequired},t.defaultProps={errorMessage:null},s.default=t}}]);
//# sourceMappingURL=key-update.js.map?9877138b8d19b7609210