"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/email-address/client-configuration-link"],{2616:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(286),s=t(287),i=t.n(s),c=t(285),l=t(1057),a=t(539),r=t(89);const d=({link:e})=>{const[n,t]=(0,c.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.Action,{onClick:()=>t(!0),children:(0,c.jsx)(o.Translate,{content:"action"})}),(0,c.jsx)(o.Drawer,{size:"sm",isOpen:n,onClose:()=>t(!1),title:(0,c.jsx)(o.Translate,{content:"title"}),"data-type":"client-configuration-link",children:(0,c.jsxs)(o.Alert,{intent:"info",children:[(0,c.jsx)("div",{children:e}),(0,c.jsx)("div",{children:(0,c.jsx)(l.default,{content:e,onCopy:()=>(0,a.addToast)({intent:"success",message:r.Locale.getSection("components.buttons").lmsg("copied")}),children:(0,c.jsx)(o.Translate,{content:"copy"})})})]})})]})};d.propTypes={link:i().string.isRequired};const p=d},2615:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var o=t(286),s=t(291),i=t(89),c=t(2616),l=t(285);const a=({renderTo:e,...n})=>{const t=i.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)(c.default,{...n})}))}},1057:(e,n,t)=>{t.r(n),t.d(n,{default:()=>d});var o=t(286),s=t(89),i=t(287),c=t.n(i),l=t(285);const a=s.Locale.getSection("components.buttons"),r=({id:e,content:n,icon:t="copy",className:s,tooltip:i=a.lmsg("copyToClipboard"),onCopy:c=()=>{},children:r})=>(0,l.jsx)(o.Button,{className:s,ghost:!0,icon:t,tooltip:i,onClick:()=>{(0,o.copyToClipboard)(n),c()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:r});r.propTypes={id:c().string,content:c().string.isRequired,className:c().string,icon:c().oneOfType([c().node,c().string,c().object]),tooltip:c().oneOfType([c().string,c().node]),onCopy:c().func,children:c().node};const d=r}}]);
//# sourceMappingURL=client-configuration-link.js.map?001256a8d183f1e88574