var cambiarRecomendados=!1;function agregarNoHayFavoritos(o){$(".seccion-productos-favoritos").hide(),$(".favorito_sin").html(`

NO TIENES NING\xdaN PRODUCTO COMO FAVORITO

Agrega alg\xfan producto como favorito y podr\xe1s visualizarlo aqu\xed

VER CARRITO VER NOVEDADES
`),$(".favorito_sin").show()}function construirProductoFavorito(o,a,t,i,c,s,r,n,e){var l="";return`
Ref. ${e}
`}function obtenerFavoritos(){bloqueaUI("#modal_favoritos"),$.getJSON("/functions/carrito_nw/get_favoritos?noshow",function(o){(!0==o.hay_favoritos||"true"==o.hay_favoritos)&&("true"==o.resultados.hayProductos||!0==o.resultados.hayProductos)?($(".favorito_sin").hide(),o.es_sesion?$(".seccion-productos-favoritos").html(""):$(".seccion-productos-favoritos").html(``),o.resultados.productos.map(function(o){$(".seccion-productos-favoritos").append(construirProductoFavorito(o.id_producto,o.nombre_producto,o.tiene_descuento,o.precio,o.precio_descuento,o.tipo_producto,o.src1,o.slug,o.sku))}),$(".seccion-productos-favoritos").show(),desbloqueaUI("#modal_favoritos")):(agregarNoHayFavoritos(o.es_sesion),desbloqueaUI("#modal_favoritos"))}).fail(function(o){agregarNoHayFavoritos(),desbloqueaUI("#modal_favoritos")})}function agregarNoHayProductosCarrito(o){if($(".seccionListadoCarrito").hide(),$(".cantidad-carrito").html("0"),$(".total-def-carrito").html("0"),$("#header_cantidad_carrito").html("0"),$(".carrito_sin").html(`

TU CARRITO EST\xc1 VAC\xcdO

Aqu\xed te sugerimos algunas prendas que te pueden gustar

VER NOVEDADES
`),"true"==o.sugerencias.hayProductos||!0==o.sugerencias.hayProductos){var a='
';o.sugerencias.productos.map(function(o){a+=`
${construirSugerencia(o.id_producto,o.nombre_producto,o.tiene_descuento,o.precio,o.precio_descuento,o.tipo_producto,o.src1,o.src2,o.slug,o.tiene_categoria_intencion,o.texto_categoria,o.codigo_color,o.producto_esta_agotado)}
`}),a+="
",$(".carrito_sin .seccion-recomendados").append(a),$(".carrito_sin").show(),cambiarRecomendados=!0,clearTimeout(ejecutarTimeout),generarRecomendados()}$(".lazy").lazy()}function eliminarRockgocash(){bloquearPagina(),$.post("/functions/carrito_nw/eliminar_rockgocash?noshow",function(o){$("#notificaciones").html(o.notificacion),(!0==o.resultado||"true"==o.resultado)&&($("#modalInfoCheckout").modal("hide"),abrirModalError("Rockgocash eliminado","Eliminamos el saldo aplicado de forma exitosa",2),obtenerCarrito()),desbloquearPagina()},"json").fail(function(o){desbloquearPagina()})}function eliminarCupon(o){bloqueaUI("#modal_carrito"),$.post("/functions/carrito_nw/eliminar_cupon?noshow",{cupon:o},function(o){$("#notificaciones").html(o.notificacion),(!0==o.exito||"true"==o.exito)&&($("#modalInfoCheckout").modal("hide"),obtenerCarrito()),desbloqueaUI("#modal_carrito")},"json").fail(function(o){desbloqueaUI("#modal_carrito")})}function cartAgregarDescuentos(o){if(!o.tiene_descuento)return $(".detalle-descuentos-carrito").hide();$(".detalle-descuentos-carrito").show(),$(".flotante-subtotal").html("$ "+o.subtotal),$(".flotante-total").html("$ "+o.precio_total_form),$(".flotante-contenedor-extra").html(""),o.cupones.map(function(o){textoDes=o.descuento_aportado<=0?"No aplica":"-$ "+number_format(o.descuento_aportado,0),$(".flotante-contenedor-extra").append(`
CUP\xd3N: ${o.cupon} ${textoDes}
`)}),o.tiene_saldo&&$(".flotante-contenedor-extra").append(`
ROCKGOCASH: -$${number_format(parseFloat(o.rockgocash)+parseFloat(o.rockgocash_promocional),0)}
`)}function cartActualizarResumen(o){$("#header_cantidad_carrito,.cantidad-carrito,.cantidad-carrito-addon").html(`${o.cantidad_productos}`),$(".total-def-carrito").html(`$${o.precio_total_form}`)}function cartAgregarProductos(o){$(".listadoProductosCarrito").html(""),o.productos.map(function(o){$(".listadoProductosCarrito").append(construirProductoCarrito(o))}),$(".seccionListadoCarrito").show()}function cartAgregarInformacionEnvio(o){o.tiene_envio_gratuito?($(".total-carrito-alerta").html(`
Tu cup\xf3n incluye env\xedo gratis para
Env\xedo gratis
`),$(".flotante-contenedor-standard").html(`

Tu cup\xf3n incluye env\xedo gratuito

`)):o.precio_total-o.total_carrito_excluir_standard Te faltan $${number_format(o.envio_standar-(o.precio_total-o.total_carrito_excluir_standard),0)} para que tu env\xedo standard sea gratis.
`),$(".flotante-contenedor-standard").html(`

Te faltan $${number_format(o.envio_standar-(o.precio_total-o.total_carrito_excluir_standard),0)} para que tu env\xedo standard sea gratis.

`)):($(".total-carrito-alerta").html(`
Superaste $${number_format(o.envio_standar,0)} , ahora tu env\xedo standard es gratis
`),$(".flotante-contenedor-standard").html(`

Superaste $${number_format(o.envio_standar,0)} , ahora tu env\xedo standard es gratis

`))}function cartAgregarEventosDescuentos(){$(".detalle-descuentos-ind").each(function(){tippy(this,{content:$(this).data("html"),theme:"t-blanco-hueso",allowHTML:!0,placement:"left"})}),$(".alerta-carrito-distinto").each(function(){tippy(this,{content:$(this).data("html"),theme:"t-blanco-hueso",allowHTML:!0,placement:"left"})})}function cartActualizarUnidades(o,a,t){bloqueaUI(".contenedor-carrito-check"),$.post("/functions/carrito_nw/actualizar_cantidad_carrito?noshow",{id_producto:o,id_producto_hijo:a,cantidad:t},function(o){!0==o.exito||"true"==o.exito?obtenerCarrito():$("#notificaciones").html(o.notificacion)},"json").done(function(){desbloqueaUI(".contenedor-carrito-check")}).fail(function(o){desbloqueaUI(".contenedor-carrito-check")})}function cartEliminarProducto(o){bloqueaUI("#modal_carrito"),$.post("/functions/carrito_nw/eliminar_carrito?noshow",{id_producto:o},function(o){!0==o.exito||"true"==o.exito?obtenerCarrito():$("#notificaciones").html(o.notificacion),desbloqueaUI("#modal_carrito")},"json").fail(function(o){desbloqueaUI("#modal_carrito")})}function cartAgregarEventos(){$(".elim-carr").click(function(){cartEliminarProducto($(this).data("producto"))}),$(".accion-menos").click(function(){let o=$(this).data("tipo"),a=$(this).data("producto"),t=$(".cant-pr-"+a).data("cantidad"),i;cartActualizarUnidades(2==o?$(this).data("papa"):a,2==o?a:0,t-1)}),$(".accion-mas").click(function(){let o=$(this).data("tipo"),a=$(this).data("producto"),t=$(".cant-pr-"+a).data("cantidad"),i;cartActualizarUnidades(2==o?$(this).data("papa"):a,2==o?a:0,t+1,!0)}),$(".es-favorito").hover(function(){$(this).attr("src","/img/corazon.svg")},function(){$(this).attr("src","/img/dark_corazon.svg")}),$(".no-es-favorito").hover(function(){$(this).attr("src","/img/dark_corazon.svg")},function(){$(this).attr("src","/img/corazon.svg")})}function obtenerCarrito(){bloqueaUI("#modal_carrito"),$(".flotante-detalle").hide("slide",{direction:"right"},300),$.getJSON("/functions/carrito_nw/get_carrito?noshow",function(o){if(!o.hay_productos)return agregarNoHayProductosCarrito(o);cartActualizarResumen(o),cartAgregarDescuentos(o),$(".carrito_sin").hide(),cartAgregarProductos(o),cartAgregarInformacionEnvio(o)}).done(function(){cartAgregarEventosDescuentos(),cartAgregarEventos(),desbloqueaUI("#modal_carrito")}).fail(function(o){desbloqueaUI("#modal_carrito")})}function removerFavorito(o){bloqueaUI("#modal_carrito"),bloqueaUI("#modal_favoritos"),$.post("/functions/carrito_nw/eliminar_favorito?noshow",{id_producto:o},function(a){!0==a.exito||"true"==a.exito?(obtenerCarrito(),obtenerFavoritos(),("categoria"==actualPage||"search"==actualPage||"busquedas_personalizadas"==actualPage||"producto"==actualPage)&&modificarFavoritoManual(o)):($("#notificaciones").html(a.notificacion),desbloqueaUI("#modal_carrito"),desbloqueaUI("#modal_favoritos"))},"json").fail(function(o){desbloqueaUI("#modal_carrito"),desbloqueaUI("#modal_favoritos")})}function agregarFavorito(o){$.post("/functions/carrito_nw/agregar_favorito?noshow",{id_producto:o},function(a){(!0==a.exito||"true"==a.exito)&&(obtenerCarrito(),obtenerFavoritos(),("categoria"==actualPage||"search"==actualPage||"busquedas_personalizadas"==actualPage||"producto"==actualPage)&&modificarFavoritoManual(o)),$("#notificaciones").html(a.notificacion)},"json").fail(function(o){})}function aplicarCupon(){bloquearPagina(),$(".seccion-cupones-vigentes-add").html(""),$.getJSON("/functions/mi_cuenta_nw/obtener_informacion_cupones?noshow",function(o){o.hay_cupones?($(".rck-seccion-sin-cupones-vigentes").hide(300),$(".rck-seccion-con-cupones").show(300),$(".rck-main-button-acciones").show(300),o.cupones.map(function(o){$(".seccion-cupones-vigentes-add").append(construirCuponCarrito(o))})):($(".rck-seccion-con-cupones").hide(300),$(".rck-seccion-sin-cupones-vigentes").show(300),$(".rck-main-button-acciones").hide(300))}).done(function(){desbloquearPagina(),obtenerCuponesVencidos(),open_modal("#modalCuponesAplicar"),$(".detalle-cupon-carrito").click(function(){$("#modalCuponesAplicarMini .custom-modal-mini-modal-container").html(""),$("#modalCuponesAplicarMini .custom-modal-mini-modal-container").html(construirReglasCuponCarrito($(this).data("cupon"))),$(".rck-seccion-aplica-comprando").on("click",function(){$(".rck-seccion-aplica-comprando-detalle").is(":visible")?($(".rck-aplica-comprando").html("arrow_right"),$(".rck-seccion-aplica-comprando-detalle").hide(300)):($(".rck-aplica-comprando").html("arrow_drop_down"),$(".rck-seccion-aplica-comprando-detalle").show(300))}),abrirMiniModal("#modalCuponesAplicar","#modalCuponesAplicarMini")}),$(".card-cupones:not(.card-cupones-vencido)").on("click",function(){$(".card-cupones").removeClass("card-cupones-activo"),$(this).addClass("card-cupones-activo")})}).fail(function(){$(".rck-seccion-con-cupones").hide(300),$(".rck-main-button-acciones").hide(300),$(".rck-seccion-sin-cupones-vigentes").show(300),desbloquearPagina()})}function obtenerCuponesVencidos(){let o=".seccion-cupones-vencidos-add-carrito",a=".rck-seccion-con-cupones-vencidos-carrito",t=".rck-seccion-sin-cupones-vencidos-carrito";$(o).html(""),$.getJSON("/functions/mi_cuenta_nw/obtener_informacion_cupones?noshow&es_vencido=1",function(i){i.hay_cupones?($(t).hide(300),$(a).show(300),i.cupones.map(function(a){$(o).append(construirCuponCarrito(a,1))})):($(a).hide(300),$(t).show(300))}).done(function(){}).fail(function(){$(".rck-seccion-con-cupones").hide(300),$(".rck-main-button-acciones").hide(300),$(".rck-seccion-sin-cupones-vigentes").show(300),desbloquearPagina()})}function construirCuponCarrito(o,a){var t="",i="",c=parseInt(o.tipo_cupon);switch(c){case 1:t=o.porcentaje_descuento+"% ",i="Descuento total en carrito %";break;case 2:t="$"+number_format(o.valor_descuento,0),i="Descuento sobre el total del carrito $";break;case 3:t=o.porcentaje_descuento_producto+"%",i="Descuento en ciertos productos %";break;case 4:t="$"+number_format(o.valor_descuento_producto,0),i="Descuento sobre algunos productos $";break;case 5:t="Env\xedo gratis"}return`
`}function expiryDate(o){var a=moment(o).format("YYYY-MM-DD"),t=moment().format("YYYY-MM-DD"),i=moment(a).diff(t,"days");if(1==i)return"Expira a las 23:59hs.";var c,s=moment(t,"YYYY-MM-DD").add(i,"days"),r=s.format("DD");return"V\xe1lido "+r+"/"+s.format("MM")+"/"+s.format("YYYY")}function agregarCuponCarrito(o){bloqueaUI("#modalCuponesAplicar"),$.post("/functions/carrito_nw/aplicar_cupon?noshow",{cupon:o},function(o){o.exito||"true"==o.exito?($("#rckCuponAgregarCarrito").val(""),desbloqueaUI("#modalCuponesAplicar"),$(".contenido-terminos-cupon-aplicado").html(construirReglasCuponCarrito(o.cupon)),open_modal("#modalCuponAplicado"),obtenerCarrito()):(desbloqueaUI("#modalCuponesAplicar"),abrirModalError(o.titulo,o.mensaje,1))},"json").fail(function(o){desbloqueaUI("#modalCuponesAplicar")}).done(function(){$(".rck-seccion-aplica-comprando").on("click",function(){$(".rck-seccion-aplica-comprando-detalle").is(":visible")?($(".rck-aplica-comprando").html("arrow_right"),$(".rck-seccion-aplica-comprando-detalle").hide(300)):($(".rck-aplica-comprando").html("arrow_drop_down"),$(".rck-seccion-aplica-comprando-detalle").show(300))})})}$(function(){$(".cerrar-flotante-detalle").on("click",function(){$(".flotante-detalle").hide("slide",{direction:"right"},300)}),$(".abrir-detalle-descuentos").on("click",function(){$(window).width()>991?$(".flotante-detalle:first").is(":visible")?$(".flotante-detalle").hide("slide",{direction:"right"},300):$(".flotante-detalle").show("slide",{direction:"right"},300):$("#modalInfoCheckout").modal("show")}),$(".rck-btn-add-cupon-carrito").on("click",function(){if(!(cupon=$("#rckCuponAgregarCarrito").val()))return abrirModalError("SELECCIONA UN CUP\xd3N","Debes escribir el c\xf3digo del cup\xf3n",1),!1;agregarCuponCarrito(cupon)})}),$(function(){obtenerCarrito(),obtenerFavoritos(),$(".rck-options-menu-opcion-carrito").on("click",function(){$(".rck-options-menu-opcion-carrito").removeClass("rck-options-menu-opcion-activa"),$(this).addClass("rck-options-menu-opcion-activa"),$(".seccion-cupones-carrito-"+$(this).data("menu")).is(":visible")||($(".seccion-cupones-mostrados-carrito").hide(300),$(".seccion-cupones-carrito-"+$(this).data("menu")).show(300),"historial"==$(this).data("menu")?$("#btnAgregarCuponCarritoInferior").hide(300):$("#btnAgregarCuponCarritoInferior").show(300))}),$("#btnAgregarCuponCarritoInferior").on("click",function(){(cupon=$('input[name="cupon-radio-carrito"]:checked').val())?agregarCuponCarrito(cupon):abrirModalError("Error aplicando tu cup\xf3n","Debes seleccionar un cup\xf3n a aplicar",1)})});var palabraDes=esDiaSinIVA?"D\xeda sin IVA":"Descuento";function construirPrecioSimpleCarrito(o){let a="";if(o.cantidad=parseInt(o.cantidad),o.precio_descuento>0&&o.precio_descuentoDetalle

`,i+=`

Precio x unidad$${number_format(o.precio_unitario_sin,0)}

`,o.precio_unitario_descuento>0&&c!=o.precio_unitario_sin&&(i+=`

${palabraDes} - $${number_format(c,0)}

`),o.descuentos_cupones.length>0&&o.descuentos_cupones.map(function(a){i+=`

${a.cupon}- $${number_format(parseInt(a.aporte)/o.cantidad,0)}

`}),i+=`

Precio final$ ${number_format(o.precio_descuento/o.cantidad,0)}

`,a=`$${o.precio_form} $${o.precio_descuento_form} ${t=``}`}else a=`$ ${o.precio_form}`;return a}function construirPrecioVariableCarrito(o){let a="
",t="",i=0,c=0,s=0,r=0,n=[];return o.variaciones.map(function(o){if(o.cantidad=parseInt(o.cantidad),o.precio.tiene_precio){if(o.precio_descuento>0&&o.precio_descuentoDetalle

`,textoExpDescuento+=`

Precio x unidad$${number_format(o.precio_neto/o.cantidad,0)}

`,o.precio_descuento_neto>0&&o.precio_descuento_neto${palabraDes} - $${number_format((o.precio_neto-o.precio_descuento_neto)/o.cantidad,0)}

`),""!=o.aportes_cupon&&(aportesCupon=o.aportes_cupon.split("/")).length>1)for(var a=1;a${dataCupon[0]}- $${number_format(parseInt(dataCupon[1])/o.cantidad,0)}

`;textoExpDescuento+=`

Precio final$ ${number_format(o.precio_descuento/o.cantidad,0)}

`,t+=`

error_outline $${number_format(o.precio_neto)} $${number_format(o.precio_descuento)} ${pregunta=``}

`}else t+=`

$${number_format(o.precio_neto)}

`}else if(i+=o.precio_neto,c+=o.precio_descuento,s+=o.precio_descuento_neto,r+=o.cantidad,0==n.length&&""!=o.aportes_cupon&&(aportesCupon=o.aportes_cupon.split("/")).length>1)for(var a=1;a0&&(c>0&&cDetalle

`,textoExpDescuento+=`

Precio x unidad$${number_format(i/r,0)}

`,s>0&&s!=i&&(textoExpDescuento+=`

Descuento - $${number_format((i-s)/r,0)}

`),n.length>0&&n.forEach(function(o){textoExpDescuento+=`

${o[0]}- $${number_format(o[1],0)}

`}),textoExpDescuento+=`

Precio final$ ${number_format(c/r,0)}

`,a+=`

$${number_format(i)} $${number_format(c)} ${pregunta=``}

`):a+=`

$${number_format(i)}

`),a+=t,a+="
"}function cartConstruirProductoSimple(o,a=!1){let t=a?"-check":"";return`
remove
${o.cantidad}
add
`}function cartConstruirProductoVariacion(o,a=!1){let t=a?"-check":"",i="",c="";return i+='
',o.variaciones.map(function(a){c+=`
`,a.informacion_opciones.map(function(o){c+=1==o.id_atributo?`
`:`
${o.nombre_opcion}
`}),c+=`
remove
${a.cantidad}
add
`,c+=`
`}),i+=c,i+="
"}function construirProductoCarrito(o){let a=1==o.tiene_precio_variacion&&2==o.tipo_producto?construirPrecioVariableCarrito(o):construirPrecioSimpleCarrito(o),t="";isIns&&(t=o.es_favorito?` `:` `);let i;return`
${o.tiene_categoria_intencion&&o.categoria_intencion.es_preventa?`
${o.categoria_intencion.nombre_categoria}
`:""}
Ref. ${o.sku}
${2==o.tipo_producto?cartConstruirProductoVariacion(o):cartConstruirProductoSimple(o)}
`}var ejecutarTimeout="";function generarRecomendados(){return $("#modal_carrito").is(":visible")&&cambiarRecomendados&&(ejecutarTimeout=setTimeout(()=>(getProductosRandom(),generarRecomendados()),5e3)),!1}function abrirModalCarrito(){open_modal("#modal_carrito");var o=$(".body-carrito").outerHeight()-($(".cabecera-carrito").outerHeight()+$(".total-carrito").outerHeight()+60);$(".listadoProductosCarrito").height(o),clearTimeout(ejecutarTimeout),generarRecomendados()}function abrirModalFavorito(){open_modal("#modal_favoritos")}function construirSugerencia(o,a,t,i,c,s,r,n,e,l,d,p,u){return cadenaCategoria="",cadenaPrecio="",(!0==l||"true"==l)&&(cadenaCategoria=`
${d}
`),`
`}function getProductosRandom(){$.getJSON("/functions/carrito_nw/obtener_productos_random?noshow",function(o){if("true"==o.hayProductos||!0==o.hayProductos){var a='
';o.productos.map(function(o){a+=`
${construirSugerencia(o.productoSugerencia,o.nombre_producto,o.tiene_descuento,o.precio,o.precio_descuento,o.tipo_producto,o.src1,o.src2,o.slug,o.tiene_categoria_intencion,o.texto_categoria,o.codigo_color,o.producto_esta_agotado)}
`}),a+="
",$(".carrito_sin .seccion-recomendados").hide("fade",{complete:function(){$(".carrito_sin .seccion-recomendados").html(a),$(".carrito_sin .seccion-recomendados").show("fade",500),$(".lazy").lazy()}},500)}}).done(function(){})}function obtenerClaseTipoCanal(o,a){if(a)return"gris";switch(parseInt(o)){case 1:return"verde";case 2:case 3:return"amarillo";case 4:return"gris";case 5:return"rosa"}}function obtenerTextoTipoCanal(o,a){if(a)return"VENCIDO";switch(parseInt(o)){case 1:return"WHATSAPP";case 2:return"WEB";case 3:return"EXCLUSIVO ONLINE";case 4:return"EXCLUSIVO F\xcdSICO";case 5:return"TODOS LOS CANALES"}}function construirReglasCuponCarrito(o){return parseInt(o.tipo_cupon),cadenaRetorno=`

DESCRIPCI\xd3N

${o.descripcion}

T\xc9RMINOS Y CONDICIONES

${o.cupon}
`,1==o.entran_productos_descuento&&(cadenaRetorno+='

*No se puede usar en productos previamente rebajados.

'),1==o.puede_acumularse&&(cadenaRetorno+='

*No se puede usar en conjunto con otros cupones o promociones.

'),2==o.ofrece_gratuito&&(cadenaRetorno+=`

*Este cup\xf3n ofrece env\xedo gratuito.

`),1==o.tipo_usuario&&(cadenaRetorno+=`

*Este cup\xf3n aplica a todos los usuarios.

`),2==o.tipo_usuario&&(cadenaRetorno+=`

*Este cup\xf3n es exclusivo para ti, no funcionar\xe1 para ninguna otra cuenta.

`),4==o.tipo_usuario&&(cadenaRetorno+=`

*Este cup\xf3n es exclusivo para ti por tu cumplea\xf1os.

`),5==o.tipo_usuario&&(cadenaRetorno+=`

*Este cup\xf3n es exclusivo para ti, y solo aplica en tu primera compra.

`),6==o.tipo_usuario&&(cadenaRetorno+=`

*Este cup\xf3n es exclusivo para ti por tu segunda compra, gracias por haber realizado tu primer compra..

`),cadenaRetorno+=`

*V\xe1lido solo para los canales que se especifican.

`,cadenaRetorno+=`

*${expiryDate(o.fecha_vencimiento)} o hasta agotar existencias.

`,cadenaRetorno+=`
Aplica comprando arrow_right
",o.gasto_minimo>0?cadenaRetorno+=`

*Aplica para comprar superiores a $${number_format(o.gasto_minimo,0)}

`:cadenaRetorno+=`

*Puedes usarlo en cualquier producto, no tiene m\xednimo de compra.

`,-1!=o.gasto_maximo&&(cadenaRetorno+=`

*Aplica para compras inferiores a $${number_format(o.gasto_maximo,0)}

`),-1!=o.items_minimos&&(cadenaRetorno+=`

*Debes llevar ${o.items_minimos} productos como m\xednimo para que el cup\xf3n sea v\xe1lido`),3==o.tipo_usuario&&(cadenaRetorno+=`

*Para usar este cup\xf3n debes haber completado ${o.cantidad_compras} compras a partir de la fecha de activaci\xf3n de este cup\xf3n (${moment(o.fecha_activacion).format("DD/MM/YYYY hh:mm")}).

`),cadenaRetorno}function obtenerInfoRockgocash(o){bloquearPagina(),$.get(`/functions/carrito_nw/obtener_informacion_rockgocash?noshow&resumen=${o}`,function(a){o?($("#modalInfoRockgocash .modal-rockgota-4-contenido-rockgocash").html(a),$("#modalInfoRockgocash").modal("show")):($("#modalAplicarRockgocash .custom-modal-content-main").html(a),open_modal("#modalAplicarRockgocash"))}).done(function(){setTimeout(()=>{validateTotalSlider()},1e3),desbloquearPagina()}).fail(function(o){})}