class Jackpot{"use strict";constructor({contNodeId:e,jackpotNodesClass:t,jackpotNumbers:n,jackpotType:s,stepCount:o,digitsAfterPoint:i}){if(this.contNode=document.getElementById(e),this.contNode.Jackpot=this,this.flipInterval=0,this.contNode===void 0)return;if(this.jackpotNodes=this.contNode.getElementsByClassName(t),this.jackpotNodes===void 0||this.jackpotNodes.length==0)return;this.jackpotNumbers=n,this.jackpotType=s,this.digitsAfterPoint=i,this.stepCount=this.#calculateFirstStepCount(this.jackpotNumbers,this.digitsAfterPoint),this.#startJack(this.jackpotNodes,this.jackpotNumbers)}#calculateFirstStepCount(e,t){let s=0;for(const t of e)(s==0||parseInt(t)1e4?1e4:n;case 2:return n>1e5?1e5:n;case 3:return n>1e6?1e6:n;case 4:return n>1e7?1e7:n;default:return n>1e3?1e3:n}}#startJack(e,t){let n=e.length;for(let s=0;se[s]?(t[s].jackWon=!0,t[s].classList.add("blink")):(t[s].jackWon&&(t[s].jackpot.destroy(),t[s].jackpot=new FlipJackpotNumbers({node:t[s],from:t[s].number,seperateOnly:this.digitsAfterPoint}),t[s].jackWon=!1),(t[s].number-this.stepCount).toString().length{let e=this;$.ajax({url:"/Common/GetJack?type="+e.jackpotType,type:"POST",datatype:"json",showLoader:!1,success:function(n){n!=""&&n.length>0&&e.#flip(n,t)}})},30050)}destroy(){let e=this.jackpotNodes.length;if(e>0)for(let t=0;t