(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1019],{1019:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var a=n(85893),o=n(67294),c=n(43009),i=n(48218),l=n(3496),r=n(57333),s=n(60180),d=n.n(s),u=n(81733),_=n(77879),v=n(83683),m=n(51129),h=n(95681),x=n(66852),S=n(19581),g=n(53873);function f(t){let{...e}=t,{id:n,nombre:o,precio:l,precioLista:s,brand:f,categories:p,categoriesEmar:b,store:y,nombreSEO:j,newSeo:N,review:C,comments:P,descuento:w,index:D,scarabitem:L,priority:k="Low",foto:F,newShipping:I,newFulFillment:E,creditCardMonths:T,creditCardPrice:q,cyr:A,csears:G,ready:W,calidadImage:M,scale100:O,scaleM100:R,clickCard:U,position:X,hit:B,queryID:Z}=e,{token:V,userToken:Y,authenticatedUserToken:J}=(0,x.YG)(),z=(0,i.Sx)("VARIANTS_PER_PORTAL"),K=(0,i.Sx)("ENVIO_GRATIS"),H=(0,i.Sx)("HIDDEN_DISCOUNT");return(0,a.jsx)(h.S,{children:(0,a.jsxs)("article",{className:"".concat(null===d()||void 0===d()?void 0:d().cardProduct," cardProduct"),"data-scarabitem":L,onClick:()=>{U(),Z&&((0,g.Xw)({event:"clickedObjectIDsAfterSearch",userToken:V,indexName:S.Sn,eventName:"clickedObjectIDsAfterSearch",queryID:Z,ids:[n],position:X}),(0,x.IO)(n,Z))},children:[(0,a.jsx)(m.Z,{id:n,nombre:o,precioLista:s,brand:f,categories:p,categoriesEmar:b,index:D}),(0,a.jsxs)(v.ZP,{to:"/producto/".concat(n,"/").concat(null!=j?j:N,"/"),children:[(0,a.jsx)(u.Z,{loading:"low"===k?"lazy":"eager",src:F,alt:null!=j?j:(0,c.zu)(o),width:"200",height:"200",fetchpriority:k,scale:O,movilScale:R,qlty:M}),(0,a.jsxs)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().contDataCard),children:[(0,a.jsx)("h3",{className:"".concat(null===d()||void 0===d()?void 0:d().h4),children:(0,c.zu)(o)}),y?(0,a.jsx)("p",{className:"".concat(null===d()||void 0===d()?void 0:d().h5),children:y}):null,C?(0,a.jsx)(_.Z,{score:C,comments:0===P?null:P}):null,(0,a.jsx)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().priceDiscountContent),children:0!==Number(w)&&Number(s)!==Number(l)&&W?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.h3,{value:Number(l),displayType:"text",thousandSeparator:!0,prefix:"$",renderText:t=>(0,a.jsx)("p",{children:(0,a.jsxs)("span",{className:"".concat(null===d()||void 0===d()?void 0:d().textUnderline),children:[t," MXN"]})})}),Number(w)(0,a.jsxs)("p",{className:"".concat(null===d()||void 0===d()?void 0:d().precio1),children:[t,(0,a.jsx)("span",{className:"".concat(null===d()||void 0===d()?void 0:d().mxn),children:"MXN"})," "]})}),(0,a.jsxs)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().expressFreeCont),children:[A&&"1"===String(A)?(0,a.jsx)("img",{src:"/theme/sears/recogerTienda.png",alt:"Recoger en tienda",className:"".concat(null===d()||void 0===d()?void 0:d().cyr_resultados)}):null,I?"1"===I&&W?(0,a.jsx)("p",{className:"1"===String(A)&&"1"===E?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeL," ").concat(null===d()||void 0===d()?void 0:d().bordeR):"1"!==String(A)&&"1"===E?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeR):"1"===String(A)&&"1"!==E?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeL):"".concat(null===d()||void 0===d()?void 0:d().envioGratis),"aria-label":"Env\xedo gratis",children:"Env\xedo gratis"}):null:Number(s)>=Number(K)&&W?(0,a.jsx)("p",{className:"1"===String(A)&&"1"===E&&(null==z?void 0:z.express)===!0?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeL," ").concat(null===d()||void 0===d()?void 0:d().bordeR):"1"!==String(A)&&"1"===E&&(null==z?void 0:z.express)===!0?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeR):"1"===String(A)&&"1"!==E?"".concat(null===d()||void 0===d()?void 0:d().envioGratis," ").concat(null===d()||void 0===d()?void 0:d().bordeL):"".concat(null===d()||void 0===d()?void 0:d().envioGratis),"aria-label":"Env\xedo gratis",children:"Env\xedo gratis"}):null,E&&(null==z?void 0:z.express)===!0&&"1"===E&&W?(0,a.jsx)("p",{className:I&&"1"===I||Number(s)>=Number(K)?"".concat(null===d()||void 0===d()?void 0:d().fullFilment):"".concat(null===d()||void 0===d()?void 0:d().fullFilment," ").concat(null===d()||void 0===d()?void 0:d().bordeL),"aria-label":"Express",children:"Express"}):null]}),G||T?(0,a.jsxs)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().tmxMonthsCont),children:["112"===G&&q?(0,a.jsxs)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().bankSanborns),children:[" Desde",(0,a.jsx)(r.h3,{value:Number(q).toFixed(),displayType:"text",thousandSeparator:!0,prefix:"$",renderText:t=>(0,a.jsx)("span",{children:t})})," al mes"]}):null,T>=1&&q?(0,a.jsxs)("div",{className:"".concat(null===d()||void 0===d()?void 0:d().bankMonthly),children:[" Desde",(0,a.jsx)(r.h3,{value:Number(q).toFixed(),displayType:"text",thousandSeparator:!0,prefix:"$",renderText:t=>(0,a.jsx)("span",{children:t})})," al mes"]}):null]}):null]})]})]})})}function p(t){let e,n,r,{...s}=t,{id:d,nombre:u,nombreSEO:_,precio:v,precioLista:m,foto:h=l.Ty,descuento:x,store:S,review:g,comments:p,shipping_price:b,fulfillment:y,super_express:j,categories:N,categoriesEmar:C,brand:P,creditCardMonths:w,creditCardPrice:D,telmexMonths:L,telmexPrice:k,features:F,vista:I,scarabitem:E,clasee:T,parentGroup:q,index:A,clicRecoge:G,pagosSears:W,priority:M,productTotal:O,position:R,hit:U,queryID:X}=s;e=_||(0,c.Xo)(u);let[B,Z]=(0,o.useState)(!1);(0,o.useEffect)(()=>{Z(!0)},[]);let[V,Y]=(0,o.useState)(l.f7),[J,z]=(0,o.useState)(!1);(0,o.useEffect)(()=>{Y(l.f7),setTimeout(function(){z(!0)},100)},[d,h]),(0,o.useEffect)(()=>{J&&("No-photo"!=h?h.indexOf("?")>=0?(Y((0,c.P0)(h)+"&scale=350"),z(!1)):(Y((0,c.P0)(h)+"?scale=350"),z(!1)):Y((0,c.P0)(l.Ty)+"?scale=350"))},[J]),("1"===b||!0===b||"true"===b)&&(n="1"),("1"===y||!0===y||"true"===y||"1"===j||!0===j||"true"===j)&&(r="1"),y&&(null==y?void 0:y.quantity)&&(r="1");let K=()=>{"producto"===window.location.pathname.split("/")[1]?(0,i.rG)("searchBusqueda",window.scrollY):(0,i.Li)("searchBusqueda")},[H,Q]=(0,o.useState)(65),[$,tt]=(0,o.useState)(250),[te,tn]=(0,o.useState)(250);return(0,a.jsx)(f,{id:d,nombre:u,precio:v,precioLista:m,brand:P,categories:N,categoriesEmar:C,store:S,nombreSEO:_,newSeo:e,review:g,comments:p,descuento:x,index:A,scarabitem:E,priority:M,foto:h,newFoto:V,newShipping:n,newFulFillment:r,creditCardMonths:w,creditCardPrice:D,cyr:G,csears:W,ready:B,calidadImage:H,scale100:$,scaleM100:te,clickCard:K,position:R,hit:U,queryID:X})}},81733:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var a=n(85893),o=n(95681),c=n(43009);function i(t){let e,n,i,l;let{src:r,alt:s,loading:d="lazy",width:u,height:_,scale:v,movilScale:m,priority:h="low",claseCSS:x,onClick:S,id:g}=t,f=(0,c.P0)(r),p=Number(.6*v).toFixed(),b=Number(.6*m).toFixed(),y=(Number(.4*v)+v).toFixed();return(null==f?void 0:f.indexOf("?"))>=0?(e="".concat(f,"&scale=").concat(v,"&qlty=").concat(75),l="".concat(f,"&scale=").concat(b,"&qlty=").concat(65),n="".concat(f,"&scale=").concat(v,"&qlty=").concat(75,", ").concat(f,"&scale=").concat(p,"&qlty=").concat(65),i="".concat(f,"&scale=").concat(y,"&qlty=").concat(80,",").concat(f,"&scale=").concat(v,"&qlty=").concat(75,", ").concat(f,"&scale=").concat(p,"&qlty=").concat(65)):(e="".concat(f,"?scale=").concat(v,"&qlty=").concat(75),l="".concat(f,"?scale=").concat(b,"&qlty=").concat(65),n="".concat(f,"?scale=").concat(v,"&qlty=").concat(75,", ").concat(f,"?scale=").concat(p,"&qlty=").concat(65),i="".concat(f,"?scale=").concat(y,"&qlty=").concat(80,", ").concat(f,"?scale=").concat(v,"&qlty=").concat(75,", ").concat(f,"?scale=").concat(p,"&qlty=").concat(65)),(0,a.jsx)(o.S,{children:(0,a.jsxs)("picture",{onClick:S,children:[(0,a.jsx)("source",{media:"(max-width: 420px)",type:"image/jpeg",srcSet:l}),(0,a.jsx)("source",{media:"(max-width: 1500px)",type:"image/jpeg",srcSet:n}),(0,a.jsx)("source",{media:"(min-width: 1501px)",type:"image/jpeg",srcSet:i}),(0,a.jsx)("img",{src:e,alt:s,width:u,height:_,loading:d,decoding:"async",fetchpriority:h,className:x,id:g})]})})}},26577:function(t,e,n){"use strict";n.d(e,{D_:function(){return u},f0:function(){return v},lj:function(){return m}});var a=n(85893),o=n(67294),c=n(68474),i=n.n(c),l=n(48218),r=n(65102),s=n(83683),d=n(16444);function u(t){let{icon:e,title:n,strong:o,linkLogin:c,linkRegister:l,clickEvent:r}=t;return(0,a.jsxs)("div",{className:null===i()||void 0===i()?void 0:i().modalPreLogin,children:[(0,a.jsx)("img",{src:e,alt:n}),(0,a.jsxs)("p",{children:[n," ",(0,a.jsx)("strong",{children:o})]}),(0,a.jsx)(s.ZP,{onClick:()=>r("login"),to:c,title:"Btn Login",className:"btn rojo ".concat(null===i()||void 0===i()?void 0:i().btn," ").concat(null===i()||void 0===i()?void 0:i().rojo),children:"Iniciar sesi\xf3n"}),(0,a.jsx)(s.ZP,{onClick:()=>r("register"),to:l,title:"Btn Registro",className:"btn blanco ".concat(null===i()||void 0===i()?void 0:i().btn," ").concat(null===i()||void 0===i()?void 0:i().blanco),children:"Registrarme"})]})}function _(){let{navScript:t,location:e,urlLink:n,hashLink:a,pathLink:c,prevUrl:i,changeURL:r}=(0,d.I)(),[s,u]=(0,o.useState)(!1),[_,v]=(0,o.useState)(!1);(0,o.useEffect)(()=>{("false"===(0,l.Sx)("modalUp")||"undefined"===(0,l.Sx)("modalUp")||""===(0,l.Sx)("modalUp"))&&("#modalWishlist"===window.location.hash?((0,l.rG)("modalUp","true"),u(!0)):((0,l.rG)("modalUp","false"),u(!1)))},[]),(0,o.useEffect)(()=>{_&&(v(!1),(0,l.rG)("modalUp","false"),"#modalWishlist"===a?u(!0):(t({to:n.replace("#modalWishlist",""),target:"replace",navigation:"int"}),u(!1)))},[_]);let m=()=>{u(!1),t({to:n.replace("#modalWishlist",""),target:"replace",navigation:"int"}),setTimeout(function(){v(!0)},300)},h=()=>{t({to:"".concat(n,"#modalWishlist"),target:"push",navigation:"int"}),setTimeout(function(){v(!0)},300)};return{showModal:s,showModalWL:h,handleCloseWL:m}}function v(t){let{route:e,clase:n,title:o,saveFavorite:c,titleBtn:i}=t,{showModal:l,showModalWL:s,handleCloseWL:d}=_();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n,onClick:s}),l&&(0,a.jsx)(r.Z,{onClose:d,type:"",title:"",children:(0,a.jsx)(u,{icon:"/img/heart_modal.svg",title:"Inicia sesi\xf3n para agregar productos a tu ",strong:" ".concat(i,"."),linkLogin:"/login".concat(e),linkRegister:"/registro".concat(e),clickEvent:c})})]})}function m(t){let{route:e,clase:n,title:o,saveFavorite:c,titleBtn:i}=t,{showModal:l,showModalWL:s,handleCloseWL:d}=_();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n,onClick:s,children:o}),l&&(0,a.jsx)(r.Z,{onClose:d,type:"",title:"",children:(0,a.jsx)(u,{icon:"/img/heart_modal.svg",title:"Inicia sesi\xf3n para agregar productos a tu ",strong:" ".concat(i,"."),linkLogin:"/login".concat(e),linkRegister:"/registro".concat(e),clickEvent:c})})]})}},77879:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var a=n(85893),o=n(67294),c=n(20850),i=n.n(c);function l(t){let{...e}=t,{score:n,comments:c}=e,[l,r]=(0,o.useState)(!1),s=()=>{let t=n%1;Number(t)=Number(.5)&&r("star_".concat(Math.floor(Number.parseFloat(n).toFixed(1)),"_5"))};return(0,o.useEffect)(()=>{n&&s()},[n]),(0,a.jsxs)("div",{className:"".concat(null===i()||void 0===i()?void 0:i().contStarsModule),children:[(0,a.jsxs)("div",{className:"".concat(null===i()||void 0===i()?void 0:i().stars," ").concat(i()[l]),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),c&&0!=c&&"null"!==c?(0,a.jsxs)("p",{className:"".concat(null===i()||void 0===i()?void 0:i().comments),children:["(",c,")"]}):null]})}},51129:function(t,e,n){"use strict";n.d(e,{s:function(){return g},Z:function(){return S}});var a=n(85893),o=n(67294),c=n(48218),i=n(53214),l=n(17059),r=n(14508),s=n(32174),d=n(16444),u=n(68281),_=n.n(u),v=n(36785);function m(t){let{id:e,nombre:n,precioLista:a,brand:u,categories:m,categoriesEmar:h,titleBtn:x}=t,S=(0,c.Sx)("session_token");var g=(0,c.Sx)("productsWishlist");let{navScript:f,location:p,urlLink:b,hashLink:y,pathLink:j,prevUrl:N,changeURL:C}=(0,d.I)();""===g&&(0,c.rG)("productsWishlist",[]);let[P,w]=(0,o.useState)(!1),[D,L]=(0,o.useState)(!1),[k,F]=(0,o.useState)(!1),[I,E]=(0,o.useState)(""),[T,q]=(0,o.useState)(""),[A,G]=(0,o.useState)(!1),[W,M]=(0,o.useState)(!1),[O,R]=(0,o.useState)(null);(0,o.useEffect)(()=>{O&&("addWL"===O?(R(null),document.querySelectorAll(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail)).length>=1&&document.querySelectorAll(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail,".wl_").concat(e)).length>=1&&(document.querySelectorAll(".wl_".concat(e)).length>=2?document.querySelectorAll(".wl_".concat(e)).forEach(t=>t.classList.add("".concat(null===_()||void 0===_()?void 0:_().active))):document.querySelector(".wl_".concat(e)).classList.add("".concat(null===_()||void 0===_()?void 0:_().active)),document.querySelector(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail,".wl_").concat(e)).innerText="Eliminar de ".concat(x))):"removeWL"===O&&(R(null),document.querySelectorAll(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail)).length>=1&&document.querySelectorAll(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail,".wl_").concat(e)).length>=1&&(document.querySelectorAll(".wl_".concat(e)).length>=2?document.querySelectorAll(".wl_".concat(e)).forEach(t=>t.classList.remove("".concat(null===_()||void 0===_()?void 0:_().active))):document.querySelector(".wl_".concat(e)).classList.remove("".concat(null===_()||void 0===_()?void 0:_().active)),document.querySelector(".".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail,".wl_").concat(e)).innerText="Agregar a ".concat(x))))},[e,O]);let U=()=>{if(e){let t,o,c;if(m&&(1===m.length?m[0].name?(t="",o="",c=m[0].name):(t="",o="",c=m[0]):2===m.length?m[1].name?(t="",o=m[1].name,c=m[0].name):(t="",o=m[1],c=m[0]):m.length>=3?m[2].name?(t=m[2].name,o=m[1].name,c=m[0].name):(t=m[2],o=m[1],c=m[0]):(t="",o="",c="")),h){let e=h.split(">");t=e[0],o=e[1],c=e[2]}let l={item:[{item_name:String(n),item_id:String(e),price:String(a),item_brand:String(u||""),item_category:String(t),item_category2:String(o),item_category3:String(c),item_variant:"",quantity:"1"}]};(0,i.sc)(l)}},[X,B]=(0,o.useState)(!1),[Z,V]=(0,o.useState)(!1),{checkValidateSession:Y}=(0,l.i)(),J=(0,r.d)({firstActive:!1,name:"btn-wishlist",timeRef:1e3}),[z,K]=(0,o.useState)(!1);(0,o.useEffect)(()=>{D?e&&(Y(!0),K("add")):k&&e&&(Y(!0),K("remove"))},[D,k,e]);let[H,Q]=(0,o.useState)(!1),[$,tt]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(z){let t=Date.now(),e=1e3*(0,c.Sx)("access_token_exp");tt(!1),t<=e?Q(!0):(setTimeout(function(){J.forceToken(!0)},300),setTimeout(function(){tt(!0)},900))}},[$,z]),(0,o.useEffect)(()=>{"add"===z?(Q(!1),(0,s.Q)({idProduct:e}).then(E),L(!1),B(!0),K(!1)):"remove"===z&&(Q(!1),(0,s.Xx)({idProduct:e}).then(E),F(!1),B(!1),K(!1))},[H]),(0,o.useEffect)(()=>{I&&(200===I.statusCode?I.data&&(q(I.data),R("removeWL")):201===I.statusCode?I.data&&(q(I.data),V(!0),R("addWL")):I.statusCode)},[I]),(0,o.useEffect)(()=>{X&&Z&&(U(),B(!1),V(!1))},[X,Z]),(0,o.useEffect)(()=>{T&&("object"==typeof T?T.metadata.is_error||(g.includes(String(e))?(g.splice(g.indexOf(String(e)),1),(0,c.rG)("productsWishlist",g),G(!1),M(!0)):(g.push(String(e)),(0,c.rG)("productsWishlist",g),G(!1),M(!0))):"string"==typeof T&&((0,c.rG)("productsWishlist",[]),G(!1),M(!0)))},[T]),(0,o.useEffect)(()=>{g&&e&&(g.includes(String(e))?w(!0):w(!1))},[W,e]),(0,o.useEffect)(()=>{A&&(document.querySelector(".wl_".concat(e)).classList.contains("".concat(null===_()||void 0===_()?void 0:_().active))?F(!0):L(!0))},[A]);let te=()=>{G(!0),M(!1)},tn=t=>{(0,v.k1)({name:"btn_wl",actionButton:"".concat(t,"_modal_btn")}),(0,c.Li)("productAfter"),(0,c.Li)("typeButton"),(0,c.rG)("wishlistAfter",e)};return{isLoged:S,favorite:P,hostName:b,saveFavorite:tn,handleFavorite:te}}var h=n(26577),x=n(95681);function S(t){let{...e}=t,{id:n,nombre:o,precioLista:c,brand:i,categories:l,categoriesEmar:r,titleBtn:s="Lista de deseos"}=e,{isLoged:d,favorite:u,hostName:v,handleFavorite:S,saveFavorite:g}=m({id:n,nombre:o,precioLista:c,brand:i,categories:l,categoriesEmar:r,titleBtn:s});return(0,a.jsx)(x.S,{children:d?(0,a.jsx)("div",{className:u?"".concat(null===_()||void 0===_()?void 0:_().btnWishlist," wl_").concat(n," ").concat(null===_()||void 0===_()?void 0:_().active):"".concat(null===_()||void 0===_()?void 0:_().btnWishlist," wl_").concat(n),onClick:S}):(0,a.jsx)(h.f0,{route:"?redirect=".concat(v),clase:"".concat(null===_()||void 0===_()?void 0:_().btnWishlist," wl_").concat(n),saveFavorite:g,title:"Agregar a ".concat(s),titleBtn:s})})}function g(t){let{...e}=t,{id:n,nombre:o,precioLista:c,brand:i,categories:l,categoriesEmar:r,titleBtn:s="Lista de deseos"}=e,{isLoged:d,favorite:u,hostName:v,handleFavorite:S,saveFavorite:g}=m({id:n,nombre:o,precioLista:c,brand:i,categories:l,categoriesEmar:r,titleBtn:s});return(0,a.jsx)(x.S,{children:d?(0,a.jsx)("div",{className:u?"".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail," wl_").concat(n," ").concat(null===_()||void 0===_()?void 0:_().active):"".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail," wl_").concat(n),onClick:S,children:!0===u?"Eliminar de ".concat(s):"Agregar a ".concat(s)}):(0,a.jsx)(h.lj,{route:"?redirect=".concat(v),clase:"".concat(null===_()||void 0===_()?void 0:_().btnWishlistDetail," wl_").concat(n),saveFavorite:g,title:"Agregar a ".concat(s),titleBtn:s})})}},53873:function(t,e,n){"use strict";n.d(e,{MS:function(){return s},Xw:function(){return r},wh:function(){return l}});var a=n(41137),o=n.n(a),c=n(48218),i=n(83454);let l=function(t,e,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"convertedObjectIDsAfterSearch",l=localStorage.getItem("productsSearch"),r=(0,c.Sx)("ALGOL").algol_publico,s=i.env.NEXT_PUBLIC_ALGOLIA_INDEX?i.env.NEXT_PUBLIC_ALGOLIA_INDEX:r;if(l){let c=JSON.parse(l),i=c.find(e=>e._id===t.toString()),r={userToken:n,eventName:e,index:s,queryID:i._query,objectIDs:[i._id]};if(console.log("productosEnLocalStorage: ",l),console.log("product: ",i),console.log("typeEventAlgolia: ",a," data: ",r),i){o()(a,r);let e=c.filter(e=>e._id!==t.toString());localStorage.setItem("productsSearch",JSON.stringify(e))}}};function r(t){let{event:e,userToken:n=null,authenticatedUserToken:a=null,indexName:c="",eventName:i="",queryID:l=null,ids:r=null,position:s=null}=t,d={...n&&{userToken:n},...a&&{authenticatedUserToken:a},...c&&{index:c},...i&&{eventName:i},...l&&{queryID:l},...r&&{objectIDs:r},...s&&{positions:[s]}};console.log("event2: ",e," data: ",d),o()(e,d)}let s=(t,e,n)=>{var a;let o=(0,c.Sx)("ALGOL").algol_publico,l=i.env.NEXT_PUBLIC_ALGOLIA_INDEX?i.env.NEXT_PUBLIC_ALGOLIA_INDEX:o,r=null==t?void 0:null===(a=t.products)||void 0===a?void 0:a.map(t=>String(null==t?void 0:t.id)),s={userToken:e,...n&&{authenticatedUserToken:n},index:l,eventName:"purchasedObjectIDsAfterSearch",eventType:"conversion",...r&&{objectIDs:r}};e&&localStorage.setItem("purchaseCartSearch",JSON.stringify(s))}},66852:function(t,e,n){"use strict";n.d(e,{IO:function(){return i},YG:function(){return c}});var a=n(67294),o=n(18859);function c(){let{profileGet:t}=(0,o.P)(),e=()=>{let t=new Uint8Array(4);crypto.getRandomValues(t);let e=Array.from(t,t=>t.toString(16).padStart(2,"0")).join("");return e.toString()},[n,c]=(0,a.useState)(t.idClaro?"us-"+t.idClaro:localStorage.getItem("searchToken")),i=t=>{localStorage.setItem("searchToken",t)},l=()=>localStorage.getItem("searchToken");(0,a.useEffect)(()=>{if(!n){let t=l();if(!t){let t=e();i("an-"+t),c("an-"+t)}}},[]);let[r,s]=(0,a.useState)(localStorage.getItem("userToken")),[d]=(0,a.useState)(t.idClaro?"us-"+t.idClaro:""),u=t=>{localStorage.setItem("userToken",t)},_=()=>localStorage.getItem("userToken");return(0,a.useEffect)(()=>{if(!r){let t=_();if(!t){let t=e();u("an-"+t),s("an-"+t)}}},[]),{token:n,userToken:r,authenticatedUserToken:d}}function i(t,e){let n=localStorage.getItem("productsSearch"),a=[];n&&(a=(a=JSON.parse(n)).filter(e=>(null==e?void 0:e._id)!==t)),a.push({_id:t,_query:e}),localStorage.setItem("productsSearch",JSON.stringify(a))}n(41137)},60180:function(t){t.exports={cardProduct:"CardProduct_cardProduct__t8eup",contDataCard:"CardProduct_contDataCard__FRkpC",envioGratis:"CardProduct_envioGratis__R7YrU",h4:"CardProduct_h4__C5Mg2",h5:"CardProduct_h5___y1H6",contDataCarda:"CardProduct_contDataCarda__wqN4g",priceDiscountContent:"CardProduct_priceDiscountContent__wZzsI",boxGeneralDiscSan:"CardProduct_boxGeneralDiscSan__R0Yga",bxDiscMobile:"CardProduct_bxDiscMobile__fsuF7",precio1:"CardProduct_precio1__5GHph",expressFreeCont:"CardProduct_expressFreeCont__Tg_7a",fullFilment:"CardProduct_fullFilment__2vCFD",mxn:"CardProduct_mxn__e3gC5","cyr-resultados":"CardProduct_cyr-resultados__1PTqq",cyr_resultados:"CardProduct_cyr_resultados__ilgvm",textUnderline:"CardProduct_textUnderline___Yf8H",tmxMonthsCont:"CardProduct_tmxMonthsCont__eUVMG",tmxMonthly:"CardProduct_tmxMonthly__wMtz2",bankMonthly:"CardProduct_bankMonthly__0ejiJ",bankSanborns:"CardProduct_bankSanborns__R1YDK",bordeL:"CardProduct_bordeL__RYjWj",bordeR:"CardProduct_bordeR__9q_zY"}},68474:function(t){t.exports={modalPreLogin:"stylesPreModal_modalPreLogin__U4J77",btn:"stylesPreModal_btn__6Wj57",rojo:"stylesPreModal_rojo___5Apf"}},20850:function(t){t.exports={contStarsModule:"StarFive_contStarsModule__3Yo0F",comments:"StarFive_comments__m8DKo",stars:"StarFive_stars__3Gk5E",star_0:"StarFive_star_0__QsyVT",star_1:"StarFive_star_1__Mxixi",star_1_5:"StarFive_star_1_5__NBPTf",star_2:"StarFive_star_2__IT7y2",star_2_5:"StarFive_star_2_5__u5KDl",star_3:"StarFive_star_3__qsgn9",star_3_5:"StarFive_star_3_5__mVCPU",star_4:"StarFive_star_4__lk0_7",star_4_5:"StarFive_star_4_5__y_gaG",star_5:"StarFive_star_5__K3LC7",star_5_5:"StarFive_star_5_5__VGuOP",star_2_2:"StarFive_star_2_2__r4y_h",estrellasPintadas:"StarFive_estrellasPintadas__Qqsvs",startAmarilla:"StarFive_startAmarilla__lsVtU",startGris:"StarFive_startGris__cGSw7",startMitad:"StarFive_startMitad__RuWP4",startVacia:"StarFive_startVacia__rNFV3",starsAndReview:"StarFive_starsAndReview__kJcKk"}},68281:function(t){t.exports={btnWishlist:"Wishlist_btnWishlist__hektw",active:"Wishlist_active__glDQx",loader:"Wishlist_loader__Ljtll",btnWishlistDetail:"Wishlist_btnWishlistDetail__2PROl"}}}]);