(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},91118:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(36328)}])},4554:function(e,t,n){"use strict";n.d(t,{$_:function(){return f},CC:function(){return h},Ci:function(){return y},GN:function(){return m},Iv:function(){return l},Pj:function(){return a},TD:function(){return i},_h:function(){return r},_x:function(){return d},bc:function(){return w},eD:function(){return _},ix:function(){return v},mc:function(){return u},od:function(){return E},qe:function(){return g},se:function(){return c},so:function(){return s},t6:function(){return p},tT:function(){return o}});let r="5848",o=[2430],a=!1,i="sku",u="2430",c="SEARS - Me entiende",s="SEARS.COM.MX | Env\xedos a todo M\xe9xico \xb7 M\xe1s de 500 mil productos con todas las Formas de Pago Compras 100% Seguras \xb7 Lo mejor en Moda, L\xednea blanca, Pantallas, Computo, Celulares, Juguetes, Muebles, Ferreter\xeda y m\xe1s \xb7 Click & Recoge en Tienda",d="https://www.sears.com.mx",f="bolsa",l=!0,p=!1,_="/cat",m=!1,h=!0,w=!1,v=!1,y="f55685555553z63c233n3n3s091553532/ds_sears_prod",g={apiKey:"AIzaSyBj6ZzG2EvX9mivBjekD8X3AY4loxdDUns",authDomain:"sears-app.firebaseapp.com",databaseURL:"https://sears-app-default-rtdb.firebaseio.com",projectId:"sears-app",storageBucket:"sears-app.firebasestorage.app",messagingSenderId:"722212688225",appId:"1:722212688225:web:cf12b606b1bcc6fb107520",measurementId:"G-MCDNJP2VE4"},E="se"},23164:function(e,t,n){"use strict";n.d(t,{I0:function(){return d},Vd:function(){return u},oR:function(){return s}});var r=n(85893),o=n(67294),a=n(52373);let i=(0,o.createContext)(),u=(0,o.createContext)(),c=e=>{let{children:t}=e,[n,c]=(0,o.useReducer)(a.ZP,a.A1),[s,d]=(0,o.useState)(!0);return(0,r.jsx)(i.Provider,{value:[n,c],children:(0,r.jsx)(u.Provider,{value:{change:s,setChange:d},children:t})})},s=()=>(0,o.useContext)(i)[0],d=()=>(0,o.useContext)(i)[1];t.ZP=c},52373:function(e,t,n){"use strict";n.d(t,{A1:function(){return a},vK:function(){return o}});var r=n(48218);let o={ADD_ACCESS_TOKEN:"add_access_token",UPDATE_ACCESS_TOKEN:"update_access_token",ADD_REFRESH_TOKEN:"add_refresh_token",UPDATE_REFRESH_TOKEN:"update_refresh_token",DELETE_REFRESH_TOKEN:"delete_refresh_token",ADD_CART_ID:"add_cart_id",ADD_SESSION_ID:"add_session_id",ADD_CART_COUNT:"add_cart_count",UPDATE_CART_COUNT:"update_cart_count",UPDATE_PRODUCT:"update_product",SHOW_MENU:"show_menu",UPDATE_CP:"update_CP",UPDATE_FIXED:"update_fixed",UPDATE_TYPE_SEARCH:"type_search"},a={user:{access_token:(0,r.Sx)("access_token"),refresh_token:(0,r.Sx)("refresh_token"),session_ID:(0,r.Sx)("session_token")},product:{click_product:{producto:{}}},cart:{cart_ID:(0,r.Sx)("idCarrito"),cart_Count:(0,r.Sx)("total_items")?isNaN(Number((0,r.Sx)("total_items")))?0:(0,r.Sx)("total_items"):0},menu:{ShowMenu:!1},delivery:{codigo_Postal:(0,r.Sx)("codigoPostal")},fixed:{fixed:!1},typeSearch:{typeSearch:"fake"}},i=(e,t)=>{switch(t.type){case o.UPDATE_PRODUCT:return{...e,product:{click_product:{producto:t.payload}}};case o.ADD_ACCESS_TOKEN:return{...e,user:{...e.user,access_token:t.payload}};case o.ADD_REFRESH_TOKEN:return{...e,user:{...e.user,refresh_token:t.payload}};case o.UPDATE_CART_COUNT:return{...e,cart:{...e.cart,cart_Count:t.payload}};case o.SHOW_MENU:return{...e,menu:t.payload};case o.UPDATE_CP:return{...e,delivery:t.payload};case o.UPDATE_FIXED:return{...e,fixed:t.payload};case o.UPDATE_TYPE_SEARCH:return{...e,typeSearch:t.payload};default:return e}};t.ZP=i},48218:function(e,t,n){"use strict";function r(e,t){window.localStorage.setItem(window.btoa(e),window.btoa(JSON.stringify(t)))}function o(e){let t;t=window.localStorage.getItem(window.btoa(e));try{return t?JSON.parse(window.atob(t)):""}catch(e){if("\x9e\xe9e"===t)return"";return t}}function a(e){window.localStorage.removeItem(e),window.localStorage.removeItem(window.btoa(e))}function i(e,t){window.localStorage.setItem(window.btoa(unescape(encodeURIComponent(e))),window.btoa(unescape(encodeURIComponent(JSON.stringify(t)))))}n.d(t,{Li:function(){return a},Sx:function(){return o},VW:function(){return i},rG:function(){return r}})},36328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(85893),o=n(23164),a=n(67294),i=n(1785),u=n.n(i),c=n(48218);let s=e=>{let t=(0,c.Sx)("GTM_CODE");u().initialize({gtmId:e||t,dataLayerName:"PageDataLayer"})},d=async e=>{try{let t=await fetch(e),n=await t.json();return n}catch(e){return{error:e.message}}};n(4554),n(33218),n(58067),n(5375),n(84672),n(93793),n(8215),n(19091),n(76839),n(14579),n(49840),n(10658),n(69936);var f=n(83454);function l(e){let{Component:t,pageProps:{session:n,...i}}=e;return(0,a.useEffect)(()=>{s(f.env.NEXT_PUBLIC_GTM_CODE)},[]),(0,r.jsx)(o.ZP,{children:(0,r.jsx)(t,{...i})})}l.getServerSideProps=async e=>{let{ctx:t}=e,n="".concat(f.env.NEXT_PUBLIC_BASE_PATH_PORTAL,"/api/config"),[r]=await Promise.all([d(n)]);return{...appProps,props:{...appProps.props,configVars:r}}};var p=l},10658:function(){},49840:function(){},5375:function(){},8215:function(){},93793:function(){},84672:function(){},33218:function(){},76839:function(){},58067:function(){},14579:function(){},19091:function(){},69936:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c=[],s=!1,d=-1;function f(){s&&r&&(s=!1,r.length?c=r.concat(c):d=-1,c.length&&l())}function l(){if(!s){var e=u(f);s=!0;for(var t=c.length;t;){for(r=c,c=[];++d1)for(var n=1;n',script:s,dataLayerVar:this.dataLayer(r,a)}},dataLayer:function(e,t){return"\n window."+t+" = window."+t+" || [];\n window."+t+".push("+JSON.stringify(e)+")"}}},58676:function(e,t,n){"use strict";var r,o=(r=n(56421))&&r.__esModule?r:{default:r};e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=o.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,n=e.events,r=e.dataLayer,o=e.dataLayerName,a=e.auth,i=e.preview,u=this.gtm({id:t,events:void 0===n?{}:n,dataLayer:r||void 0,dataLayerName:void 0===o?"dataLayer":o,auth:void 0===a?"":a,preview:void 0===i?"":i});r&&document.head.appendChild(u.dataScript),document.head.insertBefore(u.script(),document.head.childNodes[0]),document.body.insertBefore(u.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,n=e.dataLayerName,r=void 0===n?"dataLayer":n;if(window[r])return window[r].push(t);var a=o.default.dataLayer(t,r),i=this.dataScript(a);document.head.insertBefore(i,document.head.childNodes[0])}}},1785:function(e,t,n){"use strict";var r,o=(r=n(58676))&&r.__esModule?r:{default:r};e.exports=o.default},96425:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(96885)}),_N_E=e.O()}]);