"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[7255],{"./dist/ui-stencil/p-cef79f1d.entry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{x_copy:()=>a});var _p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./dist/ui-stencil/p-444192d7.js");const a=class{constructor(t){(0,_p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__.r)(this,t),this.content=void 0}copyContent(){navigator.clipboard?navigator.clipboard.writeText(this.content).then((()=>{}),(o=>{console.warn(o)})):this.fallbackCopyTextToClipboard()}fallbackCopyTextToClipboard(){const o=document.createElement("textarea");o.value=this.content,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select(),navigator.clipboard?navigator.clipboard.writeText(this.content).catch((o=>{console.warn("Clipboard write failed",o)})):console.warn("Clipboard API not supported"),document.body.removeChild(o)}render(){return(0,_p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__.h)(_p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__.H,{key:"7dbd8d41982f60cc65609aef27901080eb4e4efa",onClick:this.copyContent},(0,_p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__.h)("slot",{key:"aceeb5f0819540433bc2a3f2dc08e0124de37c77"}))}}}}]);