(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[6669],{"./dist/ui-stencil/p-db47a14a.system.entry.js":function(){var __awaiter=this&&this.__awaiter||function(t,n,e,i){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){t.done?e(t.value):o(t.value).then(s,a)}c((i=i.apply(t,n||[])).next())}))},__generator=this&&this.__generator||function(t,n){var i,o,r,s,e={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(n){return c([t,n])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(e=0)),e;)try{if(i=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,o=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(!(r=e.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){e=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(6===a[0]&&e.label<r[1]){e.label=r[1],r=a;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(a);break}r[2]&&e.ops.pop(),e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t],o=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};System.register(["./p-173e7369.system.js","./p-9a3061e6.system.js","./p-81f62123.system.js"],(function(t){"use strict";var n,e,i,o,r,s,a,c,u;return{setters:[function(t){n=t.r,e=t.h,i=t.H,o=t.g},function(t){r=t.c},function(t){s=t.c,a=t.f,c=t.s,u=t.o}],execute:function(){var d=t("x_dropdown",function(){function t(t){n(this,t),this.show=!1,this.align="bottom",this.hover=!1,this.syncWidth=!1,this.offset=0}return t.prototype.onAlignWatch=function(){this.updateDropdownContainer()},t.prototype.componentDidLoad=function(){this.container=this.el.querySelector(".dropdown-container"),this.updateDropdownContainer(),this.el.addEventListener("mouseenter",this.onMouseEnterOnContainer.bind(this)),this.el.addEventListener("mouseleave",this.onMouseLeaveOnContainer.bind(this))},t.prototype.disconectedCallback=function(){this.el&&(this.el.removeEventListener("mouseenter",this.onMouseEnterOnContainer),this.el.removeEventListener("mouseleave",this.onMouseLeaveOnContainer))},t.prototype.onMouseEnterOnContainer=function(){this.hover&&(this.show=!0)},t.prototype.onMouseLeaveOnContainer=function(){this.hover&&(this.show=!1)},t.prototype.updateDropdownContainer=function(){var t=this;this.syncWidth?(this.container.style.maxWidth="".concat(this.el.offsetWidth,"px"),this.container.style.width="100%"):(this.container.style.maxWidth="auto",this.container.style.width="auto"),setTimeout((function(){s(t.el,t.container,{placement:t.align,middleware:[a(),c({padding:10}),u(t.offset)]}).then((function(n){var e=n.x,i=n.y;t.container.style.left="".concat(e,"px"),t.container.style.top="".concat(i,"px")}))}),50)},t.prototype.display=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return this.show=t,[2]}))}))},t.prototype.render=function(){return e(i,{key:"71e5bd83345ae6f95e820a7c4bbe477c2593436d"},e("slot",{key:"c68838e07e036ad4196ac0c44d16708c89c67313"}),e("div",{key:"ddb1c6581583632112eccf1a00163e75dbe9b243",class:r("dropdown-container",{"dropdown-show":this.show,"dropdown-hover":this.hover})},e("slot",{key:"6be924779eae483e258cdb9ade1c9fbe72677fae",name:"dropdown"})))},Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{align:["onAlignWatch"],show:["onAlignWatch"]}},enumerable:!1,configurable:!0}),t}());d.style="x-dropdown{display:inherit;text-align:inherit}x-dropdown .dropdown-container{display:none;width:-webkit-max-content;width:-moz-max-content;width:max-content;top:0;left:0;position:absolute;z-index:10000}x-dropdown .dropdown-container.dropdown-show{display:block;-webkit-animation:0.3s fadeIn;animation:0.3s fadeIn}"}}}))}}]);