"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/email-address/client-configuration-link"],{3172(e,t,n){n.r(t),n.d(t,{default:()=>p});var o=n(373),s=n(762),c=n.n(s),i=n(372),l=n(1571),a=n(639),r=n(95);const d=({link:e})=>{const[t,n]=(0,i.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Action,{onClick:()=>n(!0),children:(0,i.jsx)(o.Translate,{content:"action"})}),(0,i.jsx)(o.Drawer,{size:"sm",isOpen:t,onClose:()=>n(!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},3171(e,t,n){n.r(t),n.d(t,{default:()=>a});var o=n(373),s=n(375),c=n(95),i=n(3172),l=n(372);const a=({renderTo:e,...t})=>{const n=c.Locale.getSection("components.email-address.client-configuration-link").messages;(0,s.createRoot)(document.getElementById(e)).render((0,l.jsx)(o.LocaleProvider,{messages:n,children:(0,l.jsx)(i.default,{...t})}))};(Object.getOwnPropertyDescriptor(a,"name")||{}).writable||Object.defineProperty(a,"name",{value:"default",configurable:!0})},1571(e,t,n){n.r(t),n.d(t,{default:()=>l});var o=n(373),s=n(95),c=n(372);const i=s.Locale.getSection("components.buttons"),l=({id:e,content:t,icon:n="copy",className:s,tooltip:l=i.lmsg("copyToClipboard"),onCopy:a=()=>{},children:r})=>(0,c.jsx)(o.Button,{className:s,ghost:!0,icon:n,tooltip:l,tooltipAsLabel:!0,onClick:()=>{(0,o.copyToClipboard)(t),a()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:r})}}]);
//# sourceMappingURL=client-configuration-link.js.map?1614384e4ce2ea3c4c79