(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[979],{"./dist/ui-stencil/p-38bfc01c.system.entry.js":()=>{System.register(["./p-14b5f59f.system.js"],(function(t){"use strict";var i,s,e;return{setters:[function(t){i=t.r,s=t.h,e=t.H}],execute:function(){var u=t("x_number",function(){function t(t){i(this,t),this.value=0,this.from=0,this.fixed=0,this.thousandsSeparator=",",this.interval=1,this.withoutAnimation=!1,this.lastNumber=void 0,this.actualNumber=void 0,this.typingTimer=void 0}return t.prototype.watchValue=function(){this.withoutAnimation?(this.actualNumber=this.numberWithCommas(this.value),this.lastNumber=this.value):(clearTimeout(this.typingTimer),this.typingTimer=setTimeout(this.animateNumber,1e3*this.interval))},t.prototype.componentWillLoad=function(){this.lastNumber=this.from,this.actualNumber=this.from.toFixed(this.fixed)},t.prototype.componentDidLoad=function(){var t=this;this.withoutAnimation?this.actualNumber=this.numberWithCommas(this.value):setTimeout((function(){t.animateNumber()}),300)},t.prototype.animateNumber=function(){var t=this,i=null,s=function(e){null!=i||(i=e);var n=Math.min((e-i)/1e3,1);t.actualNumber=t.numberWithCommas(n*(t.value-t.lastNumber)+t.lastNumber),n<1?window.requestAnimationFrame(s):t.lastNumber=t.value};window.requestAnimationFrame(s)},t.prototype.numberWithCommas=function(t){return parseFloat(t).toFixed(this.fixed).replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator)},t.prototype.render=function(){return s(e,{key:"0df9333b9b74a5153c2f904867fe8fb8443f42f5"},this.actualNumber)},Object.defineProperty(t,"watchers",{get:function(){return{value:["watchValue"]}},enumerable:!1,configurable:!0}),t}());u.style="x-number{display:inline-block}"}}}))}}]);