(function (s) {
s(document).ready(function () {
var e = s("html"),
l = new Image,
t = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
s(".lazy").lazyload();
function c(e, l) {
if (document.querySelector(e) != null) {
s(".shipping-result").html(s(".page-simula-frete"));
return
} else {
setTimeout(function () {
c(e, l)
}, l)
}
}
s(".botao-simular-frete, #shippingSimulatorButton").click(function () {
s(".shipping-result").html("");
c(".page-simula-frete", 1e3)
});
if (s.fn.jquery != "1.6.2") {
s(".banner-home-slide").slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
dots: true,
arrows: false,
prevArrow: '',
nextArrow: '',
responsive: [{
breakpoint: 768,
settings: {
arrows: false
}
}]
});
s(".page-home .showcase-list").slick({
lazyLoad: "ondemand",
slidesToShow: 5,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: true,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 1199,
settings: {
slidesToShow: 5,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
arrows: true,
dots: false,
}
},
]
})
s(".homeList").slick({
lazyLoad: "ondemand",
slidesToShow: 1,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: false,
autoplay: true,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 767,
settings: {
slidesToShow: 1,
}
},
]
})
s(".homeFrete").slick({
lazyLoad: "ondemand",
slidesToShow: 4,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: false,
autoplay: false,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 767,
settings: {
slidesToShow: 2,
autoplay: true,
loop: true,
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
autoplay: true,
loop: true,
}
},
]
});
s(".clientesSlider").slick({
lazyLoad: "ondemand",
slidesToShow: 4,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: false,
autoplay: true,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 767,
settings: {
slidesToShow: 1,
}
},
]
});
s(".homeListMid").slick({
lazyLoad: "ondemand",
slidesToShow: 2,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: false,
autoplay: false,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 767,
settings: {
slidesToShow: 1,
autoplay: true,
loop: true,
}
},
]
});
var stA = setTimeout(function () {
s(".product-detail .product-gal").slick({
lazyLoad: 'ondemand',
slidesToShow: 1,
slidesToScroll: 1,
dots: false,
fade: true,
arrows: false,
adaptiveHeight: false,
responsive: [
{
breakpoint: 991,
settings: {
centerMode: true,
}
},
]
});
}, 100);
var stB = setTimeout(function () {
s(".product-detail .product-thumbs").slick({
slidesToShow: 3,
slidesToScroll: 1,
dots: false,
focusOnSelect: true,
vertical: true,
prevArrow: '',
nextArrow: '',
asNavFor: '.product-detail .product-gal',
responsive: [
{
breakpoint: 991,
settings: {
arrows: false,
vertical: false,
}
},
]
});
}, 100);
var stC = setTimeout(function () {
s(".prod-gal-rel").slick({
lazyLoad: "ondemand",
slidesToShow: 4,
slidesToScroll: 1,
touchThreshold: 1000,
cssEase: 'linear',
speed: 200,
dots: false,
arrows: true,
prevArrow: '',
nextArrow: '',
responsive: [
{
breakpoint: 1199,
settings: {
slidesToShow: 4,
arrows: false,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
arrows: false,
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
dots: true,
arrows: false,
}
},
]
})
}, 100);
s(document).ready(function () {
s('.product-gal').show();
s('.product-thumbs').show();
s('.prod-gal-rel').show();
})
}
if (s(".caixa-cupom").length) {
s(".caixa-cupom").parents("tr").addClass("cupom-wrapper")
}
if (s("#calculoFrete").length) {
s("#calculoFrete").parents("tr").addClass("frete-wrapper")
}
s(".open-filters").click(function () {
s(".filters-list").slideToggle()
})
});
var e = s(".floating");
s(window).scroll(function () {
if (s(window).scrollTop() > 212) {
e.addClass("fixed")
} else {
e.removeClass("fixed")
}
});
s(".modal-login").click(function (e) {
e.preventDefault();
s("tray-login").show()
})
})(jQuery);
(function () {
var e = document.getElementsByClassName("trigger-menu")[0];
var l = document.getElementsByTagName("html")[0];
var d = document.getElementsByClassName("dismiss")[0];
var backDrop = document.getElementsByClassName("menu-mobile-backdrop")[0];
e.addEventListener("click", function () {
l.classList.add("menu-open")
});
if(d != null) {
d.addEventListener("click", function () {
l.className = l.className.replace(new RegExp("(^|\\b)" + "menu-open".split(" ").join("|") + "(\\b|$)", "gi"), " ")
});
}
backDrop.addEventListener("click", function () {
l.className = l.className.replace(new RegExp("(^|\\b)" + "menu-open".split(" ").join("|") + "(\\b|$)", "gi"), " ")
})
})();