var hellopreloader=document.getElementById("xLoader");function fadeOutnojquery(el){el.style.opacity=1;var interhellopreloader=setInterval(function(){el.style.opacity=el.style.opacity-.05,el.style.opacity<=.05&&(clearInterval(interhellopreloader),hellopreloader.style.display="none")},16)}window.onload=function(){setTimeout(function(){fadeOutnojquery(hellopreloader)},300)},$(function(){$(".btn, button").click(function(e){$(".ripple").remove();var posX=$(this).offset().left,posY=$(this).offset().top,buttonWidth=$(this).width(),buttonHeight=$(this).height();$(this).prepend("<span class='ripple'></span>"),buttonWidth>=buttonHeight?buttonHeight=buttonWidth:buttonWidth=buttonHeight;var x=e.pageX-posX-buttonWidth/2,y=e.pageY-posY-buttonHeight/2;$(".ripple").css({width:buttonWidth,height:buttonHeight,top:y+"px",left:x+"px"}).addClass("rippleEffect")}),$(".dropdown-toggle").dropdown(),$("a.btn, button, .btn_red").addClass("swipe_effect"),$(".btn_list-grid button").removeClass("swipe_effect"),$("#promo_slider").owlCarousel({items:1,loop:!0,margin:0,dots:!0,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,nav:!0,navText:['<i class="ion-ios-arrow-thin-left"></i>','<i class="ion-ios-arrow-thin-right"></i>'],autoplaySpeed:1e3,animateOut:"fadeOut",mouseDrag:!1}),$("#rating_carousel").owlCarousel({items:2,loop:!0,margin:25,dots:!1,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,nav:!0,navText:['<i class="ion-ios-arrow-thin-left"></i>','<i class="ion-ios-arrow-thin-right"></i>'],autoplaySpeed:1e3}),$("#screens_carousel").owlCarousel({items:3,loop:!1,margin:25,dots:!0,autoplay:!1,autoplayTimeout:3e3,autoplayHoverPause:!0,nav:!0,navText:['<i class="ion-ios-arrow-thin-left"></i>','<i class="ion-ios-arrow-thin-right"></i>'],autoplaySpeed:800,responsive:{320:{items:1,dots:!1},360:{items:1,dots:!1},480:{items:1,dots:!1},640:{items:3,dots:!0}}});var status=$.cookie("list_grid");status&&$("body").addClass(status),$(".btn_list").click(function(e){$("body").addClass("list"),$("body").removeClass("grid"),$.cookie("list_grid","list",{expires:180,path:"/"})}),$(".btn_grid").click(function(e){$("body").addClass("grid"),$("body").removeClass("list"),$.cookie("list_grid","grid",{expires:180,path:"/"})});const buttons=document.querySelectorAll("button[data-modal-trigger]");for(let button of buttons)modalEvent(button);function modalEvent(button){button.addEventListener("click",()=>{const trigger=button.getAttribute("data-modal-trigger"),modal=document.querySelector(`[data-modal=${trigger}]`),contentWrapper=modal.querySelector(".content-wrapper"),close=modal.querySelector(".close");close.addEventListener("click",()=>modal.classList.remove("open")),modal.addEventListener("click",()=>modal.classList.remove("open")),contentWrapper.addEventListener("click",e=>e.stopPropagation()),modal.classList.toggle("open")})}$(".mob_nav").removeClass("swipe_effect").click(function(){$(".menu_bl").fadeIn(200).show(),$(".mob_nav").toggleClass("open close").removeClass("ion-android-menu").addClass("ion-android-close"),$(document).click(function(e){$(e.target).closest(".mob_nav.close").length||$(e.target).closest(".menu_bl").length||($(".menu_bl").hide(),$(".mob_nav").removeClass("ion-android-close open close").addClass("ion-android-menu"))})}),$(".mob_search").removeClass("swipe_effect").click(function(){$(".search").fadeIn(200).show(),$(".mob_search").toggleClass("open close").removeClass("ion-ios-search").addClass("ion-android-close"),$(document).click(function(e){$(e.target).closest(".mob_search.close").length||$(e.target).closest(".search").length||($(".search").hide(),$(".mob_search").removeClass("ion-android-close open close").addClass("ion-ios-search"))})})});