(function(e){e(document).ready(function(){var o=e("html");e(".trigger-menu, .menu-mobile-backdrop").click(function(){o.addClass("menu-open")});e(".menu-mobile-backdrop,.backdrop-icon").click(function(){o.removeClass("menu-open")});if(e(".caixa-cupom").length){e(".caixa-cupom").parents("tr").addClass("cupom-wrapper")}if(e("#calculoFrete").length){e("#calculoFrete").parents("tr").addClass("frete-wrapper")}});if(e(".page-lista, .page-print_lista").length){e(".lista-produtos").wrapAll("
")}e("#home-slider").slick({slidesToShow:1,slidesToScroll:1,fade:true,dots:false,arrows:true,autoplay:true,autoplaySpeed:5e3});e(".produtos-carrossel").slick({infinite:true,slidesToShow:4,slidesToScroll:4,prevArrow:'',nextArrow:'',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]});e(document).ready(function(){e(window).scroll(function(){var o=Number(jQuery(window).scrollTop());if(o>=200){e("#barraTopo").css({display:"block",opacity:"1",visibility:"visible"})}else{e("#barraTopo").css({display:"block",opacity:"0",visibility:"hidden"})}})});e(".box-captcha").prepend('');e(".modal-login").click(function(o){o.preventDefault();e("tray-login").show()})})(jQuery); $("#botoes span:nth-of-type(3)").addClass("formcamisa"); $('.bandeira-promocao').each(function(){ var txt; txt = $(this).text().replace('desconto',''); $(this).text(txt); }); $(".ico-top-menu").addClass("rastreio"); $(".rastreio").append($("Rastreie seu pedido
Digite o código de rastreio para acompanhar seu pedido:
")), $(".rastrear").click(function(i) { i.preventDefault(); var t = "http://rastreie.com/" + $(".form-rastreio input").val(); window.open(t, "blank") }); $('.fwr-agencia').append('
'); function fecharBannerFlutuante() { application.banner.closeBannerFloating() } function changeClass(t, e, o) { for (var i = document.getElementById(t).getElementsByTagName("a"), n = i.length, a = 0; n > a; a++) i[a].className = ""; document.getElementById(e).className = o } function geraLinkPaginacao(t, e) { jQuery("#" + t).load(e) } function cleanVisited(t, e) { atualizaDiv(t.href, e), document.getElementById(e).style.display = "none" } function atualizaDiv(t, e, o) { var i = "class" == (o = o || "id") ? "." : "#"; 1 == Boolean(status) && jQuery(i + e).length && (status = !1, jQuery(i + e).load(t, function() { status = !0 })) } function loadImage(t) { t.removeAttribute("class"), t.setAttribute("src", t.dataset.source) } function isScrolledIntoView(t) { var e = jQuery(window).height(), o = jQuery(window).scrollTop(), i = jQuery(t).closest(".product").offset().top, n = jQuery(t).height(); return i < e + o && i > o - n } function CheckIfProductIsVisibleAndShowIt() { var t = jQuery(".product:not(.slick-cloned)").find(".load-image"); t.length && jQuery.each(t, function(t, e) { if (isScrolledIntoView(e)) return loadImage(e) }) } function buildProductsSuggestionBlock(t) { jQuery.ajax({ datatype: "json", type: "GET", url: "/mvc/store/elastic/suggestions/get/" + t, complete: function(t, e) { jQuery("nav.category-menu > form .wrapper-suggestion, .mobile-menu .wrapper-suggestion").html(t.responseJSON.suggestions.html.replace(/(.*?)<\/span>/g, '$1')) } }) } function getTimeRemaining(t, e) { var o = new Date; o.setHours(o.getHours() - 3); var i = Date.parse(t) - Date.parse(o.toISOString()), n = Math.floor(i / 864e5); return { total: i, hours: e = (Math.floor(i / 36e5 % 24) + 24 * n) % e, minutes: Math.floor(i / 1e3 / 60 % 60), seconds: Math.floor(i / 1e3 % 60), milliseconds: i.toString().slice(-3) } } function updateClock(t) { var e = getTimeRemaining(t.dataset.offerEnd, t.dataset.hours), o = t.querySelector("li:first-of-type strong"), i = t.querySelector("li:nth-of-type(2) strong"), n = t.querySelector("li:nth-of-type(3) strong"), a = t.querySelector("li:last-of-type strong"); e.total < 1 ? (clearInterval(offerCountdownTimeInterval[t.dataset.offerCountdown]), o.innerHTML = "00", i.innerHTML = "00", n.innerHTML = "00", a.innerHTML = "00") : (o.innerHTML = 1 == e.hours.toString().length ? "0" + e.hours : e.hours, i.innerHTML = ("0" + e.minutes).slice(-2), n.innerHTML = ("0" + e.seconds).slice(-2), a.innerHTML = e.milliseconds.toString().slice(0, 2)) } function initializeOfferCountdown() { var t = jQuery(".product:not(.slick-cloned) .countdown, .product-details .countdown"); jQuery.each(t, function(t, e) { offerCountdownTimeInterval[e.dataset.offerCountdown] = setInterval(updateClock, 20, e) }) }! function(t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof exports ? module.exports = t(require("jquery")) : t(jQuery) }(function(t) { "use strict"; var e = window.Slick || {}; (e = function() { var e = 0; return function(o, i) { var n, a = this; a.defaults = { accessibility: !0, adaptiveHeight: !1, appendArrows: t(o), appendDots: t(o), arrows: !0, asNavFor: null, prevArrow: '', nextArrow: '', autoplay: !1, autoplaySpeed: 3e3, centerMode: !1, centerPadding: "50px", cssEase: "ease", customPaging: function(e, o) { return t(''), jQuery(".page-central_gera_troca #form10").length && jQuery(".page-central_gera_troca #form10").append(''), jQuery(".page-central_senha #frm2").length && jQuery(".page-central_senha #frm2").append(''), jQuery(".formulario-contato").length && jQuery(".formulario-contato").append(''), jQuery(".page-search #vitrine-catalogo form").length) { var o = '
'; o += "

O que pode ter acontecido?

", o += "", o += "

O que eu posso fazer?

", o += "", o += "
", jQuery(".page-search #vitrine-catalogo h1.color").append(o), jQuery(".page-search #vitrine-catalogo form").append('') } if (jQuery(".page-customer .board form").length && jQuery(".page-customer .board form").append(''), jQuery(".page-checkout_cart #cesta_produtos .AvancarTopo").length) { var i; jQuery(".page-checkout_cart #cesta_produtos .AvancarTopo").after('
'), jQuery("#tabela_carrinho .qntd").focus(function() { i = jQuery(this).val() }), jQuery("#tabela_carrinho .qntd").change(function() { var t = jQuery(this), e = parseInt(t.val()); return Number.isInteger(e) && e > 0 && e < 100 ? t.siblings(".refresh").click() : t.val(i) }) } jQuery(document).scroll(function() { CheckIfProductIsVisibleAndShowIt() }), setTimeout(function() { CheckIfProductIsVisibleAndShowIt() }, 1e3), initializeOfferCountdown() });