"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/helper/mail-settings-dkim-hint"],{2666:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(286),o=s(1057),a=s(539),r=s(287),l=s.n(r),i=(s(2667),s(285));const c=({enabled:e,dnsRecords:n})=>{const s=(0,t.useTranslate)();return(0,i.jsxs)(t.Popover,{title:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDns"}),target:(0,i.jsx)(t.Link,{className:"s-btn sb-help","data-name":"extDnsHowtoLink",children:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDns"})}),placement:"top",children:[(0,i.jsx)("p",{"data-name":"extDnsHowtoIntro",children:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDnsAlways"})}),e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{"data-name":"extDnsHowtoOn",children:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDnsEnabled"})}),n.map((e=>(0,i.jsx)(t.Alert,{"data-name":"extDnsHowtoRecord",children:(0,i.jsxs)(t.Grid,{children:[(0,i.jsx)(t.GridCol,{xs:11,children:e}),(0,i.jsx)(t.GridCol,{xs:1,className:"server-mail-settings-dkim-copy-button",children:(0,i.jsx)(o.default,{content:e,tooltip:(0,i.jsx)(t.Translate,{content:"copyToClipboard"}),onCopy:()=>(0,a.addToast)({intent:"success",message:s("copySuccess")})})})]})},e))),(0,i.jsx)("span",{"data-name":"extDnsHowtoAliases",children:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDnsEnabledAliases"})})]}):(0,i.jsx)("p",{"data-name":"extDnsHowtoOff",children:(0,i.jsx)(t.Translate,{content:"howToConfigureExternalDnsDisabled",params:{option:(0,i.jsx)(t.Translate,{content:"domainKeys"})}})})]})};c.propTypes={enabled:l().bool.isRequired,dnsRecords:l().arrayOf(l().string).isRequired};const d=c},2665:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(286),o=s(285),a=s(2666);const r=({renderTo:e,locale:n,...s})=>{(0,o.render)((0,o.jsx)(t.LocaleProvider,{messages:n,children:(0,o.jsx)(o.Suspense,{children:(0,o.jsx)(a.default,{...s})})}),document.getElementById(e))}},1057:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(286),o=s(89),a=s(287),r=s.n(a),l=s(285);const i=o.Locale.getSection("components.buttons"),c=({id:e,content:n,icon:s="copy",className:o,tooltip:a=i.lmsg("copyToClipboard"),onCopy:r=()=>{},children:c})=>(0,l.jsx)(t.Button,{className:o,ghost:!0,icon:s,tooltip:a,onClick:()=>{(0,t.copyToClipboard)(n),r()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:c});c.propTypes={id:r().string,content:r().string.isRequired,className:r().string,icon:r().oneOfType([r().node,r().string,r().object]),tooltip:r().oneOfType([r().string,r().node]),onCopy:r().func,children:r().node};const d=c},2667:(e,n,s)=>{s.r(n)}}]);
//# sourceMappingURL=mail-settings-dkim-hint.js.map?c7b291247ba1cccbe83a