function obtenerNovedades(){$(".owl-carousel-novedades").html(""),$.getJSON(`/functions/busquedas_personalizadas/json_productos?noshow&id_categoria=13&minimo_precio=0&maximo_precio=100000000&ordenar_por=1&etiquetas=${[].toString()}&tallas=${[].toString()}&colores=${[].toString()}&paginacion=20&pagina=1&es_movil=false`,function(e){!0==e.hay_productos||"true"==e.hay_productos?($(".seccion-mas-nuevo").show(),e.productos.map(function(e){var o="";if(o=e.tiene_descuento?`$${number_format(e.precio,0)}$${number_format(e.precio_descuento,0)}`:"$"+number_format(e.precio,0),2==e.tipo_producto&&e.tiene_precios_variacion&&(o="",arregloPrecios=[],arregloPrecioDescuento=[],tieneDescuentoVariacion=!1,e.variaciones.forEach(e=>{e.precio.tiene_precio&&(arregloPrecios.push(e.precio.precio_iva),e.precio.tiene_descuento&&e.precio.precio_descuento_iva>0&&(tieneDescuentoVariacion=!0,arregloPrecioDescuento.push(e.precio.precio_descuento_iva)))}),arregloPrecios.length>0)){var s=tieneDescuentoVariacion?"style='text-decoration:line-through'":"";arregloPrecios.length>1?(arregloPrecios.sort(function(e,o){return e-o}),o+=`$${number_format(arregloPrecios[0],0)} - $${number_format(arregloPrecios[arregloPrecios.length-1],0)}`):o=` $${number_format(arregloPrecios[0],0)} COP `,tieneDescuentoVariacion&&(arregloPrecioDescuento.length>1?(arregloPrecioDescuento.sort(function(e,o){return e-o}),o+=`$${number_format(arregloPrecioDescuento[0],0)} - $${number_format(arregloPrecioDescuento[arregloPrecioDescuento.length-1],0)} COP`):o+=` $${number_format(arregloPrecioDescuento[0],0)} COP `)}$(".owl-carousel-novedades").append(`

${e.nombre_producto}

${o}

`)})):$(".seccion-mas-nuevo").hide()}).done(function(){$(".owl-carousel-novedades").owlCarousel({lazyLoad:!0,loop:!0,margin:20,nav:!0,autoplay:!0,autoplayTimeout:2e3,autoplayHoverPause:!0,responsive:{0:{items:2},600:{items:3},1e3:{items:5},1700:{items:6}}})})}function corregirRedimensionIndex(){if($(".seccion_diseno_nacional").height($("#imagen-love").height()),$(".columna-spotify").height($(".columna-spotify").first().width()),$(window).width()>=992){window.pageYOffset<=30&&$("#imagen-header-responsive").attr("src",logoPrincipalTransparente),$(".seccionCompletaIndex").css("margin-top","-"+$("#header-fixed").height()+"px");var e=$("#footer-fixed").height(),o=$(".owl-carousel-slider .owl-dots").height();$(".owl-carousel-slider .owl-dots").css("bottom",e+110),$(".btn-comprar-slider").css("bottom",e+120+o),$(".seccion-big-max").css("height","inherit"),$(".btn-ver-mas").removeClass("btn-block")}else{var e=$(".barra-movil .navbar").outerHeight(),o=50;$(".owl-carousel-slider .owl-dots").each(function(){$(this).is(":visible")&&(o=$(this).height())}),$(".seccion-big-max").height($(".seccion-big-max").first().width()),$(".btn-ver-mas").addClass("btn-block"),$(".imagen-movil").height($(".imagen-movil").first().width())}}window.onbeforeunload=function(){window.scrollTo(0,0)},$(function(){AOS.init({duration:1200}),$(".rck-arrow-down-movil,#arrow-down").on("click",function(){document.getElementById("rckSecMasNuevo").scrollIntoView({behavior:"smooth"})}),"existe"!=Cookies.get("modal-video-6")&&$("#modalNewRockgota").modal("show"),$("#modalNewRockgota").on("hidden.bs.modal",function(){Cookies.set("modal-video-6","existe",{expires:.5}),$("#modalNewRockgota .modal-body").html("")}),$(".owl-carousel-slider").owlCarousel({loop:!0,margin:0,nav:!0,autoplay:!0,autoplayTimeout:10000,autoplayHoverPause:!0,responsive:{0:{items:1}}}),obtenerNovedades(),$("#header-fixed").hover(function(){$(this).hasClass("transparent")&&$("#imagen-header-responsive").attr("src",logoPrincipal)},function(){$(this).hasClass("transparent")&&$("#imagen-header-responsive").attr("src",logoPrincipalTransparente)}),window.onscroll=function(){$(window).width()>=992&&(window.pageYOffset>30?($("#header-fixed,#footer-fixed").removeClass("transparent"),$("#imagen-header-responsive").attr("src",logoPrincipal)):$(".seccion-buscador-desplegado").is(":visible")||($("#header-fixed,#footer-fixed").addClass("transparent"),$("#imagen-header-responsive").attr("src",logoPrincipalTransparente)))},$(window).width()>=992&&$("#header-fixed,#footer-fixed").addClass("transparent"),corregirRedimensionIndex(),window.addEventListener("resize",corregirRedimensionIndex),(url=new URL(window.location.href)).searchParams.has("registro_confirm")&&($(window).width()>991?$("#modalConfirmacionRegistro").modal("show"):abrirModalEsquina("#pestaniaConfirmacionRegistro"))});