function toggleChevron(e){$(e.target).prev(".panel-heading").find("i.indicator").toggleClass("hasMinus hasPlus")}function toggleChevronLateral(e){$(e.target).prev("#MainMenu").find("i.indicator").toggleClass("hasMinus hasPlus")}function ga_TrackGoal(e,t,o){"function"==typeof gtag&&(""!=o?gtag("event",t,{event_category:e,event_label:o}):gtag("event",t,{event_category:e}))}!function(e){"use strict";e.fn.equalHeight=function(){var t=[];return e.each(this,(function(o,a){var s,i=e(a);s="border-box"===i.css("box-sizing")||"border-box"===i.css("-moz-box-sizing")?i.innerHeight():i.height(),t.push(s)})),this.css("height",Math.max.apply(window,t)+"px"),this},e.fn.equalHeightGrid=function(t){var o=this.filter(":visible");o.css("height","auto");for(var a=0;a100?$("a.page-scroll").addClass("aparece"):$("a.page-scroll").removeClass("aparece")})),$("a.page-scroll").bind("click",(function(e){$("html, body").stop().animate({scrollTop:0},1500,"easeInOutExpo"),e.preventDefault()}))})),$(document).ready((function(){$('[data-toggle="offcanvas"]').click((function(){$(".row-offcanvas").toggleClass("active")}))})),$("[data-load-remote]").on("click",(function(e){e.preventDefault();var t=$(this),o=t.data("load-remote");o&&$(t.data("remote-target")).load(o)})),$(".btn.load").on("click",(function(){var e=$(this);e.button("loading"),setTimeout((function(){e.button("reset")}),3e3)})),$("#accordion").on("hidden.bs.collapse",toggleChevron),$("#accordion").on("shown.bs.collapse",toggleChevron),$("#divCat").on("hidden.bs.collapse",toggleChevron),$("#divCat").on("shown.bs.collapse",toggleChevron),$(window).bind("resize",(function(){$(this).width()<767?($("#accordion .panel-collapse:not(.list-group)").collapse("hide"),$("#divCat .panel-collapse:not(.list-group)").collapse("hide"),$("#filtros .panel-collapse:not(.list-group)").collapse("hide")):$(this).width()>767&&($("#accordion .panel-collapse:not(.list-group)").collapse("show"),$("#divCat .panel-collapse:not(.list-group)").collapse("show"),$("#filtros .panel-collapse:not(.list-group)").collapse("show"))})),$(window).bind("load",(function(){$(this).width()>767&&($("#accordion .panel-collapse:not(.list-group)").collapse("show"),$("#divCat .panel-collapse:not(.list-group)").collapse("show"),$("#filtros .panel-collapse:not(.list-group)").collapse("show"))})),$((function(){$('[data-toggle="tooltip"]').tooltip()})),$(document).ready((function(){"undefined"!=typeof sliders&&sliders.forEach((function(e,t){$(".imageShowCase."+t).slick({dots:e.dots,infinite:!0,speed:1e3,arrows:e.arrows,autoplay:!0,autoplaySpeed:e.autoplaySpeed,fade:e.fade,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})}))})),$(document).on("ready",(function(){"undefined"==typeof setSlides?cantSlides=10:cantSlides=setSlides(),$(".brand-carousel").slick({dots:!1,infinite:!0,speed:1500,arrows:!1,autoplay:!0,slidesToShow:cantSlides,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:6,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:1}}]})})),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".categoria-lateral-colapsable > a").forEach((e=>{e.addEventListener("click",(function(t){t.preventDefault();const o=e.nextElementSibling;o?o.classList.contains("show")?(o.classList.remove("show"),e.setAttribute("aria-expanded","false")):(o.classList.add("show"),e.setAttribute("aria-expanded","true")):window.location.href=e.getAttribute("href")}))}));const e=Array.from(document.querySelectorAll(".categoria-lateral-colapsable.active > a"));if("undefined"!=typeof codigo_categoria){const t=document.querySelector(`#categoria-lateral-colapsable-${codigo_categoria} > a`),o=document.querySelector(`#categoria-lateral-colapsable-${codigo_categoria}`);o&&o.classList.add("active"),t&&e.push(t)}e.forEach((e=>{!function(e){const t=e.nextElementSibling;t&&!t.classList.contains("show")&&(t.classList.add("show"),e.setAttribute("aria-expanded","true"));let o=e.parentElement.closest(".categoria-lateral-colapsable");for(;o;){const e=o.querySelector("a");if(e&&"true"!==e.getAttribute("aria-expanded")){e.setAttribute("aria-expanded","true");const t=e.nextElementSibling;t&&!t.classList.contains("show")&&t.classList.add("show")}o=o.parentElement.closest(".categoria-lateral-colapsable")}}(e)}))})),document.addEventListener("click",(e=>{const t=e.target.closest(".qty-btn");if(!t)return;const o=t.closest(".quantity-control").querySelector(".qty-input"),a=t.dataset.action,s=Number(o.min)||1,i=Number(o.max)||1/0;let n=Number(o.value)||s;n+="plus"===a?1:-1,n=Math.max(s,Math.min(i,n)),o.value=n,o.setAttribute("aria-valuenow",n);const l=t.closest(".quantity-control");l.querySelector('[data-action="minus"]').disabled=n<=s,l.querySelector('[data-action="plus"]').disabled=n>=i}));