"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/email-address/client-configuration-link"],{2596:(e,n,o)=>{o.r(n),o.d(n,{default:()=>p});var t=o(271),s=o(272),c=o.n(s),i=o(270),l=o(1055),r=o(548),a=o(89);const d=({link:e})=>{const[n,o]=(0,i.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.Action,{onClick:()=>o(!0),children:(0,i.jsx)(t.Translate,{content:"action"})}),(0,i.jsx)(t.Dialog,{isOpen:n,onClose:()=>o(!1),title:(0,i.jsx)(t.Translate,{content:"title"}),children:(0,i.jsx)(t.Alert,{children:(0,i.jsxs)(t.Columns,{children:[(0,i.jsx)(t.Column,{fill:!0,children:e}),(0,i.jsx)(t.Column,{children:(0,i.jsx)(l.default,{content:e,onCopy:()=>(0,r.addToast)({intent:"success",message:a.Locale.getSection("components.buttons").lmsg("copied")})})})]})})})]})};d.propTypes={link:c().string.isRequired};const p=d},2595:(e,n,o)=>{o.r(n),o.d(n,{default:()=>r});var t=o(271),s=o(276),c=o(89),i=o(2596),l=o(270);const r=({renderTo:e,...n})=>{const o=c.Locale.getSection("components.email-address.client-configuration-link").messages;(0,s.createRoot)(document.getElementById(e)).render((0,l.jsx)(t.LocaleProvider,{messages:o,children:(0,l.jsx)(i.default,{...n})}))}},1055:(e,n,o)=>{o.r(n),o.d(n,{default:()=>d});var t=o(271),s=o(89),c=o(272),i=o.n(c),l=o(270);const r=s.Locale.getSection("components.buttons"),a=({id:e,content:n,icon:o="copy",className:s,tooltip:c=r.lmsg("copyToClipboard"),onCopy:i=()=>{},children:a})=>(0,l.jsx)(t.Button,{className:s,ghost:!0,icon:o,tooltip:c,onClick:()=>{(0,t.copyToClipboard)(n),i()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:a});a.propTypes={id:i().string,content:i().string.isRequired,className:i().string,icon:i().oneOfType([i().node,i().string,i().object]),tooltip:i().oneOfType([i().string,i().node]),onCopy:i().func,children:i().node};const d=a}}]);
//# sourceMappingURL=client-configuration-link.js.map?e5b8428797f8b66ca16d