"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[7920],{"./dist/ui-stencil/p-8f5b9028.entry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{x_copy:()=>e});var _p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./dist/ui-stencil/p-d85247d2.js");const e=class{constructor(t){(0,_p_d85247d2_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();try{document.execCommand("copy")}catch(o){console.warn(o)}document.body.removeChild(o)}render(){return(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)(_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.H,{key:"a289df472974df8a42fc9cb039ff54e1878baf33",onClick:this.copyContent},(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)("slot",{key:"bfc68f693f295687825567501ac1f0120e02f179"}))}}}}]);