1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1075],{44343:function(e,t,r){e.exports=r(92239)},92239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return a}});let n=r(67294),o=r(69955);function a(){return(0,n.useContext)(o.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10379:function(e,t,r){"use strict";r.d(t,{X:function(){return o},p:function(){return n}});let n=(e,t,r)=>{let n={whatsapp:()=>e?{value:90,className:r?"bottom-[182px] sm:bottom-[90px]":"bottom-[90px]"}:{value:20,className:r?"bottom-[112px] sm:bottom-[20px]":"bottom-[20px]"},messenger:()=>t&&e?{value:160,className:r?"bottom-[252px] sm:bottom-[160px]":"bottom-[160px]"}:n.whatsapp()};return n},o={openIntercom:"mercat:open-intercom",openMessenger:"mercat:open-messenger"}},71998:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});let n=e=>e.find(e=>{let{isDefault:t}=e;return t})},74134:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(85893),o=r(67294);let a={primary:"!bg-primary text-content-inverse hover:opacity-90 active:opacity-80 disabled:opacity-50",secondary:"!bg-surface text-secondary border border-secondary hover:!bg-secondary-100 active:opacity-80 disabled:opacity-50",ghost:"!bg-transparent text-content-secondary hover:!bg-surface-muted active:!bg-surface-strong disabled:opacity-50",danger:"!bg-error-strong text-content-inverse hover:!bg-error-emphasis active:!bg-error-emphasis disabled:opacity-50"},l={sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2.5 text-base rounded-xl",lg:"px-6 py-3.5 text-lg rounded-xl"},s=(0,o.forwardRef)((e,t)=>{let{variant:r="primary",size:o="md",fullWidth:s=!1,loading:i=!1,disabled:d,className:c="",children:u,...p}=e;return(0,n.jsx)("button",{ref:t,disabled:d||i,className:"\n inline-flex items-center justify-center font-semibold transition-all duration-150\n ".concat(a[r],"\n ").concat(l[o],"\n ").concat(s?"w-full":"","\n ").concat(c,"\n ").trim(),...p,children:i?(0,n.jsx)("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-current border-t-transparent"}):u})});s.displayName="Button"},62609:function(e,t,r){"use strict";r.d(t,{KU:function(){return i},SV:function(){return s}});var n=r(85893),o=r(67294),a=r(74134);function l(e){let{onRetry:t}=e;return(0,n.jsxs)("div",{className:"flex min-h-[300px] flex-col items-center justify-center px-6 py-12 text-center",children:[(0,n.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-error-soft",children:(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-error",children:[(0,n.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,n.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}),(0,n.jsx)("h2",{className:"mb-1 font-title text-lg font-bold text-content",children:"Algo sali\xf3 mal"}),(0,n.jsx)("p",{className:"mb-6 max-w-xs text-sm text-content-muted",children:"Ocurri\xf3 un error inesperado. Por favor, intenta nuevamente."}),(0,n.jsx)(a.z,{variant:"primary",onClick:t,children:"Reintentar"})]})}class s extends o.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){var r,n;let o=this.props.scope||"Unknown";console.error("[ErrorBoundary:".concat(o,"]"),e,t),null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsx)(l,{onRetry:this.handleRetry}):this.props.children}constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}}function i(e){let{children:t,scope:r}=e;return(0,n.jsx)(s,{scope:r,fallback:(0,n.jsx)("div",{className:"rounded-xl border border-error-soft bg-error-soft px-4 py-3 text-sm text-error-strong",children:"Esta secci\xf3n no pudo cargarse."}),children:t})}},22131:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294),o=r(26628),a=r(31842),l=r(4606),s=r(18413);function i(){let e=(0,o.I0)(),t=(0,o.v9)(e=>e.searchStore.currentSubsidiary),r=(0,o.v9)(e=>e.searchStore[l.l1]),i=(0,o.v9)(e=>!!e.searchStore["".concat(l.l1,"Loading")]),d=(0,o.v9)(e=>!!e.searchStore["".concat(l.l1,"Error")]),c=null==t?void 0:t.id,u=!!(null==t?void 0:t.futureOrdersEnabled),p=null!=r;(0,n.useEffect)(()=>{!c||!u||p||i||d||e(a.default.getScheduledDateAvailability())},[e,c,u,p,i,d]);let m=!r||Object.values(r).some(e=>
1(0,s.Ip)(e));return{scheduledDateAvailability:r,hasAvailableSlots:m}}},91075:function(e,t,r){"use strict";r.d(t,{Vw:function(){return _}});var n=r(85893),o=r(9008),a=r.n(o),l=r(67294),s=r(62609),i=r(26675),d=r(47051),c=r(26982),u=r(26628);function p(){let e=(0,u.v9)(e=>e.cart.cart),t=e.reduce((e,t)=>e+t.count,0),[r,o]=(0,l.useState)(""),a=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=a.current;if(a.current=t,null===e||e===t)return;let r=t-e;r>0?o(c.ZP.t("V2Cart:announceAdded",{count:t,defaultValue:"Producto a\xf1adido. Carrito: {{count}} art\xedculos"})):0===t?o(c.ZP.t("V2Cart:announceEmpty",{defaultValue:"Carrito vac\xedo"})):o(c.ZP.t("V2Cart:announceUpdated",{count:t,defaultValue:"Carrito actualizado: {{count}} art\xedculos"}))},[t]),(0,n.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:r})}var m=r(50872),v=r(4376),h=r(44674),f=r(63253),x=r(44035);function b(){let e=(0,u.v9)(e=>e.cart.cart),[t,r]=(0,l.useState)(!1);(0,l.useEffect)(()=>{r(!0)},[]);let o=t&&e.reduce((e,t)=>e+t.count,0)>0;return o?(0,n.jsx)("div",{"aria-hidden":!0,className:"h-24 sm:hidden"}):null}function g(){let e=(0,u.I0)(),t=(0,u.v9)(e=>e.cart.cart),r=(0,u.v9)(e=>e.cart.subtotal),[o,a]=(0,l.useState)(!1);(0,l.useEffect)(()=>{a(!0)},[]);let s=o?t.reduce((e,t)=>e+t.count,0):0,i=o?r:0,d=(0,u.v9)(e=>e.core.settings),c=(0,u.v9)(m.j);return(0,n.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-cart-bar p-4 pb-[max(1rem,env(safe-area-inset-bottom))] motion-safe:transition-transform motion-safe:duration-200 sm:hidden ".concat(s>0?"translate-y-0":"translate-y-full pointer-events-none"),children:(0,n.jsx)("div",{className:"mx-auto w-full max-w-app",children:(0,n.jsxs)("button",{type:"button",onClick:()=>{e(f.ZP.openModal(v.ee.MINI_CART)),x.Z.viewCartEvent(c,r,t,null==d?void 0:d.tenant)},"aria-label":"Ver carrito, ".concat(s," art\xedculos"),className:"flex w-full items-center justify-between rounded-2xl !bg-primary px-5 py-3.5 text-content-inverse shadow-xl motion-safe:transition-transform motion-safe:active:scale-[0.98]",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-surface/20 text-sm font-bold",children:s}),(0,n.jsx)("span",{className:"text-base font-semibold",children:"Ver Carrito"})]}),(0,n.jsx)("span",{className:"text-base font-bold",children:(0,h.T4)(i)})]})})})}var C=r(66051),w=r(48227),j=r(44343),y=r(10379),M=r(91021),P=r(274);r(54865);let Z={communes:[],categories:[]};var L=r(67255);let k=e=>"ecommerce"===e.type||"/"===e.url,N=function(e,t){var r,n;let{location:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.filter(e=>!k(e)&&!("header"===o&&"termsAndConditions"===e.type));if(!t||t.includes("all"))return a;let l=new Map(t.map((e,t)=>[e,t]));return a.filter(e=>l.has(e.url)).sort((e,t)=>(null!==(r=l.get(e.url))&&void 0!==r?r:0)-(null!==(n=l.get(t.url))&&void 0!==n?n:0))},E=(e,t)=>t.map(t=>({href:"".concat(e,"/").concat(t.slug,"/"),name:t.name}));function V(){var e,t,r,o,a,l;let s=(0,j.useRouter)(),i=(0,u.v9)(e=>e.core.settings),d=(0,u.v9)(e=>{var t;return null===(t=e.searchStore)||void 0===t?void 0:t.currentSubsidiary}),p=(0,u.v9)(e=>{var t;return(null===(t=e.pages)||void 0===t?void 0:t.builderPages)||[]}),m=(0,u.v9)(e=>{var t,n;return null!==(r=null===(t=e.pages)||void 0===t?void 0:null===(n=t.navConfig)||void 0===n?void 0:n.footer)&&void 0!==r?r:null}),v=(0,u.v9)(e=>{var t;return null!==(o=null===(t=e.pages)||void 0===t?void 0:t.builderBlocks)&&void 0!==o?o:[]}),h=(0,u.v9)(e=>{var t;return null!==(a=null===(t=e.pages)||void 0===t?void 0:t.seoLinks)&&void 0!==a?a:Z}),f=(0,M.z)(),x=(0,C.cD)(v,"Footer"),b=(0,C.vg)(null==x?void 0:x.props),g=N(p,m,{location:"footer"}).map(e=>({url:e.url,name:e.name})),k=(0,P.wU)(null!==(l=null==s?void 0:s.pathname)&&void 0!==l?l:"")?[]:[{title:c.ZP.t("Footer:storesTitle","Nuestras tiendas"),links:E("/places",h.communes)},{title:c.ZP.t("Footer:menuTitle","Nuestra carta"),links:E("/tags",h.categories)}],V=Object.entries(i.socialNetworks||{}).filter(e=>{let[,t]=e;return!!t}),S=(null==d?void 0:d.enabledWhatsappNumber)&&(null==d?void 0:d.whatsappNumber)?d.whatsappNumber:void 0,H={address:null==d?void 0:d.textAddress,phone:null==d?void 0:d.phone,email:i.createOrderRestaurantEmail,whatsapp:S,hasIntercom:!!i.intercomId,hasMessenger
1:!!((null==d?void 0:d.enabledFacebookMessenger)&&(null==d?void 0:d.facebookMessengerId))},I=[{key:"appStore",label:"App Store",url:null===(e=i.appsLinks)||void 0===e?void 0:e.appStore},{key:"playStore",label:"Google Play",url:null===(t=i.appsLinks)||void 0===t?void 0:t.playStore}],R=I.filter(e=>!!e.url),D={contactLabel:c.ZP.t("Footer:contactLabel","Contacto"),whatsappLabel:c.ZP.t("Footer:whatsappLabel","Chatea por WhatsApp"),chatLabel:c.ZP.t("Footer:chatLabel","Chatea con nosotros"),messengerLabel:c.ZP.t("Footer:messengerLabel","Chatea por Messenger"),downloadAppLabel:c.ZP.t("Footer:downloadAppLabel","Descarga la app"),availableOn:c.ZP.t("Footer:availableOn","Disponible en"),rightsReserved:c.ZP.t("Footer:rightsReserved","Todos los derechos reservados"),termsLink:c.ZP.t("Footer:termsLink","T\xe9rminos"),privacyLink:c.ZP.t("Footer:privacyLink","Privacidad"),poweredByLabel:c.ZP.t("Footer:poweredByLabel","Sitio desarrollado por")},A={commerceName:i.commerceName,socialEntries:V,contact:H,footerPages:g,linkGroups:k,appLinks:R,colorVars:b,termsHref:L.Fd,privacyHref:L.wL,poweredByHref:f,onOpenChat:e=>window.dispatchEvent(new Event("intercom"===e?y.X.openIntercom:y.X.openMessenger)),labels:D};return(0,n.jsx)(w.hk,{...A})}r(519);var S=r(31955),H=r(82586),I=r(71998),R=r(22696),D=r(83765),A=r(2919);function O(e){var t,r,o,a,l;let{onProfileClick:s,showDispatchBar:i=!1}=e,d=(0,u.I0)(),p=S.Z.get(H.r.accessToken),h=(0,u.v9)(e=>e.auth.currentUser),b=(0,u.v9)(e=>{var t;return null===(t=e.auth.address)||void 0===t?void 0:t.current}),g=(0,u.v9)(e=>{var t,r;return null===(t=e.searchStore)||void 0===t?void 0:null===(r=t.currentSubsidiary)||void 0===r?void 0:r.id}),{whatsappNumber:j,enabledWhatsappNumber:M,facebookMessengerId:P,enabledFacebookMessenger:Z}=(0,u.v9)(e=>{var t;return(null===(t=e.searchStore)||void 0===t?void 0:t.currentSubsidiary)||{}}),L=(0,u.v9)(e=>{var t;return null===(t=e.menu)||void 0===t?void 0:t.isPreview}),k=(0,u.v9)(e=>{var t;return(null===(t=e.pages)||void 0===t?void 0:t.builderPages)||[]}),E=(0,u.v9)(e=>{var t,r;return null!==(o=null===(t=e.pages)||void 0===t?void 0:null===(r=t.navConfig)||void 0===r?void 0:r.header)&&void 0!==o?o:null}),V=(0,u.v9)(e=>e.core.settings),O=(0,u.v9)(m.j),_=(0,u.v9)(e=>e.cart.cart),B=(0,u.v9)(e=>e.cart.subtotal),F=(0,u.v9)(e=>{var t;return null!==(a=null===(t=e.pages)||void 0===t?void 0:t.builderBlocks)&&void 0!==a?a:[]}),U=(0,C.cD)(F,"Header"),T=(0,C.jg)(null==U?void 0:U.props),K=!!p||!!(null==h?void 0:h.name),Y=(null==h?void 0:h.name)?h.name.trim().split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(""):"",z=k.find(e=>"ecommerce"===e.type),X=null!==(l=null===(t=(0,I.U)(k))||void 0===t?void 0:t.url)&&void 0!==l?l:"/",G=k.find(e=>"/"===e.url&&"ecommerce"!==e.type),W=N(k,E,{location:"header"}),q=[...G?[{url:"/",name:G.name}]:[],...z?[{url:"/pedir",name:z.name||c.ZP.t("V2Menu:menuTitle")}]:[],...W.map(e=>({url:e.url,name:e.name}))],$=_.reduce((e,t)=>e+t.count,0),J=!!(null==U?void 0:null===(r=U.props)||void 0===r?void 0:r.showAlternativeLogo),Q=J&&V.secondaryLogo?V.secondaryLogo:V.primaryLogo;return(0,n.jsx)(w.Sl,{commerceName:V.commerceName,logoSrc:Q,homeHref:X,navItems:q,isLoggedIn:K,initials:Y,itemCount:$,secondaryHeader:!1,colorVars:T,chat:{whatsapp:M&&j?j:void 0,hasIntercom:!!V.intercomId,hasMessenger:!!(Z&&P)},dispatchBar:i?(0,n.jsx)(R.m,{}):void 0,onCartClick:()=>{if(!(!L&&g||b)){d(f.ZP.openModal(v.ee.DELIVERY_OR_PICKUP));return}d(f.ZP.openModal(v.ee.MINI_CART)),x.Z.viewCartEvent(O,B,_,null==V?void 0:V.tenant)},onProfileClick:s,onRequestLogin:()=>d(f.ZP.openModal(v.ee.LOGIN)),onSignOut:()=>{d(A.ZP.removeCoupon()),d(D.default.closeSession())},onOpenChat:e=>window.dispatchEvent(new Event("intercom"===e?y.X.openIntercom:y.X.openMessenger)),labels:{whatsappCta:c.ZP.t("V2Header:whatsappCta","Chatea por WhatsApp"),chatCta:c.ZP.t("V2Header:chatCta","Chatea con nosotros"),messengerCta:c.ZP.t("V2Header:messengerCta","Chatea por Messenger"),closeSession:c.ZP.t("ProfileLinks:closeSession"),profile:"Mi perfil",orders:"Mis pedidos"}})}function _(e){let{children:t,showHeader:r=!0,showFooter:o=!0,hideFooterOnMobile:c=!1,showCartBar:u=!0,showBrandBackgroun
1d:m=!1,showBackgroundImage:v=!1,onProfileClick:h,showDispatchBar:f=!1}=e;(0,l.useEffect)(()=>{let e=document.documentElement;return e.setAttribute("data-v2",""),()=>e.removeAttribute("data-v2")},[]);let x=!!(0,d.j)(),C=m&&v&&x,w="bg-white";m&&(w="bg-page-bg"),C&&(w="");let j=["flex min-h-screen flex-col overflow-x-clip",w].filter(Boolean).join(" ");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.G,{}),C&&(0,n.jsx)("div",{"aria-hidden":!0,"data-testid":"app-wallpaper",className:"pointer-events-none fixed left-0 top-0 -z-10 h-[120dvh] w-full transform-gpu bg-page-bg will-change-transform [background-image:var(--v2-page-bg-image,none)] [background-position:center] [background-repeat:no-repeat] [background-size:cover] lg:h-[100dvh] lg:transform-none lg:will-change-auto"}),(0,n.jsxs)(a(),{children:[(0,n.jsx)("link",{rel:"preconnect",href:"https://cdn.mer-cat.com"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://cdn.stage.mer-cat.com"}),(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://www.datadoghq-browser-agent.com"}),(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://www.mercadopago.com"})]}),(0,n.jsxs)("div",{"data-testid":"app-shell",className:j,children:[r&&(0,n.jsx)(O,{onProfileClick:h,showDispatchBar:f}),(0,n.jsxs)("main",{className:"mx-auto w-full max-w-app flex-1",children:[(0,n.jsx)(s.SV,{scope:"AppShell",children:t}),u&&(0,n.jsx)(b,{})]}),o&&(c?(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(V,{})}):(0,n.jsx)(V,{})),u&&(0,n.jsx)(g,{}),(0,n.jsx)(p,{})]})]})}},22696:function(e,t,r){"use strict";r.d(t,{m:function(){return x}});var n=r(85893);r(71020),r(519);var o=r(27484),a=r.n(o),l=r(26982),s=r(67294),i=r(26628),d=r(18672),c=r(4376),u=r(79011),p=r(31842),m=r(22131),v=r(51942),h=r(67921),f=r(63253);function x(){let e=(0,i.I0)(),[t,r]=(0,s.useState)(!1);(0,s.useEffect)(()=>{r(!0)},[]);let{currentSubsidiary:o,dispatchType:x}=(0,i.v9)(e=>e.searchStore),C=(0,i.v9)(e=>e.order.futureOrder),w=(0,i.v9)(e=>{var t;return null===(t=e.menu)||void 0===t?void 0:t.isPreview}),{hasAvailableSlots:j}=(0,m.h)(),y=x===d.CK.DELIVERY,M=!!(null==o?void 0:o.futureOrdersEnabled),{current:P}=(0,i.v9)(e=>e.auth.address)||{},Z=!!P&&!P.isStoreAddress,L=!w&&!!(null==o?void 0:o.id)||!!P,k=t?y&&Z?(0,v.c)(P.textAddress):!y&&(null==o?void 0:o.name)?o.name:null:null,N=t&&!!C,E=(()=>{if(!N)return null;let e=a()(C.date,"YYYY-MM-DD"),t=a()(),r=(0,h.m)(C.time);return e.isSame(t,"day")?"".concat(l.ZP.t("V2Schedule:today")," \xb7 ").concat(r):e.isSame(t.add(1,"day"),"day")?"".concat(l.ZP.t("V2Schedule:tomorrow")," \xb7 ").concat(r):"".concat(e.format("ddd D")," \xb7 ").concat(r)})();return(0,n.jsxs)("div",{className:"flex w-full flex-col items-center gap-1.5 md:flex-row md:gap-2",children:[(0,n.jsx)(b,{isDelivery:y,onToggle:t=>{let r=t===x;r||e(p.default.setDispatchType(t));let n=t===d.CK.DELIVERY&&Z,a=t===d.CK.PICKUP&&!!(null==o?void 0:o.id);r&&(n||a)||e(f.ZP.openModal(c.ee.DELIVERY_OR_PICKUP))},mounted:t}),(0,n.jsxs)("div",{className:"flex w-full flex-col gap-1.5 md:w-auto md:flex-row md:gap-2",children:[(0,n.jsx)(g,{icon:t&&y?(0,n.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 fill-content-muted",children:[(0,n.jsx)("path",{d:"M12.6668 5.16671C12.6668 4.43337 12.0668 3.83337 11.3335 3.83337H10.0002C9.6335 3.83337 9.3335 4.13337 9.3335 4.50004C9.3335 4.86671 9.6335 5.16671 10.0002 5.16671H11.3335V6.93337L9.0135 9.83337H6.66683V7.16671C6.66683 6.80004 6.36683 6.50004 6.00016 6.50004H4.00016C2.52683 6.50004 1.3335 7.69337 1.3335 9.16671V10.5C1.3335 10.8667 1.6335 11.1667 2.00016 11.1667H2.66683C2.66683 12.2734 3.56016 13.1667 4.66683 13.1667C5.7735 13.1667 6.66683 12.2734 6.66683 11.1667H9.0135C9.42016 11.1667 9.80016 10.98 10.0535 10.6667L12.3735 7.76671C12.5668 7.52671 12.6668 7.23337 12.6668 6.93337V5.16671ZM4.66683 11.8334C4.30016 11.8334 4.00016 11.5334 4.00016 11.1667H5.3335C5.3335 11.5334 5.0335 11.8334 4.66683 11.8334Z"}),(0,n.jsx)("path",{d:"M4.00016 4.5H6.00016C6.36683 4.5 6.66683 4.8 6.66683 5.16667C6.66683 5.53333 6.36683 5.83333 6.00016 5.83333H4.00016C3.6335 5.83333 3.3335 5.53333 3.3335 5.16667C3.3335 4.8 3.6335 4.5 4.00016 4.5Z"}),(0,n.jsx)("path",{d:"M12.667 9.16675C11.5603 9.16675 10.667 10.0601 10.66
17 11.1667C10.667 12.2734 11.5603 13.1667 12.667 13.1667C13.7737 13.1667 14.667 12.2734 14.667 11.1667C14.667 10.0601 13.7737 9.16675 12.667 9.16675ZM12.667 11.8334C12.3003 11.8334 12.0003 11.5334 12.0003 11.1667C12.0003 10.8001 12.3003 10.5001 12.667 10.5001C13.0337 10.5001 13.3337 10.8001 13.3337 11.1667C13.3337 11.5334 13.0337 11.8334 12.667 11.8334Z"})]}):(0,n.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 fill-content-muted",children:(0,n.jsx)("path",{d:"M15.1001 5.76L14.4001 3.51333C14.2535 2.91333 13.7335 2.5 13.1268 2.5H3.8668C3.2668 2.5 2.74013 2.92 2.60013 3.51333L1.90013 5.76C1.59346 7.07333 2.4668 7.83333 2.50013 7.87333V13.1667C2.50013 13.9 3.10013 14.5 3.83346 14.5H13.1668C13.9001 14.5 14.5001 13.9 14.5001 13.1667V7.87333C15.2468 7.12667 15.2268 6.26667 15.1001 5.76ZM9.1668 3.83333H10.4735L10.8335 6.18C10.8935 6.65333 10.5735 7.16667 9.98013 7.16667C9.53347 7.16667 9.1668 6.77333 9.1668 6.29333V3.83333ZM4.79347 6.40667C4.74013 6.84 4.39347 7.16667 3.9868 7.16667C3.3668 7.16667 3.0868 6.52 3.19346 6.07333L3.8668 3.83333H5.18013L4.79347 6.40667ZM7.83347 6.29333C7.83347 6.77333 7.4668 7.16667 6.97347 7.16667C6.47347 7.16667 6.1068 6.7 6.16013 6.18L6.5268 3.83333H7.83347V6.29333ZM13.0135 7.16667C12.6068 7.16667 12.2535 6.84 12.2068 6.40667L11.8201 3.83333L13.1068 3.82667L13.8068 6.07333C13.9135 6.52 13.6401 7.16667 13.0135 7.16667Z"})}),label:k||(t&&y?l.ZP.t("DispatchMethodModal:deliveryAddress"):l.ZP.t("DispatchMethodModal:selectStore")),onClick:()=>{e(f.ZP.openModal(c.ee.DELIVERY_OR_PICKUP))}}),(0,n.jsx)(g,{icon:N?(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 256 256",fill:"currentColor",className:"text-menuheader-text-muted",children:(0,n.jsx)("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"})}):(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 256 256",fill:"currentColor",className:"text-warning",children:(0,n.jsx)("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17Z"})}
1),label:E||l.ZP.t("FutureOrder:asap"),onClick:()=>{if(!L){e(u.ZP.setNextAction(f.ZP.openModal(c.ee.FUTURE_ORDER))),e(f.ZP.openModal(c.ee.DELIVERY_OR_PICKUP));return}e(f.ZP.openModal(c.ee.FUTURE_ORDER))},disabled:L&&!(M&&j)})]})]})}function b(e){let{isDelivery:t,onToggle:r,mounted:o}=e,a=o&&!t,s=o&&t;return(0,n.jsxs)("div",{className:"relative flex h-10 w-full whitespace-nowrap rounded-full bg-menuheader-chip-bg text-center md:w-auto",role:"tablist","aria-label":l.ZP.t("V2Menu:orderType"),children:[o&&(0,n.jsx)("div",{className:"absolute h-full rounded-full bg-primary shadow-sm transition-all duration-200 ease-in-out",style:{left:s?"50%":"0%",width:"50%"}}),(0,n.jsxs)("button",{type:"button",role:"tab","aria-selected":a,onClick:()=>r(d.CK.PICKUP),className:"relative z-10 flex w-1/2 items-center justify-center gap-1.5 rounded-full px-6 py-2 text-sm font-semibold transition-colors duration-200",children:[(0,n.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 ".concat(a?"fill-content-inverse":"fill-content-muted"),children:(0,n.jsx)("path",{d:"M15.1001 5.76L14.4001 3.51333C14.2535 2.91333 13.7335 2.5 13.1268 2.5H3.8668C3.2668 2.5 2.74013 2.92 2.60013 3.51333L1.90013 5.76C1.59346 7.07333 2.4668 7.83333 2.50013 7.87333V13.1667C2.50013 13.9 3.10013 14.5 3.83346 14.5H13.1668C13.9001 14.5 14.5001 13.9 14.5001 13.1667V7.87333C15.2468 7.12667 15.2268 6.26667 15.1001 5.76ZM9.1668 3.83333H10.4735L10.8335 6.18C10.8935 6.65333 10.5735 7.16667 9.98013 7.16667C9.53347 7.16667 9.1668 6.77333 9.1668 6.29333V3.83333ZM4.79347 6.40667C4.74013 6.84 4.39347 7.16667 3.9868 7.16667C3.3668 7.16667 3.0868 6.52 3.19346 6.07333L3.8668 3.83333H5.18013L4.79347 6.40667ZM7.83347 6.29333C7.83347 6.77333 7.4668 7.16667 6.97347 7.16667C6.47347 7.16667 6.1068 6.7 6.16013 6.18L6.5268 3.83333H7.83347V6.29333ZM13.0135 7.16667C12.6068 7.16667 12.2535 6.84 12.2068 6.40667L11.8201 3.83333L13.1068 3.82667L13.8068 6.07333C13.9135 6.52 13.6401 7.16667 13.0135 7.16667Z"})}),(0,n.jsx)("span",{className:a?"text-content-inverse":"text-menuheader-chip-text",children:l.ZP.t("DispatchMethodModal:pickUp")})]}),(0,n.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>r(d.CK.DELIVERY),className:"relative z-10 flex w-1/2 items-center justify-center gap-1.5 rounded-full px-6 py-2 text-sm font-semibold transition-colors duration-200",children:[(0,n.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 ".concat(s?"fill-content-inverse":"fill-content-muted"),children:[(0,n.jsx)("path",{d:"M12.6668 5.16671C12.6668 4.43337 12.0668 3.83337 11.3335 3.83337H10.0002C9.6335 3.83337 9.3335 4.13337 9.3335 4.50004C9.3335 4.86671 9.6335 5.16671 10.0002 5.16671H11.3335V6.93337L9.0135 9.83337H6.66683V7.16671C6.66683 6.80004 6.36683 6.50004 6.00016 6.50004H4.00016C2.52683 6.50004 1.3335 7.69337 1.3335 9.16671V10.5C1.3335 10.8667 1.6335 11.1667 2.00016 11.1667H2.66683C2.66683 12.2734 3.56016 13.1667 4.66683 13.1667C5.7735 13.1667 6.66683 12.2734 6.66683 11.1667H9.0135C9.42016 11.1667 9.80016 10.98 10.0535 10.6667L12.3735 7.76671C12.5668 7.52671 12.6668 7.23337 12.6668 6.93337V5.16671ZM4.66683 11.8334C4.30016 11.8334 4.00016 11.5334 4.00016 11.1667H5.3335C5.3335 11.5334 5.0335 11.8334 4.66683 11.8334Z"}),(0,n.jsx)("path",{d:"M4.00016 4.5H6.00016C6.36683 4.5 6.66683 4.8 6.66683 5.16667C6.66683 5.53333 6.36683 5.83333 6.00016 5.83333H4.00016C3.6335 5.83333 3.3335 5.53333 3.3335 5.16667C3.3335 4.8 3.6335 4.5 4.00016 4.5Z"}),(0,n.jsx)("path",{d:"M12.667 9.16675C11.5603 9.16675 10.667 10.0601 10.667 11.1667C10.667 12.2734 11.5603 13.1667 12.667 13.1667C13.7737 13.1667 14.667 12.2734 14.667 11.1667C14.667 10.0601 13.7737 9.16675 12.667 9.16675ZM12.667 11.8334C12.3003 11.8334 12.0003 11.5334 12.0003 11.1667C12.0003 10.8001 12.3003 10.5001 12.667 10.5001C13.0337 10.5001 13.3337 10.8001 13.3337 11.1667C13.3337 11.5334 13.0337 11.8334 12.667 11.8334Z"})]}),(0,n.jsx)("span",{className:s?"text-content-inverse":"text-menuheader-chip-text",children:l.ZP.t("DispatchMethodModal:delivery")})]})]})}function g(e){let{icon:t,label:r,onClick:o,disabled:a=!1}=e;return(0,n.jsxs)("button",{type:"button",onClick:o,disabled:a,className:"shadow-sm flex w-full items-center justify-between gap-2 rounded-xl border border-line bg-menuheader-control-bg px-3 py-2 text-left transition-colors hover:bg-menuheader-chip-bg disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-menuheader-control-bg md:w-auto",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,n.jsx)("span",{className:"shrink-0",children:t}),(0,n.jsx)("span",{className:"truncate text-sm font-medium text-menuheader-text-secondary",children:r})]}),(0,n.jsx)("div",{className:"ml-1 flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-menuheader-chip-bg",children:(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",className:"text-menuheader-text-muted",children:(0,n.jsx)("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"})})})]})}},26675:function(e,t,r){"use strict";r.d(t,{G:function(){return s}});
1var n=r(85893),o=r(66051),a=r(26628),l=r(47051);function s(){var e;let t=(0,a.v9)(t=>{var r;return null!==(e=null===(r=t.pages)||void 0===r?void 0:r.builderBlocks)&&void 0!==e?e:[]}),r=(0,a.v9)(e=>{var t,r;return null===(t=e.core)||void 0===t?void 0:null===(r=t.settings)||void 0===r?void 0:r.brandPrimary}),s=(0,o.cD)(t,"Menu"),i=(0,o.cD)(t,"Header"),d=(0,l.j)(),c=(0,o.Xw)(null==s?void 0:s.props,null==i?void 0:i.props,r,null!=d?d:void 0),u=null==s?void 0:s.props,p=null==u?void 0:u.blockMenuCardProductBadgeBgColor,m=null==u?void 0:u.blockMenuCardProductBadgeTextColor;p&&(c["--v2-card-badge-bg"]=p),m&&(c["--v2-card-badge-text"]=m);let v=(0,o.uf)(c);return v?(0,n.jsx)("style",{"data-v2-menu-theme":!0,dangerouslySetInnerHTML:{__html:v}}):null}},47051:function(e,t,r){"use strict";r.d(t,{j:function(){return l}});var n=r(66051),o=r(67294),a=r(26628);function l(){var e;let t=(0,a.v9)(t=>{var r;return null!==(e=null===(r=t.pages)||void 0===r?void 0:r.builderBlocks)&&void 0!==e?e:[]});return(0,o.useMemo)(()=>(0,n.rZ)(t),[t])}},51942:function(e,t,r){"use strict";function n(e){return e?e.split(",").map(e=>e.trim().replace(/^\d{5,7}\s+/,"").replace(/^\d{5,7}$/,"").trim()).filter(Boolean).join(", "):""}r.d(t,{c:function(){return n}})},67921:function(e,t,r){"use strict";function n(e){if(!e)return"";let t=e.match(/(\d{1,2}):(\d{2})/);if(!t)return e;let r=parseInt(t[1]||"0",10),n=t[2]||"00";return 0===r?"12:".concat(n," AM"):r<12?"".concat(r,":").concat(n," AM"):12===r?"12:".concat(n," PM"):"".concat(r-12,":").concat(n," PM")}r.d(t,{m:function(){return n}})}}]);
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.