(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[9215],{"./dist/ui-stencil/p-bb66993c.system.entry.js":()=>{System.register(["./p-14b5f59f.system.js","./p-553ce846.system.js","./p-81f62123.system.js"],(function(t){"use strict";var o,e,i,n,a,r,s,l,c,h,u,d;return{setters:[function(t){o=t.r,e=t.h,i=t.g,n=t.H},function(t){a=t.h,r=t.t},function(t){s=t.c,l=t.d,c=t.f,h=t.s,u=t.o,d=t.e}],execute:function(){var m=["mouseenter","touchstart"],b=["mouseleave","blur","touchend"],v=t("x_tooltip",function(){function t(t){o(this,t),this.content=void 0,this.align="top"}return t.prototype.onPropChange=function(){var t=this;v.activeElements.has(this.el)&&(this.hideHandler(),setTimeout((function(){t.showHandler()}),10))},t.prototype.componentDidLoad=function(){var t=this;this.tooltip=a(),m.forEach((function(o){t.el.addEventListener(o,t.showHandler.bind(t))})),b.forEach((function(o){t.el.addEventListener(o,t.hideHandler.bind(t))})),window.addEventListener("scroll",this.hideHandler,!0),window.addEventListener("resize",this.hideHandler,!0),document.addEventListener("visibilitychange",this.hideHandler,!0),document.addEventListener("touchmove",this.hideHandler,!0)},t.prototype.disconectedCallback=function(){var t=this;this.hideHandler(),v.activeElements.delete(this.el),m.forEach((function(o){t.el.removeEventListener(o,t.showHandler)})),b.forEach((function(o){t.el.removeEventListener(o,t.hideHandler)})),window.removeEventListener("scroll",this.hideHandler,!0),window.removeEventListener("resize",this.hideHandler,!0),document.removeEventListener("visibilitychange",this.hideHandler,!0),document.removeEventListener("touchmove",this.hideHandler,!0)},t.prototype.showHandler=function(){var t=this;v.activeElements.add(this.el),this.tooltip.setAttribute("data-show",""),this.tooltip.querySelector("span").innerHTML=r(this.content)||"";var o=this.tooltip.querySelector(".tooltip-arrow");s(this.el,this.tooltip,{placement:this.align,middleware:["auto"==this.align?l():c(),h({padding:10}),u(4),d({element:o})]}).then((function(e){var i,n=e.x,a=e.y,r=e.middlewareData,s=e.placement;if(t.tooltip.style.left="".concat(n,"px"),t.tooltip.style.top="".concat(a,"px"),r.arrow){var l=r.arrow,c=l.x,h=l.y,u={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];Object.assign(o.style,((i={left:null!=c?"".concat(c,"px"):"",top:null!=h?"".concat(h,"px"):"",right:"",bottom:""})[u]="-4px",i))}}))},t.prototype.hideHandler=function(){v.activeElements.delete(this.el),0===v.activeElements.size&&this.tooltip&&(this.tooltip.setAttribute("data-show",""),this.tooltip.removeAttribute("data-show"),this.tooltip.querySelector("span").innerHTML="")},t.prototype.render=function(){return e(n,{key:"8acb5f55c7305bdc1985c6fa422b04719f68e6dd","aria-label":this.content})},Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{content:["onPropChange"],align:["onPropChange"]}},enumerable:!1,configurable:!0}),t}());v.activeElements=new Set,v.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)}'}}}))}}]);