(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[7176],{"./dist/ui-stencil/p-65ecdb99.system.entry.js":function(){var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{r(i.next(e))}catch(e){c(e)}}function s(e){try{r(i.throw(e))}catch(e){c(e)}}function r(e){e.done?n(e.value):a(e.value).then(o,s)}r((i=i.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var i,a,c,o,n={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return r([e,t])}}function r(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(i=1,a&&(c=2&s[0]?a.return:s[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,s[1])).done)return c;switch(a=0,c&&(s=[2&s[0],c.value]),s[0]){case 0:case 1:c=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,a=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(c=n.trys,(c=c.length>0&&c[c.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!c||s[1]>c[0]&&s[1]<c[3])){n.label=s[1];break}if(6===s[0]&&n.label<c[1]){n.label=c[1],c=s;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(s);break}c[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],a=0}finally{i=c=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};System.register(["./p-14b5f59f.system.js","./p-553ce846.system.js"],(function(e){"use strict";var t,n,i,a,c;return{setters:[function(e){t=e.r,n=e.h,i=e.H,a=e.g},function(e){c=e.c}],execute:function(){var r=e("x_collapse",function(){function e(e){t(this,e),this.header=void 0,this.show=!1,this.expanded=!1}return e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this.toggleCollapse(),[2]}))}))},e.prototype.watchExpanded=function(){this.updateCollapse()},e.prototype.componentWillLoad=function(){this.show&&(this.expanded=!0)},e.prototype.componentDidLoad=function(){this.updateCollapse()},e.prototype.toggleCollapse=function(){this.expanded=!this.expanded},e.prototype.updateCollapse=function(){this.container&&(this.expanded?this.showCollapseContainer():this.hideCollapseContainer())},e.prototype.hideCollapseContainer=function(){this.container.style.maxHeight=null,this.container.style.overflow="hidden"},e.prototype.showCollapseContainer=function(){var e=this;this.container.style.maxHeight="".concat(this.container.scrollHeight,"px"),setTimeout((function(){e.container.style.overflow="initial"}),200)},e.prototype.onCollapseKeyDown=function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleCollapse())},e.prototype.render=function(){var t,e=this;return n(i,{key:"1e32b54d6dc9bad193526096c1738cde9873525c",class:c({"collapse-expanded":this.expanded})},n("div",{key:"a5c7c3b966b683029a6faca073a1126cf06e19c5",role:"switch",class:"collapse-header",tabIndex:0,"aria-checked":this.expanded,onClick:function(){return e.toggleCollapse()},onKeyDown:function(t){return e.onCollapseKeyDown(t)}},(null===(t=this.header)||void 0===t?void 0:t.length)?n("h4",null,this.header):n("slot",{name:"header"}),n("span",{key:"cf2da6ce35ac6a749d11935e7fbe90cf1fb05b1a",class:"collapse-action"},n("x-icon",{key:"706b0c169f3eb4c3c637567a088fe64a877142d9",name:this.expanded?"minus":"dropdown"}))),n("div",{key:"60999c33b22d88ced7ca46668051f54fc30cec53",class:"collapse-container",ref:function(t){return e.container=t}},n("slot",{key:"9dd2e245a7b613a2fae9e3f4b5c2214c8d2d7d74"})))},Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{expanded:["watchExpanded"]}},enumerable:!1,configurable:!0}),e}());r.style="x-collapse{display:block;position:relative;-webkit-transition:0.3s;transition:0.3s}.is-dark-mode x-collapse{color:var(--color-text-light, #FEFEFE)}x-collapse .collapse-header{position:relative;padding:0.5rem 0;line-height:1em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}x-collapse .collapse-header:hover:after{-webkit-animation:0.75s fadeBreathe infinite;animation:0.75s fadeBreathe infinite}x-collapse .collapse-header h4{margin:0}x-collapse .collapse-header .collapse-action{position:absolute;top:calc(50% - 0.5rem);right:0.75rem}x-collapse .collapse-container{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-height:0;opacity:0;-webkit-transition:max-height 0.2s ease-out, opacity 0.2s;transition:max-height 0.2s ease-out, opacity 0.2s}x-collapse.collapse-expanded .collapse-container{opacity:1}"}}}))}}]);