(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[740],{29601:function(e,t,o){"use strict";o.d(t,{Rm:function(){return n}});let n=e=>{let t;if(null==e?void 0:e.data){let o;let n=null==e?void 0:e.data;(null==n?void 0:n.length)&&(o=null==n?void 0:n.map((e,t)=>{var o,n;let i;return i=(null==e?void 0:null===(o=e.children)||void 0===o?void 0:o.length)?null==e?void 0:null===(n=e.children)||void 0===n?void 0:n.map((t,o)=>{var n,i;let l;return l=(null==t?void 0:null===(n=t.children)||void 0===n?void 0:n.length)?null==t?void 0:null===(i=t.children)||void 0===i?void 0:i.map((e,o)=>{let n=[];return{estatus:null==e?void 0:e.status,icon:null==e?void 0:e.icon,id_cat:null==e?void 0:e.external_id,nombre:null==e?void 0:e.name,order:o,padre:null==t?void 0:t.external_id,seo:null==e?void 0:e.seo,subcategorias:n,subcat:n,visible:null==e?void 0:e.visible,description:null==e?void 0:e.descripcion}}):[],{estatus:null==t?void 0:t.status,icon:null==t?void 0:t.icon,id_cat:null==t?void 0:t.external_id,nombre:null==t?void 0:t.name,order:o,padre:null==e?void 0:e.external_id,seo:null==t?void 0:t.seo,subcategorias:l,subcat:l,visible:null==t?void 0:t.visible,description:null==t?void 0:t.descripcion}}):[],{estatus:null==e?void 0:e.status,icon:null==e?void 0:e.icon,id_cat:null==e?void 0:e.external_id,nombre:null==e?void 0:e.name,order:t,seo:null==e?void 0:e.seo,subcat:i,visible:null==e?void 0:e.visible,description:null==e?void 0:e.descripcion}})),t=o}else t=e;return t}},40456:function(e,t,o){"use strict";o.d(t,{P:function(){return r}});var n=o(85893),i=o(67294),l=o(61061),a=o.n(l);function r(e){let{section:t}=e,[o,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=window.sessionStorage.getItem("appDownload"),o=window.sessionStorage.getItem("appDownloadP"),n=window.localStorage.getItem("appDownloadNull");/iPhone|iPod/i.test(navigator.userAgent)?n<=5&&"true"!==e&&("home"===t?l(!0):"producto"===t&&"true"!==o&&l(!0)):/Android/i.test(navigator.userAgent)&&-1===navigator.userAgent.indexOf("wv")&&navigator.userAgent.indexOf("Mobile")>=1&&n<=5&&"true"!==e&&("home"===t?l(!0):"producto"===t&&"true"!==o&&l(!0))},[]);let r=()=>{"home"===t?window.sessionStorage.setItem("appDownload",!0):"producto"===t&&window.sessionStorage.setItem("appDownload",!0),/iPhone|iPad|iPod/i.test(navigator.userAgent)?window.location.href="https://apps.apple.com/mx/app/sears/id1610895867":/Android/i.test(navigator.userAgent)&&(window.location.href="https://play.google.com/store/apps/details?id=com.americamovil.sears&referrer=utm_source%3Ddirect%26utm_medium%3Dbanner%26utm_term%3Ddescargar-app%26utm_campaign%3Dlanzamiento"),l(!1)},d=()=>{let e=window.localStorage.getItem("appDownloadNull");e=Number(e)+1,"home"===t?(window.sessionStorage.setItem("appDownload",!0),window.localStorage.setItem("appDownloadNull",e)):"producto"===t&&(window.sessionStorage.setItem("appDownload",!0),window.localStorage.setItem("appDownloadNull",e)),l(!1)};return o&&(0,n.jsxs)("div",{className:null===a()||void 0===a()?void 0:a().barraUpdateApp,children:[(0,n.jsx)("h2",{onClick:r,children:"Descarga la app"}),(0,n.jsx)("p",{onClick:r,children:"y obt\xe9n una navegaci\xf3n personalizada"}),(0,n.jsxs)("div",{onClick:r,className:"btn rojo",children:[(0,n.jsx)("span",{className:null===a()||void 0===a()?void 0:a().iconAppUpdate}),"Descargar"]}),(0,n.jsx)("div",{className:null===a()||void 0===a()?void 0:a().closeAppUpdate,onClick:d})]})}},19409:function(e,t,o){"use strict";o.d(t,{Z:function(){return r}});var n=o(85893),i=o(67294),l=o(58566);o(84640),o(19678);var a=o(95681);function r(e){let{logica:t="PERSONAL",breadcrumb:o=null,idContent:r,idProd:d,searchTerm:u,cart:s,type:c="slider",typeView:p="scrollView",title:v,btnType:_="show",cant:m=15,gadget:g}=e,[w,h]=(0,i.useState)(),[A,S]=(0,i.useState)(!1),[f,b]=(0,i.useState)(),[E,x]=(0,i.useState)(m),[y]=(0,i.useState)(m),[D,P]=(0,i.useState)(o),[C,k]=(0,i.useState)(t),[I,T]=(0,i.useState)(d),[O]=(0,i.useState)(12),[j]=(0,i.useState)("viewPer_"+O);(0,i.useEffect)(()=>{o!==D?(P(o),S(!0)):d!==I&&(T(d),S(!0))},[o,d]),(0,i.useEffect)(()=>{R(E,C,D,I)},[]),(0,i.useEffect)(()=>{A&&(E||D||I)&&(R(E,C,D,I),S(!1))},[A]),(0,i.useEffect)(()=>{if(w&&(null==w?void 0:w.page)){var e,t,o;(null==w?void 0:null===(e=w.page)||void 0===e?void 0:null===(t=e.products)||void 0===t?void 0:t.length)>=4?b(null==w?void 0:null===(o=w.page)||void 0===o?void 0:o.products):b(null)}},[w]);let G=e=>{h(e)},R=(e,t,o,n)=>{if(o)try{window.ScarabQueue.push(["category",o])}catch(e){}else if(n)try{window.ScarabQueue.push(["view",String(n)])}catch(e){}else if(u)try{window.ScarabQueue.push(["searchTerm",u])}catch(e){}else if(s)try{window.ScarabQueue.push(["cart",s])}catch(e){}try{window.ScarabQueue.push(["recommend",{logic:t,containerId:r,limit:e,success:G}])}catch(e){}try{window.ScarabQueue.push(["go"])}catch(e){}},N=()=>{x(E+15),S(!0)},U=()=>{x(E+15),S(!0)},V=e=>{P(""),P(e.bread),k(e.logical),x(y),S(!0)};return(0,n.jsx)(a.S,{children:"GO"!==t?f&&(0,n.jsx)(n.Fragment,{children:"slider"===c?(0,n.jsxs)(n.Fragment,{children:["scrollView"===p?(0,n.jsx)(l.MD,{title:v,typeView:p,recomendProduct:f,addRecomend:N}):null,"blockView"===p?(0,n.jsx)(l.X$,{title:v,typeView:p,recomendProduct:f,addRecomend:N}):null,"sliderView"===p?(0,n.jsx)(l.yh,{title:v,typeView:p,recomendProduct:f,addRecomend:N}):null]}):(0,n.jsx)(l.K_,{title:v,typeView:p,howViewClass:j,recomendProduct:f,btnType:_,addRecomend:N,showMoreRecomend:U,changeRecomend:V,typeCard:"recomendation",gadget:g})}):null})}},95125:function(e,t,o){"use strict";o.d(t,{z:function(){return l}});var n=o(67294),i=o(48218);function l(e){let{configVar:t,titlePage:o}=e;(0,n.useEffect)(()=>{},[o]);let[l,a]=(0,n.useState)();return(0,n.useEffect)(()=>{if(t){var e;let o=null==t?void 0:t.keyC,n=null==t?void 0:t.algol,l=null==t?void 0:t.base_path_resources,r="".concat(null==t?void 0:t.anteater_url,"/search?cliente=").concat(null==t?void 0:t.anteater_stage),d="".concat(null==t?void 0:t.anteater_url,"/autocompletar?cliente=").concat(null==t?void 0:t.anteater_stage),u=null==t?void 0:t.powReviews,s=null==t?void 0:null===(e=t.variants)||void 0===e?void 0:e.emarsys,c=null==t?void 0:t.variants,p=null==t?void 0:t.api_exception,v=null==t?void 0:t.stage_dirname,_=null==t?void 0:t.base_path_api,m=null==t?void 0:t.base_path_caja,g=null==t?void 0:t.gtm_code,w=null==t?void 0:t.pinterest_code,h=null==t?void 0:t.meta_code,A=null==t?void 0:t.emarsys_code,S=null==t?void 0:t.envio_gratis,f=null==t?void 0:t.hidden_discount;(0,i.rG)("CONFIGVAR",t),(0,i.rG)("SSO",o),(0,i.rG)("ALGOL",n),(0,i.rG)("RESOURCES",l),(0,i.rG)("SEARCH_ANTEATER",r),(0,i.rG)("SEARCH_AUTOCOMPLETE",d),(0,i.rG)("POWREVIEWS",u),(0,i.rG)("EMARSYS",s),(0,i.rG)("VARIANTS_PER_PORTAL",c),(0,i.rG)("BASE_PATH_API_DEV",p),(0,i.rG)("STAGE_DIRNAME",v),(0,i.rG)("BASE_PATH_API",_),(0,i.rG)("BASE_PATH_CAJA",m),(0,i.rG)("GTM_CODE",g),(0,i.rG)("PINTEREST_CODE",w),(0,i.rG)("META_CODE",h),(0,i.rG)("EMARSYS_CODE",A),(0,i.rG)("ENVIO_GRATIS",S),(0,i.rG)("HIDDEN_DISCOUNT",f),a(t)}},[t]),{configMap:l}}},31909:function(e,t,o){"use strict";o.d(t,{O:function(){return u}});var n=o(67294),i=o(81354),l=o(48218),a=o(43009);o(3496);let r=(e,t,o,n,i)=>{try{window.pintrk("load",t,(null==e?void 0:e.correo)!==""?{em:null==e?void 0:e.correo}:{}),window.pintrk("page"),i?window.pintrk("track","pagevisit",(null==e?void 0:e.correo)!==""?{email:o,event_id:n,line_items:i}:{event_id:n,line_items:i}):window.pintrk("track","pagevisit",(null==e?void 0:e.correo)!==""?{email:o,event_id:n}:{event_id:n})}catch(e){}},d=(e,t,o)=>{try{(null==e?void 0:e.correo)?window.fbq("init",t,{em:o,fn:(null==e?void 0:e.nombre)!==""?(0,a.Wv)(null==e?void 0:e.nombre):"",ln:(null==e?void 0:e.apellidoP)!==""?(0,a.Wv)(null==e?void 0:e.apellidoP):"",ge:(null==e?void 0:e.genero)!==""?null==e?void 0:e.genero:"",db:(null==e?void 0:e.cumpleanios)!==""&&(null==e?void 0:e.cumpleanios)!=null?null==e?void 0:e.cumpleanios.replace(/\-/ig,""):"",external_id:null==e?void 0:e.idClaro,country:"mx"}):window.fbq("init",t)}catch(e){}};function u(e,t){let o=(0,l.Sx)("profileData"),u=(0,l.Sx)("PINTEREST_CODE"),s=(0,l.Sx)("META_CODE"),c=(0,i.MD5)(null==o?void 0:o.correo).toString(),p=(0,i.SHA256)(null==o?void 0:o.correo).toString(),v=(0,l.Sx)("BASE_PATH_API");(0,n.useEffect)(()=>{let n={},i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://s.pinimg.com/ct/core.js",document.body.appendChild(i);let l=document.createElement("script");return l.type="text/javascript",l.async=!0,l.src="https://connect.facebook.net/en_US/fbevents.js",document.body.appendChild(l),n=()=>{var n,i;switch(e){case"event_home":d(o,s,p);try{window.fbq("track","PageView")}catch(e){}break;case"event_product":let l=(null==t?void 0:t.categories)||[],_=(null==l?void 0:l.length)>0?l[0]:{},m=[{product_name:null==t?void 0:t.title,product_id:null==t?void 0:t.id,product_price:null==t?void 0:t.sale_price,product_category:(null==_?void 0:_.name)||"Sin categor\xeda"}];r(o,u,c,"event_"+(Math.floor(9e5*Math.random())+1e5),m);let g=(null==t?void 0:null===(n=t.categories)||void 0===n?void 0:n.length)>0?null==t?void 0:t.categories.map(e=>(0,a.Wv)(null==e?void 0:e.name)).reverse().join("/"):"Sin categor\xeda",w=v.includes("sears")?[null==t?void 0:t.sku]:[null==t?void 0:t.id];d(o,s,p);try{window.fbq("track","PageView"),window.fbq("track","ViewContent",{content_name:(0,a.Wv)(null==t?void 0:t.title),content_category:g,content_ids:w.map(String),content_type:"product",value:null==t?void 0:t.sale_price,currency:"MXN",referrer:document.referrer,userAgent:navigator.userAgent,language:navigator.language,origen:"pwa"})}catch(e){}break;case"event_cart":if((null==t?void 0:t.total_price)>0){null==t||t.total_price,null==t||t.total_items;let n=null==t?void 0:null===(i=t.products)||void 0===i?void 0:i.map(e=>{var t;let o=(null==e?void 0:e.categories)&&(null==e?void 0:null===(t=e.categories)||void 0===t?void 0:t.length)>0?null==e?void 0:e.categories[0]:[],n=o.length>0?o[0]:{};return{product_name:null==e?void 0:e.title,product_id:null==e?void 0:e.id.toString(),product_category:n.name||"Sin categor\xeda",product_price:(null==e?void 0:e.pricing)?null==e?void 0:e.pricing.sales_price:0}});r(o,u,c,e,n)}}},i.addEventListener("load",n),()=>{i.removeEventListener("load",n),document.body.removeChild(i),document.body.removeChild(l)}},[c,p,e,t])}},37107:function(e,t,o){"use strict";o.d(t,{WS:function(){return d},ZO:function(){return a},tx:function(){return r}});var n=o(6154),i=o(3496),l=o(48218);async function a(e){let{section:t="general"}=e,o="Bearer "+(0,l.Sx)("access_token"),a=(0,l.Sx)("BASE_PATH_API"),r={method:"get",url:"Home"!==t?"".concat(a,"/pixel-tracking/api/v1/meses"):"".concat(a,"/pixel-tracking/api/v1"),timeout:i.en,headers:{"Content-Type":"application/json; charset=utf-8",Authorization:o}};return await (0,n.Z)(r).then(e=>{let{headers:t,status:o,data:n}=e;return{headers:t,statusCode:o,data:n,error:""}}).catch(e=>{var t,o,n,i;return{headers:"",statusCode:null==e?void 0:null===(t=e.request)||void 0===t?void 0:t.status,data:null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.data,error:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.msg}})}async function r(){let{idProduct:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.Sx)("session_token"),o=(0,l.Sx)("BASE_PATH_API"),a="Bearer "+(0,l.Sx)("access_token"),r=JSON.stringify({productId:e}),d={method:"post",url:"".concat(o,"/pixel-tracking/api/v1"),timeout:i.en,headers:{"Content-Type":"application/json;",Authorization:a},data:r};if(t)return await (0,n.Z)(d).then(e=>{let{headers:t,status:o,data:n}=e;return{headers:t,statusCode:o,data:n,error:""}}).catch(e=>{var t,o,n,i;return{headers:"",statusCode:null==e?void 0:null===(t=e.request)||void 0===t?void 0:t.status,data:null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.data,error:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.msg}})}async function d(){let{idProduct:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.Sx)("session_token");let t=(0,l.Sx)("BASE_PATH_API"),o="Bearer "+(0,l.Sx)("access_token"),a="".concat(t,"/pixel-tracking/api/v1/").concat(e),r=JSON.stringify({productId:e}),d={method:"delete",url:a,timeout:i.en,headers:{"Content-Type":"application/json; charset=utf-8",Authorization:o},data:r};return await (0,n.Z)(d).then(e=>{let{headers:t,status:o,data:n}=e;return{headers:t,statusCode:o,data:n,error:""}}).catch(e=>{var t;return{headers:"",statusCode:null==e?void 0:null===(t=e.request)||void 0===t?void 0:t.status,data:e.request.response,error:e.response.data.msg}})}},61061:function(e){e.exports={barraUpdateApp:"DownloadApp_barraUpdateApp__EbttY",btn:"DownloadApp_btn__MP2mx",iconAppUpdate:"DownloadApp_iconAppUpdate__XPOan",textAppUpdate:"DownloadApp_textAppUpdate__irgop",downloadAppUpdate:"DownloadApp_downloadAppUpdate__jd5UY",closeAppUpdate:"DownloadApp_closeAppUpdate__uKr2y",barraUpdateAppWV:"DownloadApp_barraUpdateAppWV__OX844",iconAppUpdateWV:"DownloadApp_iconAppUpdateWV__fj_qa"}}}]);