1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6510],{84297:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(67294),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=(e,t)=>{let s=(0,r.forwardRef)(({color:s="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,children:c,...d},u)=>(0,r.createElement)("svg",{ref:u,...n,width:i,height:i,stroke:s,strokeWidth:o?24*Number(a)/Number(i):a,className:`lucide lucide-${l(e)}`,...d},[...t.map(([e,t])=>(0,r.createElement)(e,t)),...(Array.isArray(c)?c:[c])||[]]));return s.displayName=`${e}`,s}},65330:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[site]/v2/[...path]",function(){return s(4674)}])},374:function(e,t,s){"use strict";s.d(t,{U:function(){return r}});let r={delivery:"delivery_dining",pickup:"storefront",pin:"icon-location2",arrowLeft:"icon-arrow-left",arrowRight:"icon-arrow-right",angleUp:"icon-angle-up",clock:"clock"}},4674:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return g}});var r=s(85893),n=s(74790),l=s(67294),i=s(35111),a=s(64192),o=s(31974),c=s(92852),d=s(93646),u=s(34484),m=s(9242),x=s(45123),h=s(51776),v=s(98609),p=s(17251);let f=e=>{let{pageBuilderContent:t,pageType:s,tenant:i}=e,{utmParams:a}=(0,d.x)();return(0,x.X)(),(0,u.w)(),(0,l.useEffect)(()=>{"landing"===s&&c.Z.viewHomePage({tenant:i,utmParams:a})},[s,i,a]),(0,r.jsx)("div",{className:"flex min-h-[50vh] flex-col",children:(0,r.jsx)(n.o,{blocksConfig:m.R,pageBuilderContentBlocks:t.blocks,pageType:s})})};f.getLayout=function(e){return(0,r.jsxs)(o.p,{children:[(0,r.jsx)(h.Vw,{showCartBar:!1,showDispatchBar:!0,children:e}),(0,r.jsx)(p.Q,{}),(0,r.jsx)(v.O,{}),(0,r.jsx)(a.D,{}),(0,r.jsx)(i.Z,{})]})};var g=!0;t.default=f},5962:function(e,t,s){"use strict";var r,n;s.d(t,{E:function(){return i}});let l=e=>{var t;return null!==(n=null!==(r=null==e?void 0:null===(t=e.cropperUrl)||void 0===t?void 0:t.small)&&void 0!==r?r:null==e?void 0:e.url)&&void 0!==n?n:null};function i(e){var t,s,r;let n=[null===(t=e.pictures)||void 0===t?void 0:t[0],...(null!==(s=e.prices)&&void 0!==s?s:[]).map(e=>{var t,s;return null==e?void 0:null===(t=e.product)||void 0===t?void 0:null===(s=t.pictures)||void 0===s?void 0:s[0]})],i=null!==(r=n.map(l).find(e=>!!e))&&void 0!==r?r:null;return{id:e.id,name:e.name,imgSrc:i}}},9242:function(e,t,s){"use strict";s.d(t,{R:function(){return b}});var r=s(85893);s(519);var n=s(48227),l=s(74790),i=s(26982),a=s(67761),o=s(59987),c=s(25675),d=s.n(c),u=s(67294),m=s(26628),x=s(97844),h=s(80006),v=s(24398),p=s(5962);let f="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4";var g=s(13042),j=s(22966),w=s(24805);let b=(0,l.K)({banners:function(e){var t;let{controlProps:s}=e,l=null==s?void 0:s.blockBannersBgColor;return(0,r.jsx)(n.zR,{bgColor:"string"==typeof l&&l?l:void 0,children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-app",children:(0,r.jsx)(o.s,{autoplay:!!(null!==(t=null==s?void 0:s.enableAutoplay)&&void 0!==t&&t)})})})},menu:a.v,hero:n.D_,categoriesGrid:function(e){var t,s;let{controlProps:l,colors:a}=e,o=(0,m.v9)(e=>(0,x.r3)(e)),c=(0,m.v9)(e=>null!==(t=e.menu.menu)&&void 0!==t?t:[]),g=(0,m.v9)(e=>e.menu.menuLoading),j=(0,m.v9)(e=>e.menu._menuCache),w=(0,m.v9)(e=>e.menu.menuError),[b,N]=(0,u.useState)(!1);(0,u.useEffect)(()=>N(!0),[]);let y=o?c:c.filter(e=>{var t;return(null!==(s=null===(t=e.prices)||void 0===t?void 0:t.length)&&void 0!==s?s:0)>0}
1),k=y.map(p.E),C=null==l?void 0:l.title,B=null==l?void 0:l.subtitle;return 0!==k.length||b&&!g&&(o||j||w)?(0,r.jsx)(n.cO,{title:C,subtitle:B,colors:a,children:k.length>0?(0,r.jsx)("div",{className:f,children:k.map(e=>(0,r.jsxs)("a",{href:"/pedir#category-".concat((0,v.$)(e.name,e.id)),className:"group overflow-hidden rounded-2xl !bg-surface shadow-sm transition-all hover:shadow-md",children:[(0,r.jsx)("div",{className:"relative aspect-[4/3] w-full overflow-hidden !bg-card-bg",children:e.imgSrc?(0,r.jsx)(d(),{src:e.imgSrc,alt:e.name,fill:!0,className:"object-cover motion-safe:transition-transform motion-safe:duration-300 motion-safe:group-hover:scale-105",sizes:"(max-width: 640px) 50vw, 250px"}):(0,r.jsx)("div",{className:"flex h-full items-center justify-center bg-card-text/5",children:(0,r.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-card-text/20","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"}),(0,r.jsx)("path",{d:"M7 2v20"}),(0,r.jsx)("path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7"})]})})}),(0,r.jsx)("div",{className:"p-3",children:(0,r.jsx)("h3",{className:"line-clamp-1 text-sm font-semibold text-content",children:e.name})})]},e.id))}):(0,r.jsx)("div",{className:"rounded-2xl !bg-surface-subtle py-12 text-center",children:(0,r.jsx)("p",{className:"text-sm text-content-muted",children:i.ZP.t("V2Blocks:noCategories")})})}):(0,r.jsx)(n.cO,{title:C,subtitle:B,colors:a,children:(0,r.jsx)("div",{className:f,children:[1,2,3,4].map(e=>(0,r.jsxs)("div",{className:"overflow-hidden rounded-2xl",children:[(0,r.jsx)(h.Od,{className:"aspect-[4/3] w-full",rounded:"none"}),(0,r.jsx)("div",{className:"!bg-surface p-3",children:(0,r.jsx)(h.Od,{className:"h-4 w-3/4"})})]},e))})})},videoEmbedContent:n.aT,storesCarousel:function(e){let{controlProps:t,colors:s}=e,{stores:l,loading:a}=(0,g.m)(j.Z.getAll);return(0,r.jsxs)(n.cO,{title:null==t?void 0:t.title,subtitle:null==t?void 0:t.subtitle,colors:s,children:[a&&(0,r.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[1,2,3].map(e=>(0,r.jsxs)("div",{className:"overflow-hidden rounded-2xl !bg-surface shadow-sm",children:[(0,r.jsx)(h.Od,{className:"h-36 w-full",rounded:"none"}),(0,r.jsxs)("div",{className:"space-y-2 p-4",children:[(0,r.jsx)(h.Od,{className:"h-5 w-2/3"}),(0,r.jsx)(h.Od,{className:"h-4 w-full"})]})]},e))}),!a&&l.length>0&&(0,r.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:l.map(e=>(0,r.jsx)(w.p,{store:e},e.id))}),!a&&0===l.length&&(0,r.jsx)("div",{className:"rounded-2xl !bg-surface-subtle py-12 text-center",children:(0,r.jsx)("p",{className:"text-sm text-content-muted",children:i.ZP.t("V2Landing:noStoresAvailable")})})]})},richText:function(e){return(0,r.jsx)(n.he,{...e,backToHomeLabel:i.ZP.t("V2Blocks:backToHome")})}
1,iFrame:function(e){return(0,r.jsx)(n.Ii,{...e,invalidEmbedLabel:i.ZP.t("V2Blocks:invalidEmbed")})}})},24805:function(e,t,s){"use strict";s.d(t,{p:function(){return x}});var r=s(85893);s(519);var n=s(27484),l=s.n(n),i=s(26982),a=s(25675),o=s.n(a),c=s(67294),d=s(60589),u=s(23019);let m=e=>l()(e.replace(/UTC$/,""),"YYYY-MM-DD HH:mm:ss").format("HH:mm");function x(e){var t;let{store:s,onSelect:n}=e,[l,a]=(0,c.useState)(!1),x=(t=s.businessHours||[],d.DAYS.map(e=>{let s=t.filter(t=>t.day===e).map(e=>"".concat(m(e.openingTime)," â ").concat(m(e.closingTime))).filter((e,t,s)=>s.indexOf(e)===t).sort();return s.length>0?{weekday:e,day:i.ZP.t("V2Days:".concat(e)),slots:s}:null}).filter(Boolean)),h=(0,u.v)(s);return(0,r.jsxs)("div",{className:"overflow-hidden rounded-2xl !bg-surface shadow-sm transition-all hover:shadow-md",children:[s.image&&(0,r.jsx)("div",{className:"relative h-36 w-full overflow-hidden",children:(0,r.jsx)(o(),{src:s.image,alt:s.name,fill:!0,className:"object-cover",sizes:"(max-width: 640px) 100vw, 400px"})}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h3",{className:"text-base font-bold text-content",children:s.name}),s.textAddress&&(0,r.jsx)("p",{className:"mt-1 text-sm text-content-muted",children:s.textAddress})]}),n&&(0,r.jsx)("button",{type:"button","data-testid":"store-card-cta",onClick:()=>n(s),className:"shrink-0 rounded-xl !bg-primary px-4 py-2 text-sm font-semibold text-content-inverse transition-opacity hover:opacity-90",children:i.ZP.t("V2StoreCard:orderHere")})]}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[s.pickUpWaitTime>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full !bg-surface-muted px-3 py-1 text-xs font-medium text-content-tertiary",children:[(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),i.ZP.t("V2StoreCard:pickupTime",{time:s.pickUpWaitTime})]}),s.deliveryWaitTime>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full !bg-surface-muted px-3 py-1 text-xs font-medium text-content-tertiary",children:[(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M5 18H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h10c.6 0 1 .4 1 1v11"}),(0,r.jsx)("path",{d:"M14 9h4l4 4v4c0 .6-.4 1-1 1h-2"}),(0,r.jsx)("circle",{cx:"7",cy:"18",r:"2"}),(0,r.jsx)("circle",{cx:"17",cy:"18",r:"2"})]}),i.ZP.t("V2StoreCard:deliveryTime",{time:s.deliveryWaitTime})]}),s.phone&&(0,r.jsxs)("a",{href:"tel:".concat(s.phone),className:"inline-flex items-center gap-1.5 rounded-full !bg-surface-muted px-3 py-1 text-xs font-medium text-content-tertiary transition-colors hover:!bg-surface-strong",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,r.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),s.phone]})]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[x.length>0&&(0,r.jsxs)("button",{type:"button",onClick:()=>a(!l),className:"flex items-center gap-1 text-xs font-medium text-primary transition-colors",children:[(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),l?i.ZP.t("V2StoreCard:hideHours"):i.ZP.t("V2StoreCard:showHours"),(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"transition-transform ".concat(l?"rotate-180":""),children:(0,r.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),h&&(0,r.jsxs)("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs font-medium text-primary transition-colors",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,r.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),i.ZP.t("V2StoreCard:viewMap")]})]}),l&&x.length>0&&(0,r.jsx)("div",{className:"mt-3 rounded-xl !bg-surface-subtle px-3",children:x.map(e=>(0,r.jsxs)("div",{className:"grid grid-cols-[86px_1fr] items-baseline gap-x-3 border-b border-line-subtle py-2 last:border-0",children:[(0,r.jsx)("div",{className:"text-xs font-bold text-content",children:e.day}),(0,r.jsx)("div",{"data-testid":"store-hours-slots-".concat(e.weekday),className:"flex flex-col gap-0.5 text-right",children:e.slots.map(e=>(0,r.jsx)("span",{className:"text-xs text-content-secondary",children:e},e))})]},e.weekday))})]})]})}},59987:function(e,t,s){"use strict";s.d(t,{s:function(){return m}});var r=s(85893),n=s(25675),l=s.n(n),i=s(67294),a=s(26628),o=s(55276),c=s(80006);let d=e=>!/^\s*(?:javascript|data|vbscript):/i.test(e),u="web_responsive";function m(e){var t;let{autoplay:s=!0}=e,n=function(){let[e,t]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{let e=window.matchMedia("(max-width: 639.98px)");t(e.matches);let s=e=>t(e.matches);
1return e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[]),e}(),m=(0,a.v9)(e=>e.menu.banners),x=(0,a.v9)(e=>e.menu.menuLoading),[h,v]=(0,i.useState)(0),p=(0,i.useRef)(),f=n?u:"web",g=(m||[]).filter(e=>{var t;return e.type===o.E.BANNER&&!!(null===(t=e.pictures[0])||void 0===t?void 0:t.url)}),j=g.filter(e=>e.category===f),w=j.length>0?j:g,b=w.length,N=b>0?h%b:0,y=(0,i.useCallback)(e=>{v((e%b+b)%b)},[b]);if((0,i.useEffect)(()=>{if(s&&!(b<=1))return p.current=setInterval(()=>{v(e=>(e+1)%b)},4e3),()=>clearInterval(p.current)},[s,b]),x&&0===b)return(0,r.jsx)("div",{className:"px-4 pt-2",children:(0,r.jsx)(c.Od,{className:"aspect-[3/2] w-full sm:aspect-[24/7]",rounded:"lg"})});if(void 0===n||0===b)return null;let k=n&&(null===(t=w[0])||void 0===t?void 0:t.category)===u?"aspect-[3/2]":"aspect-[24/7]";return(0,r.jsxs)("div",{className:"relative overflow-hidden",role:"region","aria-label":"Banners promocionales",children:[(0,r.jsx)("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:"translateX(-".concat(100*N,"%)")},children:w.map((e,t)=>{let s=e.pictures[0],n=e.url&&d(e.url)?()=>{window.location.href=e.url}:void 0,i=s.url;return(0,r.jsx)("div",{className:"w-full shrink-0",children:(0,r.jsx)("button",{type:"button",onClick:n,disabled:!n,className:"relative block w-full overflow-hidden ".concat(k),children:(0,r.jsx)(l(),{src:i,alt:e.name||"Banner ".concat(t+1),fill:!0,className:"object-contain",sizes:"(max-width: 1280px) 100vw, 1280px",quality:90,priority:0===t})})},e.id)})}),b>1&&(0,r.jsx)("div",{className:"absolute bottom-0 inset-x-0 flex justify-center gap-0.5",children:w.map((e,t)=>(0,r.jsx)("button",{type:"button",onClick:()=>y(t),className:"flex h-11 w-6 items-end justify-center pb-2","aria-label":"Banner ".concat(t+1),children:(0,r.jsx)("span",{className:"block h-2 rounded-full transition-all ".concat(t===N?"w-6 !bg-surface":"w-2 !bg-surface/50")})},e.id))})]})}}},function(e){e.O(0,[9774,3176,9306,9403,5039,2237,436,2300,5675,4790,408,1974,4596,6515,8459,1776,6,7905,7927,3023,7251,5955,2888,179],function(){return e(e.s=65330)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.