"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/helper/mail-settings-dkim-hint"],{2628:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(271),o=s(1389),a=s(531),r=s(272),l=s.n(r),c=(s(2629),s(270));const i=({enabled:e,dnsRecords:n})=>{const s=(0,t.useTranslate)();return(0,c.jsxs)(t.Popover,{title:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDns"}),target:(0,c.jsx)(t.Link,{className:"s-btn sb-help","data-name":"extDnsHowtoLink",children:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDns"})}),placement:"top",children:[(0,c.jsx)("p",{"data-name":"extDnsHowtoIntro",children:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDnsAlways"})}),e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{"data-name":"extDnsHowtoOn",children:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDnsEnabled"})}),n.map((e=>(0,c.jsx)(t.Alert,{"data-name":"extDnsHowtoRecord",children:(0,c.jsxs)(t.Grid,{children:[(0,c.jsx)(t.GridCol,{xs:11,children:e}),(0,c.jsx)(t.GridCol,{xs:1,className:"server-mail-settings-dkim-copy-button",children:(0,c.jsx)(o.default,{content:e,tooltip:(0,c.jsx)(t.Translate,{content:"copyToClipboard"}),onCopy:()=>(0,a.addToast)({intent:"success",message:s("copySuccess")})})})]})},e))),(0,c.jsx)("span",{"data-name":"extDnsHowtoAliases",children:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDnsEnabledAliases"})})]}):(0,c.jsx)("p",{"data-name":"extDnsHowtoOff",children:(0,c.jsx)(t.Translate,{content:"howToConfigureExternalDnsDisabled",params:{option:(0,c.jsx)(t.Translate,{content:"domainKeys"})}})})]})};i.propTypes={enabled:l().bool.isRequired,dnsRecords:l().arrayOf(l().string).isRequired};const d=i},2627:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(271),o=s(270),a=s(2628);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))}},1389:(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 c=o.Locale.getTranslate("components.buttons"),i=({id:e,content:n,icon:s="copy",className:o,tooltip:a=(0,l.jsx)(c,{content:"copyToClipboard"}),onCopy:r=()=>{}})=>(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}`:"")});i.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};const d=i},2629:(e,n,s)=>{s.r(n)}}]);
//# sourceMappingURL=mail-settings-dkim-hint.js.map?d4463151682a26f6e376