(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[6733],{"./dist/ui-stencil/p-b604707b.system.entry.js":()=>{System.register(["./p-14b5f59f.system.js"],(function(t){"use strict";var i,e,s;return{setters:[function(t){i=t.r,e=t.h,s=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,e=function(s){null!=i||(i=s);var n=Math.min((s-i)/1e3,1);t.actualNumber=t.numberWithCommas(n*(t.value-t.lastNumber)+t.lastNumber),n<1?window.requestAnimationFrame(e):t.lastNumber=t.value};window.requestAnimationFrame(e)},t.prototype.numberWithCommas=function(t){return parseFloat(t).toFixed(this.fixed).replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator)},t.prototype.render=function(){return e(s,{key:"0afa5d5da9da1ccb11ea7f083b6068ea73094981"},this.actualNumber)},Object.defineProperty(t,"watchers",{get:function(){return{value:["watchValue"]}},enumerable:!1,configurable:!0}),t}());u.style="x-number{display:inline-block}"}}}))}}]);