"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/helper/mail-settings-dkim-hint"],{2647:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(271),o=s(1055),a=s(548),r=s(272),l=s.n(r),i=(s(2648),s(270));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},2646:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(271),o=s(270),a=s(2647);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))}},1055:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(271),o=s(89),a=s(272),r=s.n(a),l=s(270);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},2648:(e,n,s)=>{s.r(n)}}]);
//# sourceMappingURL=mail-settings-dkim-hint.js.map?e2585b1f306672eea570