if(jQuery(".form_depto .btn_submit img").remove(),jQuery(document).ready(function(){let e=document.querySelector("body"),t=0,o=0,a=document.querySelector("#header").offsetHeight;e.setAttribute("data-scrolling",!1),e.setAttribute("data-scrolling-mode","none"),window.addEventListener("scroll",()=>{0==(t=window.pageYOffset)?e.setAttribute("data-scrolling",!1):e.setAttribute("data-scrolling",!0),t>a?(o>t?e.setAttribute("data-scrolling-mode","up"):o0){if(jQuery,jQuery(document).ready(function(e){e(document).ajaxComplete(function(e,t,o){if(-1!==o.url.indexOf("cart_preview")){var a=new CustomEvent("UPDATECART");window.dispatchEvent(a)}})}),jQuery("#foto_p").removeAttr("data-target"),jQuery(document).ajaxComplete(function(e,t,o){jQuery("#plus").remove(),jQuery("#minus").remove(),jQuery(".page-product").length>0&&(jQuery("#quant").before(' '),jQuery("#quant").after(' '),jQuery("#precoDe").text(jQuery("#precoDe").text().replace("De","")),0==jQuery("#foto_p").find(".flags__ul").length&&jQuery(".page-product__image .flags__ul").clone().appendTo("#foto_p"))}),jQuery(document).on("click","#plus",function(){var e=jQuery("#quant"),t=parseInt(e.val());t&&e.val(t+1)}),jQuery(document).on("click","#minus",function(){var e=jQuery("#quant"),t=parseInt(e.val());t-1>0&&e.val(--t)}),jQuery(".fotosCompreJunto").length>0)jQuery.each(jQuery(".fotosCompreJunto .produto img"),function(){aux=(aux=jQuery(this).attr("src")).replace("/90_","/180_"),jQuery(this).attr("src",aux)});jQuery(".related__list").slick({mobileFirst:!0,centerMode:!0,slidesToShow:2,slidesToScroll:2,centerPadding:"0px",arrows:!0,dots:!1,prevArrow:'',nextArrow:'',responsive:[{breakpoint:424,settings:{centerPadding:"0px",slidesToShow:2,slidesToScroll:2}},{breakpoint:500,settings:{centerPadding:"00px",slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{centerPadding:"00px",slidesToShow:2,slidesToScroll:2}},{breakpoint:991,settings:{centerMode:!1,dots:!1,centerPadding:"0px",arrows:!0,slidesToShow:4,slidesToScroll:4}}]});const e=jQuery(".more-payments-modal").attr("id");jQuery(".more-payments-content").load("/mvc/store/product/payment_options",{loja:1016754,IdProd:e}),setTimeout(function(){jQuery(".more-payments-content > li, .more-payments-content > li > a, .more-payments-content > li > table").removeAttr("id"),jQuery(".more-payments-content .Forma1 li").length?jQuery(".more-payments-content").show():jQuery(".more-payments-content").remove()},5e3),jQuery(".more-payments-trigger").on("click",function(){jQuery(".more-payments").toggleClass("open-payment")})}jQuery(document).ready(function(){jQuery(".page-search").length&&jQuery(".page-search #vitrine-catalogo fieldset [type=image]").after('').remove()}),jQuery('.banner--javascript .banner__list[data-carousel="true"]')&&jQuery('.banner--javascript .banner__list[data-carousel="true"]').length&&jQuery(".banner--javascript .banner__list").not(".slick-initialized").slick({mobileFirst:!1,infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,autoplay:!0,autoplaySpeed:3e3,responsive:[{breakpoint:424,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]});var controls=Array.from(document.querySelectorAll("[aria-controls]")),body=document.querySelector("body");function getCookie(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),a=0;a{e.addEventListener("click",e=>{var t=`#${e.currentTarget.getAttribute("aria-controls")}`;if(-1===t.indexOf("slick")){var o=document.querySelector(t),a=o.getAttribute("aria-hidden");"false"!=a&&"true"!=a&&(a="true"),"false"!=o.getAttribute("data-fixed")&&("true"===a?body.classList.add("fixed"):body.classList.remove("fixed")),o.setAttribute("aria-hidden","true"!==a)}})}),jQuery(".page-product").length>0&&jQuery(document).ready(function(e){var t=e("#bt-submit-comments");if(t){var o=e('');t.after(o),o.click(()=>{t.trigger("click")})}}),$('.instafeed[data-carousel="true"] .instafeed__list')&&$('.instafeed[data-carousel="true"] .instafeed__list').length&&$('.instafeed[data-carousel="true"] .instafeed__list').not(".slick-initialized").slick({mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,infinite:!0,autoplay:!0,autoplaySpeed:3e3,responsive:[{breakpoint:240,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:720,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:960,settings:"unslick"}]});var exists=getCookie("LGPDAlertToKids");function debounce(e){var t;return function(o){t&&clearTimeout(t),t=setTimeout(e,200,o)}}function navigationHiddenResize(){var e=$(".menu--navigation .menu__ul--nv1").outerWidth(),t=0;$(".menu--navigation .menu__item--nv1").removeClass("menu__item--hidden"),$(".menu--navigation .menu__item--nv1").each(function(){(t+=$(this).outerWidth())>e&&$(this).addClass("menu__item--hidden")})}function navigationAlign(){$(".menu--navigation").each(function(){$(this).find(".menu--nv2").removeClass("menu--rtl"),$(this).find(".menu--nv2").each(function(){var e=$(this).closest(".menu--nv1").outerWidth();$(this).offset().left+$(this).outerWidth()>e&&$(this).addClass("menu--rtl")})})}"true"!=exists&&(jQuery("body").addClass("show-lgpd-alert"),jQuery(".lgpd-alert__close").on("click",function(e){e.target===e.currentTarget&&(jQuery("body").removeClass("show-lgpd-alert"),window.sessionStorage.setItem("lgpd-alert",1),document.cookie="LGPDAlertToKids=true")}));var childs=Array.from(document.querySelectorAll(".menu__item--has-child"));if(childs.forEach(e=>{e.addEventListener("click",e=>{const t=e.target;if(e.currentTarget===t){var o=t.getAttribute("aria-expanded");"true"!==o&&"false"!==o&&(o="false"),t.setAttribute("aria-expanded","true"!==o),jQuery(t).find("> .menu--sub").slideToggle()}},!1)}),nArrow='',pArrow='',jQuery(".news__content").load("/noticias .noticias",function(){jQuery(".news").show(),setTimeout(()=>{$('.news[data-carousel="true"] ul.noticias').length&&$('.news[data-carousel="true"] ul.noticias').not(".slick-initialized").slick({mobileFirst:!0,slidesToShow:1,slidesToScroll:1,infinite:!1,arrows:!0,prevArrow:pArrow,nextArrow:nArrow,responsive:[{breakpoint:450,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1,vertical:!0,arrows:!1}}]})},500)}),jQuery(".popupNews").length){function createpopupNewsCookies(){setTimeout(function(){jQuery(".popupNews").addClass("openned"),closePopupNews()},3e3)}function closePopupNews(){jQuery(".popupNews__close").on("click",function(){jQuery(".popupNews").removeClass("openned"),setCookies("popupNewsToKids",!0,3)}),jQuery(".popupNews__mask").on("click",function(){jQuery(".popupNews").removeClass("openned"),setCookies("popupNewsToKids",!0,3)})}getCookieValueByName("popupNewsToKids")||createpopupNewsCookies()}var url=window.location.pathname;function getCookieValueByName(e){const t=("; "+document.cookie).split("; "+e+"=");return 2==t.length&&t.pop().split(";").shift()}function setCookies(e,t,o){var a=new Date;a.setTime(a.getTime()+24*o*60*60*1e3);var r="expires="+a.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}function loadThumb(){var e=jQuery(".produto-imagem-miniaturas");if(e.length){e.hide();var t=e.find("img, .icon-video");let o;jQuery(".thumbs").length&&jQuery(".thumbs").remove(),t.length&&(o='
',o+='
    ',t.each((e,t)=>{o+=createThumb(jQuery(t).attr("src"),e)}),o+="
",o+="
",e.after(o),jQuery(document).trigger("thumbs:start"),jQuery(".thumbs a").click(t=>{let o=jQuery(t.currentTarget).attr("data-index");selectThumb(o),jQuery(t.currentTarget).find(".thumbs__video").length?jQuery("#colVideo").show():(jQuery(jQuery("a",e).eq(o)).mouseover().click(),jQuery("#colVideo").hide()),t.preventDefault()}),selectThumb("0"))}}function selectThumb(e){jQuery(".thumbs li").removeClass("thumbs__item--actived"),jQuery(`.thumbs [data-index=${e}]`).closest("li").addClass("thumbs__item--actived")}function createThumb(e,t){return e?`
  • `:`
  • `}if("/mvc/store/newsletter/"==url&&setCookies("popupNewsToKids",!0,3),document.addEventListener("DOMContentLoaded",function(){let e=[].slice.call(document.querySelectorAll("img.lazy-new")),t=!1;const o=function(){!1===t&&(t=!0,setTimeout(function(){e.forEach(function(t){t.getBoundingClientRect().top<=window.innerHeight&&t.getBoundingClientRect().bottom>=0&&"none"!==getComputedStyle(t).display&&(t.src=t.dataset.src,t.srcset=t.dataset.srcset,0===(e=e.filter(function(e){return e!==t})).length&&(document.removeEventListener("scroll",o),window.removeEventListener("resize",o),window.removeEventListener("orientationchange",o)),setTimeout(()=>{t.classList.remove("lazy-new")},100))}),t=!1},200))};document.addEventListener("scroll",o),window.addEventListener("resize",o),window.addEventListener("orientationchange",o)}),jQuery(document).ready(function(){jQuery(".product__button").length&&jQuery(".product__button").on("click",function(){const e=jQuery("html").attr("data-session"),t=jQuery(this).attr("data-id");jQuery.ajax({method:"POST",url:"/web_api/cart/",contentType:"application/json; charset=utf-8",data:'{"Cart":{"session_id":"'+e+'","product_id":"'+t+'", "quantity":"1" ,"constiant_id":"0"}}'}).done((e,t,o)=>{jQuery(this).closest(".product").find(".product__header").append($('Produto adicionado').hide().fadeIn(100)),setTimeout(function(){jQuery(".buy__button--ok").fadeOut(100,function(){$(this).remove()})},1e3);const a=new CustomEvent("UPDATECART",{detail:e.data});window.dispatchEvent(a)}).fail(function(e,t,o){jQuery.parseJSON(e.responseText)})})}),"function"==typeof $tray&&$tray(document).on("thumbs:start",function(){aArrow='',bArrow='',console.log(nArrow),$(".thumbs__list").slick({slidesToShow:5,slidesToScroll:1,dots:!1,prevArrow:bArrow,nextArrow:aArrow,arrows:!0,responsive:[{breakpoint:993,settings:{slidesToShow:4,slidesToScroll:1}}]})}),nArrow='',pArrow='',$('.reviews[data-carousel="true"] .dep_lista')&&$('.reviews[data-carousel="true"] .dep_lista').length&&(jQuery(".dep_lista li").not(":visible").remove(),$(".dep_lista").not(".slick-initialized").slick({mobileFirst:!0,slidesToShow:1,slidesToScroll:1,prevArrow:pArrow,nextArrow:nArrow,infinite:!0,responsive:[{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:3}}]})),$('.rulers[data-carousel="true"] .rulers__list')&&$('.rulers[data-carousel="true"] .rulers__list').length&&jQuery(window).width()<991&&(jQuery(".rulers__sep").remove(),$('.rulers[data-carousel="true"] .rulers__list').not(".slick-initialized").slick({mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,infinite:!0,autoplay:!0,autoplaySpeed:3e3,responsive:[{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:3}}]})),jQuery(document).ready(function(){jQuery(window).ajaxComplete(function(e,t,o){o&&-1!==o.url.indexOf("variant_gallery")&&loadThumb()}),loadThumb()}),jQuery(".page-product").length>0){var aux;if(jQuery(".fotosCompreJunto").length>0)jQuery.each(jQuery(".fotosCompreJunto .produto img"),function(){aux=(aux=jQuery(this).attr("src")).replace("/90_","/180_"),jQuery(this).attr("src",aux)});jQuery(".varTit").each(function(){jQuery(this).text(jQuery(this).text().replace(":",""))}),jQuery(".fotosCompreJunto>div").unwrap(),jQuery(".precoCompreJunto").before("
    =
    "),jQuery('[id*="form_compre_junto"]').append(jQuery(".comprejunto_botao")),jQuery(".compreJunto").show()}jQuery(document).ready(function(){jQuery(window).width()>991&&(jQuery(".menu__item--nv1").on("mouseover",function(){jQuery(".fade-on").addClass("fade-open")}),jQuery(".menu__item--nv1").on("mouseout",function(){jQuery(".fade-on").removeClass("fade-open")}))}),jQuery(".button--menu").click(function(){jQuery("body").addClass("menu__open")}),jQuery(".button__close--navigation").click(function(){jQuery("body").removeClass("menu__open")}),nArrow='',pArrow='',$(".showcase__list[data-carousel=on]")&&$(".showcase__list[data-carousel=on]").each(function(){$(this).find(".showcase__item--empty").remove(),$(this).not(".slick-initialized").slick({mobileFirst:!1,slidesToShow:4,slidesToScroll:4,prevArrow:pArrow,nextArrow:nArrow,infinite:!0,responsive:[{breakpoint:960,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:640,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:420,settings:{slidesToShow:2,slidesToScroll:2}}]})}),jQuery(document).ready(function(e){e(".products-related .showcase__list")&&e(".products-related .showcase__list").each(function(){e(this).not(".slick-initialized").slick({mobileFirst:!1,slidesToShow:4,slidesToScroll:4,prevArrow:pArrow,nextArrow:nArrow,responsive:[{breakpoint:640,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:960,settings:{slidesToShow:3,slidesToScroll:3}}]})})});