"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/email-address/client-configuration-link"],{3195(e,n,t){t.r(n),t.d(n,{default:()=>p});var o=t(397),s=t(787),c=t.n(s),i=t(396),l=t(1569),a=t(663),r=t(95);const d=({link:e})=>{const[n,t]=(0,i.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Action,{onClick:()=>t(!0),children:(0,i.jsx)(o.Translate,{content:"action"})}),(0,i.jsx)(o.Drawer,{size:"sm",isOpen:n,onClose:()=>t(!1),title:(0,i.jsx)(o.Translate,{content:"title"}),"data-type":"client-configuration-link",children:(0,i.jsxs)(o.Alert,{intent:"info",children:[(0,i.jsx)("div",{children:e}),(0,i.jsx)("div",{children:(0,i.jsx)(l.default,{content:e,onCopy:()=>(0,a.addToast)({intent:"success",message:r.Locale.getSection("components.buttons").lmsg("copied")}),children:(0,i.jsx)(o.Translate,{content:"copy"})})})]})})]})};d.propTypes={link:c().string.isRequired};const p=d},3194(e,n,t){t.r(n),t.d(n,{default:()=>a});var o=t(397),s=t(399),c=t(95),i=t(3195),l=t(396);const a=({renderTo:e,...n})=>{const t=c.Locale.getSection("components.email-address.client-configuration-link").messages;(0,s.createRoot)(document.getElementById(e)).render((0,l.jsx)(o.LocaleProvider,{messages:t,children:(0,l.jsx)(i.default,{...n})}))};t.dn(a)},1569(e,n,t){t.r(n),t.d(n,{default:()=>l});var o=t(397),s=t(95),c=t(396);const i=s.Locale.getSection("components.buttons"),l=({id:e,content:n,icon:t="copy",className:s,tooltip:l=i.lmsg("copyToClipboard"),onCopy:a=()=>{},children:r})=>(0,c.jsx)(o.Button,{className:s,ghost:!0,icon:t,tooltip:l,tooltipAsLabel:!0,onClick:()=>{(0,o.copyToClipboard)(n),a()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:r})}}]);
//# sourceMappingURL=client-configuration-link.js.map?4d7d9afbebd6b381de60