"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[4376],{"./dist/ui-stencil/p-6e71f64e.entry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{x_tooltip:()=>x});var _p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./dist/ui-stencil/p-d85247d2.js"),_p_efbc3883_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./dist/ui-stencil/p-efbc3883.js"),_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./dist/ui-stencil/p-384ed661.js");const m=["mouseenter","touchstart"],c=["mouseleave","blur","touchend"],x=class{constructor(t){(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.r)(this,t),this.content=void 0,this.align="top"}componentDidLoad(){this.tooltip=(0,_p_efbc3883_js__WEBPACK_IMPORTED_MODULE_2__.f)(),m.forEach((o=>{this.el.addEventListener(o,this.showHandler.bind(this))})),c.forEach((o=>{this.el.addEventListener(o,this.hideHandler.bind(this))}))}disconectedCallback(){m.forEach((o=>{this.el.removeEventListener(o,this.showHandler)})),c.forEach((o=>{this.el.removeEventListener(o,this.hideHandler)}))}showHandler(){this.tooltip.setAttribute("data-show",""),this.tooltip.querySelector("span").innerHTML=(0,_p_efbc3883_js__WEBPACK_IMPORTED_MODULE_2__.t)(this.content)||"";const o=this.tooltip.querySelector(".tooltip-arrow");(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.c)(this.el,this.tooltip,{placement:this.align,middleware:["auto"==this.align?(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.d)():(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.f)(),(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.s)({padding:10}),(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.o)(4),(0,_p_384ed661_js__WEBPACK_IMPORTED_MODULE_1__.e)({element:o})]}).then((({x:t,y:e,middlewareData:i,placement:a})=>{if(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`,i.arrow){const{x:t,y:e}=i.arrow,s={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];Object.assign(o.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[s]:"-4px"})}}))}hideHandler(){setTimeout((()=>{this.tooltip.removeAttribute("data-show"),this.tooltip.querySelector("span").innerHTML=""}),50)}render(){return(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)(_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.H,{key:"3c950a3ec9cf1ef655858e2925a62a759cbe068e","aria-label":this.content})}get el(){return(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.g)(this)}};x.style='x-tooltip{display:inherit}x-tooltip-overlay{font-family:"Poppins", "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";background:var(--color-dark-tinted, #626262);color:var(--color-text-light, #FEFEFE);padding:4px 8px;font-size:0.9rem;border-radius:4px;display:none;-webkit-box-shadow:0 0 1em rgba(0, 0, 0, 0.2);box-shadow:0 0 1em rgba(0, 0, 0, 0.2);z-index:10000;position:absolute;text-align:inherit;top:0;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content}x-tooltip-overlay:empty{display:none}.is-dark-mode x-tooltip-overlay{background:var(--color-light-shade, #d8d8d8);color:var(--color-text, #4A4A4A)}x-tooltip-overlay[data-show]{display:block;-webkit-animation:0.4s fadeIn;animation:0.4s fadeIn}x-tooltip-overlay>p{margin:0px;font-family:"Poppins", "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}x-tooltip-overlay .tooltip-arrow{position:absolute;background:var(--color-dark-tinted, #626262);width:8px;height:8px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.is-dark-mode x-tooltip-overlay .tooltip-arrow{background:var(--color-light-shade, #d8d8d8)}'}}]);