"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[7827],{"./dist/ui-stencil/p-7e8c8f55.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:"4b1febe42e5970fe4c0ece871c620a3ed58168fa",onClick:this.copyContent},(0,_p_444192d7_js__WEBPACK_IMPORTED_MODULE_0__.h)("slot",{key:"b7cd8d93eb34ba613b9da9069b522fae2f90f6b2"}))}}}}]);