"use strict";$.js=function(e){return $(js(e))};var js=function(e){return"[data-js="+e+"]"},isset=function(e){return null!=$(e).html()},isMobile=function(){return $(window).width()<992},oe=oe||{},ECOMMERCES=["Promart","plazavea","1"],obtenerMenu="";let isActiveEnvioExpress=!1,isActiveEnvioExpress2h=!1,isEnvioExpress=!1,valorSoles="";const departmentNameIgnoreTag=[];let listProductSearch;function tooltipMinicart(){setTimeout(function(){var e=$(".cart-count").html();let t=$(".modalCart").length;parseInt(e)>=1&&0==t&&($("#header .container").append('
¡Termina tu compra antes que se agoten!X
'),setTimeout(function(){var e=parseInt(getCookie("modalFechada"));isNaN(e)||e<(new Date).getTime()?$(".modalCart").addClass("activado"):$(".modalCart").hide()},1e3),$(".closebtn").click(function(){var e=new Date,t=e.getHours();e.setHours(t+5),document.cookie="modalFechada="+e.getTime()+"; expires="+e.toUTCString()+"; path=/",$(".modalCart").remove()}),$(".modalCart").click(function(){window.location.href="/checkout#/cart"}))},2e3)}function getCookie(e){var t=("; "+document.cookie).split("; "+e+"=");return 2==t.length?t.pop().split(";").shift():null}(oe=function(e,t){document.cookie="filtro-resultados-de-la-busqueda:_ft=;expires=Thu, 01 Jan 1970 00:00:01 GMT;";return{contructor:{page:function(o){var i=this;i.pageClass=o,i.DOMReady=function(){},i.winLoad=function(){},i.init=function(){e(t).ready(function(){i.DOMReady(),e('[data-js="addtocart"]').click(function(){setTimeout(function(){},2e3)})}),i.winLoad()}}},init:function(){e.each(oe.pages,function(){e("body").hasClass(this.pageClass)&&this.hasOwnProperty("init")&&this.init()})},pages:function(){},com:function(){},mod:function(){},services:function(){},cache:function(){}}}($,document,window)).conf=oe.conf||{},oe.conf={search:"/api/catalog_system/pub/products/search"},vtexjs.checkout.getOrderForm().done(function(e){$(".cart-count").html(e.items.length)}),oe.helps=oe.helps||{},oe.helps=function(e){return{priceFormat:function(e){return e.toFixed(0).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1.")},totalSum:function(e){for(var t=0,o=e?e.length:0,i=0;ie.indexOf(".")?parseFloat(e.replace(/\S\/. /g,"").replace(".","").replace(",",".")):parseFloat(e.replace("S/. ","").replace("S/ ","").replace(",","").trim())},getSearchItemsTotal:function(t){var o=e.Deferred();return e.ajax({url:"/api/catalog_system/pub/products/search/"+(t||""),type:"GET",headers:{resources:"0-0"},success:function(e,t,i){o.resolve(i.getResponseHeader("resources").split("/").pop())},error:function(){o.reject()}}),o.promise()},spinner:function(t){t.i2bSpinner().on("valuemax",function(){var t=e(this).prev(js("tooltip-price")),o="active";t.addClass(o),setTimeout(function(){t.removeClass(o)},3e3)}).find('[name="qty"]').bind("keypress",function(e){var t=e.which?e.which:e.keyCode;return t<=31||t>=48&&t<=57}).bind("keyup",function(t){if(isMobileDevice()){var o=e(this);o.val(o.val().replace(/[^0-9]/g,""))}}).bind("blur",function(t){var o=e(this),i=o.val();(!i||i<1)&&o.val(1)})},shippingFree:function(e){return e>=599}}}($,document,window),oe.mod.events=oe.mod.events||{},oe.mod.events=function(){var e={};return{on:function(t,o){e[t]=e[t]||[],e[t].push(o)},off:function(t,o){if(e[t])for(var i=0,a=e[t].length;i{o.removeClass("close").parent().removeClass("close")},1e3)})}),function(e){var t;oe.services.search=oe.services.search||{},oe.services.search.get=function(o,i,a,n,r,s,c,d){return(d=null==d||d)&&t&&t.abort(),t=e.ajax({url:"/buscapagina?sc="+VALUE_COOKIE_SC+"&sl="+i+"&O="+a+"&PS="+n+"&cc="+n+"&sm=0"+(void 0!==c?"&from="+(void 0!==r?r:1)+"&to="+(void 0!==s?s:15)+"&fq="+c:""),type:"GET",async:!0,dataType:"html"})},oe.services.search.getBy=function(e){return oe.services.api.getById(oe.conf.search,e)};const o=window.location.href;o.includes("/cyber-wow/")?window.location.href=`https://${window.location.hostname}/cyber-wow`:o.includes("/cyber-days/")?window.location.href=`https://${window.location.hostname}/cyber-days`:o.includes("/black-friday/")?window.location.href=`https://${window.location.hostname}/black-friday`:o.includes("/s/huawei-celulares")&&(window.location.href=`https://${window.location.hostname}/tecnologia/telefonia/celulares/huawei`),e("#text_seo .box-text").length>1&&e("#text_seo .box-text:nth-child(1)").remove(),e("#containerQuestion").length>0&&e("#containerQuestion .brand-faq").length>0&&e("#containerQuestion .category-faq").remove(),e("#verticalText .z-description").length>0&&e("#text_seo .box-text:nth-child(1)").remove()}(jQuery,document,window),function(e,t,o,i){oe.mod.utils=oe.mod.utils||{},oe.mod.utils.formatPrice=function(e,t,o,i,a){t=t||",",o=o||".",a=a||"S/ ";var n="\\d(?=(\\d{3})+"+((i="number"!=typeof(i=i||2)?2:i)>0?"\\D":"$")+")";return(a=this.currency?this.currency:"string"==typeof a?a:"")+(e=(1*e).toFixed(Math.max(0,~~i))).replace(".",o||",").replace(new RegExp(n,"g"),"$&"+(t||"."))},oe.mod.utils.objectSearch=function(e,t){var o,i,a,n;for(o in t)t.hasOwnProperty(o)&&(i=o,a=t[o]);for(o in e)if(o==i){if(e[o]==a)return e}else if(e[o]instanceof Object&&e.hasOwnProperty(o)&&(n=oe.mod.utils.objectSearch(e[o],t)))return n;return!1},oe.mod.utils.sanitizeString=function(e,t){return t="string"==typeof t?t:"-",e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.toLowerCase()).replace(/[\[\]\(\)\-\{\}\^]/g,"")).replace(/[àáâãäåª]/g,"a")).replace(/[éèëê]/g,"e")).replace(/[íìïî]/g,"i")).replace(/[óòöô]/g,"o")).replace(/[úùüû]/g,"u")).replace(/[ñ]/g,"n")).replace(/[ç]/g,"c")).replace(/ /g,t)},oe.mod.utils.productsSliderInit=function(e){e&&e.slick({slidesToShow:2,slidesToScroll:2,arrows:!1,infinite:!0,dots:!0,speed:500})},oe.mod.utils.getProduct=function(t){return"products"in oe.cache||(oe.cache.products={}),void 0!==oe.cache.products[t]&&void 0!==oe.cache.products[t].done?oe.cache.products[t]:e.Deferred(function(){var o=this;if(void 0!==oe.cache.products[t])return o.resolve(oe.cache.products[t]);oe.cache.products[t]=o,e.ajax({url:oe.conf.API_URL.SEARCH+"?fq=productId:"+t,dataType:"json",success:function(e){oe.cache.products[t]=e.length>0?e[0]:i,o.resolve(e[0])},error:function(){oe.cache.products[t]=i,o.reject()}})}).promise()},oe.mod.utils.servicesRadioEvent=function(t){t&&t.length&&(e(document).on("click","#servicios-garantia .devchecked",function(t){t.preventDefault();const o=e(this),i=e(this).hasClass("active");let a=e(".modal-content #servicios-garantia").find("input[type=radio]:checked").val(),n=void 0===a?o.find("input[type=radio]").attr("value"):a;e(".modal-content").data("prevId",n),e("input[name=servGar]").attr("checked",!1),e("#servicios-garantia .devchecked").removeClass("active"),e("#servicios-garantia .unchecked").removeClass("active"),i?e("#servicios-garantia .unchecked").addClass("active"):(o.find("input[type=radio]").attr("checked",!0),o.toggleClass("active"))}),e(document).on("click","#servicios-garantia .unchecked",function(t){t.preventDefault(),e("#servicios-garantia .unchecked").addClass("active"),e("#servicios-garantia .devchecked").removeClass("active")}))},oe.mod.utils.loco=function(t){t&&t.length&&t.find("#servicios-garantia .devchecked").on("click",function(){setTimeout(function(){e(this).prev().toggleClass("active")},50)})},oe.mod.utils.getUrlParam=function(e,t){for(var o=(t||window.location.search.substring(1)).split("&"),i=0;ie[`<${t}>k__BackingField`]||e[t];oe.mod.flagsDiscount=oe.mod.flagsDiscount||{},oe.mod.flagsDiscount={getPromoType:function(o){var i=[],a=o.sellers?o.sellers[0].commertialOffer.PromotionTeasers:[],n=this;return void 0!==a&&null!=a&&e.each(a,function(e,o){var a=n.objectToArray(o),r=a[2]&&t(a[2],"Parameters")[0]?t(t(a[2],"Parameters")[0],"Name"):"";i.push({type:r})}),i},objectToArray:function(e){var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(e[o]);return t},getListProducts:function(){return new Promise(function(t,o){var i,a=!1;const n=setInterval(()=>{oe.cache.products=oe.cache.products||{};var o=e(".product"),r=[];if(o.each(function(t,o){var n=e(o);void 0!==(i=n.attr("data-id")||n.attr("data-product-id"))&&null!=i&&(r.push(i),a=!0)}),r.length>0)for(var s=r.length,c=0,d=[],l=1;l<=r.length;l++)d.push(r[l-1]),c++,l%18==0?(oe.mod.flagsDiscount.getProductsInfo(d,1,function(e){for(var t=0;t=0&&(d=(a-a*Number(t(n,"Value"))/100).toFixed(2),s.push(Number(d))),"MaximumUnitPriceDiscount"==t(n,"Name")&&i.indexOf("#maxprice")>=0&&(l=Number(t(n,"Value"))/100,c.push(Number(l))),"PromotionalPriceTableItemsIds"!=t(n,"Name")&&"PromotionalPriceTableItemsDiscount"!=t(n,"Name")||i.indexOf("#maxprice")>=0&&(n=t(t(o,"Effects"),"Parameters")[1],l=(a-Number(t(n,"Value"))).toFixed(2),c.push(Number(l))))}),i=c.length||s.length?Math.min.apply(null,c.concat(s)):0}}return a>i?i:0}}}(jQuery,document,window),function(e){oe.mod.productoSugerido=oe.mod.productoSugerido||{},oe.mod.productoSugerido.obtenerSugeridosIdProducto=function(t){return e.Deferred(function(){var e=this;oe.mod.utils.getProduct(t).done(function(t){var o,i=oe.mod.utils.objectSearch(oe.cache.menu,{id:t.categoryId});if(void 0!==i&&void 0!==i.idCategoriaAgregaCompra&&""!=i.idCategoriaAgregaCompra)var a="C:"+i.idCategoriaAgregaCompra;else a="C:"+t.categoriesIds[0];o=void 0!==i&&void 0!==i.ordenadoAgregarCompraPor&&""!=i.ordenadoAgregarCompraPor?i.ordenadoAgregarCompraPor:"OrderByTopSaleDESC",oe.services.search.get(1,"b86b62df-5f35-4035-be42-7ede59264b09",o,2,1,2,a).done(function(t){e.resolve(t)})})}).promise()},oe.mod.productoSugerido.obtenerSugeridosMenuCat=function(t){return e.Deferred(function(){var e=this;oe.mod.utils.getProduct(t).done(function(t){var o,i,a=t.items[0].sellers[0].commertialOffer.Price,n=oe.mod.utils.objectSearch(oe.cache.menu,{id:t.categoryId});if(void 0!==oe.cache.brands)var r=oe.mod.utils.objectSearch(oe.cache.brands,{name:t.BrandId});if(void 0!==n&&void 0!==n.idCategoriaRelacionada&&""!=n.idCategoriaRelacionada)var s="C:"+n.idCategoriaRelacionada;else if(void 0!==n.idColeccionRelacionada&&""!=n.idColeccionRelacionada)s="H:"+n.idColeccionRelacionada;else s="C:"+t.categoriesIds[0];(o=void 0!==n&&void 0!==n.ordenadoRelacionadaPor&&""!=n.ordenadoRelacionadaPor?n.ordenadoRelacionadaPor:"OrderByTopSaleDESC",void 0!==n&&void 0!==n.varPrecioRelacionadaPorcentual&&""!=n.varPrecioRelacionadaPorcentual&&0!=n.varPrecioRelacionadaPorcentual)&&(s+="&fq=P:["+(a-a/100*(i=n.varPrecioRelacionadaPorcentual))+" TO "+(a+a/100*i)+"]");void 0!==n&&void 0!==n.mismaMarca&&n.mismaMarca&&(s+="&fq=B:"+r),oe.services.search.get(1,"b86b62df-5f35-4035-be42-7ede59264b09",o,12,1,12,s).done(function(t){e.resolve(t)})})}).promise()}}(jQuery,document,window),function(e){oe.mod.minicart=oe.mod.minicart||{},oe.mod.minicart.swModalServices=!1;var t={btnCont:".product",btnProdCont:js("pdp-prod-add"),btn:js("addtocart"),tooltipAttr:js("tooltip-attributes"),qty:'[name="qty"]',cartModal:"#pdpModalAddToCart",modalClose:"[modal-close]"};const o=(e,t)=>{const o=Date.parse(e),i=Date.parse(t);if(isNaN(o)||isNaN(i))return!1;let a=new Date;return a=a.getTime()-18e6,o{let i=0;const a=e=>{e.length&&e.remove()},n=(t,o)=>{if(t.length){if(vtexjs.checkout.orderForm.items.forEach(e=>{t.includes(e.id)&&(i+=e.priceDefinition.total)}),i)return((t,o,i)=>{const n=t-o;if(o