PageSourceSearch

https://www.saigonsisters.com/_next/static/chunks/pages/store/[...id]-391243ac67e4d376.js

js saigonsisters.com collected 2026-09-26 12:02:53 UTC 74,432 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[919],{12436:function(e,t,n){var i=n(54073),o=n(29259);e.exports=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),i(e,t,{leading:r,maxWait:t,trailing:a})}},26528:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/[...id]",function(){return n(76233)}])},76233:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return nX}});var i,o,r=n(52322),a=n(40024),l=n(55464),d=n(57634),c=n(5632),s=n.n(c),u=n(2784),p=n(91199),m=n(55354),g=n(5366),h=n(80684),f=n(97729),x=n.n(f),v=n(64702);function b(e){let{config:t}=e;return(0,v.$)(t)?(0,r.jsx)(x(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex,follow"},"robots")}):null}var _=n(50834),y=n(75470),j=n(48926),w=n(59706);let C=e=>{var t,n,i,o;let{routeParams:a}=e,{detail:l,...d}=(0,y.v9)(e=>e.app.locations),{time_wanted:c}=(0,y.v9)(j.Fr),{categories:s}=(0,_.H9)({id:null==l?void 0:l.id,wantedAt:c}),u=(0,y.v9)(e=>e.app.cmsConfig.webConfig),{seo:p}=u,m=d.meta.lastUpdatedAt,g={label:null==l?void 0:l.label,city:null==l?void 0:null===(t=l.cached_data)||void 0===t?void 0:t.city,state:null==l?void 0:null===(n=l.cached_data)||void 0===n?void 0:n.state,categoryName:a.catName};if(a.productId){let e=h.fH.findMenuItemById(a.productId,s),t={...g,productName:null==e?void 0:e.name,productDescription:null==e?void 0:e.description,productImage:(null==e?void 0:e.image)&&(null==e?void 0:e.image)===(null==e?void 0:null===(i=e.images)||void 0===i?void 0:i.image_url_1_by_1)?null==e?void 0:e.image:null==e?void 0:null===(o=e.images)||void 0===o?void 0:o.image_url_1_by_1},{product_page_title:n,product_page_description:l}=p,d=(0,w.vk)(n,t,!0),c=(0,w.vk)(l,t,!0);return(0,r.jsxs)(x(),{children:[(0,r.jsx)("meta",{name:"location:last-updated-at",content:m},"location-last-updated-at"),n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:d}),(0,r.jsx)("meta",{property:"og:title",content:d},"og:title"),(0,r.jsx)("meta",{name:"twitter:title",content:d},"twitter:title")]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:c},"description"),(0,r.jsx)("meta",{property:"og:description",content:c},"og:description"),(0,r.jsx)("meta",{name:"twitter:description",content:c},"twitter:description")]}),t.productImage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:t.productImage},"og:image"),(0,r.jsx)("meta",{name:"twitter:image",content:t.productImage},"twitter:image")]})]})}let{store_page_title:f,store_page_description:v}=p,C=(0,w.vk)(f,g,!0),E=(0,w.vk)(v,g,!0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(x(),{children:[(0,r.jsx)("meta",{name:"location:last-updated-at",content:m},"location-last-updated-at"),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:C}),(0,r.jsx)("meta",{property:"og:title",content:C},"og:title"),(0,r.jsx)("meta",{name:"twitter:title",content:C},"twitter:title")]}),v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:E},"description"),(0,r.jsx)("meta",{property:"og:description",content:E},"og:description"),(0,r.jsx)("meta",{name:"twitter:description",content:E},"twitter:description")]})]}),(0,r.jsx)(b,{config:u})]})};var E=n(59047),k=n(19522),I=n(90736),S=n(43580),T=n(56580),R=n(22601),A=n(79241),P=n(90918),z=n(5593),Z=n(76920),M=n(53168),O=n(89432),H=n(62638),N=n(41291),D=n(97421),L=n(82716),$=n(81049);let U=e=>{var t,n,i,o,l,d,c;let{basket:s,address:p,location:m,timeWanted:g,conveyanceType:h}=e,{isOpen:f,hasRemainingHoursToday:x,storeDate:v,nextAvailableDateInStore:b,storeTimezone:_}=(0,H.v_)(m,h),y=null!==(d=null==s?void 0:null===(t=s.checkoutBasket)||void 0===t?void 0:t.wanted_at)&&void 0!==d?d:g,[j,w]=(0,u.useState)(!1),[C,E]=(0,u.useState)(!1),k=(0,T.useDispatch)(),I=(0,Z.JS)(m,h),S=null===(n=I.find(e=>!e.disabled))||void 0===n?void 0:n.value,U=y;(0,A.wN)(m,h)&&!y?U="":(U=y?(0,R.format)((0,R.utcToZonedTime)(y,_),"yyyy-MM-dd"):b,U=x?null!=S?S:v:U);let{data:F,isSuccess:G}=(0,P.Cv)({dayWanted:U,handoffType:m?(null==m?void 0:m.supports_pick_up)?a.P8.PICKUP:a.P8.DELIVERY:a.P8.PICKUP,location:m}),{data:W}=(0,z.EX)({availableDays:I,handoffType:h,location:m}),B=(0,u.useRef)(!1);return((0,u.useEffect)(()=>{var e;B.current||!m||(0,A.wN)(m,h)||g||null!=s&&null!==(e=s.checkoutBasket)&&void 0!==e&&e.wanted_at||null==W||!W.firstAvailableTime||(B.current=!0,k(L.Z.setWantedTime(W.firstAvailableTime,m.id,h)))},[m,h,g,null==s?void 0:null===(i=s.checkoutBasket)||void 0===i?void 0:i.wanted_at,null==W?void 0:W.firstAvailableTime,k]),(0,u.useEffect)(()=>
1{if(!(0,$.LC)()&&!j){var e;E(!f&&!(null==s?void 0:null===(e=s.checkoutBasket)||void 0===e?void 0:e.wanted_at)),w(!0)}},[f,j,F,null==s?void 0:null===(o=s.checkoutBasket)||void 0===o?void 0:o.wanted_at]),(0,u.useEffect)(()=>{!B.current&&C&&F&&F.length>0&&k(L.Z.setWantedTime(F[0],m.id,h))},[C,F,k,m,h]),G&&F&&F.length>0)?(0,r.jsx)("div",{children:(0,r.jsxs)(M.Z,{modalOpen:C&&(null==m?void 0:m.supports_pick_up),name:N.zr.OUTSIDE_OPERARING_HOURS,header:"",children:[(0,r.jsx)(O.iC,{children:(0,r.jsxs)("div",{style:{padding:"40px 20px 20px 20px"},children:["Your earliest available"," ",(null==s?void 0:null===(l=s.fulfillment)||void 0===l?void 0:l.type)||(null==p?void 0:p.type)||a.P8.PICKUP," time is:",(0,r.jsx)("br",{}),(0,A.Ed)(null!==(c=F[0])&&void 0!==c?c:U,m)]})}),(0,r.jsx)(O.vy,{style:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(D.Db,{"data-css-override":"StyledPrimaryButton","aria-label":"Start order",onClick:()=>{k(L.Z.setWantedTime(F[0],m.id,h)),E(!1)},children:"Start Order"})})]})}):null};var F=n(39097),G=n.n(F),W=n(31200),B=n(53237),V=n(926),K=n(74115),q=n(26908),X=n(16251),Y=n(23314);function J(e){let{timeWanted:t,unavailable:n,closed:i}=e,{data:o,isLoading:a}=(0,q.o8)(),l=null==o?void 0:o.locations.features.isSingleLocation,d=!!((null==l?void 0:l.enabled)&&l.storeLocationId);return(0,r.jsxs)(V.Kq,{direction:"vertical",gap:"$4",css:{padding:"$14"},children:[(0,r.jsx)(K.H,{condition:i,children:(0,r.jsx)(Q,{children:"This location is not currently open. Please come back later."})}),(0,r.jsx)(K.H,{condition:i,children:(0,r.jsx)(ee,{children:"Please check back later or contact the store for more information."})}),(0,r.jsx)(K.H,{condition:n,children:(0,r.jsxs)(Q,{children:["Online ordering is not currently available",t&&(0,W.Z)(t)&&" for ".concat((0,X.p6)(t,Y.z.FULL_LABEL)),"."]})}),(0,r.jsxs)(K.H,{condition:n,children:[(0,r.jsx)(ee,{children:"While we’re unavailable right now, you can still place an order for the future. Please use the module above to schedule your order"}),(0,r.jsx)(K.H,{condition:!d&&!a,children:(0,r.jsx)(G(),{href:I.Z6.STORES,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(D.Db,{"data-css-override":"StyledPrimaryButton",as:"a",children:"Find a location"})})})]})]})}let Q=(0,B.zo)("h2",{fontSize:"$text400",fontWeight:"bold",textAlign:"center",margin:0}),ee=(0,B.zo)("p",{fontSize:"$text200",textAlign:"center",margin:0});var et=n(87749),en=n(63974),ei=n(36426),eo=n(5288),er=n(73695);function ea(){let[e,t]=(0,u.useState)(!1),{primary_active_color:n}=(0,er.$E)("global");function i(){window.scrollY>385?t(!0):t(!1)}return(0,u.useEffect)(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),(0,r.jsxs)(el,{"data-css-override":"StyledBackToTopCTA",$isVisible:e,onClick:function(){window.scrollTo({top:0,left:0,behavior:"smooth"})},children:[(0,r.jsxs)("svg",{width:"20",height:"12",viewBox:"0 0 20 12",role:"img",children:[(0,r.jsx)("title",{children:"Chevron Icon"}),(0,r.jsx)("path",{fill:"none",fillRule:"nonzero",stroke:n,strokeLinecap:"round",strokeWidth:"1.5",d:"M18.323 10.323l-8.215-8.215-8.216 8.215"})]}),(0,r.jsx)(eo.Z,{tag:ed,accessor:"store.back_to_top_cta",html:!0})]})}let el=S.ZP.button.withConfig({componentId:"sc-f66d8910-0"})(e=>{var t;let{theme:n,$isVisible:i=!1}=e;return{all:"unset",alignItems:"center",backgroundColor:n.global.body_color,border:"1px solid",borderColor:null!==(t=n.global.primary_border_color)&&void 0!==t?t:"transparent",boxShadow:"0px 0px 8px 0px rgb(15 15 15 / 0.19)",bottom:"1.25rem",color:n.global.primary_active_color,display:"flex",borderRadius:"50%",height:"3rem",justifyContent:"center",position:"fixed",outline:"revert",right:"1.25rem",transform:"translateY(".concat(i?0:150,"px)"),transition:"all 0.4s ease",width:"3rem",visibility:"hidden",zIndex:10,"@media (min-width: 768px)":{visibility:"visible"}}}),ed=S.ZP.span.withConfig({componentId:"sc-f66d8910-1"})({display:"block",height:0,overflow:"hidden",width:0});var ec=n(62907),es=n(44483),eu=n(48132),ep=n(8782),em=n(46956),eg=n(30686);let eh=S.ZP.div.withConfig({componentId:"sc-d3b26a2-0"})(e=>{var t,n;let{theme:i}=e;return{backgroundColor:null!==(t=i.store_banner.background_color)&&void 0!==t?t:"transparent",borderBottom:"1px solid ".concat(null!==(n=i.store_banner.border_color)&&void 0!==n?n:"transparent"),padding:"20px",textAlign:"center"}}),ef=S.ZP.div.withConfig({componentId:"sc-d3b26a2-1"})(e=>{let{theme:t}=e;return{margin:"0 auto",maxWidth:"900px",p:{margin:0,...(0,em.l)(t.store_banner.font,{color:e=>null!=e?e:(0,eg.F)(ep.XV)(t.store_banner.background_color)})}}}),ex={STICKY:"sticky",COLUMN:"column",LEFT:"left"};(i=o||(o={})).NEVER="never",i.ALWAYS="always",i.STORE_CLOSED="only_if_store_is_closed";var ev=n(80925),eb=n(64217);let e_=()=>{let e=(0,y.v9)(e=>e.app.conveyanceMode),{fulfillment:t,location:n}=(0,y.v9)(e=>e.app.basket),i=(0,y.v9)(e=>e.app.locations.detail),{display:a}=(0,er.$E)("store_banner"),[l,d]=(0,u.useState)(!1),[c,s]=(0,u.useState)(null),[p,m]=(0,u.useState)(h.P8.PICKUP),g=(0,ev.$m)(i),f=()=>{var o;let r=(0,eb.P1)(e,i,n,t);r!==p&&m(r);let a=(0,H.kL)(i),l=(0,H.t)(a),c=Y.z.HOURS_WITH_MINUTES,u=(null==i?void 0:i.cached_data)?(0,X.UG)(i.cached_data.utc_offset):null;s((0,H.S2)(null===(o=l[0])||void 0===o?void 0:o.start,c,u)),d(!0)};return((0,u.useEffect)(()=>{a!==o.ALWAYS&&(a!==o.STORE_CLOSED||(0,H.OM)((0,H.kL)(i)))||f()}),g===H.Fe.POS_UNAVAILABLE)?(0,r.jsx)(ev.bv,{location:i}):l&&c?(0,r.jsx)(eh,{children:(0,r.jsx)(ef,{children:(0,r.jsx)(eo.Z,{html:!0,accessor:"store.banner",dataObj:{openHours:c,conveyanceType:p},tag:"p"})})}):null};var ey=n(38726),ej=n(72579),ew=n.n(ej),eC=n(76614),eE=n(70144),ek=n(32438),eI=n(65470),eS=n(22427),eT=n(20496),eR=n(26508),eA=n(89393);let eP={setCartMigration:eI.Z.setCartMigration,setProduct:ek.Z.setProduct,replaceBasket:eE.Z.replaceBasket,checkDeliveryAddress:L.Z.checkDeliveryAddress,clearDeliveryAddress:L.Z.clearDeliveryAddress,toggleFulfillmentModal:eI.Z.toggleFulfillmentModal,destroyOrder:eA.Z.destroyOrder},ez=(0,T.connect)(e=>({basketContent:e.app.basket.content,basketLocation:e.app.basket.location,basketCreatedAt:e.app.basket.createdAt,basketFulfillment:e.app.basket.fulfillment,cartMigration:e.app.global.cartMigration,deliveryAddress:e.app.conveyanceMode,basketMenuCategories:e.app.menu.basketMenu,locationDetail:e.app.locations.detail,locationsLoading:e.app.locations.loading,fulfillmentModal:e.app.global.fulfillmentModal}),eP);var eZ=(0,ey.qC)(ez,c.withRouter)(e=>{let{router:t,basketContent:n,basketLocation:i,cartMigration:o,locationDetail:a,setCartMigration:l,basketCreatedAt:d,basketFulfillment:c,deliveryAddress:s,basketMenuCategories:p,menuCategories:m,locationsLoading:g,fulfillmentModal:f,menuLoading:x,toggleFulfillmentModal:v,clearDeliveryAddress:b,checkDeliveryAddress:_,replaceBasket:y,destroyOrder:j,setProduct:w}=e,C=(0,T.useDispatch)(),[E,S]=(0,u.useState)(!1),[R,A]=(0,u.useState)([]),[P,z]=(0,u.useState)(!1);(0,u.useEffect)(()=>{$()},[]),(0,u.useEffect)(()=>{$()},[g]);let Z=()=>{switch(f.addressValidity){case!1:z(!0);return;case!0:D(),z(!1);return;default:z(!1);return}},H=(e,t)=>{let i=(0,eS.HX)(n.basket_items,p,t);y(i.migratedBasketItems,e,t,d,ew()(s||{},"address")),j(),i.productsNotMatched.length&&A(i.productsNotMatched),(0,et.O)(en.x.STORE__BASKET_RECONCILIATION,{name:s.type||h.P8.PICKUP,details:i.productsNotMatched.length?"products_removed":"no_removals"})},D=()=>
1{if(a){H(a,m),l();let e=o.pendingItem;e&&w({product:e,menuCategories:m,label:eC.X.MENU}),(0,eR.d4)(eR.m1.findShop,eR.cE.changeLocation,{label:"".concat(i.label," to ").concat(null==a?void 0:a.label)})}else console.error("Location detail is undefined.")},L=()=>{l();let e=o.pendingItem;e&&w({product:e,menuCategories:m,label:eC.X.MENU})},$=()=>{if(o.type||E){S(!0);return}(null==a?void 0:a.id)&&(null==i?void 0:i.id)&&!g&&!x&&a.id!==i.id&&C(l(k.Jl.MIGRATE))},U=null==a?void 0:a.is_delivery_only;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(M.Z,{modalOpen:!!o.type&&!P,toggleModal:()=>l(),name:N.zr.CART_MIGRATION_MODAL,disableModalClose:U,header:"Your current order is set for ".concat(null==c?void 0:c.type," from ").concat(i.label),children:[(0,r.jsx)(O.iC,{children:(0,r.jsxs)("p",{style:{padding:20},children:["Please confirm you would like to update your order to our ",null==a?void 0:a.label," store."]})}),(0,r.jsxs)(O.vy,{children:[c&&c.address?(0,r.jsxs)(r.Fragment,{children:[!U&&(0,r.jsxs)(O.dK,{size:"large","aria-label":"Pickup from ".concat(null==a?void 0:a.label),onClick:()=>{D(),a&&void 0!==a.id&&b(a.id)},children:["Pickup from ",null==a?void 0:a.label]}),(null==a?void 0:a.supports_delivery)&&(0,r.jsxs)(O.dK,{size:"large","aria-label":"Deliver from ".concat(null==a?void 0:a.label),onClick:()=>{c.address&&_(c.address,a,!0),Z()},children:["Deliver from ",null==a?void 0:a.label]})]}):(0,r.jsx)(O.dK,{size:"large","aria-label":"Update order to ".concat(null==a?void 0:a.label),onClick:()=>{D()},children:"Update Order"}),o.type===k.Jl.MIGRATE&&(U?(0,r.jsx)(O.Ik,{children:(0,r.jsx)(G(),{href:I.Z6.STORES,passHref:!0,onClick:()=>{v(!0),(0,et.O)(en.x.GENERIC__CTA,{name:en.V.CHANGE_LOCATION,details:N.zr.CART_MIGRATION_MODAL})},children:(0,r.jsx)(eo.Z,{accessor:"cart_checkout.change_location_cta"})})}):(0,r.jsx)(O.H7,{"data-css-override":"StyledSecondaryButton","aria-label":"Don't update order to ".concat(null==a?void 0:a.label),onClick:()=>{l(),t.push("".concat(I.Z6.HOMEPAGE,"/store/").concat(n.location.id))},children:"Don't Update Order"})),o.type===k.Jl.RESET&&(U?(0,r.jsx)(O.Ik,{children:(0,r.jsx)(G(),{href:I.Z6.STORES,passHref:!0,onClick:()=>{v(!1),(0,et.O)(en.x.GENERIC__CTA,{name:en.V.CHANGE_LOCATION,details:N.zr.CART_MIGRATION_MODAL})},children:(0,r.jsx)(eo.Z,{accessor:"cart_checkout.change_location_cta"})})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O.H7,{"data-css-override":"StyledSecondaryButton",onClick:()=>{L()},children:"Continue Without Updating"}),(0,r.jsx)("p",{style:{fontStyle:"italic"},children:"Adding an item without updating the location will clear the cart before adding new items."})]}))]})]}),(0,r.jsxs)(M.Z,{modalOpen:!!R.length,toggleModal:()=>A([]),name:N.zr.CART_MIGRATION_NOTICES_MODAL,header:"Please check your order",children:[(0,r.jsx)(O.iC,{children:R.length>0&&(0,r.jsxs)("div",{style:{padding:20,textAlign:"left"},children:[(0,r.jsxs)("p",{children:["Sorry, but the ",i.label," location does not have the following products and they have been removed from your order:"]}),(0,r.jsx)("ul",{children:R.map((e,t)=>(0,r.jsx)("li",{children:e.name},t))})]})}),(0,r.jsx)(O.vy,{children:(0,r.jsx)(O.H7,{"data-css-override":"StyledSecondaryButton","aria-label":"Got it",onClick:()=>A([]),children:"Got it"})})]}),(0,r.jsxs)(M.Z,{modalOpen:P,toggleModal:()=>z(!1),name:N.zr.CANNOT_DELIVER_TO_ADDRESS_MODAL,header:"Sorry! Issue with Delivery",disableModalClose:U,children:[(0,r.jsx)(O.iC,{children:(0,r.jsx)("div",{style:{padding:20,textAlign:"left"},children:(0,r.jsx)("p",{children:f.errorMessage})})}),(0,r.jsxs)(O.vy,{children:[!U&&(0,r.jsx)(O.dK,{size:"large","aria-label":"Pickup from ".concat(null==a?void 0:a.label),onClick:()=>{D(),z(!1),a&&void 0!==a.id&&b(a.id)},children:"Switch to Pickup"}),(0,r.jsx)(O.dK,{size:"large","aria-label":"Retry Delivery from ".concat(null==a?void 0:a.label),onClick:()=>{z(!1),l(),v(!0,a,h.P8.DELIVERY,!1,void 0,!0,U),Z(),eT.uT("Delivery address or details not valid at new store location. User to re-enter info","info",{deliveryAddress:c.address,storeId:null==a?void 0:a.id,basketLocationId:i.id})},children:"Re-Enter Delivery Details"}),U?(0,r.jsx)(O.Ik,{children:(0,r.jsx)(G(),{href:I.Z6.STORES,passHref:!0,onClick:()=>{v(!1),(0,et.O)(en.x.GENERIC__CTA,{name:en.V.CHANGE_LOCATION,details:N.zr.CART_MIGRATION_NOTICES_MODAL})},children:(0,r.jsx)(eo.Z,{accessor:"cart_checkout.change_location_cta"})})}):(0,r.jsx)(O.H7,{"data-css-override":"StyledSecondaryButton","aria-label":"Don't update order to ".concat(null==a?void 0:a.label),onClick:()=>{z(!1),l()},children:"Don't Update Order"})]})]})]})}),eM=n(36525),eO=n(2341);let eH=e=>{let t=(0,eg.F)(ep.DZ)(.97,(0,eg.F)(ep.XV)(e));return()=>(0,S.iv)(["-ms-overflow-style:-ms-autohiding-scrollbar;background-image:linear-gradient(to right,",",","),linear-gradient(to right,",",","),linear-gradient(to right,",",","),linear-gradient(to left,",",",");background-position:left center,right center,left center,right center;background-repeat:no-repeat;background-color:",";background-size:20px 100%,20px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll;"],e,e,e,e,t,e,t,e,e)},eN=S.ZP.span.withConfig({componentId:"sc-4cf2aa35-0"})(["position:relative;&:after{background:",";bottom:",";content:'';display:block;height:2px;left:0px;position:absolute;width:100%;@media (min-width:768px){height:5px;}}img{display:block;"," @media (min-width:768px){","}}"],e=>{let{$active:t,theme:n}=e;return t?"".concat(n.buttons.primary_button_background_color):"none"},e=>{let{location:t}=e;return t===eO.Z.TAKEOVER?"-15px":"-".concat(eM._.GUTTER/2,"px")},e=>{let{location:t}=e;return t!==eO.Z.TAKEOVER&&"\n      max-height: 50px;\n    "},e=>{let{location:t}=e;return t===eO.Z.TAKEOVER?"width: 100%;":"max-height: 90px;"}),eD=S.ZP.ul.withConfig({componentId:"sc-4cf2aa35-1"})(["-webkit-overflow-scrolling:touch;background:",";border-bottom:solid 1px ",";border-top:solid 1px ",";display:flex;justify-content:space-between;margin:0;overflow-x:scroll;padding:0;white-space:nowrap;"," ",""],e=>{let{theme:t}=e;return t.food_hall.filter_nav_background_color},eM.DM.GRAY,eM.DM.GRAY,e=>{let{theme:t}=e;return eH(t.food_hall.filter_nav_background_color)},e=>{let{centeredTags:t}=e;return t&&"\n    display: block;\n    text-align: center;\n\n    @media (min-width: 1025px) {\n      overflow: hidden;\n    }\n\n    li {\n      vertical-align: middle;\n      width: auto;\n    }\n\n    button {\n      padding: 0 ".concat(eM.jl.XS,"px;\n      @supports (padding: 0 clamp(").concat(eM.jl.THREEXS,"px, 4vw, ").concat(eM.jl.LARGE,"px)) {\n        padding: 0 clamp(").concat(eM.jl.THREEXS,"px, 4vw, ").concat(eM.jl.LARGE,"px);\n      }\n\n      @media (min-width: 768px) {\n        min-width: 250px;\n        padding: 0 ").concat(eM.jl.LARGE,"px;\n        @supports (padding: 0 clamp(").concat(eM.jl.LARGE,"px, 6vw, 100px)) {\n          padding: 0 clamp(").concat(eM.jl.LARGE,"px, 6vw, 100px);\n        }\n      }\n    }\n  ")}),eL=S.ZP.li.withConfig({componentId:"sc-4cf2aa35-2"})(["display:inline-block;flex-grow:1;list-style-type:none;"]),e$=S.ZP.button.withConfig({componentId:"sc-4cf2aa35-3"})(["align-items:center;background:none;border:none;display:",";height:80px;justify-content:center;margin:0 auto;width:100%;"," &:hover{opacity:0.8;cursor:pointer;",":after{background:",";}}@media (min-width:768px){height:125px;padding:",";}"],e=>{let{location:t}=e;return t===eO.Z.TAKEOVER?"block":"flex"},e=>{let{location:t}=e;return t!==eO.Z.TAKEOVER&&"\n    padding: 0 ".concat(eM.jl.XS,"px;\n  ")},eN,e=>{let{theme:t}=e;return t.buttons.primary_button_background_color},e=>{let{location:t}=e;return t===eO.Z.TAKEOVER?"".concat(2*eM._.GUTTER,"px ").concat(eM._.GUTTER,"px"):"0 ".concat(eM.jl.MEDIUM,"px")}),eU=S.ZP.div.withConfig({componentId:"sc-4cf2aa35-4"})(["align-items:center;color:",";display:flex;font-size:14px;height:50px;max-width:90px;padding:","px;text-align:center;white-space:normal;"," @media (min-width:768px){font-size:16px;height:90px;max-width:110px;",""],e=>{let{theme:t}=e;return t.food_hall.filter_nav_text_color},eM._.GUTTER/4,e=>{let{location:t}=e;return t===eO.Z.TAKEOVER&&"\n    min-height: 50px;\n    max-height: 90px;\n  "},e=>{let{location:t}=e;return t===eO.Z.TAKEOVER&&"\n      max-height: none;\n    }\n  "});var eF=n(47661),eG=n(17609),eW=n(97549),eB=n(89601),eV=n(28461);async function eK(e){await (0,eB.Xr)("There was an error fetching tags:",e),eT.Tb(e,"error",{eventName:N.RZ.FETCH_TAGS_ERROR})}let eq=e=>e.app.tags;var eX=n(2926),eY=n(28500);function eJ(e){let{menuCategories:t}=e,{activeTagIds:n}=(0,T.useSelector)(e=>e.app.tags),i=(0,T.useDispatch)(),o=(0,c.useRouter)(),l=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=(0,eW.P$)(window.location.host);let n=(0,eG.d9)({origin:e}),{food_hall:i}=(0,er.$E)("admin"),{data:o,error:r}=(0,eF.a)({queryKey:["food-halls"],queryFn:()=>(0,a.NJ)({type:"filter"},{client:n}),enabled:i,refetchOnWindowFocus:!1,staleTime:1/0,keepPreviousData:!0});return r&&eK(r),(0,eV.JZ)(null!=o?o:[],t)}(t),d=(null==l?void 0:l.length)<=3,s=()=>{var e;if(n)return;let t="";o.query.filter&&(t=o.query.filter.toString());let r=null!==(e=l.find(e=>e.label===decodeURIComponent(t)||e.id===Number(t)))&&void 0!==e?e:l[0];(null==r?void 0:r.id)&&i(eX.Z.setActiveTag(r))};return(0,u.useEffect)(s,[]),(0,u.useEffect)(s,[l]),n&&l.length?(0,r.jsx)(eD,{centeredTags:d,children:l.map((e,t)=>(0,r.jsx)(eL,{children:(0,r.jsx)(e$,{onClick:()=>{i(eX.Z.setActiveTag(e)),(0,et.O)(en.x.GENERIC__CTA,{name:e.label,details:"Filter Tag"})},children:(0,r.jsx)(eN,{$active:n.includes(e.id),children:e.icon_image_url?(0,r.jsx)("img",{src:(0,eY.tg)(e.icon_image_url,{height:100}),alt:e.label}):(0,r.jsx)(eU,{children:e.label})})})},"".concat(e.label,"-").concat(t)))}):null}let eQ=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e)return null;let i=(0,w.K6)(t,"store_detail.background_image");if(e.attributes){let t=e.attributes.find(e=>{var t;return(null==e?void 0:null===(t=e.position)||void 0===t?void 0:t.id)===k.NB.STORE_DETAIL_HERO});t&&(i=t.value)}return n?(0,eY.tg)(i,{width:2e3}):i},e0=()=>{let e=(0,y.v9)(e=>e.app.cmsConfig.webConfig),t=eQ((0,y.v9)(e=>e.app.locations.detail),e);return t?(0,r.jsx)(e1,{src:t,alt:"Location hero image"}):null},e1=S.ZP.img.withConfig({componentId:"sc-115e964f-0"})(e=>{var t;let{theme:n}=e;return{backgroundColor:null!==(t=n.store_detail.background_color)&&void 0!==t?t:"transparent",display:"none",height:"".concat(n.store_detail.hero_height,"px"),objectFit:"cover",width:"100%","@media (min-width: 768px)":{display:"block"}}}),e2=S.ZP.div.withConfig({componentId:"sc-265cb3df-0"})(["div input{width:320px;}"]),e4=S.ZP.div.withConfig({componentId:"sc-265cb3df-1"})(["display:none;@media (min-width:768px){display:",";justify-content:flex-end;}"],e=>{var t,n;let{theme:i}=e;return(null===(t=i.menu)||void 0===t?void 0:t.menu_search)||(null===(n=i.menu)||void 0===n?void 0:n.dietary_preferences_enabled)?"flex":"none"}),e6=S.ZP.div.withConfig({componentId:"sc-265cb3df-2"})(["background-color:",";padding:var(--size-3) var(--size-4);@media (min-width:768px){display:none;}",""],e=>{let{theme:t}=e;return t.store_detail.mobile_background_color},e=>{let{$foodHallEnabled:t}=e;return t&&"\n    border-top: 1px solid ".concat(eM.DM.GRAY,";\n  ")}),e5=S.ZP.div.withConfig({componentId:"sc-265cb3df-3"})(["--bottom-store-banner__display:none;@media (min-width:768px){--bottom-store-banner__display:block;}bottom:0;display:var(--bottom-store-banner__display);position:sticky;"]),e3=S.ZP.div.withConfig({componentId:"sc-265cb3df-4"})(["",""],e=>{var t;let{theme:n}=e;return"\n   --top-store-banner__display: block;\n\n   @media (min-width: 768px) {\n     --top-store-banner__display: ".concat((null===(t=n.store_banner)||void 0===t?void 0:t.placement)==="bottom"?"none":"block","\n   }\n\n  display: var(--top-store-banner__display);\n ")}),e9=S.ZP.div.withConfig({componentId:"sc-265cb3df-5"})(e=>{let{theme:t}=e;return{ul:{"@media (min-width: 1025px)":{marginInlineEnd:"var(--neg-size-7)"}},h2:{...(0,em.l)(t.menu_category_header.font,["color"])},a:{...(0,em.l)(t.menu_category_header.secondary_font,["font_size"])}}});var e8=n(79314);let e7=window.navigator&&(0,e8.Dz)().mobile_ios,te=S.ZP.div.withConfig({componentId:"sc-b21fda66-0"})(e=>{var t;let{theme:n,$modalOpen:i}=e;return{backgroundColor:i&&null!==(t=n.modals.background_color)&&void 0!==t?t:"transparent",padding:i?".75rem 1rem 1.5rem":0,position:i?"fixed":"static",inset:0,top:e7?"9.5rem":"6.5rem",zIndex:eM.kl.MENU_SEARCH_MODAL}}),tt=S.ZP.div.withConfig({componentId:"sc-b21fda66-1"})({display:"flex"}),tn=(0,S.ZP)(D.Db).withConfig({componentId:"sc-b21fda66-2"})(["border-color:transparent;margin:0 0 0 ","px;min-width:0;padding:0 ","px;"],eM.jl.XS,eM.jl.XS),ti=S.ZP.div.withConfig({componentId:"sc-b21fda66-3"})(["flex-grow:1;position:relative;input{height:","px;padding:","px ","px ","px ","px;-webkit-appearance:none;width:100%;","}"],eM._.MENU_SEARCH_HEIGHT,eM.jl.XS,eM.jl.XL,eM.jl.XS,eM.jl.SMALL,e=>{let{theme:t}=e;return"\n      background-color: ".concat(t.forms.background_color,";\n      border: 1px solid ").concat(t.forms.border_color,";\n      border-radius: ").concat(t.forms.border_radius,"px;\n      ...getFontStyles(").concat(t.forms,", ['font_family', 'font_size', 'color']),\n\n      &:focus {\n        border: 1px solid ").concat(t.global.primary_active_color,";\n      }\n    ")}),to=S.ZP.button.withConfig({componentId:"sc-b21fda66-4"})(["align-items:center;background:none;border:none;cursor:pointer;display:flex;height:","px;opacity:",";position:absolute;padding:0 ","px;right:0;top:0;width:48px;img{display:block;}"],eM._.MENU_SEARCH_HEIGHT,e=>{let{$isVisible:t}=e;return t&&1||0},eM.jl.XS),tr=S.ZP.div.withConfig({componentId:"sc-b21fda66-5"})(["align-items:center;display:flex;height:","px;padding:0 ","px;pointer-events:none;position:absolute;right:0;top:0;"],eM._.MENU_SEARCH_HEIGHT,eM.jl.SMALL),ta=eM._.MOBILE_HEADERHEIGHT+eM.jl.SMALL+eM.jl.MEDIUM+eM._.MENU_SEARCH_HEIGHT+2,tl=S.ZP.ul.withConfig({componentId:"sc-b21fda66-6"})(["background-color:",";border-radius:","px;box-shadow:0 4px 8px 0 rgba(0,0,0,0.16);left:0;margin:0;max-height:350px;overflow:scroll;padding:0;position:absolute;width:100%;@media (max-width:767px){box-shadow:none;margin:","px -","px 0;height:calc(100vh - ","px);max-height:none;padding:0 0;position:relative;width:calc(100% + ","px);}li{border-bottom:1px solid ",";list-style-type:none;margin:0 ","px;padding:0;&:last-of-type{border-bottom:none;}}"],e=>{let{theme:t}=e;return t.modals.background_color},e=>{let{theme:t}=e;return t.global.border_radius},eM.jl.MEDIUM,eM.jl.SMALL,ta,eM.jl.LARGE,eM.DM.LIGHTERGRAY,eM.jl.SMALL),td=S.ZP.div.withConfig({componentId:"sc-b21fda66-7"})(["padding:","px ","px;h2{font-size:inherit;}h2,p{text-align:center !important;}"],eM._.GUTTER,2*eM._.GUTTER),tc=S.ZP.button.withConfig({componentId:"sc-b21fda66-8"})(e=>{let{theme:t}=e;return{alignItems:"center",background:"none",border:"none",cursor:"pointer",display:"flex",margin:"-1px -".concat(eM.jl.SMALL,"px"),minHeight:"".concat(eM._.MENU_SEARCH_RESULT_HEIGHT,"px"),maxWidth:"calc(100% + ".concat(eM.jl.LARGE,"px)"),padding:"14px ".concat(eM.jl.SMALL,"px"),position:"relative",textAlign:"left",width:"calc(100% + ".concat(eM.jl.LARGE,"px)"),...(0,em.l)(t.modals.font,["color"]),"&:hover":{background:t.buttons.primary_button_background_color,...(0,em.l)(t.buttons.primary_font,["color"],{color:e=>null!=e?e:(0,eg.F)(ep.XV)(t.buttons.primary_button_background_color)})},"@media (max-width: 767px)":{...(0,em.l)(t.modals.font,["color"])}}}),ts=S.ZP.div.withConfig({componentId:"sc-b21fda66-9"})(["background-position:center;height:","px;margin:0 ","px 0 0;width:","px;",""],2*eM._.GUTTER,eM._.GUTTER/2,2*eM._.GUTTER,e=>{let{backgroundImage:t,theme:n}=e;return"\n    background-image: url(".concat(t,");\n    background-size: ").concat(n.menu_product_card.image_size,";\n  ")});var tu=n(76493),tp=n(14527);let tm=S.ZP.div.withConfig({componentId:"sc-378fab46-0"})(["position:relative;transition:all 0.05s ease-in-out;z-index:1;",""],e=>{let{$isVisible:t}=e;return"\n    opacity: ".concat(t&&1||0,";\n    visibility: ").concat(t&&"visible"||"hidden",";\n    pointer-events: ").concat(t&&"all"||"none",";\n    transition: opacity .05s ease-in-out,\n                visibility .0s .05s;\n  ")}),tg=e=>{let{onHid
1e:t,onShow:n,children:i,options:o={},disabled:a=!1,style:l={}}=e,d=(0,u.useRef)(),[c,s]=(0,u.useState)(!1),p=()=>{s(!0),n&&n()},m=()=>{s(!1),t&&t()};return(0,u.useEffect)(()=>{var e;if(null===(e=window)||void 0===e?void 0:e.IntersectionObserver){let e=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&!a?p():m()})},o);return(null==d?void 0:d.current)&&e.observe(d.current),()=>{e.disconnect()}}},[]),(0,r.jsx)(tm,{$isVisible:!!a||c,ref:d,style:l,children:i})},th=e=>{let{color:t,size:n=18}=e,i=(0,S.Fg)(),{color:o}=(0,em.l)(i.modals.font);return(0,r.jsx)("svg",{width:n,height:n,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.53223 14.0332C8.92969 14.0332 10.2393 13.6113 11.3291 12.8906L15.1787 16.749C15.4336 16.9951 15.7588 17.1182 16.1104 17.1182C16.8398 17.1182 17.376 16.5469 17.376 15.8262C17.376 15.4922 17.2617 15.167 17.0156 14.9209L13.1924 11.0801C13.9834 9.95508 14.4492 8.59277 14.4492 7.11621C14.4492 3.31055 11.3379 0.199219 7.53223 0.199219C3.73535 0.199219 0.615234 3.31055 0.615234 7.11621C0.615234 10.9219 3.72656 14.0332 7.53223 14.0332ZM7.53223 12.1875C4.74609 12.1875 2.46094 9.90234 2.46094 7.11621C2.46094 4.33008 4.74609 2.04492 7.53223 2.04492C10.3184 2.04492 12.6035 4.33008 12.6035 7.11621C12.6035 9.90234 10.3184 12.1875 7.53223 12.1875Z",fill:null!=t?t:o})})};var tf=n(70485);
1let tx=e=>{let{onSelect:t,isMobile:n}=e,[i,o]=(0,u.useState)(""),[a,l]=(0,u.useState)([]),[d,c]=(0,u.useState)([]),[s,p]=(0,u.useState)(!1),[m,g]=(0,u.useState)(!1),{detail:f}=(0,y.v9)(e=>e.app.locations),x=(0,y.v9)(e=>e.app.cmsConfig.strings),{time_wanted:v}=(0,y.v9)(j.Fr),{food_hall:b}=(0,er.$E)("admin"),{categories:C,status:E}=(0,_.H9)({id:null==f?void 0:f.id,wantedAt:v}),k=C.filter(e=>e.products.length);(0,u.useEffect)(()=>{l(h.fH.createMenuProductDictionary(k,b))},[C]),(0,u.useEffect)(()=>{let e=setTimeout(()=>{I()},1e3);return()=>clearTimeout(e)},[i,d]),(0,u.useEffect)(()=>{g(!0);let e=setTimeout(()=>{T(i),g(!1)},500);return()=>{clearTimeout(e),g(!0)}},[i]);let I=()=>{i&&(0,eR.d4)(eR.m1.browse,eR.cE.menuSearch,{label:i})},S=e=>{o(e)},T=e=>{c(e.length>1?h.fH.findFuzzyMenuMatches(a,e):[])},R=()=>{n&&!s&&p(!0)};return"success"!==E?null:(0,r.jsx)(tp.G,{active:s,focusTrapOptions:{clickOutsideDeactivates:!0},children:(0,r.jsxs)(te,{$modalOpen:s,children:[(0,r.jsxs)(tt,{children:[(0,r.jsxs)(ti,{children:[(0,r.jsx)(tf.G,{onChange:e=>{R(),S(e.target.value)},onClick:()=>R(),placeholder:(0,w.bc)(x,"store.search_placeholder"),value:i}),i?(0,r.jsx)(to,{onClick:()=>S(""),"aria-label":"Clear Search",$isVisible:i,children:(0,r.jsx)(tu.W,{})}):(0,r.jsx)(tr,{children:(0,r.jsx)(th,{size:17})})]}),s&&(0,r.jsx)(tn,{onClick:()=>{S(""),p(!1)},$buttonTheme:"knockout",$minWidth:0,children:"Cancel"})]}),(0,r.jsx)(tg,{disabled:s,style:{zIndex:eM.kl.MENU_SEARCH_RESULTS},children:(0,r.jsxs)(r.Fragment,{children:[d.length>0&&(0,r.jsx)(tl,{children:d.map(e=>{let n=(0,eY.Wr)(e.item.product,{height:50});return(0,r.jsx)("li",{children:(0,r.jsxs)(tc,{onClick:()=>{S(""),p(!1),t(e.item.product,e.item.category)},children:[n&&(0,r.jsx)(ts,{backgroundImage:n}),e.item.product.name]})},e.item.product.id)})}),i.length>1&&0===d.length&&!m&&(0,r.jsx)(tl,{children:(0,r.jsxs)(td,{"aria-live":"polite",children:[(0,r.jsx)(eo.Z,{accessor:"store.search_no_results_header",tag:"h2",dataObj:{searchTerm:i},disableDataObjEncode:!0}),(0,r.jsx)(eo.Z,{accessor:"store.search_no_results_subheader",tag:"p"})]})})]})})]})})};var tv=n(124),tb=n(78754),t_=n(3776),ty=n(20360);function tj(e){let{children:t,onElementView:n,threshold:i=.5,triggerOnce:o=!1}=e,{ref:a,inView:l}=(0,ty.YD)({threshold:i,triggerOnce:o});return(0,u.useEffect)(()=>{l&&n()},[l]),(0,r.jsx)("div",{ref:a,children:t})}var tw=n(51927),tC=n(37085);let tE=S.ZP.div.withConfig({componentId:"sc-4ac0ee13-0"})({display:"flex",flexDirection:"column",flex:1}),tk=S.ZP.div.withConfig({componentId:"sc-4ac0ee13-1"})(e=>{let{theme:t}=e;return{...(0,em.l)(t.menu_product_card.font),margin:".25rem 0 0",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",overflow:"hidden","@media (min-width: 768px)":{display:"block"},p:{margin:0}}}),tI=S.ZP.footer.withConfig({componentId:"sc-4ac0ee13-2"})({margin:"auto 0 0",padding:"1.5rem 0 0"}),tS=S.ZP.div.withConfig({componentId:"sc-4ac0ee13-3"})(e=>{var t;let{theme:n}=e;return{aspectRatio:"1 / 1",borderRadius:.5*n.global.border_radius,maxWidth:"100%",overflow:"hidden",position:"relative",img:{objectFit:"cover",display:"block"}}}),tT=S.ZP.h2.withConfig({componentId:"sc-4ac0ee13-4"})(e=>{let{theme:t}=e;return{...(0,em.l)(t.menu_product_card.secondary_font,{line_height:e=>"revert"===e?"145%":e}),margin:0}}),tR=S.ZP.article.withConfig({componentId:"sc-4ac0ee13-5"})(e=>{var t,n;let{theme:i,$hasImage:o=!1}=e;return{alignItems:"center",border:"1px solid",borderColor:null!==(t=i.menu_product_card.border_color)&&void 0!==t?t:"transparent",borderRadius:null!==(n=i.menu_product_card.border_radius)&&void 0!==n?n:0,display:"grid",gridTemplateColumns:o?"1fr 5.625rem":"1fr",gap:"1rem",padding:".875rem 1rem",...(0,em.l)(i.menu_product_card.font,{line_height:e=>"revert"===e?"145%":e}),"@media (min-width: 1024px)":{gridTemplateColumns:o?"1fr 9.25rem":"1fr"},["& ".concat(tS)]:{gridColumn:"2"},["& ".concat(tE)]:{gridColumn:"1",gridRow:"1"}}}),tA=S.ZP.article.withConfig({componentId:"sc-4ac0ee13-6"})(e=>{var t,n;let{theme:i}=e;return{border:"1px solid",borderColor:null!==(t=i.menu_product_card.border_color)&&void 0!==t?t:"transparent",borderRadius:null!==(n=i.menu_product_card.border_radius)&&void 0!==n?n:0,display:"flex",flexDirection:"column",padding:".75rem",...(0,em.l)(i.menu_product_card.font,{line_height:e=>"revert"===e?"145%":e}),"@media (min-width: 768px)":{padding:".875rem 1rem"},["& ".concat(tS," + ").concat(tE)]:{marginTop:"1rem"}}}),tP={Details:tE,Description:tk,Footer:tI,Horizontal:tR,Image:tS,Title:tT,Vertical:tA};function tz(e){var t,n;let{value:i}=e;return i?(0,r.jsxs)(tZ,{backgroundColor:null!==(t=i.background_color)&&void 0!==t?t:"inherit",textColor:null!==(n=i.text_color)&&void 0!==n?n:"inherit",children:[i.icon_image_url&&(0,r.jsx)(tM,{src:i.icon_image_url,alt:"".concat(i.label," Tag Icon")}),i.hide_label?"":i.label]}):null}let tZ=S.ZP.span.withConfig({componentId:"sc-e7383615-0"})(e=>{let{backgroundColor:t,textColor:n}=e;return{alignItems:"center",background:t,borderRadius:"0px var(--size-1) var(--size-1) 0px",color:n,display:"flex",fontSize:".625rem",justifyContent:"center",left:0,padding:"var(--size-1) var(--size-2)",position:"absolute",top:"var(--size-2)"}}),tM=S.ZP.img.withConfig({componentId:"sc-e7383615-1"})({maxHeight:"1.25rem",marginRight:"var(--size-1)"});var tO=n(33317);let tH=e=>{let t=e?new Date(e):null;return!!(!t||t<new Date)};function tN(e){var t,n,i,o;let{location:a,product:l,onClick:d,showImage:c=!0,index:s,categoryName:p}=e,[m,g]=(0,u.useState)(!1),{logo:h}=(0,er.$E)("header"),{dietary_preferences_enabled:f}=(0,er.$E)("menu"),{hide_calories:x,hide_price:v,card_orientation:b,hide_description:_,hide_description_mobile:j}=(0,er.$E)("menu_product_card"),{label:w}=(0,y.v9)(e=>e.app.organization.organization),C=(0,eY.Wr)(l,{height:500}),k=(0,eV.bL)(l.pretty_price,null!==(i=null==a?void 0:a.country)&&void 0!==i?i:"US"),{disabled_until:I}=l,S=!tH(I),T=(0,y.I0)(),R=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K.H,{condition:c&&!!C,children:(0,r.jsxs)(tP.Image,{children:[(0,r.jsx)(tC.E,{src:"".concat(C,"@avif"),alt:"Product image",layout:"fill"}),(0,r.jsx)(tz,{value:null!==(o=null===(t=l.marketing_tags)||void 0===t?void 0:t[0])&&void 0!==o?o:null})]})}),(0,r.jsx)(K.H,{condition:c&&"horizontal"!==b&&!C,children:(0,r.jsx)(tP.Image,{children:(0,r.jsx)(tU,{children:h?(0,r.jsx)(tC.E,{src:"".concat(h,"@avif"),alt:w,height:32,width:160,objectFit:"contain"}):(0,r.jsx)(tF,{children:w})})})}),(0,r.jsxs)(tP.Details,{children:[(0,r.jsx)(tP.Title,{children:l.name}),(0,r.jsx)(K.H,{condition:!!l.description&&!_,children:(0,r.jsx)(tG,{$shouldHide:j,children:(0,r.jsx)(tP.Description,{children:null===(n=l.description)||void 0===n?void 0:n.split("\n").map((e,t)=>(0,r.jsx)("p",{children:e.trim().replace(/&amp;/g,"&")},"line-".concat(t)))})})}),(0,r.jsx)(K.H,{condition:!v&&!!k||!x&&!!l.pretty_calories,children:(0,r.jsxs)(tP.Footer,{children:[(0,r.jsxs)(V.Kq,{gap:"$3",children:[!v&&
1k&&!S&&(0,r.jsx)(t$,{children:k}),!x&&(0,r.jsx)(tL,{children:l.pretty_calories})]}),(0,r.jsx)(K.H,{condition:f,children:(0,r.jsx)(tw.L,{productAllergens:l,compileAllergensMethod:eV.XH,mode:E.JT.MENU})})]})})]})]});return(0,r.jsxs)(tD,{onClick:S?void 0:d,$animateOnPointer:c&&!!C,"aria-haspopup":!0,"aria-expanded":!1,"data-testid":"menu-product-card",disabled:S,children:[(0,r.jsx)(tj,{threshold:.01,onElementView:()=>{m||(T(tO.Z.commerceItemImpression(l,p,s)),g(!0))}}),(0,r.jsx)("div",{style:{opacity:S?.3:1,height:"100%"},children:"vertical"===b?(0,r.jsx)(tP.Vertical,{children:R}):(0,r.jsx)(tP.Horizontal,{$hasImage:c&&!!C,children:R})}),S&&(0,r.jsx)(tW,{children:"Out of Stock"})]})}let tD=S.ZP.button.withConfig({componentId:"sc-2df40a45-0"})(e=>{var t,n,i;let{theme:o,$animateOnPointer:r=!0,disabled:a}=e;return{all:"unset",cursor:a?"default":"pointer",display:"flex",position:"relative",flexDirection:"column",outline:"revert",backgroundColor:null!==(t=o.menu_product_card.background_color)&&void 0!==t?t:"transparent",border:"1px solid ".concat(null!==(n=o.menu_product_card.border_color)&&void 0!==n?n:"transparent"),borderRadius:"".concat(null!==(i=o.menu_product_card.border_radius)&&void 0!==i?i:0,"px"),...(0,em.l)(o.menu_product_card.font,{line_height:e=>"revert"===e?"145%":e}),["& ".concat(tP.Vertical,", & ").concat(tP.Horizontal)]:{height:"100%",transition:"all .4s ease"},["& ".concat(tP.Image," img")]:{transition:"all .4s ease"},["&:hover ".concat(tP.Image," img")]:{transform:r?"scale(1.1)":"none"},["&:hover ".concat(tP.Vertical,", &:hover ").concat(tP.Horizontal)]:{borderColor:o.global.primary_active_color}}}),tL=S.ZP.span.withConfig({componentId:"sc-2df40a45-1"})(e=>{let{theme:t}=e;return{...(0,em.l)(t.menu_product_card.font,{font_size:e=>"number"==typeof e?.875*e:e})}}),t$=S.ZP.span.withConfig({componentId:"sc-2df40a45-2"})(e=>{let{theme:t}=e;return{fontWeight:700,...(0,em.l)(t.menu_product_card.font,["color","font_family","font_size","font_style","line_height"],{font_size:e=>"number"==typeof e?.875*e:e})}}),tU=S.ZP.div.withConfig({componentId:"sc-2df40a45-3"})({alignItems:"center",backgroundColor:"#e4e4e4",display:"flex",justifyContent:"center",height:"100%",padding:"1rem",width:"100%",img:{filter:"grayscale(1)",height:"2rem",opacity:.2,width:"10rem"}}),tF=S.ZP.span.withConfig({componentId:"sc-2df40a45-4"})(e=>{let{theme:t}=e;return{fontWeight:"bold",opacity:.2,...(0,em.l)(t.header.font,["font_family","font_size"])}}),tG=S.ZP.div.withConfig({componentId:"sc-2df40a45-5"})(e=>{let{$shouldHide:t}=e;return{display:t?"none":"block","@media (min-width: 640px)":{display:"block"}}}),tW=S.ZP.div.withConfig({componentId:"sc-2df40a45-6"})({position:"absolute",height:40,left:"0",right:"0",bottom:"0",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 0, 0, 0.7)",color:"#fff",fontSize:14,zIndex:1,pointerEvents:"none"});var tB=n(13702),tV=n(12436),tK=n.n(tV);let tq=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{ref:(0,u.useRef)(null),listener:(0,u.useCallback)(tK()(e,t),[n])}},tX=e=>{let{categories:t,customizeProduct:n,currentCategory:i,activeTagIds:o}=e,a=(0,u.useRef)([]),{detail:l}=(0,y.v9)(e=>e.app.locations),{requestedNavigationUpdate:d}=(0,y.v9)(e=>e.app.menu),{category_nav_display:c}=(0,er.$E)("menu_categories"),{mobile_web_product_grid:s}=(0,er.$E)("menu"),{card_orientation:p,hide_image:m}=(0,er.$E)("menu_product_card"),g=(0,y.I0)(),f=c===ex.STICKY||c===ex.LEFT?192:0;function x(){if(!a.current)return;let e="";a.current.forEach(t=>{t.element.getBoundingClientRect().top<=250&&(e=t.id)}),g(tB.Z.pushNavigationStatus(e))}(0,u.useEffect)(function(){if(!a.current)return;let e=a.current.find(e=>e.id===i);e?window.scrollTo({top:(0,eB.ou)(e.element.getBoundingClientRect().top,f)}):x()},[]),(0,u.useEffect)(()=>{if(!a.current)return;let e=a.current.find(e=>e.id===d);e&&window.scrollTo({top:(0,eB.ou)(e.element.getBoundingClientRect().top,f),behavior:"smooth"}),g(tB.Z.requestNavigationUpdate(""))},[f,g,d]);let{listener:v}=tq(x,200);return(0,u.useEffect)(()=>(window.addEventListener("scroll",v),()=>window.removeEventListener("scroll",v))),(0,r.jsx)(r.Fragment,{children:t.filter(e=>e.products.length>0).filter(e=>(0,eV.$9)(e,o)).map(e=>{var t;let i=null===(t=e.description)||void 0===t?void 0:t.split("\n"),d=!1;return m||(d=e.products.some(e=>{var t;return!!e.image||null!==(t=e.images)&&void 0!==t&&!!t.image_url_1_by_1})),(0,r.jsx)("div",{ref:t=>
1{if(t){let n=String(e.id);a.current=a.current.filter(e=>e.id!==n).concat({element:t,id:n})}},children:(0,r.jsxs)(tY,{"data-menu-category-id":e.global_id,children:[(0,r.jsx)(tJ,{className:"koala__ui-menu-category-heading",children:(0,r.jsxs)(tj,{triggerOnce:!0,onElementView:()=>g(tO.Z.commerceCategoryView(e,l)),children:[(0,r.jsx)("h2",{id:h.fH.slugName(e),children:e.name}),null==i?void 0:i.map((e,t)=>(0,r.jsx)("p",{children:e.trim()},"line-".concat(t)))]},e.id)}),(0,r.jsx)(tQ,{$cardOrientation:p,$mobileGridCount:s,children:e.products.filter(e=>(0,eV.Aj)(e.filter_tags,o)).map((t,i)=>(0,r.jsx)(tN,{onClick:()=>{g(tO.Z.commerceItemClick(t,e.name,i)),n(t,e)},categoryName:e.name,location:l,product:t,showImage:d,index:i},t.id))})]})},e.id)})})},tY=S.ZP.div.withConfig({componentId:"sc-ca496a3c-0"})(e=>{let{theme:t}=e;return{display:"flex",flexWrap:"stacked"===t.menu_categories.category_menu_header_display||t.menu_categories.category_menu_header_display===ex.LEFT?"wrap":"nowrap","@media screen and (max-width: 1024px)":{display:"block"}}}),tJ=S.ZP.div.withConfig({componentId:"sc-ca496a3c-1"})(e=>{let{theme:t}=e;return{display:"block",marginBottom:"20px",..."stacked"===t.menu_categories.category_menu_header_display&&{marginLeft:"auto",marginRight:"auto",maxWidth:"655px",textAlign:"center",width:"100%"},..."column"===t.menu_categories.category_menu_header_display&&{width:"15%"},..."left"===t.menu_categories.category_nav_display&&"stacked"!==t.menu_categories.category_menu_header_display&&{width:"100%",marginLeft:"20px"},h2:{margin:0,wordWrap:"break-word",...(0,em.l)(t.menu_category_header.font,["color","font_family","font_size"])},p:{margin:"10px 0 0",...(0,em.l)(t.menu_category_header.secondary_font,["color","font_family","font_size"])},"@media (max-width: 1024px)":{margin:"0 auto var(--size-5)",width:"100%","h2, p":{textAlign:"center"}}}}),tQ=S.ZP.div.withConfig({componentId:"sc-ca496a3c-2"})(e=>{let{$cardOrientation:t,$mobileGridCount:n}=e;return{display:"grid",gridTemplateColumns:"vertical"===t&&"2x"===n?"1fr 1fr":"1fr",gap:"1rem",width:"100%","@media screen and (min-width: 768px)":{gap:"1.5rem",gridTemplateColumns:"vertical"===t?"repeat(auto-fill, minmax(12rem, 1fr))":"repeat(auto-fill, minmax(18rem, 1fr))"},"@media screen and (min-width: 1024px)":{gap:"1.5rem",gridTemplateColumns:"vertical"===t?"repeat(auto-fill, minmax(14rem, 1fr))":"repeat(auto-fill, minmax(24rem, 1fr))"}}});var t0=n(62451);function t1(){var e;let{locations:t}=(0,y.v9)(e=>e.app);return(0,r.jsxs)(t2,{children:[(0,r.jsx)(eo.Z,{tag:"p",accessor:"store.menu_disclaimer",html:!0,dataObj:t.detail}),null===(e=t.detail)||void 0===e?void 0:e.disclaimers.map((e,t)=>{var n;return(0,r.jsx)(t4,{dangerouslySetInnerHTML:{__html:null===(n=e.description)||void 0===n?void 0:n.replace(/(?:\r\n|\r|\n)/g,"<br /><br />")}},"".concat(e.name,"-").concat(t))})]})}let t2=S.ZP.div.withConfig({componentId:"sc-f2b75d49-0"})(["margin:0 auto;max-width:var(--size-4xl);"]),t4=S.ZP.p.withConfig({componentId:"sc-f2b75d49-1"})({overflowWrap:"break-word",wordBreak:"break-all"});function t6(e){let{categories:t,locationDetail:n,activeTagIds:i,context:o}=e,a=(0,y.I0)(),{navigationStatus:l}=(0,y.v9)(e=>e.app.menu),{webConfig:d}=(0,y.v9)(e=>e.app.cmsConfig),c=(0,v.i)(d);return(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>{let d=(0,eV.PS)({id:c?n.brand_id:n.id,name:n.label,catId:String(e.id),catName:e.name},i);return(0,r.jsx)(G(),{href:d,replace:!0,shallow:!0,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(t5,{"data-testid":"menu-navigation-category",id:(0,eV.UP)(String(e.global_id),o),$active:l?String(e.id)===l:0===t,onClick:t=>{t.preventDefault(),(0,eR.d4)(eR.m1.browse,eR.cE.clickCategory,{label:e.name}),a(tB.Z.requestNavigationUpdate(String(e.id))),window.history.pushState(null,"",d)},children:(0,r.jsx)("span",{children:e.name})})},"".concat(h.fH.slugName(e),"-").concat(t))})})}let t5=S.ZP.a.withConfig({componentId:"sc-6b148f2a-0"})(e=>{let{theme:t,$active:n=!1}=e;return{borderBottom:"3px solid transparent",borderTop:"3px solid transparent",cursor:"pointer",opacity:n?1:.6,padding:"5px 10px 5px 0",textAlign:["left","column"].includes(t.menu_categories.category_nav_display)?"left":"center",transition:"all 0.2s linear",...(0,em.l)(t.menu_categories.category_nav_font,{color:e=>n?t.menu_categories.category_nav_text_hover_color:e}),borderBottomColor:n?t.menu_categories.category_nav_text_hover_color:"transparent","&:hover":{borderBottomColor:t.menu_categories.category_nav_text_hover_color,color:t.menu_categories.category_nav_text_hover_color,opacity:1,textDecoration:"none"}}});function t3(e){let{categories:t,locationDetail:n,activeTagIds:i,noTimeSelected:o}=e,{category_nav_background_color:a,category_nav_display:l,category_nav_text_color:d}=(0,er.$E)("menu_categories"),{regular:c}=(0,er.$E)("secondary_font");return(0,r.jsx)(t9,{"data-testid":"menu-navigation",css:{backgroundColor:a},layout:l,noTimeSelected:o,"data-css-override":"StyledDesktopNavLayout",className:"coo_mobile_safe_areas",children:(0,r.jsxs)(t8,{layout:l,children:[(0,r.jsx)(K.H,{condition:l===ex.COLUMN,children:(0,r.jsx)(t7,{"data-css-override":"StyledMenuTitle",css:{"& h1":{color:d,fontFamily:c.font_family}},children:(0,r.jsx)("h1",{children:"Menu"})})}),(0,r.jsx)(ne,{layout:l,className:tb.Y.STORE_MENU.DESKTOP_NAV,children:(0,r.jsx)(t6,{activeTagIds:i,locationDetail:n,categories:t,context:"desktop"})})]})})}let t9=(0,B.zo)("div",{display:"none",zIndex:9,variants:{layout:{sticky:{position:"sticky",top:"8.5rem","@xl":{top:"$20"}},inline:{},column:{},left:{}},noTimeSelected:{true:{top:"calc(8.5rem + var(--notification-bar-height, 0px))","@xl":{top:"calc($20 + var(--notification-bar-height, 0px))"}}}},"@md":{display:"block"}}),t8=(0,B.zo)("div",{display:"flex",margin:"0 auto",maxWidth:"1440px",height:"$20",padding:"0 $5",width:"100%",variants:{layout:{sticky:{}
1,inline:{},column:{height:"auto",padding:"$5","& > div":{flexBasis:"20%",flexGrow:"initial"}},left:{padding:0}}}}),t7=(0,B.zo)("div",{"& h1":{fontSize:"2rem",margin:"$5 0"}}),ne=(0,B.zo)("nav",{display:"flex",flexBasis:"100%",flexDirection:"row",flexWrap:"inherit",justifyContent:"space-between",["& ".concat(t5)]:{alignItems:"center",display:"flex",padding:"0 $3"},variants:{layout:{sticky:{},inline:{},column:{flexBasis:"60%",flexWrap:"wrap",justifyContent:"flex-start",["& ".concat(t5)]:{width:"33.33%",["&:hover, &.".concat(tb.Y.STORE_MENU.ACTIVE_NAV_BUTTON)]:{borderColor:"transparent",textDecoration:"underline"}}},left:{flexDirection:"column",padding:"$5",height:"calc(100vh - 100px)",justifyContent:"flex-start",overflowY:"scroll",["& ".concat(t5)]:{display:"block",padding:"$5"}}}}});function nt(e){let{categories:t}=e,n=(0,y.I0)(),i=(0,y.v9)(e=>e.app.menu.navigationStatus);return(0,r.jsx)("select",{title:"Choose a category",value:i,onChange:e=>{let i=t.find(t=>String(t.id)===e.target.value);i&&(n(tB.Z.requestNavigationUpdate(String(i.id))),(0,eR.d4)(eR.m1.browse,eR.cE.clickCategory,{label:"Mobile: ".concat(null==i?void 0:i.name)}))},children:t.map((e,t)=>(0,r.jsx)("option",{value:String(e.id),children:e.name},"".concat(h.fH.slugName(e),"-").concat(t)))})}var nn=n(58927);function ni(e){let{activeTagIds:t,categories:n,locationDetail:i,noTimeSelected:o}=e,a=(0,y.v9)(e=>e.app.menu.navigationStatus),{mobile_category_nav_display:l,category_nav_background_color:d,category_nav_text_color:c}=(0,er.$E)("menu_categories"),{bold:s}=(0,er.$E)("primary_font"),{background_color:p,border_color:m,border_radius:g,font:h}=(0,er.$E)("forms"),f=(0,u.useRef)(null);return(0,u.useEffect)(()=>{let e=document.getElementById((0,eV.UP)(a,"mobile"));f.current&&f.current.scrollTo({left:(0,eB.pW)(e).left,behavior:"smooth"})},[a]),(0,r.jsxs)(no,{"data-testid":"menu-navigation",css:{backgroundColor:d},className:tb.Y.STORE_MENU.MOBILE_NAV,noTimeSelected:o,children:[(0,r.jsx)(K.H,{condition:"dropdown"===l,children:(0,r.jsxs)(nr,{css:{"& select":{backgroundColor:p,border:"1px solid ".concat(m),borderRadius:"".concat(g,"px"),fontSize:"1rem",...(0,em.l)(h,["color","font_family","font_weight","line_height"])}},children:[(0,r.jsx)(nt,{categories:n}),(0,r.jsx)(nl,{children:(0,r.jsx)(nn._,{})})]})}),(0,r.jsx)(K.H,{condition:"scroll"===l,children:(0,r.jsx)(na,{ref:f,css:{color:c,fontFamily:s.font_family},children:(0,r.jsx)(t6,{activeTagIds:t,categories:n,locationDetail:i,context:"mobile"})})})]})}let no=(0,B.zo)("div",{display:"block",height:"$12",position:"sticky",top:"6.5rem",zIndex:1,"& > div ~ div":{paddingTop:0},"@md":{display:"none"},variants:{noTimeSelected:{true:{top:"calc(6.5rem + var(--notification-bar-height, 0px))"}}}}),nr=(0,B.zo)("div",{alignItems:"center",display:"flex",height:"100%",padding:"$1-5",position:"relative","& select":{appearance:"none",display:"block",height:"100%",padding:"0 $12 0 $4",width:"100%"}}),na=(0,B.zo)("div",{transition:"all 0.2s linear",alignItems:"center",display:"flex",height:"100%",overflowX:"scroll",width:"100%","-webkit-overflow-scrolling":"touch",["& ".concat(t5)]:{alignItems:"center",display:"flex",flexShrink:"0",height:"100%",padding:"0 $5"}}),nl=(0,B.zo)("div",{alignItems:"center",display:"flex",padding:"0 $4",pointerEvents:"none",position:"absolute",right:"$2-5"});var nd=n(59978);function nc(e){let{categories:t,locationDetail:n,activeTagIds:i}=e,{time_wanted:o,location:a}=(0,y.v9)(j.Fr),{conveyanceMode:l}=(0,y.v9)(e=>e.app),{data:d}=(0,nd.T)(a),c=!(0,A.wN)(null==d?void 0:d.data,l.type)&&(0,A.qS)(o),{food_hall:s}=(0,er.$E)("admin");if(!t)return null;let u=t.filter(e=>e.products.length).filter(e=>(0,eV.$9)(e,null!=i?i:[]));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K.H,{condition:!!(!s||i),children:(0,r.jsx)(t3,{categories:u,locationDetail:n,activeTagIds:i,noTimeSelected:c})}),(0,r.jsx)(ni,{categories:u,locationDetail:n,activeTagIds:i,noTimeSelected:c})]})}var ns=n(25746),nu=n(9381);function np(e){var t,n,i;let{location:o,menuCategories:a}=e,l=(0,y.I0)(),{time_wanted:d}=(0,y.v9)(j.Fr),{title:c,response:s,enabled:u,count:p,getItem:m}=(0,ns.R)({location:null===(t=o.detail)||void 0===t?void 0:t.id,wantedAt:d});return u&&"success"===s.status?(0,r.jsx)(nu.$,{items:null!==(i=null===(n=s.data)||void 0===n?void 0:n.products.map(m))&&void 0!==i?i:[],count:p,onClick:function(e,t){l(tO.Z.commerceItemClick(e,"popular-item",t)),l(ek.Z.setProduct({product:e,menuCategories:a,label:eC.X.MENU}))},children:(0,r.jsx)(nm,{children:c})}):null}let nm=S.ZP.h2.withConfig({componentId:"sc-d99cf5e5-0"})(e=>{let{theme:t}=e;return{...(0,em.l)(t.menu_category_header.font),margin:0}});var ng=n(38801),nh=n(6392),nf=n(91115),nx=n(93719),nv=n(18406),nb=n(82606);let n_="--notification-bar-height";function ny(){let{time_wanted:e,location:t}=(0,y.v9)(j.Fr),{conveyanceMode:n}=(0,y.v9)(e=>e.app),{data:i}=(0,nd.T)(t),o=!(0,A.wN)(null==i?void 0:i.data,n.type)&&(0,A.qS)(e),a=function(){let e=(0,u.useRef)(null),t=(0,u.useCallback)(()=>{var t,n;let i=null!==(n=null===(t=e.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==n?n:0;document.documentElement.style.setProperty(n_,"".concat(i,"px"))},[]);return(0,u.useEffect)(()=>{t();let n=e.current;if(!n)return;let i=new ResizeObserver(t);return i.observe(n),()=>{i.disconnect(),document.documentElement.style.setProperty(n_,"0px")}},[t]),e}();return o?(0,r.jsxs)(nj,{ref:a,children:[(0,r.jsxs)(nw,{children:[(0,r.jsx)(nv.T,{}),"No ASAP times available today. Select a time to place your order."]}),(0,r.jsx)(nC,{onClick:()=>{var e;let t=null!==(e=document.getElementById("pickup-conveyance-button"))&&void 0!==e?e:document.getElementById("delivery-conveyance-button");null==t||t.click()},size:"small",children:"Select a time"})]}):null}let nj=S.ZP.div.withConfig({componentId:"sc-9469074d-0"})(e=>{let{theme:t}=e;return{display:"flex",gap:"12px",alignItems:"center",justifyContent:"center",padding:"16px 10px",backgroundColor:t.global.primary_active_color,position:"sticky",top:"6.7rem",zIndex:1,flexDirection:"column","@media (min-width: 768px)":{padding:"16px 10px",flexDirection:"row",zIndex:9,top:"8.5rem"},"@media (min-width: 1280px)":{top:eM._.HEADERHEIGHT}}}),nw=S.ZP.span.withConfig({componentId:"sc-9469074d-1"})(e=>{let{theme:t}=e;return{fontSize:"15px",fontWeight:600,lineHeight:"24px",color:(0,eg.F)(ep.XV)(t.global.primary_active_color),display:"flex",gap:"6px",alignItems:"flex-start","@media (min-width: 768px)":{alignItems:"center",fontSize:"16px"}}}),nC=(0,S.ZP)(D.Db).withConfig({componentId:"sc-9469074d-2"})(e=>{var t,n,i;let{theme:o}=e;return{whiteSpace:"nowrap",fontSize:"16px",backgroundColor:null!==(t=o.header.border_color)&&void 0!==t?t:"#ddd",color:(0,eg.F)(ep.XV)(o.header.font.color),width:"100%","&:hover":{background:(0,nb.X2)(null,null!==(n=o.header.border_color)&&void 0!==n?n:"#ddd"),borderColor:(0,nb.X2)(null,null!==(i=o.header.border_color)&&void 0!==i?i:"#ddd"),color:(0,eg.F)(ep.XV)(o.header.font.color)},"@media (min-width: 768px)":{width:"auto"}}});function nE(e){var t,n,i,o,a;
1let{routeParams:l}=e,{basket:d,locations:s}=(0,y.v9)(e=>e.app),{strings:p,webConfig:m}=(0,y.v9)(e=>e.app.cmsConfig),{address:g,type:h}=(0,y.v9)(e=>e.app.conveyanceMode),{activeTagIds:f}=(0,y.v9)(eq),{time_wanted:x}=(0,y.v9)(j.Fr),b=(0,y.I0)(),{displayErrorToast:C}=(0,ng.xP)(),I=(0,nf.U7)(),S=(0,c.useRouter)(),T=(0,u.useRef)(!1),{categories:R,isLoading:A,status:P,refetch:z,error:Z}=(0,_.H9)({id:null==s?void 0:null===(t=s.detail)||void 0===t?void 0:t.id,wantedAt:x});!function(e){let{error:t,wantedAt:n,locationId:i,conveyanceType:o}=e,r=(0,y.I0)(),a=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!t||!n||!i||a.current===n)return;let e=!0;return(async()=>{let l=await (0,eB.Xr)(null,t);e&&(0,t0.xv)(t,l)&&(a.current=n,r(L.Z.setWantedTime(void 0,i,o)))})(),()=>{e=!1}},[t,n,i,o,r])}({error:Z,wantedAt:x,locationId:null==s?void 0:null===(n=s.detail)||void 0===n?void 0:n.id,conveyanceType:h});let M=null!==(a=m.admin.food_hall)&&void 0!==a&&a,O=(0,v.i)(m),N=!!R.some(e=>e.products.length>0),D=(e,t,n)=>{var i,o,r,a;if(!n){let n=(0,eV.PS)({id:O?null===(o=s.detail)||void 0===o?void 0:o.brand_id:null===(r=s.detail)||void 0===r?void 0:r.id,name:null===(a=s.detail)||void 0===a?void 0:a.label,catId:t.id.toString(),catName:t.name,productId:e.id,productName:e.name},f);S.replace(n,void 0,{shallow:!0})}if(d.location.id!==(null===(i=s.detail)||void 0===i?void 0:i.id)&&d.content&&d.content.basket_items.length){b(eI.Z.setCartMigration(k.Jl.RESET,e));return}b(ek.Z.setProduct({product:e,menuCategories:R,label:eC.X.MENU}))};return(0,u.useEffect)(()=>{let e,t;R.length&&I&&(R.forEach(n=>{n.products.forEach(i=>{i.id===I&&(e=n,t=i)})}),t&&e?D(t,e,!0):b(C("Sorry, the selected item isn't available at this location")),(0,nf.Sh)())},[I,R]),(0,u.useEffect)(()=>{var e,t,n,i,o,r;(0,H.uD)(s.detail);let a=document.head.querySelector('meta[name="location:last-updated-at"]');if((null===(e=s.detail)||void 0===e?void 0:e.id)&&a&&b(nh.b.fetchLocationIfModified(s.detail.id,a.content)),!T.current&&l.catId&&l.productId&&R.length>0){let e=R.find(e=>e.id===l.catId);if(e){let t=e.products.find(e=>e.id===l.productId);t&&(D(t,e,!0),T.current=!0)}}let c={},u=null==S?void 0:null===(t=S.query)||void 0===t?void 0:t.table_number;u&&(Array.isArray(u)?c.table_number=u[0]:c.table_number=u),d.location.id||(c.location_id=null===(i=s.detail)||void 0===i?void 0:i.id,c.location_label=l.name,c.location_brand_id=null!==(r=null===(o=s.detail)||void 0===o?void 0:o.brand_id)&&void 0!==r?r:void 0),Object.keys(c).length>0&&sessionStorage.setItem(E.iy.METADATA,JSON.stringify(c)),(null===(n=s.detail)||void 0===n?void 0:n.id)&&(0,et.O)(en.x.STORE__MENU_VIEW,{name:l.name,details:s.detail.id.toString()})},[R,l.catId,l.productId,null===(i=s.detail)||void 0===i?void 0:i.id]),(0,u.useEffect)(()=>{(0,H.uD)(s.detail)}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{timeWanted:null!=x?x:"",basket:d,address:g,location:s.detail,conveyanceType:h}),(0,r.jsx)(ev.lB,{location:s.detail}),(0,r.jsx)(K.H,{condition:"loading"===P,children:(0,r.jsxs)("div",{children:[(0,r.jsx)(e0,{}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignContent:"center",padding:"2rem"},children:(0,r.jsx)(nx.$,{style:{height:"50px",width:"50px"}})})]})}),(0,r.jsxs)(K.H,{condition:N,children:[(0,r.jsx)(K.H,{condition:(null==R?void 0:R.length)>0,children:(0,r.jsx)(ny,{})}),(0,r.jsx)(e3,{children:(0,r.jsx)(e_,{})}),(0,r.jsx)(e0,{}),(0,r.jsx)(es.R,{featureFlag:t_.y8.STORE__MENU_SEARCH,children:(0,r.jsx)(e6,{className:tb.Y.STORE_MENU.MENU_SEARCH_MOBILE,$foodHallEnabled:M,children:(0,r.jsx)(tx,{onSelect:D,isMobile:!0})})}),(0,r.jsx)(K.H,{condition:M,children:(0,r.jsx)(eJ,{menuCategories:R})}),(null===(o=s.detail)||void 0===o?void 0:o.id)&&(0,r.jsxs)(nk,{children:[(0,r.jsx)(nc,{categories:R,activeTagIds:f,locationDetail:s.detail}),(0,r.jsxs)(nI,{"data-css-override":"StyledMenuLayout",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(es.R,{featureFlag:[t_.y8.STORE__MENU_SEARCH,t_.y8.STORE__DIETARY_PREFERENCES],flagRelationship:t_.Az.OR,children:(0,r.jsxs)(e4,{children:[(0,r.jsx)(es.R,{featureFlag:t_.y8.STORE__MENU_SEARCH,children:(0,r.jsx)(e2,{className:tb.Y.STORE_MENU.MENU_SEARCH,children:(0,r.jsx)(tx,{onSelect:D})})}),(0,r.jsx)(es.R,{featureFlag:t_.y8.STORE__DIETARY_PREFERENCES,children:(0,r.jsx)(ei.C,{maxWidth:875,$fromTop:30,displayOnMobile:!1})})]})}),(0,r.jsx)(es.R,{featureFlag:t_.y8.ME__REORDER,children:(0,r.jsx)(e9,{children:(0,r.jsx)(eu.L,{locationID:s.detail.id,ordersToDisplay:3,collapsible:!1})})}),(0,r.jsx)(np,{location:s,menuCategories:R}
1),(!M||f)&&R&&(0,r.jsx)(tX,{categories:R,customizeProduct:D,currentCategory:l.catId,activeTagIds:f})]}),(0,r.jsx)(t1,{})]})]}),(0,r.jsx)(eZ,{menuCategories:R,menuLoading:A}),"bottom"===m.store_banner.placement&&(0,r.jsx)(e5,{children:(0,r.jsx)(e_,{})}),(0,w.bc)(p,"store.back_to_top_cta")&&!A&&(0,r.jsx)(ea,{}),(0,r.jsx)(nS,{$isVisible:A,children:(0,r.jsx)(tv.Z.Loading,{})})]}),(0,r.jsxs)(K.H,{condition:"error"===P,children:[(0,r.jsx)(e0,{}),(0,r.jsx)(ec.Gz,{onRetry:()=>void z()})]}),(0,r.jsxs)(K.H,{condition:!N&&"loading"!==P&&"error"!==P,children:[(0,r.jsx)(e0,{}),(0,r.jsx)(J,{timeWanted:x,unavailable:!!x,closed:!x})]})]})}let nk=S.ZP.div.withConfig({componentId:"sc-976cf01c-0"})(["display:block;"," @media (max-width:767px){display:block;}"],e=>{let{theme:t}=e;return t.menu_categories.category_nav_display===ex.LEFT&&"\n      display: grid;\n      grid-template-columns: minmax(14rem, 18rem) 1fr;\n\n      > div:first-child {\n        width: ".concat(eM._.LEFT_CATEGORY_NAV_MAX_WIDTH,"px;\n        min-width: ").concat(eM._.LEFT_CATEGORY_NAV_MIN_WIDTH,"px;\n        overflow-y: auto;\n        position: sticky;\n        top: ").concat(eM._.HEADERHEIGHT,"px;\n        align-self: flex-start;\n        min-height: calc(100vh - ").concat(eM._.HEADERHEIGHT,"px);\n        justify-content: left;\n      }\n    ")}),nI=S.ZP.div.withConfig({componentId:"sc-976cf01c-1"})(e=>{let{theme:t}=e;return{backgroundImage:t.menu.background.image?"url(".concat((0,eY.tg)(t.menu.background.image,{width:1800}),")"):"none",backgroundSize:t.menu.background.size,backgroundRepeat:({none:"no-repeat",vertical:"repeat-y",horizontal:"repeat-x",repeat:"repeat"})[t.menu.background.repeat],backgroundAttachment:t.menu.background.attachment,backgroundPosition:"".concat(t.menu.background.horizontal_position," ").concat(t.menu.background.vertical_position),margin:"0 auto",padding:"var(--size-3) var(--size-4)",width:"100%","@media screen and (min-width: 768px)":{flex:"1 1 auto",gap:"var(--size-8)",padding:"var(--size-8)",overflow:"hidden"},"@media screen and (min-width: 1024px)":{padding:"var(--size-12) var(--size-16)"},"& > div:first-child":{display:"flex",flexDirection:"column",gap:"var(--size-6)",margin:"0 auto",maxWidth:"var(--size-4xl)","@media screen and (min-width: 1024px)":{gap:"var(--size-12)"}},"& > h1":{fontSize:"24px"},"& > p":{fontSize:"16px"}}}),nS=S.ZP.div.withConfig({componentId:"sc-976cf01c-2"})(e=>{var t;let{theme:n,$isVisible:i}=e;return{alignItems:"center",backgroundColor:n.global.body_color,border:"1px solid",borderColor:null!==(t=n.global.primary_border_color)&&void 0!==t?t:"transparent",boxShadow:"0px 0px 8px 0px rgb(15 15 15 / 0.19)",bottom:"1.25rem",color:n.global.primary_active_color,display:"flex",borderRadius:"50%",right:"1.25rem",height:"3rem",justifyContent:"center",position:"fixed",transform:i?"translateY(calc(var(--safe-offset--descending, 0) * -1))":"translateY(10rem)",transition:"all 0.4s ease",width:"3rem",zIndex:10}});var nT=n(39199);function nR(){return(0,r.jsxs)(nA,{role:"alert","data-testid":"order-interrupted-fallback",children:[(0,r.jsx)(nP,{children:(0,r.jsx)(nz,{title:""})}),(0,r.jsxs)(nZ,{children:[(0,r.jsx)(nM,{children:"Something interrupted your order"}),(0,r.jsx)(nO,{children:"Reload the page to pick up where you left off."})]}),(0,r.jsx)(nH,{type:"button",onClick:()=>{window.location.reload()},children:"Reload page"})]})}let nA=S.ZP.div.withConfig({componentId:"sc-143bcb48-0"})({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:"24px",padding:"".concat(2*eM._.GUTTER,"px ").concat(eM._.GUTTER,"px"),maxWidth:"480px",margin:"0 auto"}),nP=S.ZP.div.withConfig({componentId:"sc-143bcb48-1"})({width:"80px",height:"80px",borderRadius:"100%",backgroundColor:(0,ep.m4)(eM.DM.PRIMARY_WARNING,.13),display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(eM.DM.PRIMARY_WARNING)}),nz=(0,S.ZP)(nT.b).withConfig({componentId:"sc-143bcb48-2"})({width:"32px",height:"32px",color:eM.DM.PRIMARY_WARNING}),nZ=S.ZP.div.withConfig({componentId:"sc-143bcb48-3"})({display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}),nM=S.ZP.span.withConfig({componentId:"sc-143bcb48-4"})({fontSize:"24px",fontWeight:700,lineHeight:"32px"}),nO=S.ZP.span.withConfig({componentId:"sc-143bcb48-5"})({fontSize:"16px",lineHeight:"24px"}),nH=(0,S.ZP)(D.Db).withConfig({componentId:"sc-143bcb48-6"})({width:"100%",maxWidth:"320px"});var nN=n(69719),nD=n(12735),nL=n(26237),n$=n(37803),nU=n(78914),nF=n(88678);async function nG(e,t){return(await Promise.allSettled(e.map(async e=>{let{queryKey:n,queryFn:i}=e;return t.prefetchQuery(n,i,{staleTime:6e4})}
1))).forEach((t,n)=>{if("rejected"===t.status){let i=e[n].queryKey;console.error("Error prefetching query: ".concat(i),t.reason),nF.n({category:"ssr_prefetch",level:"warning",message:"react-query prefetch rejected",data:{query_key:JSON.stringify(i),reason:t.reason instanceof Error?t.reason.message:String(t.reason)}})}}),(0,nU.D)(t)}var nW=n(56716),nB=n(37766),nV=n(93980),nK=n(58940);let nq=e=>{var t,n;let{serverState:i,routeParams:o}=e,{locations:a}=(0,y.v9)(e=>e.app),d=(0,y.I0)();return(0,u.useEffect)(()=>{d(nN.Z.fetchAllergens())},[]),(0,r.jsxs)(l.p,{state:i,children:[(0,r.jsx)(C,{routeParams:o}),(0,r.jsx)(m.Z,{disabled:(null===(t=a.detail)||void 0===t?void 0:t.status_id)===k.qX.INACTIVE,children:(0,r.jsxs)(g.Z,{fallbackUI:(0,r.jsx)(nR,{}),children:[["dev","staging"].includes(nK.Vi)?(0,r.jsx)(nV.Z,{}):null,(0,r.jsx)(nE,{routeParams:o})]},null===(n=a.detail)||void 0===n?void 0:n.id)})]})};nq.getInitialProps=nD.Y.getInitialPageProps(e=>async t=>{var n,i,o,r,l;let c,u,{req:m,query:g,res:h}=t;c=(0,eW.P$)(window.location.host);let f=e.getState().app.global.token,x=null!==(l=null===(n=e.getState().app.organization)||void 0===n?void 0:n.organization.id)&&void 0!==l?l:null,b=e.getState().app.cmsConfig.webConfig,y=(0,eG.XN)({origin:c,token:f}),j=new d.S,w=()=>(0,nL.s)({origin:c,orgId:x,token:f}),C=m?w():void 0;null==C||C.catch(()=>void 0);let k=null!=b?b:await (0,a.IO)({client:y,organizationId:x}),S=(0,H.tS)(g);try{u=(0,v.i)(k)?await (0,n$.vo)(S.id,{client:y}):await (0,n$.Kx)({id:parseInt(S.id,10)},{client:y})}catch(e){return h?(h.writeHead(302,{Location:I.Z6.HOMEPAGE,"Cache-Control":"no-cache"}),h.end()):await s().replace("/"),{}}if(e.dispatch(nh.b.hydrateLocation(u.data)),!m)return{routeParams:S};let T=(0,nB.C3)(()=>(0,a.r7)({id:u.data.id},{client:y}),{route:"/store/[...id]",urlHint:"/menus",locationId:null===(i=u.data.id)||void 0===i?void 0:i.toString()},nW.zg);T.catch(()=>void 0);let R=(0,nB.C3)(()=>(0,a.ji)({locationId:u.data.id,maxItems:15},{client:y}),{route:"/store/[...id]",urlHint:"/v1/ordering/recommendations/products/popular",locationId:null===(o=u.data.id)||void 0===o?void 0:o.toString()},nW.zg);R.catch(()=>void 0),e.dispatch(p.uR),await (null===(r=e.sagaTask)||void 0===r?void 0:r.toPromise());let A=[{queryKey:["site-footer"],queryFn:()=>null!=C?C:w()},{queryKey:["popular-items",{id:(0,H.xj)(u.data.id),wantedAt:"asap"}],queryFn:()=>R},{queryKey:(0,_.Rd)({id:u.data.id,ifModifiedSince:void 0,wantedAt:E.hC.ASAP}),queryFn:()=>T}];return e.getState().app.cmsConfig.webConfig.admin.food_hall&&(A=A.concat([{queryKey:["food-halls"],queryFn:()=>{var e;return(0,nB.C3)(()=>(0,a.NJ)({type:"filter"},{client:y}),{route:"/store/[...id]",urlHint:"/v1/tags",locationId:null===(e=u.data.id)||void 0===e?void 0:e.toString()},nW.zg)}}])),{serverState:await nG(A,j),routeParams:S}});var nX=nq},62907:function(e,t,n){"use strict";n.d(t,{Gz:function(){return s}});var i=n(52322),o=n(53237),r=n(97421),a=n(20496);let l=a.Rj,d=a.om,c=a.Qn;function s(e){let{onRetry:t,variant:n="panel",heading:o=l,message:a,retryLabel:s="Try again",retryingLabel:f="Trying again…",isRetrying:x=!1,"data-testid":v,retryTestId:b}=e,_=t?(0,i.jsx)(r.Db,{"data-css-override":"StyledPrimaryButton",type:"button","data-testid":b,size:"banner"===n?"small":void 0,disabled:x,onClick:t,children:x?f:s}):null;return"banner"===n?(0,i.jsxs)(g,{role:"alert","data-testid":v,children:[(0,i.jsx)(h,{children:null!=a?a:c}),_]}):(0,i.jsxs)(u,{role:"alert","data-testid":v,children:[(0,i.jsx)(p,{children:o}),(0,i.jsx)(m,{children:null!=a?a:d}),_]})}let u=(0,o.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center",gap:"$4",padding:"$14",textAlign:"center"}),p=(0,o.zo)("h2",{fontSize:"$text400",fontWeight:"bold",textAlign:"center",margin:0}),m=(0,o.zo)("p",{fontSize:"$text200",textAlign:"center",margin:0}),g=(0,o.zo)("div",{display:"flex",flexDirection:"column",gap:"8px",padding:"12px 16px",marginBottom:"16px",border:"1px solid #d93025",borderRadius:"4px",backgroundColor:"#fdecea",color:"#5f1414","@sm":{flexDirection:"row",alignItems:"center",justifyContent:"center"}}),h=(0,o.zo)("p",{margin:"0 !important",fontSize:"14px",lineHeight:"20px",whiteSpace:"pre-line",paddingRight:"12px",paddingLeft:"12px"})},58927:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var i=n(52322),o=n(43580),r=n(46956);let a=e=>{let{color:t}=e,n=(0,o.Fg)(),{color:a}=(0,r.l)(n.modals.font);return(0,i.jsx)("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.58638 9.74342L15.785 1.55458C16.0791 1.19608 16.0704 0.637421 15.7654 0.290927C15.4603 -0.0555668 14.9685 -0.065424 14.6529 0.268631L8.00964 7.81449L1.36639 0.268631C1.2169 0.0967426 1.01304 0 0.800329 0C0.587615 0 0.383757 0.0967426 0.234265 0.268631C-0.0780888 0.623866 -0.0780888 1.19935 0.234265 1.55458L7.47561 9.74342C7.78462 10.0855 8.27738 10.0855 8.58638 9.74342Z",fill:null!=t?t:a})})}},25746:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var i=n(40024),o=n(47661),r=n(75470),a=n(17609),l=n(97549),d=n(62638),c=n(28461);function s(e){var t,n,s;let u,{location:p,wantedAt:m,maxItems:g=15}=e,{popular_products:h}=(0,r.v9)(e=>e.app.cmsConfig.webConfig.menu),{popular_products_header:f}=(0,r.v9)(e=>e.app.cmsConfig.strings.store);u=(0,l.P$)(window.location.host);let x=(0,d.xj)(p),v=(0,o.a)({queryKey:["popular-items",{id:x,wantedAt:null!=m?m:"asap"}],queryFn:()=>
1{if(void 0===x)throw Error("usePopularItems requires a resolved location id, received ".concat(String(p)));return(0,i.ji)({locationId:x,maxItems:g,wantedAt:m},{client:(0,a.d9)({origin:u})})},enabled:h&&void 0!==x,refetchOnWindowFocus:!1,staleTime:1/0,keepPreviousData:!0});return{response:v,count:null!==(s=null==v?void 0:null===(n=v.data)||void 0===n?void 0:null===(t=n.products)||void 0===t?void 0:t.length)&&void 0!==s?s:0,title:f,enabled:h,getItem:function(e){return(0,c.P_)(e.products[0])}}}},9381:function(e,t,n){"use strict";n.d(t,{$:function(){return b}});var i=n(52322),o=n(53237),r=n(926),a=n(74115),l=n(73695),d=n(46956);function c(e){let{image:t,name:n,description:o,calories:c,price:f,onClick:x}=e,{primary_border_color:v,border_radius:b}=(0,l.$E)("global"),{primary_font:_}=(0,l.$E)("text"),{color:y}=(0,d.l)(_),{hide_calories:j,hide_price:w,hide_description:C,hide_description_mobile:E,hide_image:k}=(0,l.$E)("menu_product_card");return(0,i.jsxs)(h,{onClick:x,direction:"vertical",css:{border:"1px solid ".concat(v),borderRadius:"".concat(b,"px"),color:y},children:[(0,i.jsx)(a.H,{condition:!k,children:(0,i.jsx)(s,{children:t&&(0,i.jsx)(u,{src:t,alt:n})})}),(0,i.jsxs)(p,{css:{flex:"1 0 0",fontSize:"$text200",padding:"$3 $2 $6"},direction:"vertical",children:[(0,i.jsx)(m,{children:n}),(0,i.jsx)(a.H,{condition:!C,children:(0,i.jsx)(g,{hideOnMobile:E,children:o})}),(0,i.jsxs)(r.Kq,{css:{gap:0,marginTop:"auto",flexDirection:"column","@sm":{flexDirection:"row",gap:"$2"}},position:"center",children:[(0,i.jsx)(a.H,{condition:!w,children:(0,i.jsx)("strong",{children:f})}),(0,i.jsx)(a.H,{condition:!j,children:(0,i.jsx)("span",{children:c})})]})]})]})}let s=(0,o.zo)("div",{aspectRatio:"1 / 1",backgroundColor:"$shade200",overflow:"hidden",transition:"all .4s ease",width:"100%"}),u=(0,o.zo)("img",{display:"block",height:"100%",objectFit:"cover",transition:"all .4s ease",width:"100%",maxWidth:300}),p=(0,o.zo)(r.Kq,{transition:"all .2s ease"}),m=(0,o.zo)("h3",{fontSize:"1rem",margin:0}),g=(0,o.zo)("p",{margin:0,variants:{hideOnMobile:{false:{display:"block"},true:{display:"none","@md":{display:"block"}}}}}),h=(0,o.zo)(r.Kq,{cursor:"pointer",height:"100%",overflow:"hidden",textAlign:"center",transition:"all .4s ease",transform:"translate3d(0,0,0)",["&:hover ".concat(u)]:{transform:"scale(1.1)"},["&:hover ".concat(s)]:{backgroundColor:"$shade300"}});var f=n(2784),x=n(124),v=n(28500);function b(e){let{children:t,items:n,count:o,onClick:l}=e,{backProps:d,nextProps:s,itemProps:u,dots:p}=function(e){let{count:t,perPage:n=1}=e,[i,o]=(0,f.useState)(0),[r,a]=(0,f.useState)(!0),[l,d]=(0,f.useState)(!0),[c,s]=(0,f.useState)(0),[u,p]=(0,f.useState)(Math.ceil(t/n));return(0,f.useEffect)(()=>{let e=0===i,o=i===u-1;a(!!e),d(!!o),t<=n||(o&&t%n!=0?s(-((i*n-(n-t%n))*100)):s(-(i*n*100)))},[i,t,n,u]),(0,f.useEffect)(()=>{p(Math.ceil(t/n))},[t,n]),{backProps:{onClick:function(){o(e=>r?e:e-1)},disabled:r},nextProps:{onClick:function(){o(e=>l?e:e+1)},disabled:l},itemProps:{style:{transform:"translateX(".concat(c,"%)")}},dots:Array.from(Array(u).keys()).map(e=>({label:e+1,props:{onClick:()=>o(e),active:i===e}})),pages:u,page:i,setPage:o}}({count:o,perPage:5});return n.length?(0,i.jsxs)(_,{"data-testid":"popular-items-widget",children:[t,(0,i.jsx)(a.H,{condition:o>5,children:(0,i.jsx)(r.xu,{"data-testid":"popular-items-widget-controls",css:{display:"none","@lg":{display:"block"}},children:(0,i.jsxs)(r.Kq,{align:"center",position:"trailing",children:[(0,i.jsx)(j,{...d,css:{transform:"rotate(180deg)"},children:(0,i.jsx)(x.Z.Caret,{title:"previous"})}),(0,i.jsx)(j,{...s,children:(0,i.jsx)(x.Z.Caret,{title:"next"})})]})})}),(0,i.jsx)(r.xu,{css:{margin:"0 -$3","@md":{margin:"0 -$8"},"@lg":{margin:"0 -$3"}},children:(0,i.jsxs)(r.Kq,{align:"fill",gap:"0",css:{overflow:"scroll",padding:"$7 0 0",scrollSnapType:"x mandatory",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none",height:0,width:0},"@lg":{justifyContent:o>5?"flex-start":"center",overflow:"hidden"}},children:[n.map((e,t)=>(0,i.jsx)(y,{"data-testid":"popular-items-widget-card",css:{transition:"transform 0.6s ease","@lg":{...u.
1style}},children:(0,i.jsx)(c,{image:(0,v.Wr)(e,{width:300}),name:e.name,description:e.description,calories:e.pretty_calories,price:e.pretty_price,onClick:()=>l(e,t)})},e.id)),(0,i.jsx)(y,{css:{width:"$1","@lg":{display:"none"}}})]})}),(0,i.jsx)(a.H,{condition:o>5,children:(0,i.jsx)(r.xu,{css:{display:"none","@lg":{display:"block"}},children:(0,i.jsx)(r.Kq,{position:"center",gap:"$6",css:{padding:"$8 0 0","@lg":{padding:"$12 0 0"}},children:p.map((e,t)=>(0,i.jsx)(w,{...e.props,children:e.label},t))})})})]}):null}let _=(0,o.zo)("div",{textAlign:"center"}),y=(0,o.zo)("div",{flex:"none",padding:"0 0 0 $2",scrollSnapAlign:"start",width:"40%","@sm":{padding:"0 0 0 $4",width:"30%"},"@lg":{padding:"0 $3",width:"20%"}}),j=(0,o.zo)("button",{all:"unset",borderRadius:"$sm",cursor:"pointer",svg:{display:"block"},"&:focus":{backgroundColor:"rgba(0,0,0,.08)"},variants:{disabled:{true:{cursor:"default",opacity:.2}}}}),w=(0,o.zo)("button",{all:"unset",backgroundColor:"$accentPrimary",borderRadius:"100%",color:"$accentPrimary",height:"$3",opacity:.1,overflow:"hidden",transition:"all .2s ease",width:"$3",variants:{active:{true:{opacity:1,"&:hover, &:focus":{opacity:1}}}},"&:hover":{opacity:.5},"&:focus":{boxShadow:"0 0 0 2px white, 0 0 0 4px currentColor",opacity:.5},"@lg":{cursor:"pointer"}})}},function(e){e.O(0,[688,462,553,270,807,354,190,89,888,774,179],function(){return e(e.s=26528)}),_N_E=e.O()}]);
2//# sourceMappingURL=[...id]-391243ac67e4d376.js.map

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.