"use strict";$(document).ready((function(){var e=document.querySelectorAll(".door"),t=document.querySelectorAll(".door__sales"),o=(document.querySelector(".door__wrapper"),document.querySelector(".spin-result-wrapper")),n=(document.querySelector(".pop-up-button"),document.querySelector(".order_block"),document.getElementById("door__1")),r=document.getElementById("door__2"),c=document.getElementById("door__3"),l=document.getElementById("door__sales1"),i=document.getElementById("door__sales2"),s=document.getElementById("door__sales3"),u=$("#discount").text();function d(a){a.currentTarget.classList.add("open"),setTimeout((function(){o.style.display="block"}),2500),t.forEach((function(e){n.classList.contains("open")?(l.innerHTML=u+"%",i.innerHTML="50%",s.innerHTML="25%"):r.classList.contains("open")?(i.innerHTML=u+"%",l.innerHTML="25%",s.innerHTML="50%"):c.classList.contains("open")&&(l.innerHTML="50%",s.innerHTML=u+"%",i.innerHTML="25%")}));for(var p=0;p<e.length;p++)!function(t){e[t].classList.contains("open")||setTimeout((function(){e[t].classList.add("open")}),1500)}(p);for(var m=0;m<e.length;m++)e[m].removeEventListener("click",d);for(m=0;m<e.length;m++)e[m].removeEventListener("touchend",d)}e.forEach((function(e){e.addEventListener("click",d)}));let a=1;$(".box").click((function(){setTimeout((function(){$(".hide-block").hide(),$(".door__wrapper").hide(),$(".order_block").show(),setTimeout((function(){$("#scroll-point").hide()}),5e3)}),3e3),a&&(setTimeout((function(){p=setInterval(f,1e3)}),5e3),a=0)})),$(".close-popup, .pop-up-button").click((function(e){e.preventDefault(),$(".spin-result-wrapper").fadeOut()}));var p,m=600;function f(){if(0<m){m-=1;var e=Math.floor(m/60),t=10<=(t=m-60*e)?t:"0"+t;if(e<0&&(e=0),$("#min").html("0"+e),$("#sec").html(t),0==e&&0==t)return clearInterval(p),!1}}$(" a, .pop-up-button, .close-popup, .main-menu-blk li").click((function(e){return $("#scroll-point-2").is(":visible")?$("html,body").animate({scrollTop:$("#scroll-point-2").offset().top},1e3):$("html,body").animate({scrollTop:$("#scroll-point").offset().top},1e3),e.preventDefault(),$(".spin-result-wrapper").fadeOut(),!1}))}));