export const __webpack_ids__=["5759"];export const __webpack_modules__={28553:function(t,e,o){o.r(e),o.d(e,{MDNCopyButton:()=>MDNCopyButton});var i=o(14703),s=o(69535),n=o(50272);let MDNCopyButton=class MDNCopyButton extends(0,s.q)(i.oi){static properties={variant:{},_message:{state:!0}};constructor(){super(),this.variant="primary",this.copiesFrom=void 0}async _copy({target:t}){if(t instanceof n.MDNButton){let t=!0;try{let t=this.copiesFrom?.textContent?.trim();t&&await navigator.clipboard.writeText(t)}catch(e){console.error("Error when trying to use navigator.clipboard.writeText()",e),t=!1}this._message=t?this.l10n`Copied`:this.l10n`Copy failed!`,setTimeout(()=>{this._message=void 0},t?1e3:3e3)}}render(){return(0,i.dy)`<mdn-button @click=${this._copy} variant=${this.variant}
      >${this._message??this.l10n`Copy`}</mdn-button
    >`}};customElements.define("mdn-copy-button",MDNCopyButton)}};
//# sourceMappingURL=5759.22a61c1d4a7e3084.js.map