(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{25:function(t,i,n){"use strict";n.r(i);var e=n(6),a=n(0);let o,r=t=>t;class s extends e.a{static get properties(){return{value:{observe:!0,DOM:!0,fromAttributeConverter:a.b.fromAttribute},text:{observe:!0,changedHandler:"_textChanged"},animationName:{observe:!0,DOM:!0,fromAttributeConverter:a.d.fromAttribute,attributeName:"animation-name"},animationDuration:{observe:!0,DOM:!0,fromAttributeConverter:a.b.fromAttribute,attributeName:"animation-duration"},animationTimingFunction:{observe:!0,DOM:!0,fromAttributeConverter:a.d.fromAttribute,attributeName:"animation-timing-function"}}}static get propertiesChangedHandlers(){return{_runAnimation:["value","text"]}}constructor(){super(),this.text=0,this.animationName="ticker",this.animationDuration=1e3,this.animationTimingFunction="ease"}get template(){return Object(e.b)(o||(o=r` `),this._handleSlotChange)}_handleSlotChange(t){this._childNode=(t.target.assignedNodes()||[])[0]}_textChanged(){this._childNode&&(this._childNode.innerHTML=this.text)}_runAnimation(){if(!this.animationName)return this.text=this.value;switch(this.animationName){case"ticker":this._runTickerAnimation(this.value,this.text)}}_runTickerAnimation(t,i){const n=parseFloat(i),e=parseFloat(t),a=Math.abs(n-e);t===i?this._animationInterval=null:this._animationInterval||"linear"!==this.animationTimingFunction?"ease"===this.animationTimingFunction&&(this._animationInterval=this.animationDuration/a*.4):this._animationInterval=this.animationDuration/a,e!==n&&window.setTimeout(()=>this.text=e>n?n+1:n-1,this._animationInterval)}}window.customElements.define("slicesui-number",s)}}]); //# sourceMappingURL=d79fb821a50785beb5e7.js.map