(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[426],{44122:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(67294),o=r(29830),i=r(70426),s=r(53634),a=r(83768),l=r(14037),d=r.n(l),u=r(85893),c=(0,n.memo)(function(e){var{src:t,alt:r,href:n,title:i,categorieName:l,promotionParams:c}=e,p=(0,o.jW)();return(0,u.jsx)("div",{className:d()["fs-categorie-buble"],children:(0,u.jsx)(s.Z,{href:n,"data-fs-categorie-buble-link":!0,onClick:()=>(0,a.i)({promotionParams:c,href:n,categoryName:l,imageUrl:t}),children:(0,u.jsxs)("div",{"data-fs-categorie-buble-box":!0,children:[(0,u.jsx)("div",{"data-fs-buble-image":!0,children:(0,u.jsx)("img",{"data-fs-image":!0,src:t,alt:r,title:i,width:p?85:148,height:p?85:148})}),(0,u.jsx)("div",{"data-fs-buble-categorie-name":!0,children:(0,u.jsx)("p",{children:l})})]})})})}),p=r(58618),f=r.n(p),h=(0,n.memo)(function(e){var{cards:t,isActiveDesktop:r,isActiveMobile:s,initialDate:a,finalDate:l,gridType:d,scrollType:p="buttonSeeMore",gridOrganization:h="six",isNotFoundPage:g=!1}=e,v=(0,n.useRef)(null),{0:m,1:w}=(0,n.useState)(!1),b=(0,o.jW)(),_=(0,i.A)(a,l);return(b||r)&&(!b||s)&&_?(0,u.jsxs)("div",{className:f()["fs-categories-grid"],"data-fs-max-width":!0,"data-fs-categories-grid-content":!0,"data-fs-is-not-found-page":g,children:[(0,u.jsx)("div",{"data-fs-categories-grid-title":!0,"data-categories-grid":r,children:(0,u.jsx)("h5",{children:"Compra por categor\xedas"})}),(0,u.jsx)("div",{ref:v,"data-fs-categories-grid-bubbles":!0,"data-categories-grid":r,"data-fs-categories-grid-type":d,"data-fs-categories-grid-quantity":h,"data-fs-overflow-auto":p,className:"".concat(m?f()["fs-categories-noShowMore"]:f()["fs-categories-showMore"]),children:null==t?void 0:t.map((e,t)=>(0,u.jsx)(c,{src:b?e.mobileImageSrc:e.imageSrc,alt:e.imageAlt,title:e.imageTitle,href:e.href,categorieName:e.name,promotionParams:null==e?void 0:e.promotionParams},"".concat(e.name,"-").concat(t)))}),t&&(null==t?void 0:t.length)>(b?9:12)&&"buttonSeeMore"===p&&(0,u.jsx)("button",{"data-fs-categories-btn-show-more":!0,"data-categories-grid":r,onClick:()=>w(!m),children:m?"Ver menos":"Ver m\xe1s"})]}):(0,u.jsx)(u.Fragment,{})})},70757:function(e,t,r){"use strict";r.d(t,{Z:function(){return Modals}});var n=r(41847),o=r(10937),i=r(75756),s=r(85893);function Modals(e){var t,r,{showSubstitutes:a,type:l,setShowSubstitutes:d,product:u,isDrawerOpen:c,linkProps:p,pum:f,selectedSeller:h,unitMultiplier:g,index:v,currentMeat:m,setOpenDrawer:w,minorProfit:b,alliedList:_,componentTitle:j,quantity:x}=e;return a&&"food"===l?(0,s.jsx)(n.Z,{open:a,setShowSubstitutes:d,callbackIsSubstitutesOpen:e=>d(e),product:u}):c&&"food"===l?(0,s.jsx)(o.Z,{product:u,linkProps:p,pum:f,productPrice:null!==(t=null==h?void 0:null===(r=h.commertialOffer)||void 0===r?void 0:r.Price)&&void 0!==t?t:0*g,selectedSeller:h,open:c,index:v,currentMeat:m,setIsDrawerOpen:w,minorProfit:b}):c&&"textile"===l?(0,s.jsx)(i.Z,{alliedList:_,callbackIsOpen:e=>w(e),product:u,linkProps:p,selectedSeller:h,open:c,availableQuantity:x,componentTitle:j,index:v,minorProfit:b,unitMultiplier:g}):null}},20377:function(e,t,r){"use strict";r.d(t,{Z:function(){return components_ProductImageCard}});var n=r(59499),o=r(67294),i=r(25675),s=r.n(i),a=r(41664),l=r.n(a),d=r(91953),u=r(74397),c=r(16386),p=r(24900),f=r.n(p),h=r(85893),SponsoredFlag=()=>(0,h.jsxs)("div",{className:f().sponsoredFlagContainer,children:[(0,h.jsx)(d.Z,{"data-fs-menu-icon":!0,name:"icon-exclamation",width:9,height:9}),"Patrocinado"]}),g=r(6935),v=r(24253),m=r.n(v);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t{if(w&&r[e]){var t,n;O({url:null===(t=r[e])||void 0===t?void 0:t.url,alternateName:null===(n=r[e])||void 0===n?void 0:n.alternateName})}};return(0,h.jsxs)("div",{"data-fs-product-card-image":!0,className:m().productCardImage,children:[p&&(0,h.jsx)("div",{className:m().contentFlag,children:(0,h.jsx)(c.q,{flagProps:p})}),f&&(0,h.jsx)(SponsoredFlag,{}),v&&(a?(0,h.jsx)(g.Z,{imageUrl:r,sku:n,name:i}):(0,h.jsx)(u.T,{productName:i,skuId:n})),(null==_?void 0:_.plus)&&(0,h.jsx)("div",{className:m().content__mydiscountIco,children:(0,h.jsx)(d.Z,{"data-fs-mydescuento-icon":!0,name:"icon-my-discount",width:51,height:51})}),(0,h.jsx)(l(),_objectSpread(_objectSpread({onMouseEnter:()=>handleChangeImage(1),onMouseLeave:()=>handleChangeImage(0)},b),{},{children:(0,h.jsx)(s(),{src:null==y?void 0:y.url,alt:null==y?void 0:y.alternateName,width:null!=x?x:165,height:null!=j?j:165})}))]})}},30304:function(e,t,r){"use strict";r.d(t,{Z:function(){return components_SellerAndReviews}});var n=r(14467),o=r(92867),i=r(528),s=r.n(i),a=r(85893),ReviewsAndRatingsCarrousel_ReviewsAndRatingsCarrousel=e=>{var t,{productId:r,dataReviewSku:i}=e,l=(0,o.Rl)(r,i);return null!=l&&l.averageScore?(0,a.jsxs)("div",{"data-fs-review-container":!0,className:s().containerReview,children:[(0,a.jsx)("span",{"data-fs-reviews-reviews-ratings-calification":!0,children:null==l?void 0:null===(t=l.averageScore)||void 0===t?void 0:t.toFixed(1)}),(0,a.jsx)("span",{"data-fs-reviews-reviews-ratings-star":!0,children:(0,a.jsx)(n.Z,{name:"icon-fill_-_score_star_rate_rating_estrella_review_calificaci\xf3n_02",width:15,height:15,viewBox:"0 0 24 24",fill:"black"})}),(0,a.jsxs)("span",{"data-fs-reviews-reviews-ratings-text":!0,children:["(",null==l?void 0:l.reviewsByProduct," opiniones)"]})]}):null},l=r(63188),components_SellerAndReviews=e=>{var{sellerName:t,productID:r,dataReview:n}=e;return(0,a.jsxs)("div",{"data-fs-product-card-seller-and-reviews-wrapper":!0,children:[(0,a.jsx)(l.Z,{sellerName:t}),(0,a.jsx)(ReviewsAndRatingsCarrousel_ReviewsAndRatingsCarrousel,{productId:r,dataReviewSku:n})]})}},70620:function(e,t,r){"use strict";r.d(t,{Z:function(){return ProductCard}});var n=r(59499),o=r(41664),i=r.n(o),s=r(67294),a=r(34210),l=r(74915),d=r(25679),u=r(73358),c=r(46642),p=r(8101),f=r(77269),h=r(30716),g=r(20377),v=r(67521),m=r.n(v),w=r(66687),b=r(85893),components_ProductCardProperties=e=>{var{properties:t}=e;return(0,b.jsx)("ul",{"data-fs-product-card-properties":!0,children:null==t?void 0:t.map((e,t)=>t<4&&(0,b.jsx)("li",{children:(0,b.jsxs)("span",{children:[e.name," ",e.values[0]]})},"data-fs-product-card-properties-".concat(t)))})},_=r(3201),j=r(70240),x=r(54273),y=r.n(x);function ProductCardName(e){var{brandName:t,name:r,price:n,isFood:o,pum:i}=e;return(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:y().name,children:r}),o?(0,b.jsx)("span",{className:y().brand,children:i[0]&&i[1]?(0,b.jsxs)(b.Fragment,{children:["(",(0,b.jsx)(j.x,{price:null!=n?n:0,quantity:i[0],unit:i[1]}),")"]}):null}):(0,b.jsx)("span",{className:y().brand,children:t})]})}var O=r(50827),C=r(53634);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t{var{sellers:t,linkProps:r,sellerId:n}=e,o=(0,O.T)(t,n);return(null==o?void 0:o.length)===0?null:(0,b.jsx)(b.Fragment,{children:(0,b.jsx)("div",{"data-fs-product-card-additional-offers":!0,children:(0,b.jsxs)(C.Z,_objectSpread(_objectSpread({},r),{},{onClick:()=>{localStorage.setItem("openMultiOffer","true")},children:["Ver ",null==o?void 0:o.length,(null==o?void 0:o.length)>1?" ofertas adicionales":" oferta adicional"]}))})})},P=r(30304),S={Active:!1,Category:"",Image:"",Packing:"",Plu:"",Portion:"",Preparation:"",Segment:"",SegmentDescription:"",sku:"",Use:"",id:"",accountId:"",accountName:"",dataEntityId:"",createdBy:"",createdIn:"",updatedBy:"",updatedIn:"",lastInteractionBy:"",lastInteractionIn:"",followers:[],tags:[],auto_filter:{}},I=r(66072),D=r(13870),N=r(69567),k=r.n(N);function ButtonCard_tsx_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ButtonCard_tsx_objectSpread(e){for(var t=1;te.name),productContext:h,index:g,myDiscount:v,buttonType:a,itemOffered:m,openDrawerProps:{isDrawerOpen:w,setIsDrawerOpen:d,setCurrentMeat:_},setShowSubstitutes:j,items:[u]})}var M=r(70757);function ProductCard_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ProductCard_objectSpread(e){for(var t=1;tnull==e?void 0:e.sellerDefault);if(!eg)return null;var ev=(0,u.Z)(),em=(null==X?void 0:X.type)==="FOOD",ew=eu?"row":"column",eb=(0,w.y)(J,G),e_=null!==(o=null==ee?void 0:ee.unitMultiplier)&&void 0!==o?o:0,ej=(t=null!==(v=null==X?void 0:X.type)&&void 0!==v?v:"NO_FOOD",r="default","NO_FOOD"!==t&&(r=t.toLowerCase()),r),ex=(0,c.R)(null==F?void 0:F.offers,null!==(j=null==eg?void 0:eg.sellerId)&&void 0!==j?j:""),ey=null!==(x=null==ee?void 0:null===(y=ee.properties)||void 0===y?void 0:y.slice(0,4))&&void 0!==x?x:[],eO=(0,p.MA)(null==H?void 0:H.activeVariations),eC=null!==(O=null==eg?void 0:null===(C=eg.commertialOffer)||void 0===C?void 0:C.Price)&&void 0!==O?O:0,eP=(0,f.Ak)(R,E,F),setVisibleSubstitutes=e=>{!function(e){var{setShowSubstitutes:t,setShowSubstitutesOwn:r,setDataDrawer:n,product:o,value:i}=e;t&&n?(n({product:o,type:"food"}),t(i)):r(i)}({setShowSubstitutes:q,setShowSubstitutesOwn:eo,setDataDrawer:U,product:F,value:e})};function openedDrawer(){!function(e){var t,r,{hasAnGiftCard:n,showGiftModal:o,buttonType:i,setDataDrawer:s,selectedSeller:a,setOpenDrawer:l,unitMultiplier:d,product:u,linkProps:c,quantity:p,minorProfit:f,currentMeat:h,pum:g}=e;n?o(!0):("textile"===i&&s&&s({product:u,linkProps:c,selectedSeller:a,quantity:p,unitMultiplier:d,minorProfit:f,type:"textile"}),"food"===i&&s&&s({product:u,linkProps:c,selectedSeller:a,quantity:p,unitMultiplier:d,minorProfit:f,type:"food",currentMeat:h,pum:g,productPrice:null!==(t=null==a?void 0:null===(r=a.commertialOffer)||void 0===r?void 0:r.Price)&&void 0!==t?t:0*d}),l(!0))}({hasAnGiftCard:ec,showGiftModal:ep,buttonType:ej,setDataDrawer:U,selectedSeller:eg,setOpenDrawer:ea,unitMultiplier:e_,product:F,linkProps:eh,quantity:et,minorProfit:eb,currentMeat:el,pum:ex})}return(0,b.jsxs)("article",{className:"".concat(m().productCard," ").concat(m()[ew]),children:[(0,b.jsxs)("div",{className:"".concat(m().contentInfo," ").concat(m()[ew]),children:[(0,b.jsxs)("div",{"data-fs-card-left":!0,children:[(0,b.jsx)(g.Z,{width:"textile"===ej?115:void 0,sponsorFlag:null==F?void 0:null===(I=F.relevanc)||void 0===I?void 0:I.tag,showWishlist:V,productFlag:ef,myDiscount:eb,linkProps:eh,isFood:em,image:Y,name:Q,sku:J,changeImage:!0}),eu&&ev&&(0,b.jsx)(P.Z,{sellerName:null!==(D=null==eg?void 0:eg.sellerName)&&void 0!==D?D:"",productID:W,dataReview:L})]}),(0,b.jsxs)("div",{className:m().productInfo,children:[(0,b.jsx)(i(),ProductCard_objectSpread(ProductCard_objectSpread({},eh),{},{className:m().productLinkInfo,children:(0,b.jsx)(ProductCardName,{brandName:$,name:Q,price:eC,isFood:em,pum:ex})})),eu&&!ev?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(components_ProductCardProperties,{properties:ey}),(0,b.jsx)(components_AdditionalOffers,{sellers:z,linkProps:eh,sellerId:null!==(N=null==eg?void 0:eg.sellerId)&&void 0!==N?N:""})]}):(0,b.jsxs)("div",{className:m().priceOfferButton,children:[(0,b.jsx)(_.Z,{sku:J,alliedList:A,myDiscount:eb,selectedSeller:eg,unitMultiplier:e_,buttonType:ej}),ev&&(0,b.jsxs)("div",{children:[!eu&&(0,b.jsx)(P.Z,{sellerName:null!==(k=null==eg?void 0:eg.sellerName)&&void 0!==k?k:"",productID:W,dataReview:L}),(0,b.jsx)(components_AdditionalOffers,{sellers:z,linkProps:eh,sellerId:null!==(B=null==eg?void 0:eg.sellerId)&&void 0!==B?B:""}),(0,b.jsx)(ButtonCard,{buttonType:ej,linkProps:eh,openedDrawer:openedDrawer,product:F,isVariantOf:eO,selectedSeller:eg,quantity:et,productContextInfo:eP,index:R,minorProfit:eb,itemOffered:ee,isDrawerOpen:ei,setCurrentMeat:ed,setShowSubstitutes:setVisibleSubstitutes})]})]})]})]}),!ev&&(0,b.jsxs)("div",{className:m().productComplement,children:[eu&&(0,b.jsx)(_.Z,{sku:J,alliedList:A,myDiscount:eb,selectedSeller:eg,unitMultiplier:e_,buttonType:ej}),(0,b.jsxs)("div",{children:[(0,b.jsx)(P.Z,{sellerName:null!==(Z=null==eg?void 0:eg.sellerName)&&void 0!==Z?Z:"",productID:W,dataReview:L}),!eu&&(0,b.jsx)(components_AdditionalOffers,{sellers:z,linkProps:eh,sellerId:null!==(T=null==eg?void 0:eg.sellerId)&&void 0!==T?T:""}),(0,b.jsx)(ButtonCard,{buttonType:ej,linkProps:eh,openedDrawer:openedDrawer,product:F,isVariantOf:eO,selectedSeller:eg,quantity:et,productContextInfo:eP,index:R,minorProfit:eb,itemOffered:ee,isDrawerOpen:ei,setCurrentMeat:ed,setShowSubstitutes:setVisibleSubstitutes})]})]}),(0,b.jsx)(M.Z,{showSubstitutes:en,type:ej,setShowSubstitutes:eo,product:F,isDrawerOpen:ei,linkProps:eh,pum:ex,selectedSeller:eg,unitMultiplier:e_,index:R,currentMeat:el,setOpenDrawer:ea,minorProfit:eb,alliedList:A,componentTitle:E,quantity:et})]})}},66687:function(e,t,r){"use strict";function getMinorProfit(e,t){var r=t&&null!=Array&&Array.isArray(t)?t:[],n=r?null==r?void 0:r.filter(t=>{var r,n;return(null==t?void 0:null===(r=t.plus)||void 0===r?void 0:null===(n=r.pluNumber)||void 0===n?void 0:n.toString())===(null==e?void 0:e.toString())}):[],o=null==n?void 0:n.shift();return null==n||n.forEach(e=>{var t,r,n,i,s,a,l;null!=e&&null!==(t=e.plus)&&void 0!==t&&null!==(r=t.profit)&&void 0!==r&&r.includes("%")&&o&&(null==e?void 0:null===(n=e.plus)||void 0===n?void 0:null===(i=n.profit)||void 0===i?void 0:i.replace(/[^0-9]+/g,""))>(null===(s=o)||void 0===s?void 0:null===(a=s.plus)||void 0===a?void 0:null===(l=a.profit)||void 0===l?void 0:l.replace(/[^0-9]+/g,""))&&(o=e)}),o}r.d(t,{y:function(){return getMinorProfit}})},67665:function(e,t,r){"use strict";r.d(t,{Bb:function(){return c},Bi:function(){return v},DX:function(){return O},Ei:function(){return _},Gv:function(){return u},Jt:function(){return n},UE:function(){return j},Uf:function(){return h},Yu:function(){return b},Zi:function(){return p},_:function(){return y},d8:function(){return m},fr:function(){return x},i:function(){return o},k0:function(){return s},le:function(){return i},mF:function(){return l},o7:function(){return a},pC:function(){return g},sz:function(){return d},wd:function(){return w},xG:function(){return f}});var n=[1024,0],o=[768,0],i=[320,0],s=[0,0],a="adUnit",l="pos",d="resolution",u="environment",c="prod",p="BannerType",f="cpg",h="xs",g="lg",v="nocid",m="true",w="newCustomer",b="false",_="/21971600702/exito",j="searchTerm",x={desktop:[{width:1280,height:110},{width:1280,height:150},{width:1280,height:380},{width:918,height:110},{width:1,height:1}],tablet:[{width:918,height:110},{width:1,height:1}],mobile:[{width:375,height:110},{width:375,height:100},{width:1,height:1}]},y={desktop:[{width:120,height:600},{width:160,height:600},{width:300,height:600},{width:258,height:600},{width:120,height:900},{width:1,height:1}],tablet:[{width:918,height:110},{width:1,height:1}],mobile:[{width:300,height:50},{width:300,height:100},{width:320,height:50},{width:320,height:100},{width:375,height:110},{width:1,height:1}]},O={desktop:[{width:615,height:400},{width:615,height:300},{width:615,height:285},{width:1,height:1}],tablet:[{width:300,height:250},{width:300,height:400},{width:355,height:231},{width:1,height:1}],mobile:[{width:300,height:250},{width:300,height:400},{width:355,height:231},{width:1,height:1}]}},26060:function(e,t,r){"use strict";r.d(t,{Z:function(){return GooglePublisherTag_GooglePublisherTag}});var n=r(67294),o=r(75156),i=r(11163),s=r(29830),a=r(82925),l=r(67665),d=r(47595),u=r(76185),c=r.n(u),p=r(85893),GooglePublisherTag_GooglePublisherTag=e=>{var t,r,u,{srcBanner:f,sizeArray:h,position:g,active:v,mobile:m}=e,w=(0,i.useRouter)(),b=(0,a.M)(),{0:_,1:j}=(0,n.useState)(),{0:x,1:y}=(0,n.useState)(!0),O="".concat(l.Ei).concat(null==w?void 0:w.asPath),C=(0,s.jW)(724),P=null==h?void 0:null===(t=h.desktop)||void 0===t?void 0:t.map(e=>[e.width,e.height]),S=null==h?void 0:null===(r=h.tablet)||void 0===r?void 0:r.map(e=>[e.width,e.height]),I=null==h?void 0:null===(u=h.mobile)||void 0===u?void 0:u.map(e=>[e.width,e.height]),D=[[l.Jt,P],[l.i,S.length?S:[[1,1]]],[l.le,I],[l.k0,[[1,1]]]];return((0,n.useEffect)(()=>{if(b)y(!1),j([[l.o7,O],[l.sz,window.innerWidth<=768?l.Uf:l.pC],[l.Gv,l.Bb],[l.Zi,l.xG],[l.Bi,l.d8],[l.wd,l.Yu],[l.mF,g]]);else if(null!=w&&w.pathname.includes("/s")){var e,t;y(!0),j([[l.o7,f],[l.sz,window.innerWidth<=768?l.Uf:l.pC],[l.Gv,l.Bb],[l.Zi,l.xG],[l.Bi,l.d8],[l.wd,l.Yu],[l.mF,g],["pageType","store.search"],[l.UE,null!=w&&null!==(e=w.query)&&void 0!==e&&e.q?null==w?void 0:null===(t=w.query)||void 0===t?void 0:t.q:""]])}else y(!0),j([[l.o7,f],[l.mF,g],[l.sz,window.innerWidth<=768?l.Uf:l.pC],[l.Gv,l.Bb],[l.Zi,l.xG],[l.Bi,l.d8],[l.wd,l.Yu]])},[h,C]),f&&v)?(0,p.jsx)(p.Fragment,{children:v?(0,p.jsx)(d.Z,{"data-fs-max-width":!0,className:c().fsGooglePublisherTag,children:(0,p.jsx)("div",{children:null!=_&&_.length?(0,p.jsx)(o.Ad,{adUnit:x?f:O,name:x?"".concat(f,"-").concat(g):"".concat(O,"-").concat(g,"-").concat(m||""),size:D,target:_}):null})}):null}):(0,p.jsx)(p.Fragment,{})}},34210:function(e,t,r){"use strict";r.d(t,{Fg:function(){return useGridOption},mY:function(){return GridOptionsProvider}});var n=r(11163),o=r(67294),i=r(85893),s=o.createContext({}),GridOptionsProvider=e=>{var{children:t,galleryType:r,defaultLayoutMode:a}=e,{asPath:l}=(0,n.useRouter)(),{0:d,1:u}=(0,o.useState)(a?"List"===a:getIsLine()),{0:c,1:p}=(0,o.useState)("");function getIsLine(){return"tecnologia"===r&&!l.includes("celulares")}return(0,o.useEffect)(()=>{(""===c||(null==l?void 0:l.split("/")[1])!==c.split("/")[1])&&(p(l),u(a?"List"===a:getIsLine()))},[l]),(0,i.jsx)(s.Provider,{value:(0,o.useMemo)(()=>({isLine:d,setIsLine:u}),[d,u]),children:t})},useGridOption=()=>o.useContext(s)},83768:function(e,t,r){"use strict";r.d(t,{i:function(){return setCategoryClick}});var n=r(11163),o=r.n(n),i=r(48460),s=r(20148),a=r(77269),setCategoryClick=e=>{var{promotionParams:t,href:r,categoryName:n,imageUrl:l}=e;t&&(0,i._)({name:"Category-Home",params:{event:"Category-Home",image_url:l,section:(0,s.If)(o()),timestamp:(0,a.jI)(),origin:(0,a.D2)(),category:n,category_position:null==t?void 0:t.creativeName,url:r}})}},7104:function(e,t,r){"use strict";r.d(t,{au:function(){return useCountdown},lj:function(){return isCountdownFinished}});var n=r(67294),o=new Intl.DateTimeFormat("en-US",{timeZone:"America/Bogota",year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"numeric",minute:"numeric",second:"numeric"});function parseDate(e){var t=null==e?void 0:e.replace(/-/g,"T").replace(/\//g,"-");return new Date(t).getTime()}function getColTimeNow(){var e=new Date,t=o.format(e);return new Date(t).getTime()}var useCountdown=e=>{var t=parseDate(e),{0:r,1:o}=(0,n.useState)("00:00:00");return(0,n.useEffect)(()=>{var e=setInterval(()=>{var e,r,n,i,s;o((n=Math.floor((r=Math.floor((e=Math.floor((t-getColTimeNow())/1e3))/60))/60).toString().padStart(2,"0"),i=(r%60).toString().padStart(2,"0"),s=(e%60).toString().padStart(2,"0"),"".concat(n,":").concat(i,":").concat(s)))},1e3);return()=>clearInterval(e)},[t]),r};function isCountdownFinished(e,t){var r=getColTimeNow(),n=parseDate(e);return r>parseDate(t)||r