1(self.webpackChunkFusion=self.webpackChunkFusion||[]).push([[45654],{4236:(e,t,i)=>{"use strict";i.d(t,{A:()=>I});var a=i(41967),r=i(31300),n=i(66292),o=i(57716),l=i(99511),s=i(43316),d=i(67537),c=i(86105),u=i(40014);const p=(0,a.I4)("div",{display:"flex",flexDirection:"column",padding:"56px 16px 80px",alignItems:"center",maxWidth:"624px",margin:"0 auto"}),g=(0,a.I4)("div",{width:"226px",paddingBottom:"56px",transition:"transform 50ms ease-in-out",":hover":{transform:"scale(1.05)"}}),h=(0,a.I4)(s.A,{width:"100%",height:"100%"}),m=(0,a.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayXSmall,textAlign:"center",paddingBottom:"8px"}})),y=(0,a.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,textAlign:"center",maxWidth:"410px",paddingBottom:"24px"}})),f=(0,a._F)(r.A,{width:"410px"}),I=e=>{const t=(0,c.zy)(),{getSeoFeed:a}=(0,d.A)(e.pageType||"home");return(0,u.FD)(p,{children:[(0,u.Y)(g,{$as:o.N_,to:(0,n.a0I)(t),children:(0,u.Y)(h,{src:(0,l.uq)(i(88626))})}),(0,u.Y)(m,{children:e.emptyState.title}),(0,u.Y)(y,{children:e.emptyState.subtitle}),(0,u.Y)(f,{onClick:()=>{a()},children:e.emptyState.linkText})]})}},13084:(e,t,i)=>{"use strict";i.d(t,{A:()=>f});var a=i(27559),r=i(41967),n=i(2693),o=i(43316),l=i(98207),s=i(16635),d=i(40014);const c=112,u=(0,r.I4)("div",(e=>{let{$theme:t}=e;return{display:"flex",flexDirection:"row",boxSizing:"border-box",padding:"12px",border:`1px solid ${t.colors.borderOpaque}`}})),p=(0,r.I4)("div",(e=>{let{$imageWidth:t}=e;return{height:`${t||c}px`,flex:1,minWidth:0}})),g=(0,r.I4)("div",(e=>{let{$imageWidth:t}=e;const i=t||c;return{height:`${i}px`,width:`${i+8}px`,display:"flex",flexShrink:0}})),h=(0,r.I4)("p",(e=>{let{$theme:t}=e;return{...t.typography.LabelMedium,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),m=(0,r.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphSmall,paddingTop:"4px"}})),y=(0,r.I4)(o.A,(e=>{let{$imageWidth:t,$theme:i}=e;const a=t||c;return{height:`${a}px`,width:`${a}px`,objectFit:"cover",outline:`1px solid ${i.colors.contentPrimary}08`,outlineOffset:"-1px"}})),f=e=>{let{dish:t,storeSlug:i,position:r,actionUrl:o,imageWidth:f}=e;return(0,d.Y)(s.A,{dish:t,storeSlug:i,position:r,actionUrl:o,children:(0,d.FD)(u,{children:[(0,d.FD)(p,{$imageWidth:f,children:[(0,d.Y)(h,{children:t.title}),(0,d.Y)(m,{children:t.price})]}),t.imageUrl?(0,d.FD)(g,{$imageWidth:f,children:[(0,d.Y)(n.Ay,{$width:"8px"}),(0,d.Y)(a.Ay,{height:f||c,once:!0,children:(0,d.Y)(l.A,{src:t.imageUrl,children:(0,d.Y)(y,{src:t.imageUrl,alt:t.title,"aria-hidden":!0,$imageWidth:f})})})]}):null]})})}},20123:(e,t,i)=>{e.exports=i.p+"2bb9bf351a4914b4.json"},20905:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i("__fusion__95b4ba69e5"),r=i(40920),n=i(81973),o=i(40014);const l=()=>{const e=(0,n.t5)().item;return e?(0,o.Y)(s,{item:e}):null},s=a.memo((function(e){let{item:t}=e;return(0,r.A)({shouldNavigateBackToStoreOnItemAdd:!1,itemParams:t}),null})),d=a.memo(l)},25219:(e,t,i)=>{"use strict";i.d(t,{KN:()=>n,xL:()=>o});var a=i(92671);const r={cardCarousel:"BILLBOARD",cardItemPayload:"INFEED_BANNER"},n=e=>{let{payload:t,surfaceId:i}=e;if(!t||!i)return"";switch(i){case a.Og.HOME_FEED_COLLECTION_CARD:return"COLLECTION_CARD";case a.Og.VERTICAL_FEED_BILLBOARD:case a.Og.HOME_FEED_ITEM:return r[t.type]||"";case a.Og.AISLE_FEED_BILLBOARD:return"AISLE_FEED_BILLBOARD";case a.Og.AISLE_LEGO_FEED_BILLBOARD:return"AISLE_LEGO_FEED_BILLBOARD";case a.Og.AISLE_FEED_MANUAL_CAROUSEL:return"MANUAL_CAROUSEL";case a.Og.HOME_FEED_GR_PROMO:return"HOME_FEED_GR_PROMO"}return""},o=e=>e.toUpperCase()===a.XO.CCC?a.XO.CCC:null},27257:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>D,re:()=>k});var a=i(90417),r=i(63811),n=i.n(r),o=i(40304),l=i(11862),s=i(89012),d=i(92858),c=i(46153),u=i(51906),p=i(86105),g=i(41967),h=i(14192),m=i(66717),y=i(57921),f=i(12304),I=i(91589),b=i(43139),x=i(25484),A=i(86457),v=i(40527),Y=i(12424),S=i(3132),C=i(17283),_=i(38018),L=i(65888),w=i(73792),T=i(31725),U=i(66292),E=i(67205),P=i(40014);const k=4,$=(0,g.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,background:t.colors.backgroundSecondary,height:"240px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"16px"}})),D=e=>{const t=(0,x.A)(),i=(0,p.zy)(),{vertical:r}=(0,U.g$k)(i,["vertical"]),g=(0,m.A)(),k=(0,w.W)(),{containerRef:D,getPageChunks:O,getPageProps:F,isPreviousPageDisabled:R,isNextPageDisabled:M,handlePageChange:N,supportsScrollSnapping:B,textDirection:z}=(0,A.A)({scrollOffset:24}),{onScroll:W}=(0,v.A)(D,e.carouselUuid),H=(0,_.W)(),V=(0,o.vm)({...d.z.web_feed_carousel_icon_removal,defaultValue:!1}),K="regular-store",q=e.carousel.header,G=e.analyticsLabel,j=!V&&e.carousel.header?.endIcon?3:4,[X,Q]=a.useMemo((()=>{const t=e.carousel.stores||[],i=t.map((e=>
1e?.storeUuid)).filter(Boolean);return[t,i]}),[e.carousel.stores]),{onScroll:J}=(0,c.k)(),Z=(0,w.W)(),ee=(0,L.s)({tapEventName:"see_all_carousel_tap",payload:(0,C.P4)({feedItemUuid:e.feedItemUuid,diningMode:Z,feedContext:e.pageType,analyticsLabel:e.analyticsLabel})}),te=a.useCallback((()=>{"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=G&&(ee(),H("eats:carousel_cta_click",{label:G,numItems:Q?Q.length:0,carouselLayoutType:K,entityUuids:Q,carouselUuid:e.feedItemUuid,carouselPosition:e.position,feedContext:e.pageType,...e.customEventMetadata||{}}))}),[G,H,ee,e,Q]),ie=(0,T.A)("refresh_feed_store_cards"),ae=e.carousel.stores?.[0],re=a.useMemo((()=>({trackingCodeUuid:e.analyticsUuid,trackingCodeAnalyticsLabel:G,feed:{feedContext:e.pageType||"unknown",feedItemType:e.itemType,feedItemUuid:e.feedItemUuid||"",feedItemPosition:e.position},store:(0,u.A)(ae)})),[e.analyticsUuid,G,e.pageType,e.itemType,e.feedItemUuid,e.position,ae]),ne=(0,S.A4)(),oe=(0,L.z)({impressionEventName:"feed_item_scrolled",payload:{...ne((0,S.xX)(re)),...(0,C.YE)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem})}}),le=n()((e=>{W(e),J()}),500);if(e.feedItemUuid&&t.includes(e.feedItemUuid))return(0,P.Y)(f.A,{analyticsLabel:G,entityUuids:Q,carouselLayoutType:K,carouselUuid:e.feedItemUuid,ref:oe,children:(0,P.Y)("section",{children:(0,P.Y)(y.A,{header:q,onPageChange:Y.A,showPaginationButtons:!0,backwardEnabled:!1,forwardEnabled:!1,analyticsLabel:G,customEventMetadata:e.customEventMetadata,onViewAllClick:()=>{"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=G&&H("eats:carousel_cta_click",{label:G,numItems:Q?Q.length:0,carouselLayoutType:K,entityUuids:Q,carouselUuid:e.feedItemUuid,carouselPosition:e.position,feedContext:e.pageType})},children:(0,P.Y)(s.DE,{hideHeader:!0,colCount:j,heroImageHeight:g})})})});const se=ie?I.A:b.A,de=O(X.map(((t,a)=>(0,P.Y)(h.q7,{"data-testid":"carousel-slide",$textDirection:z,$margin:e.pageMargin??24,$pageSize:j,children:(0,P.Y)(se,{store:t,location:i,showFavorite:e.showFavorite,position:a,titleTypography:"LabelLarge",heroImageHeight:g,heroImageSizes:"25vw",analyticsLabel:e.analyticsLabel,meta:e.customEventMetadata??{},analyticsOverride:{tapEventName:"feed_item_card_tapped",impressionEventName:"feed_item_card_scrolled",payload:{...ne((0,S.tm)(re,(0,u.A)(t))),...(0,C.I4)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem,feedStore:t,diningMode:k,collectionIndex:a}),numItemsInCarousel:X.length,analyticsLabel:e.analyticsLabel,selectedVertical:r??E.h0}}})},a))).filter(Boolean),j);return(0,P.Y)(f.A,{analyticsLabel:G,entityUuids:Q,carouselLayoutType:K,carouselUuid:e.feedItemUuid,ref:oe,children:(0,P.Y)("section",{children:(0,P.Y)(y.A,{header:q,analyticsLabel:G,customEventMetadata:e.customEventMetadata,onPageChange:N,showPaginationButtons:X.length>j,backwardEnabled:!R,forwardEnabled:!M,onViewAllClick:te,hideEndIcon:V,feedItemUuid:e.feedItemUuid,children:0===X.length?(0,P.Y)($,{children:(0,P.Y)(l.H,{id:"bandwagon.no_restaurants"})}):(0,P.Y)(h.mO,{ref:D,$supportsScrollSnapping:B,onScroll:le,children:de.map(((t,i,a)=>(0,P.Y)(h.YW,{$pageMargin:e.pageMargin??24,...F(i,a.length),children:t},i)))})})})})}},28561:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>m,DP:()=>h,cZ:()=>g});var a=i(90417),r=i(65416),n=i(50371),o=i(48594),l=i(85746),s=i(66292),d=i(25816),c=i(45292),u=i(40951),p=i(86105);const g=e=>{let{options:t,type:i,label:a,selected:r=!1}=e;const n=(0,c.c)();if(r&&t)switch(i){case"priceRangeFilter":case"dietaryFilter":case"topEatsFilter":return(0,u.lk)(t);case"bookingFeeFilter":return n("shared.sortandfilters.maximum",{price:(0,u.FH)(t)});default:return a}return a},h=e=>{let{options:t,label:i,type:n}=e;const[o,l]=(0,a.useState)(),[s,d]=(0,a.useState)(),c=(0,a.useRef)(),u=(0,r.d4)((e=>{let{device:t}=e;return t.isAndroid})),p=t.some((e=>e.active)),h=g({options:t,type:n,label:i,selected:p});return(0,a.useEffect)((()=>{u||o&&s&&(c.current||(c.current=o.offsetWidth-s.offsetWidth),o.style.width=s.offsetWidth+c.current+"px")}),[s,t,o,u]),{setPillElement:l,setLabelElement:d,text:h,hasActive:p}},m=()=>{const e=(0,p.zy)(),t=(0,n.W6)(),{cacheKey:i,feedArgs:{sortAndFilters:c=[]}}=(0,o.A)(),g=(0,r.d4)((e=>{let{feed:t}=e;return(0,l.RA)(t,i)}
1)),h=(0,d.A)(g)?.sortAndFilters||[],[m,y]=(0,a.useState)(c);(0,a.useEffect)((()=>{y(c)}),[c]);const f=(0,u.cW)(h,m,c),I=Boolean(c.length),b=c.reduce(((e,t)=>e+t.options.length),0),x=Boolean(m.length);let A=!1;return(g.isLoading||0===h.length)&&(A=!0),{filters:f,isLoading:g.isLoading,hasActiveFilters:I,activeFiltersCount:b,hasStagedFilters:x,handleChange:function(i){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=m.filter((e=>e.uuid!==i.uuid)).concat([i]);y(r),a&&t.replace((0,s.M_7)(e,r))},clearAll:function(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];y([]),i&&t.replace((0,s.M_7)(e,[]))},clearFilter:function(i){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=m.filter((e=>e.uuid!==i));y(r),a&&t.replace((0,s.M_7)(e,r))},goToLocationWithSortAndFilters:i=>{t.replace((0,s.M_7)(i||e,m))},show:!A}}},41989:(e,t,i)=>{e.exports=i.p+"feac636e6ad3305d.svg"},45654:(e,t,i)=>{"use strict";i.d(t,{A:()=>In});var a=i(90417),r=i(57716),n=i(50371),o=i(86105),l=i(43139),s=i(78130),d=i(45292),c=i(11862),u=i(41967),p=i(5654),g=i(90984),h=i(31300),m=i("__fusion__95b4ba69e5"),y=i(99511),f=i(88770),I=i(88632),b=i(59160),x=i(27559),A=i(38018),v=i(65888),Y=i(40014);const S=(0,u.I4)("div",{display:"inline-flex",flexDirection:"row",width:"100%"}),C=(0,u.I4)("div",(e=>{let{$direction:t}=e;return{left:0,..."ltr"===t?{transform:"scale(1.5)"}:{marginRight:"-40px",transform:"scale(-1.5, 1.5)"},height:"196px",width:"200px"}})),_=(0,u.I4)("div",{margin:"auto",width:"100%",position:"relative"}),L=(0,u.I4)("div",{margin:"auto",textAlign:"center",alignItems:"center"}),w=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayBold3XSmall,marginBottom:"8px",width:"100%"}})),T=e=>{const{title:t,linkText:a}=e,r=(0,b.jH)(),n=(0,A.W)(),o=(0,v.z)({impressionEventName:"give_get_storefront_view",payload:{}}),l=(0,v.s)({tapEventName:"give_get_storefront",payload:{}});return m.useEffect((()=>{n("eats:give_get_entry_view",{type:"feed"})}),[n]),(0,Y.FD)(S,{ref:o,children:[(0,Y.Y)(C,{$direction:r,children:(0,Y.Y)(x.Ay,{once:!0,style:{height:"100%"},children:(0,Y.Y)(f.A,{loop:1,animationUrl:(0,y.uq)(i(60464))})})}),(0,Y.Y)(_,{children:(0,Y.FD)(L,{children:[(0,Y.Y)(w,{children:t}),(0,Y.Y)(I.A,{eventType:"feed",linkText:a,onClick:l})]})})]})};var U=i(12719),E=i(12471),P=i(53985),k=i(79193),$=i(39332),D=i(2693),O=i(54444),F=i(35050),R=i(28077);var M=i(66838),N=i(91156),B=i(41519),z=i(31725),W=i(42668);const H=(0,u.I4)("ul",{display:"flex",alignItems:"flex-start",justifyContent:"center"}),V=(0,u.I4)("nav",(e=>{let{$alignment:t="center"}=e;return{display:"flex",justifyContent:t}})),K=e=>{const t=m.useRef(null),[i,a]=m.useState(e.shortcuts.length),r=(0,N.Ay)(),n=(0,B.A)(),o=(0,W.w)(),l=(0,z.A)("can_enable_cs_entrypoint_xlb"),s=n&&!l,d=s?e.shortcuts.filter((e=>"shortcut.cornershop_grocery"!==e.analyticsLabel)):e.shortcuts,c=m.useCallback((()=>{if(t.current&&d.length){const e=((e,t,i)=>{if(t<=0)throw new Error("Item size must be positive");if(i<0)throw new Error("Spacer must be non-negative");return Math.floor((e+i)/(i+t))})(t.current.clientWidth-24,M.op,16);a(e)}}),[d.length]),u=(0,$.A)(c,50);if(m.useEffect((()=>{if(s){const t=JSON.stringify(JSON.parse(e.shortcutsMeta).filter((e=>"shortcut.cornershop_grocery"!==e.label)));r("eats:shortcuts_view",{shortcutsMeta:t})}else r("eats:shortcuts_view",{shortcutsMeta:e.shortcutsMeta})}),[r,e.shortcutsMeta,s]),m.useLayoutEffect((()=>(c(),k.A&&k.A.addEventListener("resize",u),()=>{k.A&&k.A.removeEventListener("resize",u)})),[c,u]),!d.length||o&&1===d.length)return null;const p=d.slice(0,i);return(0,Y.Y)(V,{"data-testid":"shortcut-bar",ref:t,$alignment:e.alignment,children:(0,Y.Y)(H,{children:(0,Y.Y)(O.A,{separator:()=>(0,Y.Y)(D.IW,{$as:"li",$width:"16px"}),children:p.map((e=>e.isExternal&&n?(0,Y.Y)(R.A,{shortcut:e,includeSpacer:!0},e.uuid):(0,Y.Y)(F.A,{shortcut:e,includeSpacer:!0},e.uuid)))})})})};var q=i(64659),G=i(40304),j=i(76905),X=i(86457),Q=i(43316),J=i(49823),Z=i(21227),ee=i(12304),te=i(14192),ie=i(58350),ae=i(67348),re=i(18297),ne=i(67319),oe=i(35703),le=i(28561),se=i(36228),de=i(43187);const ce=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{marginBottom:t.sizing.scale800,display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative"}}
1)),ue=(0,u.I4)("div",(e=>{let{$theme:t}=e;return t.typography.HeadingLarge})),pe=(0,u.I4)("div",{display:"flex",alignItems:"center",justifyContent:"flex-end"}),ge=(0,u._F)(te.mO,{overflowY:"hidden"}),he=(0,u._F)(te.YW,{display:"block"}),me=(0,u.I4)("div",(e=>{let{$backgroundColor:t}=e;return{display:"block",position:"relative",height:"80px",backgroundColor:t,overflow:"hidden",borderRadius:"12px"}})),ye=(0,u.I4)(Q.A,(e=>{let{$textDirection:t}=e;return{position:"absolute",top:0,..."rtl"===t?{left:0,transform:"scaleX(-1)"}:{right:0},height:"100%"}})),fe=(0,u.I4)("div",(e=>{let{$color:t,$hasCuisineImage:i,$theme:a}=e;return{boxSizing:"border-box",position:"relative",...a.typography.LabelLarge,color:a.colors[t],padding:"16px",width:i?"60%":"100%",minWidth:"120px"}})),Ie=(0,u._F)(re.Yq,(e=>{let{$theme:t}=e;return t.typography.LabelMedium})),be=e=>{const t=(0,o.zy)(),[,i]=(0,j.c6)(),{containerRef:a,getPageChunks:n,getPageProps:l,isPreviousPageDisabled:s,isNextPageDisabled:u,handlePageChange:p,supportsScrollSnapping:g,textDirection:h}=(0,X.A)(),m=(0,Z.A)(),y=(0,N.Ay)(),f=(0,d.c)(),{show:I}=(0,le.Ay)(),b=I?4:6,x=2*b,A=(0,G.vm)({...se.X.enable_top_eats_landing_page,defaultValue:!1}),v=e.items.map(((a,n)=>{const o=a.backgroundColor!==i.colors.backgroundSecondary?i.colors.backgroundSecondary:a.backgroundColor||"#F6F0EA",l=!/\s/g.test(a.title);return(0,Y.Y)(J.fh,{span:J.R1/b,children:(0,Y.FD)(me,{$as:r.N_,$direction:h,onClick:()=>{m.set(a.trackingCode||""),y("eats:click_cuisine",{label:a.title||"",trackingCode:a.trackingCode||"",position:String(n),...e.customEventMetadata||{}}),"gifts"===a.keyName?.toLowerCase()&&y("eats:click_gifting_category",{label:a.title||"",trackingCode:a.trackingCode||"",position:String(n),entryPoint:e.entrypoint})},to:(0,oe.M)({url:a.url,type:a.type,title:a.title,keyName:a.keyName,searchSource:de.Cy.HOME_FEED_ITEM},t,{isTopEatsLandingPageEnabled:A}),$backgroundColor:o,children:[a.iconUrl?(0,Y.Y)(ye,{src:a.iconUrl,alt:a.title,"aria-hidden":!0,$textDirection:h}):null,(0,Y.Y)(fe,{$color:(0,ne.T4)(o)?"black":"white",$hasCuisineImage:Boolean(a.responsiveImagesByFormat||a.iconUrl),children:l?a.title:(0,Y.Y)(ie.A,{clamp:2,children:a.title})})]})},n)})),S=n(v,x),C=S.length>1;return(0,Y.FD)(ee.A,{analyticsLabel:e.analyticsLabel,numItems:v.length,carouselUuid:e.feedItemUuid,children:[(0,Y.FD)(ce,{children:[(0,Y.Y)(ue,{children:f("cuisine_carousel.title")}),(0,Y.FD)(pe,{children:[e.viewAllLocation?(0,Y.Y)(Ie,{to:e.viewAllLocation,children:(0,Y.Y)(c.H,{id:"carousel.view_all"})}):null,e.viewAllLocation&&C?(0,Y.Y)(D.Ay,{$width:"40px"}):null,C?(0,Y.Y)(ae.A,{backwardEnabled:!s,forwardEnabled:!u,analyticsLabel:e.analyticsLabel,onPageChange:p,customEventMetadata:e.customEventMetadata}):null]})]}),(0,Y.Y)(ge,{ref:a,$supportsScrollSnapping:g,children:S.map(((e,t,i)=>(0,Y.Y)(he,{$pageMargin:24,...l(t,i.length),children:(0,Y.Y)(J.xA,{gridGutter:24,wrap:!0,children:e})},t)))})]})};var xe=i(93400),Ae=i(17283);const ve=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{position:"relative",display:"inline-flex",flexDirection:"row",background:"#FFF2D9",color:t.colors.contentPrimary,width:"100%",minHeight:"160px",alignItems:"center"}})),Ye=(0,u.I4)("div",{position:"relative",margin:"auto",display:"flex",flexDirection:"column",alignItems:"center",padding:"12px"}),Se=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayBold3XSmall,color:t.colors.contentOnColorInverse,marginBottom:"16px"}})),Ce=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.LabelLarge,color:t.colors.contentOnColorInverse,marginBottom:"16px"}})),_e=(0,u.I4)(Q.A,{objectFit:"cover",position:"absolute",top:0,left:0,bottom:0}),Le=e=>{let{title:t,subtitle:a,buttonText:r,position:n,pageType:o,feedItem:l}=e;const s=(0,v.z)({impressionEventName:"marketplace_scrolled",payload:(0,Ae.YE)({feedContext:o,feedIndex:n,feedItem:l})});return(0,Y.FD)(ve,{ref:s,children:[(0,Y.Y)(_e,{src:(0,y.uq)(i(56517)),loading:"lazy",decoding:"async"}),(0,Y.FD)(Ye,{children:[(0,Y.Y)(Se,{children:t}),a?(0,Y.Y)(Ce,{children:a}):null,(0,Y.Y)(xe.A,{buttonText:r})]})]})};var we=i(66292),Te=i(67205),Ue=i(73792),Ee=i(11602),Pe=i(43452);const ke=(0,u.I4)("div",{display:"flex",flexDirection:"column",padding:"56px 16px 80px",alignItems:"center",maxWidth:"624px",margin:"0 auto"}),$e=(0,u.I4)("div",{width:"226px",paddingBottom:"56px",transition:"transform 50ms ease-in-out",":hover":{transform:"scale(1.05)"}}),De=(0,u.I4)(Q.A,{width:"100%",height:"100%"}),Oe=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayXSmall,textAlign:"center",paddingBottom:"8px"}})),Fe=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,textAlign:"center",maxWidth:"410px",paddingBottom:"24px"}})),Re=(0,u._F)(h.A,{width:"410px"}),Me=e=>{const t=(0,N.Ay)(),a=(0,o.zy)(),n=(0,Ue.W)(),l=(0,Pe.W6)(),{carouselId:s=""}=(0,we.g$k)(a,["carouselId"]);m.useEffect((()=>{t("eats:feed_empty_state_view",{carouselId:s})}),[t,s]);const d="PICKUP"===n,c="search_in_all"!==e.emptyState.linkDirection||d?(0,we.aUB)(a):(0,we.EfF)(a,{vertical:Te.h0,searchSource:de.Cy.SEARCH_SUGGESTION});return(0,Y.FD)(ke,{children:[(0,Y.Y)($e,{$as:r.N_,to:(0,we.a0I)(a),children:(0,Y.Y)(De,{src:(0,y.uq)(i(88626))})}),(0,Y.Y)(Oe,{children:e.emptyState.title}),(0,Y.Y)(Fe,{children:e.emptyState.subtitle}),[Ee.KW,Ee.ks].includes(e.emptyState.uuid)?(0,Y.Y)(Re,{onClick:()=>{const e=(0,we.jo1)(a,["searchCategoryQuery","sortAndFilters"]);
1t("eats:home_feed_refresh_not_found_reset"),l.replace(e)},children:e.emptyState.linkText}):(0,Y.Y)(Re,{$as:r.N_,to:c,onClick:()=>{t("eats:view_all_restaurants_cta_click_search_null_results")},children:e.emptyState.linkText})]})};var Ne=i(51906),Be=i(14753),ze=i(25484),We=i(12424),He=i(57921),Ve=i(89012),Ke=i(82744),qe=i(35360),Ge=i(3132),je=i(56279);const Xe=(0,u._F)(te.mO,{overflowY:"hidden"}),Qe=(0,u._F)(te.YW,{display:"block"});const Je=e=>{let{carousel:t,feedItemUuid:i,showFavorite:r,trackingSource:n,onViewAllClick:l,analyticsLabel:s,analyticsUuid:d,pageType:c,itemType:u,position:p,feedItem:g}=e;const h=(0,o.zy)(),{vertical:m}=(0,we.g$k)(h,["vertical"]),y=(0,ze.A)(),{containerRef:f,getPageChunks:I,getPageProps:b,isPreviousPageDisabled:x,isNextPageDisabled:A,handlePageChange:S,supportsScrollSnapping:C}=(0,X.A)({scrollOffset:24}),_=(0,Ue.W)(),L=t.header?.endIcon?"DESKTOP_MINI":"DESKTOP_SMALL",{carouselNumberOfRows:w,chunkPerPage:T,headerTypography:U}=function(e){return 1===e?{chunkPerPage:qe.Pq,carouselNumberOfRows:e,headerTypography:"DisplayBold5XSmall"}:{chunkPerPage:qe.kO,carouselNumberOfRows:qe.ID}}(t.numberOfRows),[E,P]=a.useMemo((()=>{const e=t.stores||[],i=e.map((e=>e?.storeUuid)).filter(Boolean);return[e,i]}),[t.stores]),k=E?.[0],$=a.useMemo((()=>({trackingCodeUuid:d,trackingCodeAnalyticsLabel:s,feed:{feedContext:c||"unknown",feedItemType:u,feedItemUuid:i||"",feedItemPosition:p},store:(0,Ne.A)(k)})),[d,s,c,u,i,p,k]),D=(0,Ge.A4)(),O=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:{...D((0,Ge.xX)($)),...(0,Ae.YE)({feedContext:c,feedIndex:p,feedItem:g})}});if(i&&y.includes(i))return(0,Y.Y)(ee.A,{analyticsLabel:s,entityUuids:P,carouselLayoutType:"list-store",carouselUuid:i,children:(0,Y.Y)("section",{ref:O,children:(0,Y.Y)(He.A,{header:t.header,onPageChange:We.A,showPaginationButtons:!0,backwardEnabled:!1,forwardEnabled:!1,onViewAllClick:l,headerTypography:U,children:(0,Y.Y)(Ve.vE,{hideHeader:!0,miniStoreItemSize:L})})})});const F=I(E.map(((e,t)=>(0,Y.Y)(J.fh,{span:12/(T/w),children:"REGULAR_CIRCLE_IMAGE_LAYOUT"===e.layout?(0,Y.Y)(Be.A,{size:"DESKTOP_CIRCLE",store:e,analyticsLabel:s,analyticsOverride:{tapEventName:"feed_item_card_tapped",impressionEventName:"feed_item_card_scrolled",payload:{...D((0,Ge.tm)($,(0,Ne.A)(e))),...(0,Ae.I4)({feedContext:c,feedIndex:p,feedItem:g,feedStore:e,diningMode:_,collectionIndex:t}),numItemsInCarousel:E.length,analyticsLabel:s,selectedVertical:m??Te.h0}}}):(0,Y.Y)(Ke.A,{store:e,showFavorite:r,size:L,position:t,trackingSource:n,analyticsLabel:s,feedItem:g,analyticsOverride:{tapEventName:"feed_item_card_tapped",impressionEventName:"feed_item_card_scrolled",payload:{...D((0,Ge.tm)($,(0,Ne.A)(e))),...(0,Ae.I4)({feedContext:c,feedIndex:p,feedItem:g,feedStore:e,diningMode:_,collectionIndex:t}),numItemsInCarousel:E.length,analyticsLabel:s,selectedVertical:m??Te.h0}}})},e.storeUuid||""))),T);return(0,Y.Y)(ee.A,{analyticsLabel:s,entityUuids:P,carouselLayoutType:"list-store",children:(0,Y.Y)(He.A,{header:t.header,showPaginationButtons:E.length>T,backwardEnabled:!x,forwardEnabled:!A,onPageChange:S,onViewAllClick:l,headerTypography:U,children:(0,Y.Y)(Xe,{ref:(0,je.A)(f,O),$supportsScrollSnapping:C,children:F.map(((e,t,i)=>(0,Y.Y)(Qe,{$pageMargin:24,...b(t,i.length),children:(0,Y.Y)(J.xA,{$as:"ul",wrap:!0,children:e})},t)))})})})};var Ze=i(14841),et=i(96038);const tt=(0,u.I4)("div",(()=>({position:"relative",overflow:"hidden",height:"280px",backgroundColor:"#FFF8F5"}))),it=(0,u.I4)("div",(()=>({position:"absolute",bottom:"0px",right:"0px",width:"100%"}))),at=(0,u.I4)("ul",(()=>({width:"100%",height:"100%",position:"absolute",top:"0px",left:"0px",display:"flex",flexShrink:0,flexGrow:0,flexBasis:"100%",overflow:"hidden",marginTop:"64px"}))),rt=(0,u.I4)("li",(e=>{let{$storesCount:t,$index:i,$animationDuration:a}=e;return{position:"absolute",right:"-50%",animationDuration:t*a/2+"s",animationDelay:i*(a/2)+"s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationPlayState:"inherit",animationName:{from:{right:"calc(17% - 255px)"},to:{right:100*t/2+"%"}}}})),nt=(0,u.I4)("div",(e=>{let{$storesCount:t,$index:i,$animationDuration:a}=e;const r=t*a/2,n=.3/r*100+"%";return{opacity:0,animationDuration:`${r}s`,animationDelay:`${i*(a/2)}s`,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",animationPlayState:"inherit",animationName:{"0%":{opacity:0,marginTop:"64px"},[n]:{opacity:1,marginTop:0},"100%":{opacity:1,marginTop:0}}}})),ot=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{display:"flex",backgroundColor:t.colors.backgroundPrimary,color:t.colors.contentPrimary,boxShadow:"0 4px 16px hsla(0, 0%, 0%, 0.16)",border:"3px solid white",minWidth:"255px",maxWidth:"450px",height:"84px",paddingRight:"12px",overflow:"hidden"}})),lt=()=>{const e=(0,N.Ay)();return a.useEffect((()=>{e("eats:orders_near_you_carousel_impression")}),[e]),null},st=e=>{let{title:t,subtitle:a,stores:r,isDaytime:n,backupImageUrl:o,analyticsLabel:l}=e;const s=(0,y.uq)(i(92820)),d=(0,y.uq)(i(20123));return(0,Y.FD)("section",{children:[(0,Y.Y)(et.A,{$as:"h2",title:t,subtitle:a}),(0,Y.Y)(Ze.R,{$ignorePadding:!0,children:(0,Y.Y)(tt,{children:(0,Y.FD)(x.Ay,{height:280,offset:280,unmountIfInvisible:!0,children:[(0,Y.Y)(lt,{}),(0,Y.Y)(it,{children:o?(0,Y.Y)(Q.A,{src:o}):(0,Y.Y)(f.A,{animationUrl:n?s:d,preserveAspectRatio:"xMidYMax",loop:!0})}),(0,Y.Y)(at,{children:r.map(((e,t)=>(0,Y.Y)(rt,{$storesCount:r.length,$index:t,$animationDuration:20,children:(0,Y.Y)(nt,{$storesCount:r.length,$index:t,$animationDuration:20,children:(0,Y.Y)(ot,{children:(0,Y.Y)(Ke.A,{size:"MOBILE",store:e,position:t+1,analyticsLabel:l})})})},(e.storeUuid||"feed-desktop-orders-near-you_store-item-marquee-")+t)))})]})})})]})};var dt=i(69927),ct=i(44580),ut=i(70994),pt=i(11811),gt=i(69796),ht=i(87731),mt=i(77692),yt=i(16444),ft=i(13698),It=i(14387),bt=i(91168),xt=i(44877),At=i(386),vt=i(56427),Yt=i(61281),St=i(39182),Ct=i(86471);const _t=(0,u.I4)("div",{width:"325px"}),Lt=(0,u.I4)("div",{display:"flex",flexDirection:"column",alignItems:"flex-start",marginLeft:"24px",width:"calc(75% - 296px - 24px)"}),wt=(0,u.I4)("div",(e=>{let{$theme:t,$isLastStore:i}=e;return{position:"relative",width:"100%",display:"flex",cursor:"pointer",w
1ordBreak:"break-word",borderBottom:i?"0px":`1px solid ${t.colors.borderOpaque}`,marginBottom:i?"0px":"32px"}})),Tt=(0,u._F)(dt.A,{width:"100%",position:"relative",height:"128px",overflow:"hidden",marginTop:"8px"}),Ut=(0,u.I4)("div",(e=>{let{$theme:t,$shouldHide:i}=e;return{width:"100%",display:i?"none":"flex",alignItems:"center",marginTop:`${yt.Me}px`,lineHeight:t.typography.ParagraphSmall.lineHeight,flexFlow:"row wrap",color:t.colors.contentSecondary}})),Et=(0,u.I4)("span",(e=>{let{$theme:t}=e;return{...t.typography[yt.yQ],color:t.colors.contentPrimary,maxWidth:"100%",lineHeight:"20px",whiteSpace:"nowrap"}})),Pt=(0,u.I4)("h3",(e=>{let{$theme:t,$typography:i}=e;return{...t.typography[i],color:t.colors.contentPrimary,width:"100%",marginTop:"8px",lineHeight:"20px"}})),kt=(0,u.I4)("div",(e=>{let{$theme:t,$textDirection:i}=e;const a=t.typography.LabelSmallRegularButton,r=a.lineHeight,n="ltr"===i?{left:"0px"}:{right:"0px"},o=n.left?`0 ${r} ${r} 0 `:`${r} 0 0 ${r}`;return{...a,position:"absolute",background:t.colors.signpost,color:t.colors.onSignpost,padding:"4px 12px",boxShadow:"inset 0px 0px 1px rgba(0, 0, 0, 0.08)",zIndex:St.IQ.surface,top:"12px",...n,borderRadius:o}}));const $t=function(e){let{store:t,location:i,pageType:r,position:n,maxIndex:o,trackingCode:l,analyticsLabel:s,seoContent:d,heroImageSizes:u,heroImageHeight:p,titleTypography:g,seoSearchEnabled:h}=e;const m=t.storeUrl||(0,we.NQI)(i,{storeSlug:t.slug,storeUuid:t.uuid}),y=a.useRef(null),[f,I]=a.useState(!1),x=(0,ht.A)(),A=(0,N.Ay)(),v=(0,Ue.W)(),S=(0,vt.A)(m),C=t.promotion?.promotionUuid,_=t.promotion?.text,L=(0,b.jH)(),w=n===o,T=d?.storeContent?.description?d?.storeContent?.description:Array.isArray(d?.content)&&d?.content[0]?.text,U=a.useMemo((()=>{if(!t)return null;const{fareInfo:e}=t;if(e?.fareBadge?.text)return(0,Y.Y)(Et,{children:e.fareBadge.text},"deliveryFee");if(e?.serviceFee){const t=(0,mt.vv)(x,"USD",100*e.serviceFee);return(0,Y.Y)(Et,{children:(0,Y.Y)(c.H,{id:"feed.component.delivery_fee",data:{fee:t}})},"deliveryFee")}return null}),[x,t]),E=a.useMemo((()=>[t.meta.priceBucket?(0,Y.Y)(Et,{children:t.meta.priceBucket},"priceBucket"):null,t.rating?.feedback?.rating&&t.rating?.feedback?.ratingCount?(0,Y.FD)(a.Fragment,{children:[(0,Y.Y)(gt.A,{size:14}),(0,Y.Y)(D.Ay,{$width:"4px"}),(0,Y.Y)(Et,{children:(0,Y.Y)(c.H,{id:"shared.ratings",data:{rating:t.rating?.feedback?.rating,ratingsCount:t.rating?.feedback?.ratingCount}})})]},"ratings"):null,U,t.etaRange?.text?(0,Y.Y)(Et,{children:t.etaRange.text},"etaRange"):null].filter(Boolean)),[U,t.etaRange?.text,t.meta.priceBucket,t.rating?.feedback?.rating,t.rating?.feedback?.ratingCount]),P=a.useMemo((()=>[]),[]);a.useMemo((()=>E.forEach(((e,t)=>{0!==t&&P.push((0,Y.Y)(Et,{children:" â¢Â "},`bullet-${t}`)),P.push(e)}))),[E,P]);const k=a.useMemo((()=>{let e=0;const i=t=>!(!t||(e+=1,!f))||t&&e<=4;return{ratingElements:i(Array.isArray(E)&&0!==E.length),address:i(t.location?.formattedAddress),modalities:i(Array.isArray(t.modalities)&&0!==t.modalities.length),categories:i(Array.isArray(t.meta.categories)&&0!==t.meta.categories.length),storeDescription:i(T),structuredTags:i(Array.isArray(d?.storeContent?.structuredTags)&&0!==d?.storeContent?.structuredTags.length),reviews:i(Array.isArray(d?.storeContent?.reviews)&&0!==d?.storeContent?.reviews.length),popularDishes:i(d?.storeContent?.dishes?.dishesDescription),numElements:e}}),[f,E,d?.storeContent?.dishes?.dishesDescription,d?.storeContent?.reviews,d?.storeContent?.structuredTags,t.location?.formattedAddress,t.meta.categories,t.modalities,T]),$=Boolean(k.numElements>4&&(Array.isArray(E)&&0!==E.length||Array.isArray(d?.content)&&0!==d?.content.length||Array.isArray(d?.storeContent?.structuredTags)&&0!==d?.storeContent?.structuredTags.length||Array.isArray(d?.storeContent?.reviews)&&0!==d?.storeContent?.reviews.length||d?.storeContent?.dishes?.dishesDescription)),O=!(Array.isArray(E)&&0!==E.length||T||d?.storeContent?.structuredTags||d?.storeContent?.reviews||d?.storeContent?.dishes?.dishesDescription),F=!(t.heroImage&&t.title&&t.meta.priceBucket&&t.rating?.feedback?.rating&&t.rating?.feedback?.ratingCount&&t.deliveryFee&&t.etaRange?.text&&t.location?.formattedAddress&&Array.isArray(t.modalities)&&0!==t.modalities.length&&Array.isArray(t.meta.categories)&&0!==t.meta.categories.length);a.useEffect((()=>{F&&A("eats:city_meta_data_availability",{storeUuid:t.uuid,hasImage:Boolean(t.heroImage),hasTitle:Boolean(t.t
1itle),hasPriceBucket:Boolean(t.meta.priceBucket),hasRating:Boolean(t.rating?.feedback?.rating),hasRatingCount:Boolean(t.rating?.feedback?.ratingCount),hasDeliveryFee:Boolean(t.deliveryFee),hasEtaRange:Boolean(t.etaRange?.text),hasAddress:Boolean(t.location?.formattedAddress),hasModalities:Array.isArray(t.modalities)&&0!==t.modalities.length,hasCategories:Array.isArray(t.meta.categories)&&0!==t.meta.categories.length})}),[A,F,t.deliveryFee,t.etaRange?.text,t.heroImage,t.location?.formattedAddress,t.meta.categories,t.meta.priceBucket,t.modalities,t.rating?.feedback?.rating,t.rating?.feedback?.ratingCount,t.title,t.uuid]),a.useEffect((()=>{A("eats:city_typewriter_data_availability",{storeUuid:t.uuid,hasStoreDescription:Boolean(T),hasStructuredTags:Array.isArray(d?.storeContent?.structuredTags)&&0!==d?.storeContent?.structuredTags.length,hasReviews:Array.isArray(d?.storeContent?.reviews)&&0!==d?.storeContent?.reviews.length,hasPopularDishes:Boolean(d?.storeContent?.dishes?.dishesDescription)})}),[A,d?.storeContent?.dishes?.dishesDescription,d?.storeContent?.reviews,d?.storeContent?.structuredTags,t.uuid,T]);const[R,M]=(0,Yt.Ay)({root:null,threshold:.75});return a.useEffect((()=>{M&&M.isIntersecting&&A("eats:city_scroll_depth",{storeUuid:t.uuid,trackingCode:l,trackingCodeLabel:s,position:String(n||0),diningMode:v,originSource:S,hasSeoContent:Boolean(d)})}),[M,A,t.uuid,l,s,n,v,S,d]),(0,Y.Y)(Y.FK,{children:(0,Y.FD)(wt,{onClick:e=>{A("eats:city_click_store",{storeUuid:t.uuid,trackingCode:l,trackingCodeLabel:s,position:String(n||0),diningMode:v,originSource:S,hasSeoContent:Boolean(d)}),y.current&&y.current.click()},ref:R,"data-test":Ct.E.storeLink,$isLastStore:w,children:[(0,Y.Y)(_t,{children:(0,Y.Y)(Tt,{storeUuid:t.uuid,image:t.heroImage,sizes:u,children:_&&C?(0,Y.Y)(kt,{$textDirection:L,children:_}):null})}),(0,Y.FD)(Lt,{children:[(0,Y.Y)(pt.A,{ref:y,storeUuid:t.uuid,storeUrl:m,location:i,trackingCode:l,pageType:r,position:n,partialStore:(0,ut.$p)(t),analyticsLabel:s,hasSeoContent:Boolean(d),children:(0,Y.Y)(Pt,{$typography:g,children:t.title||""})}),0!==P.length?(0,Y.Y)(Ut,{$shouldHide:!k.ratingElements,children:P}):null,(0,Y.Y)(yt.Ay,{items:t.location?.formattedAddress,itemType:"address",shouldHide:!k.address,iconSize:14,spacing:"12px",useWiderMarginTop:O}),(0,Y.Y)(xt.A,{items:t.modalities,shouldHide:!k.modalities,iconSize:14,spacing:"16px",useWiderMarginTop:O}),(0,Y.Y)(At.A,{items:t.meta.categories,itemType:"category",shouldHide:!k.categories,iconSize:14,shouldHaveMarginBottom:!$,useWiderMarginTop:O}),(0,Y.Y)(It.A,{items:T,shouldHide:!k.storeDescription,shouldShowDescriptionIcon:!t.meta.categories,itemType:"category",iconSize:14,spacing:"12px"}),(0,Y.Y)(At.A,{items:d?.storeContent?.structuredTags,itemType:"structuredTag",shouldHide:!k.structuredTags,iconSize:14}),(0,Y.Y)(bt.A,{items:d?.storeContent?.reviews,shouldHide:!k.reviews,shouldShowReviewIcon:!k.structuredTags&&k.reviews,itemType:"reviews",iconSize:14,spacing:"12px"}),(0,Y.Y)(yt.Ay,{items:d?.storeContent?.dishes?.dishesDescription,itemType:d?.storeContent?.dishes?.dishIcon,shouldHide:!k.popularDishes,iconSize:14,spacing:"12px"}),$?(0,Y.Y)(ft.A,{isExpanded:f,setIsExpanded:I,store:t,trackingCode:l,trackingCodeLabel:s,position:n,diningMode:v,originSource:S,hasSeoContent:Boolean(d),padding:16}):null,(0,Y.Y)(ct.Ay,{$height:16})]})]})})};var Dt=i(14436),Ot=i(69710);const Ft=e=>{const t=(0,N.Ay)(),{orderHistory:i,analyticsLabel:r}=e,n=(0,o.zy)(),{containerRef:l,getPageChunks:s,getPageProps:d,isPreviousPageDisabled:u,isNextPageDisabled:p,handlePageChange:g,supportsScrollSnapping:h,textDirection:m}=(0,X.A)({scrollOffset:Ot.Rs}),y={width:St.W$,height:"120px"},f=s(i.map(((e,t)=>{const i=(0,we.NQI)(n,{storeSlug:e.store?.slug,storeUuid:e.store?.uuid,newQueryParams:{cartDisplay:1}});return(0,Y.Y)(Ot.py,{$textDirection:m,children:(0,Y.Y)(Dt.A,{...e,redirectionUrl:i,index:t,heroImageWidth:y.width,heroImageHeight:y.height,clampLines:4,titleTypography:"LabelLarge",subtitleTypography:"ParagraphSmall",footerTypography:"ParagraphSmall"})},t)})).filter(Boolean),Ot.re),I=a.useMemo((()=>i.map((e=>e.store.uuid))),[i]);return(0,Y.Y)(ee.A,{carouselUuid:e.uuid,analyticsLabel:r,entityUuids:I,children:(0,Y.FD)("section",{children:[(0,Y.Y)(et.A,{$as:"h2",title:e.title,paginated:i.length>Ot.re,onPageChange:e=>{g(e),t("eats:feed_reorder_carousel_page_change_click")},backwardEnabled:!u,forwardEnabled:!p}),0===i.length?(0,Y.Y)(Ot.U_,{children:(0,Y.Y)(c.H,{id:"bandwagon.no_restaurants"})}):(0,Y.Y)(Ot.wq,{ref:l,$supportsScrollSnapping:h,children:f.map(((e,t,i)=>(0,Y.Y)(Ot.YW,{...d(t,i.length),children:e},t)))})]})})};var Rt=i(62223),Mt=i(31753),Nt=i(42709),Bt=i(55780),zt=i(6463),Wt=i(79911),Ht=i(72673),Vt=i(38616),Kt=i(22501),qt=i(69775),Gt=i(81464);const jt=(0,u._F)(dt.A,(e=>{let{$height:t}=e;return{width:"200px",position:"relative",height:`${t}px`,overflow:"hidden"}})),Xt=(0,u.I4)("div",(e=>{let{$isInteractive:t}=e;return{position:"absolute",top:0,display:"flex",justifyContent:"space-between",width:"100%",padding:"12px 0",boxSizing:"border-box",...t?{}:{pointerEvents:"none"}}})),Qt=(0,u.I4)("div",{display:"flex",flexDirection:"column",alignItems:"flex-start",marginLeft:"16
1px",width:"calc(100% - 216px)"}),Jt=(0,u.I4)("div",{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"}),Zt=(0,u.I4)("div",(e=>{let{$theme:t,$typography:i}=e;return{...t.typography[i],width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),ei=(0,u._F)(Wt.A,(e=>{let{$marginBottom:t}=e;return{display:"flex",overflow:"hidden",...t?{marginBottom:`${t}px`}:{}}}));const ti=function(e){let{store:t,location:i,pageType:r,position:n,linkRef:o,showFavorite:l,titleTypography:s,heroImageHeight:d,heroImageSizes:c,trackingSource:u,analyticsLabel:p,marginBottom:g,useLazyLoadImage:h,seoContent:m}=e;const y=JSON.stringify({metaInfo:{analyticsLabel:p}}),f=(0,Ht.NU)(i,t.actionUrl),I=(0,Ue.W)(),b=(0,Kt.A)(),x=Boolean("PICKUP"!==I&&t.storeStateContext&&t.storeStateContext===Vt.oO.PICKUP&&!b),A=x&&t.imageOverlayCallToAction?t.imageOverlayCallToAction.actionUrl:"",v=x?"PICKUP":I,S=(0,N.Ay)();a.useEffect((()=>{S("eats:store_item_state",{storeAction:{storeUuid:t.storeUuid??""},pathname:i.pathname,storeAvailabilityState:t.tracking?.storePayload?.storeAvailablityState})}),[S,t.tracking,t.storeUuid,i]);const C=t.tracking?.storePayload?.offerMetadata,_=(0,Gt.A)({eventName:"eats:store_card_impression",eventPayload:{storeAction:{storeUuid:t.storeUuid??""},pathname:i.pathname,storeAvailabilityState:t.tracking?.storePayload?.storeAvailablityState,offerMetadata:C??void 0}});return(0,Y.FD)(ei,{ref:(0,je.A)(_,o),storeUuid:t.storeUuid||"",storeUrl:A||f,storeTitle:t.title?.text||"",storeAd:t.storeAd,pageType:r,position:n,trackingSource:u,trackingCode:y,$marginBottom:g,partialStore:(0,ut.Ay)(t),analyticsLabel:p,diningMode:v,isLowCourier:x,hasSeoContent:Boolean(m),offerMetadata:C,children:[(0,Y.FD)(jt,{storeUuid:t.storeUuid||"",image:t.image,sizes:c,$height:d,useLazyLoad:h,children:[(0,Y.Y)(Xt,{$isInteractive:!t.imageOverlay,children:(t.signposts||[]).length?(0,Y.Y)(zt.Ay,{signposts:t.signposts||[]}):(0,Y.Y)(D.VX,{})}),t.imageOverlay?(0,Y.Y)(Bt.Ay,{imageOverlay:t.imageOverlay,imageOverlayCallToAction:t.imageOverlayCallToAction,shouldUseLowCourierSupply:x}):null]}),(0,Y.FD)(Qt,{children:[(0,Y.FD)(Jt,{children:[(0,Y.Y)(Zt,{$typography:s,children:t.title?.text||""}),t.rating?(0,Y.Y)(Y.FK,{children:(0,Y.Y)(Rt.A,{rating:t.rating})}):null]}),t.meta?(0,Y.Y)(Mt.Ay,{meta:t.meta}):null,Array.isArray(m?.content)&&m?.content[0]?.text?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(ct.Ay,{$height:8}),(0,Y.Y)(Nt.A,{content:m.content[0].text})]}):null,t.meta2?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(ct.Ay,{$height:8}),(0,Y.Y)(Mt.Ay,{meta:t.meta2,truncateTextWithEllipsis:!0})]}):null,t.endorsements?(0,Y.Y)(qt.A,{endorsements:t.endorsements}):null]})]})};var ii=i(62795),ai=i(69902),ri=i(98042),ni=i(39030),oi=i(25219),li=i(1411),si=i(11765),di=i(91589),ci=i(38647),ui=i(66717),pi=i(67052),gi=i(56014),hi=i(49684),mi=i(33475),yi=i(88403),fi=i(83033),Ii=i(98207),bi=i(32036),xi=i(67459),Ai=i(80482);const vi=(0,u.I4)("div",{display:"flex",flexDirection:"column"}),Yi=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{flex:1,minWidth:0,paddingTop:t.sizing.scale100}})),Si=(0,u.I4)("div",{maxHeight:"146px",maxWidth:"184px",width:"100%",height:"100%",justifyContent:"center",display:"flex",flexShrink:0}),Ci=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.LabelMedium,whiteSpace:"initial",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"184px"}})),_i=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphSmall,paddingTop:"4px",color:t.colors.contentSecondary}})),Li=(0,u.I4)(Q.A,{height:"146px",width:"184px",outlineOffset:"-1px",objectFit:"contain"}),wi=e=>{let{item:t,actionUrl:n,storeUuid:l,position:s,mvsMeta:d}=e;const c=(0,N.Ay)(),u=(0,N.xL)(),p=(0,o.zy)(),g=t.images&&t.images[0]&&t.images[0].items&&t.images[0].items[0]&&"string"==typeof t.images[0].items[0].url?t.images[0].items[0].url:null,h=g||(0,y.uq)(i(71746)),m=t.title?.text||"",f=t.subtitles&&t.subtitles[0]?t.subtitles[0].text:null,I=(0,vt.A)(n),b="cornershop"===I,A=(0,bi.A)(),v=(0,we.IcR)((0,Ht.NU)(p,n),A),{userQuery:S}=(0,we.g$k)(p,["userQuery"]),C=a.useRef(!1),_={searchTerm:String(S),storeUuid:l||"",position:s||0,originSource:I,itemUuid:t.uuid||"",itemPrice:f||"",hasImage:Boolean(g)},L=t.tracking?JSON.stringify(t.tracking):"",w=e=>{let{shouldFlush:i}=e;return(i?u:c)("eats:click_dish",{storeUuid:l||"",dishUuid:t.uuid||"",actionUrl:v.pathname,position:String(s||0),searchTerm:String(S),originSource:I||"native",hasItemImage:Boolean(h),itemMetadata:f||"",mvsMeta:d,trackingCode:L}),!0},{elementRef:T,isElementHidden:U}=(0,xi.A)({initialHidden:!0,waitTime:0,shouldListen:!C.current});a.useEffect((()=>
1{U||(C.current=!0,c("eats:search_results_vertical_item_impression",{searchResultItem:_,mvsMeta:d}))}),[c,U,d,_]);const E=(0,Y.FD)(vi,{children:[h?(0,Y.Y)(Si,{children:(0,Y.Y)(x.Ay,{height:146,once:!0,children:(0,Y.Y)(Ii.A,{src:h,children:(0,Y.Y)(Li,{src:h,"aria-hidden":!0})})})}):null,(0,Y.FD)(Yi,{children:[(0,Y.Y)(Ci,{children:(0,Y.Y)(ie.A,{clamp:2,children:m})}),(0,Y.Y)(_i,{children:f})]})]});return(0,Y.Y)("div",{ref:T,children:b?(0,Y.Y)("a",{href:n,onClick:e=>{w({shouldFlush:!0}),e.preventDefault(),(0,Ai.A)(n)},children:E}):(0,Y.Y)(r.N_,{to:{...v,state:{referrerPathname:p.pathname}},onClick:()=>w({shouldFlush:!1}),children:E})})};var Ti=i(65416);const Ui=(0,u.I4)("div",{paddingRight:"16px"}),Ei=(0,u.I4)("div",{paddingLeft:"16px"}),Pi=e=>{let{items:t,storeUuid:i,position:a,originSource:r}=e;const n=(0,o.zy)(),l=(0,Ti.d4)((e=>{let{multiVertical:t}=e;return t.verticalList})),{vertical:s}=(0,we.g$k)(n,["vertical"]),d={verticalList:l.map((e=>e.verticalType)).join(","),selectedVertical:s};if(!t||t.length<1)return null;const c=Boolean(t.find((e=>null!==(e.images||[])[0]?.items))),u=t[0]?.style||"WIDE_FLAT",p="NARROW_TALL"===u?5:3;return(0,Y.Y)(yi.A,{slides:t,renderSlide:function(e){let{slide:t,carouselSlideProps:o}=e;switch(u){case"WIDE_FLAT":return(0,Y.Y)(fi.A,{item:t,actionUrl:(0,Ht.NU)(n,t.actionUrl),imageWidth:110,noImages:!c,mvsMeta:d,storeUuid:i,position:a,originSource:r});case"NARROW_TALL":return(0,Y.Y)(wi,{item:t,actionUrl:t.actionUrl||"",mvsMeta:d,storeUuid:i,position:a});default:return null}},renderPrevButton:(e=>function(t){return(0,Y.Y)(Ui,{children:(0,Y.Y)(mi.A,{direction:"backward",onClick:t,size:e,type:"regular"})})})(36),renderNextButton:(e=>function(t){return(0,Y.Y)(Ei,{children:(0,Y.Y)(mi.A,{direction:"forward",onClick:t,size:e,type:"regular"})})})(36),pageSize:p,margin:16,isInfinite:!0,shouldStartAlign:!0})};var ki=i(63919),$i=i(91343),Di=i(32279);const Oi="ParagraphSmall",Fi=(0,u.I4)("span",(e=>{let{$theme:t}=e;return{...t.typography[Oi],color:t.colors.contentSecondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),Ri=(0,u.I4)("div",(e=>({whiteSpace:"nowrap",overflow:"hidden",...e.$isLast?{textOverflow:"ellipsis"}:{flexShrink:0}}))),Mi=(0,u.I4)("div",{width:"100%",flexWrap:"nowrap",display:"flex",alignItems:"center",justifyContent:"flex-start"}),Ni=(0,u.I4)("span",St.mT),Bi=()=>(0,Y.Y)(ki.A,{typography:Oi}),zi=e=>{let{meta:t,baseColor:i,removeServerDrivenColor:a,truncateTextWithEllipsis:r,baseFont:n}=e;return(0,Y.Y)(O.A,{separator:Bi,children:(t||[]).map(((e,o)=>{const{accessibilityText:l,textFormat:s,actionUrl:d}=e;return(0,Y.FD)(Ri,{$isLast:o===(t||[]).length-1,children:[l?(0,Y.Y)(Ni,{children:l}):null,(0,Y.Y)(Fi,{"aria-hidden":!!l||void 0,children:d?(0,Y.Y)(Di.A,{textFormat:s,actionUrl:d}):(0,Y.Y)(hi.A,{badge:e,baseColor:i,baseFont:n,removeServerDrivenColor:a,truncateTextWithEllipsis:r})})]},`badge-${o}`)}))})},Wi=e=>{let{rating:t,meta:i,meta2:a,baseColor:r="contentTertiary",baseFont:n=Oi,removeServerDrivenColor:o,truncateTextWithEllipsis:l}=e;const s=Boolean(i&&i.length>0);return(0,Y.FD)(Mi,{children:[t&&t.text?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)($i.A,{size:12,color:"contentSecondary"})," ",(0,Y.Y)(D.hl,{})," ",(0,Y.Y)(Fi,{children:t.text}),s?(0,Y.Y)(Bi,{}):null]}):null,s?(0,Y.Y)(Y.FK,{children:(0,Y.Y)(zi,{baseColor:r,baseFont:n,meta:i,removeServerDrivenColor:o,truncateTextWithEllipsis:l})}):null,a&&a.length>0?(0,Y.FD)(Y.FK,{children:[s?(0,Y.Y)(Bi,{}):null,(0,Y.Y)(zi,{baseColor:r,baseFont:n,meta:a,removeServerDrivenColor:o,truncateTextWithEllipsis:l})]}):null]})},Hi=(0,u._F)(Wt.A,(e=>{let{$theme:t}=e;return{...t.typography.LabelMedium,display:"flex",overflow:"hidden",textDecoration:"underline"}})),Vi=(0,u.I4)("div",{minWidth:0,display:"flex",flexDirection:"column",width:"100%"}),Ki=(0,u.I4)("div",{display:"flex",justifyContent:"space-between"}),qi=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{display:"flex",flexDirection:"column",border:`1px solid ${t.colors.borderOpaque}`,borderRadius:"12px",padding:"16px",overflow:"hidden"}})),Gi=(0,u.I4)("div",(e=>{let{$theme:t,$hasItems:i}=e;return{position:"relative",display:"flex",alignItems:"center",paddingBottom:i?t.sizing.scale600:0,minWidth:0,overflow:"hidden"}})),ji=(0,u._F)(dt.A,(e=>{let{$width:t,$height:i,$borderRadius:a}=e;return{width:t,height:i,flex:"none",overflow:"hidden",borderRadius:a}})),Xi=(0,u.I4)("div",{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"initial",minWidth:0,wdith:"100%",alignSelf:"flex-end"}),Qi=(0,u.I4)("div",{flex:"1 1 0"});const Ji=function(e){let{store:t,trackingSource:a,analyticsLabel:n,position:l,useLazyLoadImage:s,items:c,pageType:u,feedItem:p}=e;const g=(0,o.zy)(),h=(0,d.c)(),m=t?.tracking?JSON.stringify(t.tracking):JSON.stringify({metaInfo:{analyticsLabel:n}}),f=(0,Ue.W)(),I=t?(0,Ae.CE)({feedContext:u,feedIndex:l,feedStore:t,diningMode:f,feedItem:p}):{},b=(0,v.z)({impressionEventName:"marketplace_scrolled",payload:I}),x=(0,v.s)({tapEventName:"marketplace_selected",payload:I});if(!t)return null;const A=(0,Ht.NU)(g,t.actionUrl),S=f;c.length>1&&"ACTION_BUTTON"===c[c.length-1]?.style&&c.pop();const C=(0,vt.A)(A);return(0,Y.FD)(qi,{ref:b,children:[(0,Y.FD)(Gi,{$hasItems:c.length>1,children:["cornershop"===C?(0,Y.Y)("a",{href:A,onClick:x,children:(0,Y.Y)(ji,{storeUuid:t.storeUuid||"",image:t.image,sizes:"10vw",useLazyLoad:s,defaultHeroImageUrl:(0,y.uq)(i(76421)),$width:"64px",$height:"64px",$borderRadius:"100px"})}):(0,Y.Y)(r.N_,{to:A,onClick:x,children:(0,Y.Y)(ji,{storeUuid:t.storeUuid||"",image:t.image,sizes:"10vw",useLazyLoad:s,defaultHeroImageUrl:(0,y.uq)(i(76421)),$width:"64px",$height:"64px",$borderRadius:"100px"})}),(0,Y.Y)(D.Ay,{$width:"16px"}),(0,Y.FD)(Vi,{children:[(0,Y.FD)(Ki,{children:[(0,Y.Y)(Xi,{children:(0,Y.Y)(hi.A,{tag:"span",badge:t.title,baseFont:"LabelLarge"})}),(0,Y.Y)(Hi,{storeUuid:t.storeUuid||"",storeUrl:A,storeTitle:t.title?.text||"",storeAd:t.storeAd,trackingSource:a,trackingCode:m,position:l,anal
1yticsLabel:n,partialStore:(0,ut.Ay)(t),diningMode:S,pageType:u,dishCarousel:!1,numDishes:c.length,offerMetadata:t.tracking?.storePayload?.offerMetadata,children:h("multiVerticalSearch.seeStore")})]}),(0,Y.Y)(Wi,{rating:t.rating,meta:t.meta,meta2:t.meta2}),t.signposts?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(Qi,{}),(0,Y.Y)(zt.Ay,{signposts:t.signposts})]}):null,t.endorsements?(0,Y.Y)(qt.A,{endorsements:t.endorsements}):null]})]}),(0,Y.Y)(Pi,{items:c,storeUuid:t.storeUuid||"",position:l,originSource:C})]})};var Zi=i(57812),ea=i(65714),ta=i(73569),ia=i(17408);const aa=(0,u.I4)("div",{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",height:"80%",gap:"8px"}),ra=(0,u.I4)("div",{justifyContent:"center",width:"100%"}),na=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{display:"flex",flexDirection:"column",border:`1px solid ${t.colors.borderOpaque}`,borderRadius:"12px",padding:"16px",overflow:"hidden",gap:"16px"}})),oa=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{position:"relative",display:"flex",flexDirection:"row",overflow:"hidden",gap:"24px"}})),la=(0,u.I4)("div",{maxHeight:"240px",maxWidth:"550px",overflow:"hidden",alignItems:"center",objectFit:"contain",objectPosition:"center",display:"flex",width:"100%"}),sa=(0,u.I4)("div",(e=>{let{$direction:t}=e;return{display:"flex",height:"32px",minWidth:"32px",float:"ltr"===t?"right":"left"}})),da=(0,u._F)(dt.A,{display:"flex"}),ca=(0,u.I4)("div",{}),ua=(0,u.I4)("div",(e=>{let{$direction:t}=e;return{display:"flex",position:"absolute",top:"8px",..."ltr"===t?{right:0}:{left:0}}})),pa=(0,u._F)(Wt.A,{display:"flex"});const ga=function(e){let{store:t,trackingSource:a,analyticsLabel:r,position:n,items:l,pageType:s}=e;const c=(0,o.zy)(),u=(0,b.jH)(),p=(0,d.c)();if(!t)return null;const g=!t.signposts||0===t.signposts.length,h=(0,Ht.NU)(c,t.actionUrl);l.length>1&&"ACTION_BUTTON"===l[l.length-1]?.style&&l.pop();const m=(0,vt.A)(h);return(0,Y.FD)(na,{children:[(0,Y.FD)(oa,{children:[(0,Y.Y)(la,{children:(0,Y.Y)(pa,{storeUuid:t.storeUuid||"",storeUrl:h,storeAd:null,trackingSource:a,position:n,analyticsLabel:r,partialStore:null,storeTitle:t.title?.text||"",pageType:s,offerMetadata:t.tracking?.storePayload?.offerMetadata,children:(0,Y.Y)(da,{storeUuid:t.storeUuid||"",image:t.image,defaultHeroImageUrl:(0,y.uq)(i(76421)),children:(0,Y.FD)(ua,{$direction:u,children:[(0,Y.Y)(ia.A,{storeUuid:t.storeUuid||"",size:"small",shadow:(0,Y.Y)(ia.O,{$favoriteButtonSize:"small",$shadowSize:80,$topOffset:-8,$leftOffset:"rtl"===u?-8:4})}),(0,Y.Y)(D.Wp,{})]})})})}),(0,Y.FD)(ra,{children:[t.rating?(0,Y.Y)(sa,{$direction:u,children:(0,Y.Y)(Rt.A,{rating:t.rating})}):null,(0,Y.FD)(aa,{children:[(0,Y.Y)(ca,{children:(0,Y.Y)(hi.A,{tag:"span",badge:t.title,baseFont:"LabelLarge"})}),[t.meta,t.meta2].filter(Boolean).map(((e,t)=>(0,Y.Y)(Zi.A,{meta:e,wrapText:g},t))),t.signposts?(0,Y.Y)(zt.Ay,{signposts:t.signposts,enforceTextColorOnlyFromServer:!0}):null,t.endorsements?(0,Y.Y)(qt.A,{endorsements:t.endorsements}):null,(0,Y.Y)(pa,{storeUuid:t.storeUuid||"",storeUrl:h,storeAd:null,trackingSource:a,position:n,analyticsLabel:r,partialStore:null,storeTitle:t.title?.text||"",numDishes:l.length,pageType:s,dishCarousel:!0,offerMetadata:t.tracking?.storePayload?.offerMetadata,children:(0,Y.Y)(ea.$n,{kind:ea.Nd.secondary,shape:ta.IW.pill,overrides:{BaseButton:{style:{width:"fit-content"}}},children:p("multiVerticalSearch.seeStore")})})]})]})]}),l&&l.length>0?(0,Y.Y)(Pi,{items:l,storeUuid:t.storeUuid||"",position:n,originSource:m}):null]})};var ha=i(40764),ma=i(46532),ya=i(42957);(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,background:t.colors.backgroundSecondary,height:"240px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"16px"}}));const fa=e=>{const{containerRef:t,getPageChunks:i,getPageProps:r,isPreviousPageDisabled:n,isNextPageDisabled:o,handlePageChange:l,supportsScrollSnapping:s,textDirection:d}=(0,X.A)({scrollOffset:24}),{feedItemUuid:c}=e,u=(0,N.Ay)(),{windowWidth:p}=(0,ya.A)(),{draftOrders:g}=(0,Ti.d4)((e=>{let{draftOrders:t}=e;return t})),{refetch:h}=(0,ma.A)(c);a.useEffect((()=>{g.isLoading||null===g||g.hasLoaded&&h()}),[g,h]);const m="draft-order",y=e.draftOrderCarousel.header,f=e.analyticsLabel,[I,b]=a.useMemo((()=>{const t=e.draftOrderCarousel.cards||[],i=t.map((e=>
1e.miniStorePayload?.storeUuid)).filter(Boolean);return[t,i]}),[e.draftOrderCarousel.cards]),x=I?1===I.length?1:p<1200||2===I.length?2:3:3,A=i(I.map(((t,i)=>(0,Y.Y)(te.q7,{$textDirection:d,$margin:24,$pageSize:x,children:(0,Y.Y)(ha.A,{draftOrderCard:t,size:"DESKTOP_CIRCLE",analyticsLabel:e.analyticsLabel,isSingleCard:1===x,isHorizontal:2===I.length,feedItem:e.feedItem})},i))).filter(Boolean),x);return(0,Y.Y)(ee.A,{analyticsLabel:f,entityUuids:b,carouselLayoutType:m,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:y,onPageChange:l,showPaginationButtons:I.length>x,backwardEnabled:!n,forwardEnabled:!o,onViewAllClick:()=>{"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=f&&u("eats:feed_draft_orders_carousel_cta_click",{label:f,numItems:b?b.length:0,carouselLayoutType:m,entityUuids:b})},children:0===I.length?null:(0,Y.Y)(te.mO,{ref:t,$supportsScrollSnapping:s,children:A.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...r(t,i.length),children:e},t)))})})})})};var Ia=i(60331),ba=i(71176),xa=i(91614),Aa=i(9764);const va=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.LabelLarge,display:"flex",width:"100%",height:"54px",marginTop:"16px",alignItems:"center"}})),Ya=(0,u.I4)("div",{marginBottom:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Sa=e=>{const{containerRef:t,getPageChunks:i,getPageProps:a,isPreviousPageDisabled:n,isNextPageDisabled:l,handlePageChange:s,supportsScrollSnapping:d,textDirection:c}=(0,X.A)({scrollOffset:24}),u=(0,o.zy)(),p=(0,A.W)(),g=(0,Aa.A)(),{windowWidth:h}=(0,ya.A)(),m="item-carousel",y=(()=>{let t=5;return h<1290?t=4:h>1580&&(t=6),e.isLeftNavHidden?t+1:t})(),f=(0,Gt.A)({eventName:"eats:feed_item_carousel_store_footer_impression",intersectionObserverProps:{threshold:.75},shouldEmit:Boolean(e.footer),eventPayload:{feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||"",actionUrl:e.footer?.actionUrl||"",numItems:e.items?.length,label:e.analyticsLabel||"",carouselPosition:e.position,carouselTitle:e.header?.title?.text||""}},A.W),I={...(0,Ae.YE)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem}),feedItemType:e.feedItem?.type},b=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:I}),x=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:I}),S=(0,v.s)({tapEventName:"quick_add_items_carousel_footer_tapped",payload:{analyticsLabel:e.feedItem&&"analyticsLabel"in e.feedItem?e.feedItem.analyticsLabel:null,feedItemPosition:e.position,feedItemType:e.feedItem?.type,feedItemUuid:e.feedItem?.uuid,storeUuid:e.storeUuid,actionUrl:e.footer?.actionUrl}});if(!e.items)return null;const C=e.items.map(((t,i)=>(0,Y.Y)(te.q7,{$textDirection:c,$margin:24,$pageSize:y,children:(0,Y.Y)(ba.A,{item:t,position:i+1,storeUuid:e.storeUuid||"",carouselTitle:e.header?.title?.text||"",carouselPosition:e.position,pageType:e.pageType,size:"DESKTOP",hideNoFollow:e.hideNoFollow,feedItem:e.feedItem})},i))).filter(Boolean),_=e?.header?.callToAction,L=_?.actionUrl?_.actionUrl.replace("https://www.ubereats.com",""):"",w={...e.header,endIcon:null,callToAction:{..._,actionUrl:L}},T=i(C,y),U=(0,Ht.NU)(u,e.footer?.actionUrl||"");return(0,Y.Y)(ee.A,{analyticsLabel:e.analyticsLabel||"",numItems:C.length,position:e.position,pageType:e.pageType,carouselTitle:e.header?.title?.text||"",carouselLayoutType:m,carouselUuid:e.feedItemUuid,ref:b,children:(0,Y.Y)("section",{children:(0,Y.FD)(He.A,{header:w,showPaginationButtons:C.length>5,onPageChange:s,backwardEnabled:!n,forwardEnabled:!l,onViewAllClick:()=>{x(),"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=e.analyticsLabel&&(x(),p("eats:vertical_feed_red_carpet_carousel_cta_click",{label:e.analyticsLabel,numItems:C?C.length:0,carouselLayoutType:m,vertical:g||"",carouselTitle:e.header?.title?.text||"",carouselPosition:e.position,pageType:e.pageType}))},children:[(0,Y.Y)(te.mO,{ref:t,$supportsScrollSnapping:d,children:T.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...a(t,i.length),children:e},t)))}),e.footer?(0,Y.Y)(r.N_,{rel:"nofollow",to:U,ref:f,onClick:()=>(S(),p("eats:feed_item_carousel_store_footer_click",{feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||"",vertical:g||"",trackingCodeLabel:e.anal
1yticsLabel||""}),!0),children:(0,Y.FD)(va,{children:[(0,Y.Y)(Q.A,{src:e.footer.leadingIcon||"",height:"40px",width:"72px"}),(0,Y.Y)(D.Ay,{$width:"16px"}),(0,Y.Y)(Ya,{children:(0,Y.Y)(Ia.Ay,{text:e.footer.centerText,whiteSpace:"no-wrap"})}),(0,Y.Y)(D.Ay,{$width:"24px"}),(0,Y.Y)(xa.A,{size:12,color:"contentInverseTertiary"})]})}):null]})})})};var Ca=i(76158);const _a=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{display:"flex",flexDirection:"column",borderRadius:"12px",overflow:"hidden"}})),La=(0,u._F)(re.Yq,(e=>{let{$theme:t}=e;return t.typography.LabelMedium})),wa=(0,u.I4)("div",{display:"flex",alignItems:"center",justifyContent:"flex-end",whiteSpace:"nowrap"}),Ta=(0,u.I4)("div",{marginBottom:"24px",display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative"});const Ua=function(e){let{store:t,position:i,items:a,analyticsLabel:r,feedItemUuid:n,feedItem:l,pageType:s}=e;const d=(0,o.zy)(),u=t?.tracking?JSON.stringify(t.tracking):"",p=(0,N.Ay)(),{windowWidth:g}=(0,ya.A)(),{containerRef:h,getPageChunks:m,getPageProps:y,isPreviousPageDisabled:f,isNextPageDisabled:I,handlePageChange:b,supportsScrollSnapping:x,textDirection:A}=(0,X.A)({scrollOffset:24});if(!t)return null;const v=(0,Ht.NU)(d,t.actionUrl),S="mini-store-with-items-carousel",C=g>1440?8:g>1280?7:g>1200?6:g>990?5:4;if(!a)return null;const _=m(a.map(((e,i)=>(0,Y.Y)(te.q7,{$textDirection:A,$margin:24,$pageSize:C,children:(0,Y.Y)(ba.A,{item:e,position:i+1,storeUuid:t.storeUuid||"",size:"DESKTOP",feedItem:null})},i))).filter(Boolean),C),L=a.length>C,w=(0,Y.FD)(wa,{children:[(0,Y.Y)(La,{onClick:()=>{p("eats:mini_store_with_items_see_all_click",{numItems:a?a.length:0,carouselLayoutType:S,trackingCode:u,storeUuid:t.storeUuid||""})},to:v,children:(0,Y.Y)(c.H,{id:"carousel.see_all"})}),L?(0,Y.Y)(D.Ay,{$width:"40px"}):null,L?(0,Y.Y)(ae.A,{backwardEnabled:!f,forwardEnabled:!I,onPageChange:b}):null]});return(0,Y.Y)(_a,{children:(0,Y.Y)(ee.A,{numItems:a.length,carouselLayoutType:S,trackingCode:u,analyticsLabel:r,carouselUuid:n,children:(0,Y.FD)("section",{children:[(0,Y.FD)(Ta,{children:[(0,Y.Y)(Ca.A,{store:t,size:"DESKTOP_CIRCLE",hideBorder:!0,hideIcon:!0,analyticsLabel:r,feedItem:l,position:i,pageType:s}),w]}),(0,Y.Y)(te.mO,{ref:h,$supportsScrollSnapping:x,children:_.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...y(t,i.length),children:e},t)))})]})})})};var Ea=i(72674);const Pa=e=>{const t=(0,o.zy)(),{containerRef:i,getPageChunks:r,getPageProps:n,isPreviousPageDisabled:l,isNextPageDisabled:s,handlePageChange:d,supportsScrollSnapping:c,textDirection:p}=(0,X.A)({scrollOffset:24}),g=(0,Ue.W)(),[,h]=(0,u.c6)(),{windowWidth:m}=(0,ya.A)(),y=(0,A.W)(),f=(0,Ue.W)(),I=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:(0,Ae.P4)({analyticsLabel:e.analyticsLabel,feedItemUuid:e.feedItemUuid,feedContext:e.pageType,diningMode:g})}),b=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:{...(0,Ae.YE)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem}),feedItemType:e.feedItem?.type,numItemsInCarousel:e.items?.length}}),{vertical:x}=(0,we.g$k)(t,["vertical"]),S="single-catalog-items-carousel",C=e.trackingCode?JSON.stringify(e.trackingCode):"",_=(()=>{let t=4;return m<1290?t=3:m>1580&&(t=5),e.isLeftNavHidden?t+1:t})();a.useEffect((()=>{e.items&&0!==e.items.length||y("eats:empty_item_carousel_payload",{label:e.analyticsLabel||"",carouselLayoutType:S,carouselPosition:e.position,carouselTitle:e.header?.title?.text||"",pageType:e.pageType,trackingCode:C,feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||""})}));const L=Boolean(e.items?.[0]?.catalogItem?.quickAddConfig?.shouldShow);if(!e.items||0===e.items.length)return null;const w=e.items.map(((t,i)=>{const a="multiSKUFlatPromotion"===t?.catalogItem?.itemLevelPromotion?.type?t?.catalogItem?.itemLevelPromotion.multiSKUFlatPromotion.promotionUuid:"";return(0,Y.Y)(te.q7,{$textDirection:p,$margin:24,$pageSize:_,children:(0,Y.Y)(Ea.A,{item:t,position:i,carouselPosition:e.position,feedItemUuid:e.feedItemUuid,pageType:e.pageType,analyticsLabel:e.analyticsLabel,analyticsOverride:{impressionEventName:"feed_item_card_scrolled",tapEventName:"feed_item_card_tapped",payload:{...(0,Ae.ec)({diningMode:f,feedIndex:e.position,collectionIndex:i,feedItem:e.feedItem,trackingCode:t.tracking}),feedItemType:e.feedItem?.type,promotionUuid:a||"",selectedVertical:x??Te.h0}}})},i)}
1)).filter(Boolean),T=r(w,_),U={height:96,width:"96px",border:`1px solid ${h.colors.borderOpaque}`,borderRadius:"50%"};return(0,Y.Y)(ee.A,{analyticsLabel:e.analyticsLabel||"",numItems:w.length,position:e.position,pageType:e.pageType,carouselTitle:e.header?.title?.text||"",carouselLayoutType:S,trackingCode:C,carouselUuid:e.feedItemUuid,storeUuid:e.storeUuid||"",quickAddEnabled:L,ref:b,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:e.header,showPaginationButtons:w.length>4,onPageChange:d,backwardEnabled:!l,forwardEnabled:!s,endIconProps:U,onViewAllClick:()=>{I(),y("eats:catalog_items_carousel_cta_click",{label:e.analyticsLabel||"",numItems:w?w.length:0,carouselLayoutType:S,carouselTitle:e.header?.title?.text||"",carouselPosition:e.position,pageType:e.pageType,trackingCode:C,feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||""})},children:(0,Y.Y)(te.mO,{ref:i,$supportsScrollSnapping:c,$disabledVerticalScrolling:!0,children:T.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...n(t,i.length),children:e},t)))})})})})},ka=e=>{const{containerRef:t,getPageChunks:i,getPageProps:a,isPreviousPageDisabled:r,isNextPageDisabled:n,handlePageChange:o,supportsScrollSnapping:l,textDirection:s}=(0,X.A)({scrollOffset:24}),d=(0,Ue.W)(),[,c]=(0,u.c6)(),p=(0,N.Ay)(),g=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:(0,Ae.P4)({analyticsLabel:e.analyticsLabel,feedItemUuid:e.feedItemUuid,feedContext:e.pageType,diningMode:d})}),h="single-catalog-items-carousel",m=e.trackingCode?JSON.stringify(e.trackingCode):"",y=Boolean(e.items?.[0]?.catalogItem?.quickAddConfig?.shouldShow);if(!e.items||0===e.items.length)return p("eats:empty_item_carousel_payload",{label:e.analyticsLabel||"",carouselLayoutType:h,carouselPosition:e.position,carouselTitle:e.header?.title?.text||"",pageType:e.pageType,trackingCode:m,feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||""}),null;const f=e.items.map(((t,i)=>(0,Y.Y)(te.q7,{$textDirection:s,$margin:24,$pageSize:6,children:(0,Y.Y)(Ea.A,{item:t,position:i,carouselPosition:e.position,feedItemUuid:e.feedItemUuid,pageType:e.pageType,analyticsLabel:e.analyticsLabel,clampItemTitle:!0})},i))).filter(Boolean),I=i(f,6),b={height:96,width:"96px",border:`1px solid ${c.colors.borderOpaque}`,borderRadius:"50%"};return(0,Y.Y)(ee.A,{analyticsLabel:e.analyticsLabel||"",numItems:f.length,position:e.position,pageType:e.pageType,carouselTitle:e.header?.title?.text||"",carouselLayoutType:h,trackingCode:m,carouselUuid:e.feedItemUuid,storeUuid:e.storeUuid||"",quickAddEnabled:y,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:e.header,showPaginationButtons:f.length>6,onPageChange:o,backwardEnabled:!r,forwardEnabled:!n,endIconProps:b,onViewAllClick:()=>{g(),p("eats:catalog_items_carousel_cta_click",{label:e.analyticsLabel||"",numItems:f?f.length:0,carouselLayoutType:h,carouselTitle:e.header?.title?.text||"",carouselPosition:e.position,pageType:e.pageType,trackingCode:m,feedItemUuid:e.feedItemUuid||"",storeUuid:e.storeUuid||""})},children:(0,Y.Y)(te.mO,{ref:t,$supportsScrollSnapping:l,$disabledVerticalScrolling:!0,children:I.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...a(t,i.length),children:e},t)))})})})})};var $a=i(92858),Da=i(73092);const Oa=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,background:t.colors.backgroundSecondary,height:"240px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"16px"}})),Fa=e=>{const{containerRef:t,getPageChunks:i,getPageProps:r,isPreviousPageDisabled:n,isNextPageDisabled:o,handlePageChange:l,supportsScrollSnapping:s,textDirection:u}=(0,X.A)({scrollOffset:24}),p=(0,N.Ay)(),{windowWidth:g}=(0,ya.A)(),h=(0,d.c)(),m="red-carpet",{sduiCarousel:{header:y}}=e,f=e.analyticsLabel,I=(0,Aa.A)(),b=(0,G.Ab)({...$a.z.web_feed_refresh_grocery_carousel_action_url,defaultValue:""}),x={...(0,Ae.YE)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem})},A=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:x}),S=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:x});b&&!I&&y&&!y?.callToAction?.actionUrl&&(y.callToAction={actionUrl:b,text:h("carousel.see_all")});const[C,_]=a.useMemo((()=>
1{const t=e.sduiCarousel.items||[],i=t.map((e=>e.storeUuid)).filter(Boolean);return[t,i]}),[e.sduiCarousel.items]),L=C.length<4?C.length:g>1280?4:3,w=i(C.map(((t,i)=>(0,Y.Y)(te.q7,{$textDirection:u,$margin:e.pageMargin??24,$pageSize:L,children:(0,Y.Y)(Da.A,{size:C.length<3?"RED_CARPET_DESKTOP_HORIZONTAL":"RED_CARPET_DESKTOP",store:t,analyticsLabel:e.analyticsLabel,displaySecondaryImage:1===C.length,position:i})},i))).filter(Boolean),L);return(0,Y.Y)(ee.A,{analyticsLabel:f,entityUuids:_,carouselLayoutType:m,carouselUuid:e.feedItemUuid,ref:A,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:y,onPageChange:l,showPaginationButtons:C.length>L,backwardEnabled:!n,forwardEnabled:!o,onViewAllClick:()=>{S(),"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=f&&(S(),p("eats:vertical_feed_red_carpet_carousel_cta_click",{label:f,numItems:_?_.length:0,carouselLayoutType:m,entityUuids:_}))},children:0===C.length?(0,Y.Y)(Oa,{children:(0,Y.Y)(c.H,{id:"bandwagon.no_restaurants"})}):(0,Y.Y)(te.mO,{ref:t,$supportsScrollSnapping:s,children:w.map(((t,i,a)=>(0,Y.Y)(te.YW,{$pageMargin:e.pageMargin??24,...r(i,a.length),children:t},i)))})})})})};var Ra=i(71946),Ma=i(44551),Na=i(64276),Ba=i(50505),za=i(63204),Wa=i(41046),Ha=i(43018),Va=i(4236),Ka=i(76816);const qa=(0,u.I4)("div",{position:"relative",width:"100%"}),Ga=(0,u._F)(dt.A,(e=>{let{$height:t}=e;return{width:"100%",position:"relative",height:`${t}px`,overflow:"hidden",borderRadius:"12px"}})),ja=(0,u.I4)("div",(e=>{let{$isInteractive:t}=e;return{position:"absolute",top:0,display:"flex",justifyContent:"space-between",width:"100%",padding:"12px 0",boxSizing:"border-box",...t?{}:{pointerEvents:"none"}}})),Xa=(0,u.I4)("div",{display:"flex"}),Qa=(0,u.I4)("div",{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:"8px",paddingRight:"8px"}),Ja=(0,u._F)(zt.I3,{webkitFilter:"brightness(0) invert(1)",filter:"brightness(0) invert(1)"}),Za=e=>"LabelMedium"===e?8:12,er=(0,u.I4)("div",(e=>{let{$typography:t}=e;return{marginTop:`${Za(t)}px`,width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"}})),tr=(0,u.I4)("div",(e=>{let{$theme:t,$typography:i}=e;return{...t.typography[i],width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),ir=(0,u._F)(Wt.A,(e=>{let{$marginBottom:t}=e;return{display:"flex",overflow:"hidden",...t?{marginBottom:`${t}px`}:{}}}));const ar=function(e){let{store:t,location:i,pageType:a,position:r,linkRef:n,showFavorite:o,titleTypography:l,heroImageHeight:s,heroImageSizes:d,trackingSource:c,analyticsLabel:u,marginBottom:p,useLazyLoadImage:g,divRef:h,feedItem:m,analyticsOverride:y}=e;const f=(0,b.jH)(),I=JSON.stringify({metaInfo:{analyticsLabel:u}}),x=(0,Ht.NU)(i,t.actionUrl),A=(0,Ue.W)(),{userQuery:S,vertical:C}=(0,we.g$k)(i,["userQuery","vertical"]),_=Boolean("PICKUP"!==A&&t.storeStateContext&&t.storeStateContext===Vt.oO.PICKUP),L=_&&t.callToAction?t.callToAction.actionUrl:"",w=_?"PICKUP":A,T=t.meta2?(t.meta||[]).concat(t.meta2):t.meta,U="cornershop"===(0,vt.A)(L||x),[,E]=(0,j.c6)(),P=()=>(0,Y.FD)(Xa,{children:[(0,Y.Y)(D.Wp,{}),(0,Y.Y)(ia.A,{storeUuid:t.storeUuid||"",size:"small",shadow:(0,Y.Y)(ia.O,{$favoriteButtonSize:"small",$shadowSize:80,$topOffset:-8,$leftOffset:"rtl"===f?-8:4})}),(0,Y.Y)(D.Wv,{})]}),k=y??{tapEventName:"marketplace_selected",impressionEventName:"marketplace_scrolled",payload:{...(0,Ge.pO)({trackingCodeAnalyticsLabel:u,feed:{feedContext:a},store:(0,Ne.A)(t)},r??-1),...(0,Ae.CE)({feedContext:a,feedIndex:r,feedStore:t,diningMode:A,feedItem:m,searchTerm:S,selectedVertical:C||Te.h0})}},$=(0,v.z)({impressionEventName:k.impressionEventName,payload:k.payload}),O=(0,v.s)({tapEventName:k.tapEventName,payload:k.payload}),F=(0,Ka.S)();return(0,Y.Y)(ir,{ref:(0,je.A)($,n),storeUuid:t.storeUuid||"",storeUrl:L||x,storeTitle:t.title?.text||"",storeAd:t.storeAd,pageType:a,position:r,trackingSource:c,trackingCode:I,$marginBottom:p,partialStore:(0,ut.Ay)(t),analyticsLabel:u,diningMode:w,isLowCourier:_,offerMetadata:t.tracking?.storePayload?.offerMetadata,onClick:O,children:(0,Y.FD)(qa,{ref:h,children:[(0,Y.FD)(Ga,{storeUuid:t.storeUuid||"",image:t.image,sizes:d,$height:s,useLazyLoad:g,children:[(0,Y.FD)(ja,{$isInteractive:!t.imageOverlay,children:[(t.signposts||[]).length?(0,Y.Y)(Y.FK,{children:(t.signposts||[]).slice(0,1).map(((e,t)=>(0,Y.FD)(zt.OB,{$color:F?E.colors.brandContentOnPrimary:"#FFFFFF",$backgroundColor:e.backgroundColor?.color||(F?E.colors.brandBackgroun
1dPrimary:e.textColor?.color)||"#05A357",$direction:f,children:[e.iconUrl?F?(0,Y.Y)(zt.I3,{src:e.iconUrl}):(0,Y.Y)(Ja,{src:e.iconUrl}):null,e.text]},`signpost-${t}`)))}):(0,Y.Y)(D.VX,{}),!o||U||_||t.imageOverlay?(0,Y.Y)(D.Wv,{}):P()]}),t.imageOverlay?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(Bt.Ay,{imageOverlay:t.imageOverlay,imageOverlayCallToAction:t.callToAction,shouldUseLowCourierSupply:_}),!o||U||_?null:(0,Y.FD)(ja,{children:[(0,Y.Y)(D.VX,{}),P()]})]}):null]}),(0,Y.FD)(Qa,{children:[(0,Y.FD)(er,{$typography:l,children:[(0,Y.Y)(tr,{$typography:l,children:t.title?.text||""}),t.rating?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(D.hl,{}),(0,Y.Y)(Rt.A,{rating:t.rating})]}):null]}),T?(0,Y.Y)(Mt.Ay,{meta:T}):null,t.endorsements?(0,Y.Y)(qt.A,{endorsements:t.endorsements}):null]})]})})};var rr=i(10621),nr=i.n(rr),or=i(26562),lr=i(46153);const sr=(0,y.uq)(i(41989)),dr=(0,u.I4)("div",(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"326px"}))),cr=(0,u.I4)(Q.A,(()=>({position:"absolute",top:"0",width:"100%",height:"100%"}))),ur=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{backgroundColor:t.colors.backgroundOverlayArt,position:"absolute",width:"100%",height:"100%",top:0,left:0}})),pr=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayBoldXSmall,color:t.colors.contentOnColorInverse}})),gr=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphSmall,color:t.colors.contentOnColorInverse}})),hr=(0,u.I4)("div",{display:"flex",justifyContent:"center"}),mr=(0,u.I4)("button",(e=>{let{$theme:t}=e;return{display:"flex",flexDirection:"row",alignItems:"center",cursor:"pointer",padding:"8px 12px",height:"36px",borderRadius:t.borders.pillButtonBorderRadius,...(0,h.r)({$theme:t}),...t.typography.LabelSmall}})),yr=(0,u.I4)("div",(e=>{let{$direction:t}=e;return{display:"flex",width:"25%",flexDirection:"column",alignItems:"flex-start",..."ltr"===t?{marginLeft:"32px"}:{marginRight:"32px"},position:"relative",zIndex:1}})),fr=(0,u.I4)("div",(e=>{let{$direction:t}=e;return{width:"75%",overflow:"hidden",..."ltr"===t?{marginRight:"40px",marginLeft:"8px"}:{marginLeft:"40px",marginRight:"8px"}}})),Ir=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{padding:"4px 4px 8px 4px",maxWidth:"326px",background:t.colors.backgroundPrimary,boxShadow:t.shadows.carouselCard}})),br=(0,u.I4)("div",(e=>{let{$supportsScrollSnapping:t}=e;return{overflowX:"scroll",display:"flex",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"},cursor:"pointer",...t?{scrollSnapType:"x mandatory"}:{}}}));function xr(e){let{stores:t,carouselHeader:i,carouselBackground:r,analyticsLabel:l,position:s,feedItemUuid:d}=e;const c=(0,N.Ay)(),u=(0,b.jH)(),{containerRef:p,getPageChunks:g,getPageProps:h,isPreviousPageDisabled:m,isNextPageDisabled:y,handlePageChange:f,supportsScrollSnapping:I,textDirection:x}=(0,X.A)({scrollOffset:24}),A=(0,Ue.W)(),S=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:(0,Ae.P4)({analyticsLabel:l,feedItemUuid:d,diningMode:A})}),{page:C,params:_}=(0,or.V)(r.callToAction?.actionUrl||""),L=(0,n.W6)(),w=(0,o.zy)(),T=(0,ui.A)(),{onScroll:U}=(0,lr.k)(),E=(0,a.useMemo)((()=>t.map((e=>e.storeUuid)).filter(Boolean)),[t]),P=t.map(((e,t)=>(0,Y.Y)(te.q7,{$textDirection:x,$margin:24,$pageSize:3,children:(0,Y.Y)(Ir,{children:(0,Y.Y)(ar,{store:e,location:w,showFavorite:!0,position:t,titleTypography:"LabelLarge",heroImageHeight:T,heroImageSizes:"25vw",analyticsLabel:l})})},t))).filter(Boolean),k=g(P,3);return(0,Y.Y)(ee.A,{analyticsLabel:l,entityUuids:E,position:s,carouselLayoutType:"list-store",carouselUuid:d,children:(0,Y.FD)(dr,{children:[(0,Y.Y)(cr,{loading:"lazy",decoding:"async",src:nr()(r.imageUrl||sr)}),(0,Y.Y)(ur,{}),(0,Y.FD)(yr,{$direction:u,children:[(0,Y.Y)(ct.Ay,{$height:48}),(0,Y.Y)(pr,{children:i.title?.text||""}),(0,Y.Y)(gr,{children:i.subtitle?.text||""}),r.callToAction?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(ct.Ay,{$height:16}),(0,Y.Y)(hr,{children:(0,Y.Y)(mr,{onClick:()=>{S(),c("eats:background_image_carousel_cta_button_click"),"feed"===C&&L.push((0,we.lGi)(w,{..._.diningMode?{diningMode:_.diningMode}:{}}))},children:r.callToAction.text||""})})]}):null]}),(0,Y.Y)(fr,{$direction:u,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:i.callToAction?{callToAction:i.callToAction}
1:null,showPaginationButtons:P.length>3,onPageChange:f,backwardEnabled:!m,forwardEnabled:!y,onViewAllClick:()=>{c("eats:background_image_carousel_cta_text_click")},children:(0,Y.Y)(br,{ref:p,$supportsScrollSnapping:I,onScroll:U,children:k.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...h(t,i.length),children:e},t)))})})})})]})})}var Ar=i(58824);const vr=(0,u.I4)("div",(e=>{let{$supportsScrollSnapping:t}=e;return{overflowX:"scroll",display:"flex",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"},cursor:"pointer",...t?{scrollSnapType:"x mandatory"}:{}}})),Yr=e=>{const{containerRef:t,getPageChunks:i,getPageProps:a,isPreviousPageDisabled:r,isNextPageDisabled:n,handlePageChange:o,supportsScrollSnapping:l,textDirection:s}=(0,X.A)({scrollOffset:24}),d={...(0,Ae.YE)({feedContext:e.pageType,feedIndex:e.position,feedItem:e.feedItem}),feedItemType:"DISH_CAROUSEL"},c=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:d}),u=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:d}),p=e.items.map(((t,i)=>(0,Y.Y)(te.q7,{$textDirection:s,$margin:24,$pageSize:6,children:(0,Y.Y)(Ar.A,{item:t,heroImageHeight:e.heroImageHeight,$tagMargin:"14px",feedIndex:e.position,collectionIndex:i,feedItem:e.feedItem,feedItemType:"DISH_CAROUSEL"})},i))).filter(Boolean),g=i(p,6);return(0,Y.Y)(ee.A,{analyticsLabel:e.analyticsLabel||"",numItems:p.length,carouselUuid:e.feedItemUuid,ref:c,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:e.header,showPaginationButtons:p.length>6,onPageChange:o,backwardEnabled:!r,forwardEnabled:!n,onViewAllClick:u,children:(0,Y.Y)(vr,{ref:t,$supportsScrollSnapping:l,children:g.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...a(t,i.length),children:e},t)))})})})})};var Sr=i(13084);const Cr=(0,u.I4)("div",{paddingTop:"8px",paddingBottom:"16px"}),_r=e=>{let{dishes:t,storeSlug:i}=e;const a=(0,o.zy)();return t.length?(0,Y.Y)(Cr,{children:t.map(((e,t)=>{const r=(0,Ht.NU)(a,e.actionUrl);return(0,Y.Y)(Sr.A,{dish:e,storeSlug:i,position:t+1,actionUrl:r},e.actionUrl?e.actionUrl:e.dishUuid)}))}):null};function Lr(e){let{store:t,...i}=e;const[,a]=(0,u.c6)(),r=(0,Ka.S)(),n=r?a.colors.brandBackgroundPrimary:a.colors.green600,o=r?a.colors.brandContentOnPrimary:a.colors.white,l=m.useMemo((()=>t.signposts?.map((e=>e.backgroundColor&&e.textColor?e:{...e,textColor:{color:o},backgroundColor:{color:n},iconColor:{color:o}}))??null),[t.signposts,n,o]),s=m.useMemo((()=>[...t.meta??[],...t.meta2??[]]),[t.meta,t.meta2]),d=m.useMemo((()=>({...t,signposts:l,meta:s})),[t,l,s]);return(0,Y.Y)(di.A,{store:d,...i})}var wr=i(27257);const Tr=(0,u._F)(te.YW,{flexWrap:"wrap",gap:"32px 0"}),Ur=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphMedium,background:t.colors.backgroundSecondary,height:"240px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"16px"}})),Er=e=>{const t=(0,o.zy)(),{containerRef:i,getPageChunks:r,getPageProps:n,isPreviousPageDisabled:l,isNextPageDisabled:s,handlePageChange:d,supportsScrollSnapping:u,textDirection:p}=(0,X.A)({scrollOffset:24}),g=(0,ui.A)(),h=(0,Ue.W)(),m=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:(0,Ae.P4)({feedItemUuid:e.feedItemUuid,diningMode:h,feedContext:e.pageType,analyticsLabel:e.analyticsLabel})}),y=(0,N.Ay)(),f=e.carousel.header,I=e.analyticsLabel,[b,x]=a.useMemo((()=>{const t=e.carousel.stores||[],i=t.map((e=>e.storeUuid)).filter(Boolean);return[t,i]}),[e.carousel.stores]),A=r(b.map(((i,a)=>(0,Y.Y)(te.q7,{$textDirection:p,$margin:e.pageMargin??24,$ignoreMargin:Boolean(a%2),$pageSize:2,children:(0,Y.Y)(ti,{store:i,location:t,showFavorite:e.showFavorite,position:a,titleTypography:"LabelLarge",heroImageHeight:g,heroImageSizes:"25vw",analyticsLabel:e.analyticsLabel,seoContent:e.seoContent&&e.seoContent[i.storeUuid||""]})},a))),6),S=a.useCallback((()=>{"function"==typeof e.onViewAllClick&&e.onViewAllClick(),null!=I&&(m(),y("eats:carousel_cta_click",{label:I,numItems:x?x.length:0,carouselLayoutType:"regular-store",entityUuids:x,carouselUuid:e.feedItemUuid,carouselPosition:e.position,feedContext:e.pageType,...e.customEventMetadata||{}}))}),[I,y,m,e,x]);return(0,Y.Y)(ee.A,{analyticsLabel:I,entityUuids:x,carouselLayoutType:"regular-store",carouselUuid:e.feedItemUuid,onImpression:()=>{},children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:f,onPageChange:d,showPaginationButtons:b.length>4,backwardEnabled:!l,forwardEnabled:!s,analyticsLabel:I,customEventMetadata:e.customEventMetadata,onViewAllClick:S,seoHeader:!0,children:0===b.length?(0,Y.Y)(Ur,{children:(0,Y.Y)(c.H,{id:"bandwagon.no_restaurants"})}):(0,Y.Y)(te.mO,{ref:i,$supportsScrollSnapping:u,children:A.map(((t,i,a)=>(0,Y.Y)(Tr,{$pageMargin:e.pageMargin??24,...n(i,a.length),children:t},i)))})})})})};var Pr=i(77383);const kr=e=>{let{feedItemUuid:t,carousel:i,position:r}=e;const n=i.header,{containerRef:o,getPageChunks:l,getPageProps:s,isPreviousPageDisabled:d,isNextPageDisabled:c,handlePageChange:u,supportsScrollSnapping:p,textDirection:g}=(0,X.A)({scrollOffset:24}),h=(0,N.Ay)(),m=(0,ui.A)(),y=(0,Ue.W)(),[f,I]=(0,a.useMemo)((()=>{const e=i.stores||[],t=e.map((e=>
1e.storeId)).filter(Boolean);return[e,t]}),[i.stores]),b=l(f.map(((e,t)=>(0,Y.Y)(te.q7,{$textDirection:g,$margin:24,$pageSize:4,children:(0,Y.Y)(Pr.A,{store:e,heroImageHeight:m,titleTypography:"LabelLarge",carouselPosition:r,storePosition:t})},t))).filter(Boolean),4),x=(0,v.s)({tapEventName:"see_all_carousel_tap",payload:(0,Ae.P4)({feedItemUuid:t,diningMode:y})});return(0,Y.Y)(ee.A,{analyticsLabel:"cornershop",entityUuids:I,position:r,carouselUuid:t,children:(0,Y.Y)("section",{children:(0,Y.Y)(He.A,{header:n,onPageChange:u,showPaginationButtons:f.length>4,backwardEnabled:!d,forwardEnabled:!c,onViewAllClick:()=>{x(),h("eats:third_party_view_all_click",{carouselPosition:r,numStores:I.length})},isExternalCTA:!0,children:(0,Y.Y)(te.mO,{ref:o,$supportsScrollSnapping:p,children:b.map(((e,t,i)=>(0,Y.Y)(te.YW,{$pageMargin:24,...s(t,i.length),children:e},t)))})})})})};var $r=i(54403),Dr=i(99113),Or=i(68692),Fr=i(14775),Rr=i(96097),Mr=i(462),Nr=i(8752),Br=i(97452),zr=i(61073),Wr=i(30729);const Hr=(0,u.I4)("div",{scrollMarginTop:"400px"}),Vr=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{maxWidth:"410px",width:"100%",marginBottom:t.sizing.scale2400}})),Kr=(0,u.I4)("div",(e=>{let{$theme:t}=e;return{width:"100%",display:"flex",flexDirection:"column"}})),qr={storeTitleTypography:"LabelLarge",storeItemMetaTopRowPadding:"12px 0 0"},Gr=e=>{const[t,i]=(0,a.useState)(!1),n=(0,o.zy)(),l=(0,ui.A)(),u=new URLSearchParams(n.search),p=u.get("page"),g=(0,d.c)(),m=(0,o.g)(),y=m.slugName||"",f=m.secondarySlugName||"",I=(0,Wr.O)(p)??1,b={citySlug:y,category:f,pageNumber:I},x=f?3:2,A=(0,Mr.u)(b,{preparedId:"get-paginated-stores-v1",queryObserverOptions:{enabled:t}}),{refetch:v}=A,S=(0,a.useRef)(null);(0,a.useEffect)((()=>{t&&S?.current?.scrollIntoView(!0)}),[p,t,v]);const C=(0,a.useCallback)((e=>{I!==e&&i(!0)}),[I]),_=A.data?.totalPages||e.initialTotalPages||1,{paginationLinks:L,isFirstPage:w,isLastPage:T,firstPage:E,prevPageHref:P,nextPageHref:k,prevPage:$,nextPage:D}=(0,Rr.W)({page:Number(p)||1,total:_,maxLinksToShow:5,basePath:n.pathname,searchParams:u}),O=(0,a.useMemo)((()=>({data:A.data||{feedItems:e.initialStores,storesMap:e.initialStoresMap,totalPages:e.initialTotalPages},isLoading:A.isLoading,error:A.isError,hasLoaded:Boolean(A.data)&&!A.isLoading&&!A.isError})),[A.data,A.isLoading,A.isError,e.initialStores,e.initialStoresMap,e.initialTotalPages]);return(0,Y.Y)(Hr,{ref:S,children:(0,Y.Y)(zr.A,{enableLoadingForRefetch:!0,source:O,error:()=>(0,Y.FD)(Vr,{children:[(0,Y.Y)(Br.Mc,{title:g("components.notFound.title"),message:g("components.notFound.message"),code:500}),(0,Y.Y)(h.A,{$as:r.N_,to:(0,we.rJl)(n),children:(0,Y.Y)(c.H,{id:"shared.find_food"})})]}),loading:()=>(0,Y.Y)(Ve.Ay,{}),loaded:t=>(0,Y.FD)(Kr,{children:[(0,Y.Y)(U.Ay,{$gridRowGap:40,$gridColumGap:24,$numColumns:x,$gridMediaTemplateColumns:void 0,children:t.feedItems?t.feedItems?.map(((i,r)=>{if("STORE"==i.type&&t.storesMap){const o=t.storesMap[i.uuid];return o?e.seoSearchEnabled?e.shouldDisplayStoreCardRedesign?(0,Y.Y)(U.fh,{children:(0,Y.Y)($t,{store:o,location:n,pageType:e.pageType,position:r,maxIndex:t.feedItems.length-1,titleTypography:"LabelMedium",heroImageHeight:l,heroImageSizes:"25vw",seoSearchEnabled:e.seoSearchEnabled,analyticsLabel:i.analyticsLabel,trackingCode:i.trackingCode,seoContent:t.seoContent?.[o.uuid]})},i.uuid):(0,Y.Y)(a.Fragment,{children:(0,Y.Y)(U.fh,{children:(0,Y.Y)(ai.A,{store:o,location:n,linkRef:e.linkRef,pageType:e.pageType,position:r,titleTypography:"LabelLarge",heroImageHeight:l,heroImageSizes:"25vw",seoSearchEnabled:e.seoSearchEnabled,analyticsLabel:i.analyticsLabel,trackingCode:i.trackingCode,seoContent:t.seoContent?.[o.uuid]})})},i.uuid):(0,Y.Y)(a.Fragment,{children:(0,Y.FD)(U.fh,{children:[(0,Y.Y)(s.A,{store:o,heroImageHeight:l,favoriteButtonSize:"small",showFavorite:e.showFavorite,location:n,linkRef:e.linkRef,trackingCode:i.trackingCode,pageType:e.pageType,position:r,styleOverrides:qr,analyticsLabel:i.analyticsLabel,numDishes:(i.dishes||[]).slice(0,1).length}),(0,Y.Y)(_r,{dishes:(i.dishes||[]).slice(0,1),storeSlug:o.slug})]})},i.uuid):null}})):null}),(0,Y.Y)(Nr.M,{firstPage:E,prevPage:$,nextPage:D,totalPages:_,isFirstPage:w,isLastPage:T,prevPageHref:P,nextPageHref:k,paginationLinks:L,onPageChange:C})]})})})};var jr=i(81973),Xr=i(20905),Qr=i(96310),Jr=i(8665),Zr=i(63811),en=i.n(Zr),tn=i(40527);const an=(0,j.I4)("ul",(e=>{let{$theme:t,$supportsScrollSnapping:i,$textDirection:a,$amountOfOffers:r,$amountOfOffersOnPage:n,$disableScrollSnapping:o,$isFirstPage:l,$isLastPage:s}=e;const d=t.sizing.scale300,c=r<=6,u=c?3:Math.ceil(n/2),p=c||3===u,g=32/3/u,h=100*u/3;return{display:"grid",gridAutoFlow:r<5?"row":"column",gridTemplateColumns:`repeat(\n ${c?3:u},\n calc(${100/u}% - ${16*(u-1)/u}px)\n )`,gridTemplateRows:r<4?"1fr":"1fr 1fr",gap:t.sizing.scale600,cursor:"auto",minWidth:p?"100%":`calc(${h}% - ${g}px)`,marginTop:0,marginBottom:0,marginRight:"ltr"!==a||s?0:d,marginLeft:"ltr"!==a||l?0:d,...i?{scrollSnapAlign:o?"none":"start"}:{}}})),rn=e=>{let{storeOffers:t,header:i,trackingCode:r,feedItemUuid:n,feedItemPosition:o}=e;const{containerRef:l,getPageChunks:s,getPageProps:d,isPreviousPageDisabled:c,isNextPageDisabled:u,handlePageChange:p,supportsScrollSnapping:g}=(0,X.A)({thresholdRatio:.7}),{onScroll:h}=(0,tn.A)(l,n??""),{onScroll:m}=(0,lr.k)(),y=en()((e=>{h(e),m()}),500),f=(0,N.Ay)(),I=(0,a.useMemo)((()=>{const e=!!t&&t.length%6!=0,i=t&&t.length<=6,a=t&&t.length%2!=0,r=t?6-t.length%6:0,l=t&&!i?t.length-r+(a?2:0):1/0,d=t?.map(((t,a)=>(0,Y.Y)(Jr.A,{store:t,storeName:t?.title?.text||"",offerDetail:t?.subTitle?.text||"",logoSrc:t.storeLogoURL?.items?.slice(-1)?.[0]?.url||"",actionUrl:t?.actionURL||"",disableScrollSnapping:i||e&&a>=l,analyticsInfo:{impressionEventName:"eats:store_offers_carousel_item_impression",clickEventName:"eats:store_offers_carousel_tap",eventPayload:{feedItemUuid:n,feedItemPosition:o,pageAtCarousel:Math.floor(a/6),indexInOffers:a,trackingCode:JSON.stringify(t?.trackingCode)??""}}},a)))??[];return s(d,6)}),[s,t,n,o]);return(0,Y.Y)(He.A,{header:i,onPageChange:p,showPaginationButtons:(t?.length??0)>
16,backwardEnabled:!c,forwardEnabled:!u,analyticsLabel:r?.metaInfo?.analyticsLabel??"",onViewAllClick:()=>{f("eats:store_offers_carousel_see_all_tap",{feedItemUuid:n,feedItemPosition:o})},children:(0,Y.Y)(Ot.wq,{ref:l,$supportsScrollSnapping:g,onScroll:y,"data-testid":Ct.E.storeOffersDesktopCarousel,children:I.map(((e,i,a)=>{const r=e.length<6,n=i===I.length-1,o=1===I.length;return(0,Y.Y)(an,{$amountOfOffers:t?.length??0,$amountOfOffersOnPage:e.length,$disableScrollSnapping:!o&&r&&n,$isLastPage:n,$isFirstPage:0===i,...d(i,a.length),children:e},i)}))})})};var nn=i(36874);const on=(0,u.I4)("div",(()=>({height:"200px",borderRadius:"12px",overflow:"hidden",flexShrink:0,flexGrow:0,width:"calc(25% - 16px)",margin:"0 8px"}))),ln=(0,u.I4)("img",(()=>({width:"auto",height:"100%"}))),sn=e=>{let{payload:t,analyticsLabel:i,feedItemUuid:a}=e;const{header:r,items:n}=t.giftCardCarousel||{},o={title:{...r?.title||{}},subtitle:{...r?.subtitle||{}}},{containerRef:l,isPreviousPageDisabled:s,isNextPageDisabled:d,handlePageChange:c,supportsScrollSnapping:u,getPageChunks:p,getPageProps:g}=(0,X.A)({scrollOffset:16}),h=(0,v.z)({impressionEventName:"feed_item_scrolled",payload:{}}),m=e=>{(0,Ai.A)("https://gifts.uber.com")},y=n?.map(((e,t)=>(0,Y.Y)(on,{onClick:m,children:(0,Y.Y)(ln,{src:e.imageUrl,alt:e.title})},t))),f=p(y||[],4);return(0,Y.Y)(ee.A,{analyticsLabel:i||"",numItems:n?.length||0,carouselUuid:a,ref:h,children:(0,Y.Y)(He.A,{header:o,showPaginationButtons:(n?.length||0)>4,backwardEnabled:!s,forwardEnabled:!d,onPageChange:c,children:(0,Y.Y)(Ot.wq,{ref:l,$supportsScrollSnapping:u,children:f.map(((e,t,i)=>(0,Y.Y)(Ot.YW,{...g(t,i.length),children:e},t)))})})})},dn=(0,u._F)(h.A,{width:"auto",margin:"40px auto"}),cn=(0,u._F)(P.A,{margin:"40px auto"}),un=(0,u.I4)("div",(()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),pn=(0,u.I4)("div",(e=>{let{$isFeedRefresh:t}=e;return{...t?{paddingBottom:"20px"}:{}}})),gn=(0,u.I4)("div",(()=>({display:"inline-flex",flex:"0 0 auto",marginTop:"8px"}))),hn=(0,u.I4)("h2",(e=>{let{$theme:t}=e;return{...t.typography.DisplayBoldXSmall,marginTop:"8px",display:"inline-block"}})),mn=(0,u.I4)("div",(e=>{let{$isHomeFeed:t}=e;return{gridColumn:t?"2 / 4":"1 / 4"}})),yn=(0,u.I4)("div",{marginBottom:"-16px"}),fn=e=>{const t=(0,n.W6)(),i=(0,o.zy)(),u=(0,N.Ay)(),h=(0,Aa.A)(),{shouldShowBanner:m}=(0,gi.A)("feed"),y=(0,d.c)()("loading"),{setA11yStatusMessage:f}=(0,g.DP)(),I=(0,za.Mj)();(0,a.useEffect)((()=>{I.remove("uev2.viewed-stores")}),[I]),(0,a.useEffect)((()=>{e.loadingNextPage&&f(y)}),[f,e.loadingNextPage,y]);const b=(0,p.A)(e.feedItems),x=(0,a.useRef)(null);(0,a.useEffect)((()=>{e.loadingNextPage||x.current&&x.current.focus()}),[e.loadingNextPage]);const A={storeTitleTypography:"LabelLarge",storeItemMetaTopRowPadding:"12px 0 0"},{showEuDisclaimer:v}=(0,Na.A)();(0,a.useEffect)((()=>{v&&u("eats:eu_disclaimer_feed_impression",{hasBottomSheet:Boolean(e.bottomSheet)})}),[v,e.bottomSheet,u]),(0,Ba.A)();const{shouldShowSwitchToPickup:S,showSwitchToPickup:C}=(0,Ma.A)();(0,a.useEffect)((()=>{S&&e.serviceBottomSheet&&(C(e.serviceBottomSheet),u("eats:feed_low_courier_supply_bottom_sheet_inclusion"))}),[S,C,e.serviceBottomSheet,u]);const _=e.feedItems.some((e=>"EATER_MESSAGE_FEED"===e.type&&"INFEED_BANNER"===(0,oi.KN)(e.eaterMessage))),L=(0,ui.A)(),w=(0,B.A)(),P=(0,z.A)("can_enable_cs_other_entrypoint_xlb"),{aisleCategory:k}=(0,Ra.A)(),$=w&&!P;(0,a.useEffect)((()=>{e.storesMap&&!(0,Wa.A)(e.storesMap)&&u("eats:legacy_feed_stores_map_payload")}
1),[u,e.storesMap]);const D=(0,a.useMemo)((()=>{for(const t of e.feedItems)if("CANONICAL_PRODUCT"===t.type)return!0;return!1}),[e.feedItems]),O=(0,a.useMemo)((()=>e.customNumberOfColumns?e.customNumberOfColumns:e.shouldDisplayStoreCardRedesign&&e.seoSearchEnabled||e.seoPaginatedStoresEnabled?1:e.seoCardNewDesignEnabled||e.seoSearchEnabled?2:D?5:3),[e.customNumberOfColumns,e.shouldDisplayStoreCardRedesign,e.seoSearchEnabled,e.seoPaginatedStoresEnabled,e.seoCardNewDesignEnabled,D]),F=(0,a.useMemo)((()=>e.feedItems.some((e=>"EMPTY_STATE"===e.type&&i.pathname.includes("/search")))),[e.feedItems,i.pathname]),R=(0,a.useMemo)((()=>({entrypoint:new URLSearchParams(i.search).get("entrypoint")||void 0})),[i.search]),M=(0,z.A)("refresh_feed_store_cards"),W=(0,ci.A)(),H=(0,Qr.A)();return(0,Y.FD)(jr.tn,{children:[v?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(ii.A,{title:e.title,subtitle:e.subtitle,bottomSheet:e.bottomSheet,titleTypography:"DisplayBoldXSmall"}),(0,Y.Y)(ct.Ay,{$height:24})]}):(0,Y.Y)(Dr.A,{title:e.title,subtitle:(0,Ha.x)(e.subtitle),titleTypography:e.titleTypography??"DisplayBoldXSmall"}),m?(0,Y.Y)(pi.A,{pageType:"feed"}):null,(0,Y.Y)(U.Ay,{$gridRowGap:_||e.shouldDisplayStoreCardRedesign&&e.seoSearchEnabled?0:e.useFeedRefreshGap?Ee.ii:e.gridRowGap,$gridColumGap:e.useFeedRefreshGap?Ee.a6:24,$numColumns:O,$gridMediaTemplateColumns:e.gridMediaTemplateColumns,"data-test":"feed-desktop","data-testid":"feed-desktop",children:e.feedItems.map(((n,o)=>{const d=e.feedItems[o-1]?.type,c=d&&"STORE"===d,u=e.feedItems.length-1===o,p=o===b?.length;switch(n.type){case"SHORTCUTS":{const e=""!==h;return(0,Y.FD)(U.O4,{children:[0===o?(0,Y.Y)(ct.Ay,{$height:24}):(0,Y.Y)(yn,{}),(0,Y.Y)(K,{"data-testid":"desktop-shortcut",shortcuts:n.shortcuts,shortcutsMeta:n.analyticsLabel,alignment:e?"flex-start":"center"}),e||n.hideLineSeparator?null:(0,Y.Y)(E.A,{$margin:"24px 0 0"})]},n.uuid)}case"REORDER_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Ft,{...n})},n.uuid);case"ANNOUNCEMENT":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(q.A,{item:n,feedIndex:o,pageType:e.pageType??"unknown"})},n.uuid);case"CANONICAL_PRODUCT":return(0,Y.Y)($r.A,{item:n.payload.canonicalProductPayload,pageType:e.pageType,location:i},n.uuid);case"SINGLE_CATALOG_ITEM":return(0,Y.Y)(Ea.A,{item:n.payload,position:o,feedItemUuid:n.uuid,pageType:e.pageType},n.uuid);case"CATALOG_ITEMS_CAROUSEL_PAYLOAD":return W?(0,Y.Y)(U.O4,{children:(0,Y.Y)(ka,{items:n.payload.items,header:n.payload.header,storeUuid:n.payload.storeUuid,position:o,trackingCode:n.payload.trackingCode,feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,pageType:e.pageType})},n.uuid):(0,Y.Y)(U.O4,{children:(0,Y.Y)(Pa,{items:n.payload.items,header:n.payload.header,storeUuid:n.payload.storeUuid,position:o,trackingCode:n.payload.trackingCode,feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,pageType:e.pageType,feedItem:n})},n.uuid);case"REGULAR_STORE":{const t="actionUrl"in n.store&&"string"==typeof n.store.actionUrl&&"cornershop"===(0,vt.A)(n.store.actionUrl);if($&&t)return null;if("LARGE_LAYOUT"===n.store.layoutType)return(0,Y.Y)(U.O4,{children:(0,Y.Y)(ga,{store:n.store,position:o,analyticsLabel:n.analyticsLabel,items:[],pageType:e.pageType})},n.uuid);const r=M?di.A:l.A;return(0,Y.Y)(a.Fragment,{children:(0,Y.Y)(U.fh,{"data-testid":"store-card",children:e.seoCardNewDesignEnabled?(0,Y.Y)(ti,{store:n.store,location:i,linkRef:p?x:void 0,showFavorite:e.showFavorite,pageType:e.pageType,position:o,titleTypography:"LabelLarge",heroImageHeight:L,heroImageSizes:"25vw",analyticsLabel:n.analyticsLabel,seoContent:e.seoContent&&e.seoContent[n.store.storeUuid||""]}):(0,Y.Y)(pn,{$isFeedRefresh:W,children:(0,Y.Y)(r,{store:n.store,location:i,linkRef:p?x:void 0,showFavorite:e.showFavorite,pageType:e.pageType??"unknown",position:o,titleTypography:"LabelLarge",heroImageHeight:L,heroImageSizes:"25vw",analyticsLabel:n.analyticsLabel})})})},n.uuid)}case"FEATURED_STORES":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Fr.A,{featuredStores:n.payload,feedItemUuid:n.uuid,customEventMetadata:{isEmptySearchState:F,position:String(o)},position:o,feedItem:n})},n.uuid);case"STORE_OFFERS_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(rn,{trackingCode:n.payload?.trackingCode,header:n.payload?.header,storeOffers:n.payload?.storeOffers,feedItemUuid:n.uuid,feedItemPosition:o})},n.uuid);case"REGULAR_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Y.FK,{children:e.seoCardNewDesignEnabled?(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(Er,{carousel:n.carousel,showFavorite:e.showFavorite,feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,seoContent:e.seoContent,customEventMetadata:{isEmptySearchState:F},pageMargin:Ee.yO,position:o,pageType:e.pageType}),u?null:(0,Y.Y)(E.A,{$margin:"32px 0 0"})]}):(0,Y.Y)(Y.FK,{children:(0,Y.Y)(wr.Ay,{carousel:n.carousel,carouselUuid:n.uuid,showFavorite:e.showFavorite,feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,customEventMetadata:{isEmptySearchState:F},pageMargin:Ee.yO,position:o,itemType:n.type,pageType:e.pageType,analyticsUuid:n.uuid,feedItem:n})})})},n.uuid);case"SDUI_STORE_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Fa,{feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,sduiCarou
1sel:n.payload,pageMargin:Ee.yO,position:o,feedItem:n,pageType:e.pageType})},n.uuid);case"MINI_STORE_WITH_PREVIEW_CAROUSEL":return n?.payload?.cards?.length?(0,Y.Y)(U.O4,{children:(0,Y.Y)(fa,{feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,draftOrderCarousel:n.payload,feedItem:n})},n.uuid):null;case"QUICK_ADD_ITEMS_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Sa,{items:n.payload.items,header:n.payload.header,footer:n.payload.footer,analyticsLabel:n.analyticsLabel,storeUuid:n.payload.storeUuid,isLeftNavHidden:e.isLeftNavHidden,position:o,pageType:e.pageType,feedItemUuid:n.uuid,hideNoFollow:n.hideNoFollow,feedItem:n})},n.uuid);case"THIRD_PARTY_STORE_CAROUSEL":return $?null:(0,Y.Y)(U.O4,{children:(0,Y.Y)(kr,{carousel:n.carousel,feedItemUuid:n.uuid,position:o})},n.uuid);case"LIST_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Je,{carousel:n.carousel,showFavorite:e.showFavorite,feedItemUuid:n.uuid,analyticsLabel:n.analyticsLabel,position:o,itemType:n.type,pageType:e.pageType,analyticsUuid:n.uuid,feedItem:n})},n.uuid);case"STORE":{const t=e.storesMap[n.uuid];return t?e.seoSearchEnabled?e.shouldDisplayStoreCardRedesign?(0,Y.Y)(U.fh,{children:(0,Y.Y)($t,{store:t,location:i,pageType:e.pageType,position:o,maxIndex:e.feedItems.length-1,titleTypography:"LabelMedium",heroImageHeight:L,heroImageSizes:"25vw",seoSearchEnabled:e.seoSearchEnabled,analyticsLabel:n.analyticsLabel,trackingCode:n.trackingCode,seoContent:e.seoContent&&e.seoContent[n.uuid||""]})},n.uuid):(0,Y.Y)(a.Fragment,{children:(0,Y.Y)(U.fh,{children:(0,Y.Y)(ai.A,{store:t,location:i,linkRef:p?x:void 0,pageType:e.pageType,position:o,titleTypography:"LabelLarge",heroImageHeight:L,heroImageSizes:"25vw",seoSearchEnabled:e.seoSearchEnabled,analyticsLabel:n.analyticsLabel,trackingCode:n.trackingCode,seoContent:e.seoContent&&e.seoContent[n.uuid||""]})})},n.uuid):(0,Y.Y)(a.Fragment,{children:(0,Y.Y)(U.fh,{children:(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(s.A,{store:t,heroImageHeight:L,favoriteButtonSize:"small",showFavorite:e.showFavorite,location:i,linkRef:p?x:void 0,trackingCode:n.trackingCode,pageType:e.pageType,position:o,styleOverrides:A,analyticsLabel:n.analyticsLabel,numDishes:(n.dishes||[]).slice(0,1).length}),(0,Y.Y)(_r,{dishes:(n.dishes||[]).slice(0,1),storeSlug:t.slug})]})})},n.uuid):null}case"STORES":return(0,Y.Y)(Gr,{pageType:e.pageType,linkRef:p?x:void 0,shouldDisplayStoreCardRedesign:e.shouldDisplayStoreCardRedesign,seoSearchEnabled:e.seoSearchEnabled,showFavorite:e.showFavorite,initialStores:n.stores,initialStoresMap:e.storesMap,initialTotalPages:e.seoPaginatedTotalPages});case"MINI_STORE":{const t="actionUrl"in n.store&&"string"==typeof n.store.actionUrl&&"cornershop"===(0,vt.A)(n.store.actionUrl);if($&&t)return null;const r=M?Lr:ar;return(0,Y.Y)(a.Fragment,{children:"SIMPLIFIED_LAYOUT"===n.store.layout?(0,Y.Y)(U.fh,{children:(0,Y.Y)(Ca.A,{size:"DESKTOP_CIRCLE",store:n.store,analyticsLabel:n.analyticsLabel,showFavorite:e.showFavorite,pageType:e.pageType,position:o,feedItem:n})}):"REGULAR_CIRCLE_IMAGE_LAYOUT"===n.store.layout?(0,Y.Y)(U.fh,{children:(0,Y.Y)(Be.A,{size:"DESKTOP_CIRCLE",store:n.store,analyticsLabel:n.analyticsLabel,pageType:e.pageType,feedItem:n})},n.uuid):(0,Y.Y)(U.fh,{children:(0,Y.Y)(r,{store:n.store,location:i,linkRef:p?x:void 0,showFavorite:e.showFavorite,pageType:e.pageType,position:o,titleTypography:"LabelLarge",heroImageHeight:L,heroImageSizes:"25vw",analyticsLabel:n.analyticsLabel,feedItem:n})},n.uuid)},n.uuid)}case"MINI_STORE_WITH_ITEMS":return n.miniStoreWithItems?.standardItemsPayload&&n.miniStoreWithItems?.store?(0,Y.Y)(U.O4,{children:(0,Y.Y)(Or.A,{store:n.miniStoreWithItems.store,standardItemsPayload:n.miniStoreWithItems.standardItemsPayload,analyticsLabel:n.analyticsLabel,feedItemUuid:n.uuid,index:o,feedItem:n,pageType:e.pageType})},n.uuid):""!==k?(0,Y.Y)(U.O4,{children:(0,Y.Y)(Ua,{store:n.miniStoreWithItems.store,items:n.miniStoreWithItems.items||[],analyticsLabel:n.analyticsLabel,feedItemUuid:n.uuid,feedItem:n,pageType:e.pageType,position:o})},n.uuid):(0,Y.Y)(U.O4,{children:(0,Y.Y)(Ji,{store:n.miniStoreWithItems.store,analyticsLabel:n.analyticsLabel,position:o,items:n.miniStoreWithItems.items||[],pageType:e.pageType})},n.uuid);case"REGULAR_STORE_WITH_ITEMS":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(ga,{store:n.store,analyticsLabel:n.analyticsLabel,position:o,items:n.itemsV2||[],pageType:e.pageType})},n.uuid);case"STORE_CAROUSEL":return(0,Y.FD)(U.O4,{children:[c?(0,Y.Y)(E.A,{$color:"backgroundPrimary",$margin:"0 0 16px"}):null,(0,Y.Y)(Ot.Ay,{title:n.title,subtitle:n.subtitle,stores:n.stores,storesMap:e.storesMap,carouselId:n.carouselId,heroImageHeight:qe._h,feedItemUuid:n.uuid,showFavorite:e.showFavorite,analyticsLabel:n.analyticsLabel,styleOverrides:A}),u?null:(0,Y.Y)(E.A,{$color:"backgroundPrimary",$margin:"16px 0 0"})]},n.uuid);case"CUISINE_CAROUSEL":return(0,Y.FD)(U.O4,{children:[c||0===o&&1!==e.feedItems.length?(0,Y.Y)(E.A,{$color:"backgroundPrimary",$margin:"0 0 16px"}):null,(0,Y.Y)(be,{items:n.items,viewAllLocation:n.url,analyticsLabel:n.analyticsLabel,feedItemUuid:n.uuid,customEventMetadata:{isEmptySearchState:F},entrypoint:R.entrypoint}),u?null:(0,Y.Y)(E.A,{$color:"backgroundPrimary",$margin:"16px 0 0"})]},n.uuid);case"ACTIONABLE_MESSAGE":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Le,{title:n.title,subtitle:n.subtitle,buttonText:n.buttonText,position:o,pageType:e.pageType,feedItem:n})},n.uuid);case"GIVEGET_CTA":return(0,Y.Y)(li.A,{capability:si.c.giveGet,children:(0,Y.Y)(U.O4,{children:(0,Y.Y)(T,{title:n.title,linkText:n.linkText})},n.uuid)});case"SECTION":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(hn,{children:"string"==typeof n.title?n.title:n.title?.text})},n.uuid);case"SECTION_HEADER":{const a=()=>{n.trailingButtonAction?.openLinkPayload?.webUrl&&t.push(n.trailingButtonAction?.openLinkPayload?.webUrl),"RESET_FILTERS"===n.trailingButtonAction?.type&&t.replace((0,we.jo1)(i,["sortAndFilters"]))};return(0,Y.Y)(U.O4,{children:(0,Y.FD)(un,{children:[(0,Y.Y)(hn,{children:n.richTextSectionTitle?"RESET_FILTERS"===n.trailingButtonAction?.type?(0,Y.Y)(Ia.Ay,{text:n.richTextSectionTitle}):(0,nn.Tl)(n.richTextSectionTitle):"string"==typeof n.title?n.title:n.title?.text}
1),e.shouldShowInlineSeeAllStoresButton&&n.trailingButton?(0,Y.Y)(gn,{children:(0,Y.Y)(ri.A,{viewModel:n.trailingButton,onClick:a})}):null]})},n.uuid)}case"EMPTY_STATE":return n.seoPageType?(0,Y.Y)(mn,{children:(0,Y.Y)(Va.A,{emptyState:n,pageType:n.seoPageType})},n.uuid):(0,Y.Y)(mn,{$isHomeFeed:[Ee.KW,Ee.ks].includes(n.uuid)||e.useFeedRefreshGap,children:(0,Y.Y)(Me,{emptyState:n})},n.uuid);case"ORDERS_NEAR_YOU_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(st,{title:n.title,subtitle:n.subtitle,stores:n.stores,isDaytime:n.isDaytime,backupImageUrl:n.backupImageUrl,analyticsLabel:n.analyticsLabel})},n.uuid);case"ITEM_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Yr,{header:n.header,items:n.items,analyticsLabel:n.analyticsLabel,heroImageHeight:L,feedItemUuid:n.uuid,position:o,feedItem:n,pageType:e.pageType})},n.uuid);case"LINE_SEPARATOR":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(E.A,{$margin:n.margin})},n.uuid);case"BACKGROUND_IMAGE_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(xr,{stores:n.stores,carouselHeader:n.carouselHeader,carouselBackground:n.carouselBackground,analyticsLabel:n.analyticsLabel,position:o,feedItemUuid:n.uuid})},n.uuid);case"EATER_MESSAGE_FEED":switch((0,oi.KN)(n.eaterMessage)){case"BILLBOARD":return k?null:(0,Y.Y)(U.O4,{children:(0,Y.Y)(ni.A,{eaterMessage:n.eaterMessage,feedIndex:o})},n.uuid);case"INFEED_BANNER":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(Ze.R,{$ignorePadding:!0,children:(0,Y.Y)(ni.A,{eaterMessage:n.eaterMessage,feedIndex:o})})},n.uuid);case"COLLECTION_CARD":case"AISLE_FEED_BILLBOARD":case"AISLE_LEGO_FEED_BILLBOARD":case"HOME_FEED_GR_PROMO":case"MANUAL_CAROUSEL":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(ni.A,{eaterMessage:n.eaterMessage,feedIndex:o})},n.uuid)}return null;case"DIVIDER":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(E.A,{$margin:"4px 0 8px"})},n.uuid+o+"_divider");case"MARKUP_TEXT":return"lego"===e.pageType?(0,Y.Y)(U.O4,{children:(0,Y.Y)(r.N_,{to:n.actionUrl,onClick:e=>{if("adsInfo"===new URLSearchParams(n.actionUrl).get("mod"))return e.preventDefault(),e.stopPropagation(),void t.push((0,we.Zyy)(i,"adsInfo"))},children:(0,Y.Y)(hi.A,{badge:{textFormat:n.text}})})},n.uuid):null;case"GIFT_CARD_PAYLOAD":return(0,Y.Y)(U.O4,{children:(0,Y.Y)(sn,{analyticsLabel:n.analyticsLabel,feedItemUuid:n.uuid,payload:n.payload})},n.uuid);default:return null}}))}
1),e.shouldShowInlineSeeAllStoresButton?null:(0,Y.FD)(Y.FK,{children:[e.loadingNextPage?(0,Y.Y)(cn,{}):null,!e.loadingNextPage&&e.fetchNextPage?(0,Y.Y)(dn,{onClick:e.fetchNextPage,children:(0,Y.Y)(c.H,{id:"feed.showMore"})}):null]}),H?(0,Y.Y)(Xr.A,{}):null]})};fn.displayName="FeedDesktop";const In=fn},56517:(e,t,i)=>{e.exports=i.p+"004b44ece8a808e7.svg"},62795:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var a=i(41967),r=i(60845),n=i(53287),o=i(49684),l=i(39182),s=i(40014);const d=(0,a.I4)("h1",(e=>{let{$theme:t,$titleTypography:i}=e;return{...t.typography[i],margin:"16px 0px 0px 0px"}})),c=(0,a.I4)("h2",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphSmall}})),u=(0,a.I4)("div",{display:"flex",flexDirection:"row",margin:"8px 0px 0px 0px",alignItems:"center"}),p=(0,a.I4)("div",{left:"168px",position:"absolute"}),g=(0,a._F)(r.ej,{maxWidth:`calc(${.25*(l.tT-2*l._o)}px)`}),h=e=>{let{title:t,subtitle:i,bottomSheet:a,titleTypography:l}=e;return!t&&!i||"string"==typeof i?null:(0,s.FD)(s.FK,{children:[t?(0,s.Y)(d,{$titleTypography:l,children:t}):null,i?(0,s.Y)(u,{children:(0,s.Y)(r.Ay,{id:"eu-disclaimer",children:e=>{let{isHovering:t}=e;return(0,s.FD)(s.FK,{children:[(0,s.Y)(c,{children:(0,s.Y)(o.A,{badge:i})}),a?(0,s.Y)(p,{children:(0,s.Y)(g,{$isVisible:t,children:(0,s.Y)(n.Q,{bottomSheet:a})})}):null]})}})}):null]})}},64659:(e,t,i)=>{"use strict";i.d(t,{A:()=>Y});var a=i(41967),r=i(66292),n=i(86105),o=i(43316),l=i(18297),s=i(287),d=i(5812),c=i(65888),u=i(17283),p=i(30184),g=i(98408),h=i(40014);const m=(0,a.I4)(o.A,(e=>{let{$theme:t}=e;return{width:"90px",height:"83px",marginRight:t.sizing.scale800}})),y=(0,a.I4)(o.A,(e=>{let{$theme:t}=e;return{width:t.sizing.scale600,height:t.sizing.scale600,marginLeft:t.sizing.scale100}})),f=(0,a.I4)("div",{display:"flex",flexDirection:"row",alignItems:"center"}),I=(0,a.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.DisplayBold3XSmall,marginBottom:t.sizing.scale300,color:t.colors.contentPrimary}})),b=(0,a._F)(l.Yq,(e=>{let{$theme:t,$color:i,$typography:a,$removeUnderline:r}=e;return{...a?t.typography[a]:t.typography.LabelMedium,...i?{color:t.colors[i]}:{},...r?{textDecoration:"none"}:{}}})),x=(0,a._F)(l.JV,(e=>{let{$theme:t,$color:i,$typography:a,$removeUnderline:r}=e;return{...a?t.typography[a]:t.typography.LabelMedium,...i?{color:t.colors[i]}:{},...r?{textDecoration:"none"}:{}}})),A=(0,a.I4)("div",(e=>{let{$theme:t}=e;return{...t.typography.ParagraphSmall}})),v=(0,a.I4)("span",(e=>{let{$theme:t}=e;return{textDecoration:"underline",whiteSpace:"nowrap",marginLeft:t.sizing.scale0}})),Y=e=>{let{item:t,feedIndex:i,pageType:o,overwriteColor:l}=e;const Y=(0,n.zy)(),[S,C]=(0,a.c6)(),_=t.uuid,L=t.title&&t.message?t.title:t.message,w=t.title&&t.message?t.message:null,T=t.messageCTA,U=t.url,E=(0,c.z)({impressionEventName:"marketplace_scrolled",payload:(0,u.YE)({feedContext:o,feedIndex:i,feedItem:t})}),P=(0,p.$)();if(P&&!L&&!w&&!T)return null;if(t?.style===d.dp.CENTER_STACK_BOTTOM_IMAGE&&t.bottomImageUrl)return(0,h.Y)("div",{ref:E,children:(0,h.Y)(s.A,{bottomImageUrl:t.bottomImageUrl,title:L,message:w})});const k=Boolean(t.bottomSheet),$=Boolean(U)&&!U.startsWith("http"),D=Boolean(U)&&U.startsWith("http"),O=(0,h.FD)("div",{className:S({display:"flex",alignItems:"center"}),children:[t.iconUrl&&t.title?(0,h.Y)(m,{src:t.iconUrl}):null,(0,h.FD)("div",{children:[t.title?(0,h.Y)(I,{children:t.title}):null,(0,h.FD)("div",{className:S({color:l?C.colors[l]:C.colors.contentTertiary,display:"flex",alignItems:"center"}),children:[t.message,T?(0,h.Y)(v,{children:T}):null,P&&(0,g.jq)(t)&&t.iconUrl&&!t.title?(0,h.Y)(y,{src:t.iconUrl}):null]})]})]});return(0,h.Y)(f,{ref:E,children:k?(0,h.Y)(b,{to:(0,r.Zyy)(Y,"feedAnnouncement",{feedItemUuid:_}),$color:l||"contentTertiary",$typography:"ParagraphSmall",$removeUnderline:!0,children:O}):$?(0,h.Y)(b,{to:U,$color:l||"contentTertiary",$typography:"ParagraphSmall",$removeUnderline:!0,children:O}):D?(0,h.Y)(x,{href:U,target:"_blank",$color:l||"contentTertiary",$typography:"ParagraphSmall",$removeUnderline:!0,children:O}):(0,h.Y)(A,{children:O})})}},66717:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(40304),r=i(92858),n=i(35360),o=i(38647);function l(){let e=n.$4;const t=(0,a.W4)({...r.z.web_feed_refresh_desktop_store_hero_image_height,defaultValue:0});return(0,o.A)()&&t&&(e=t),e}},67537:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var a=i(90417),r=i(50371),n=i(86105),o=i(65416),l=i(27335),s=i(91156),d=i(12615);const c=(e,t)=>{const{slugName:i,secondarySlugName:c}=(0,r.g)(),{pathname:u}=(0,n.zy)(),p=(0,s.Ay)(),g=(0,d.A)(),h=(0,a.useRef)(g),m={data:null,error:null,hasLoaded:!1,isLoading:!1},y=(0,o.d4)((e=>e.seoFeed[u]||m)),f=!y.isLoading&&!y.hasLoaded&&!y.error||h.current!==g,I=(0,l.A)("getSeoFeedV1"),b=(0,a.useCallback)((function(){let{sortAndFilters:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return I({pathname:u,contextOverride:t,sortAndFilters:e})}),[I,u,t]);return(0,a.useEffect)((()=>{p("eats:seo_feed",{seoFeed:{slugName:i,secondarySlugName:c,type:e,overrideElementLayoutType:t?.elementLayoutType,overrideCacheType:t?.cacheType}})}),[i,c,p,e,t]),(0,a.useEffect)((()=>{h.current=g})),{getSeoFeed:b,shouldGetSeoFeed:f,seoFeed:y}}},68692:(e,t,i)=>{"use strict";i.d(t,{A:()=>U});var a=i(90417),r=i(11862),n=i(41967),o=i(86105),l=i(86457),s=i(12304),d=i(67348),c=i(18297),u=i(42957),p=i(96132),g=i(35360),h=i(66292),m=i(72673),y=i(98177),f=i(76366);var I=i(98934),b=i(6198),x=i(65416),A=i(37959),v=i(14192),Y=i(40014);const S=function(e){let{storeUuid:t,standardItemsPayload:i,itemsPerPage:r,trackingCode:n,scrollableCarousel:l,shouldLazyLoadItemImages:s=!0,parentOrderUuid:d}=e;const[c,u]=a.useState(!0),p=(0,o.zy)(),[m,S]=a.useState(!0),{cartCountSummary:C,cart:_,hasCartToLoad:L}=(0,b.BP)(t),{syncItems:w,quantities:T}=(0,x.d4)((e=>e.quickAdd));a.useEffect((()=>{(!_.isLoading&&_.hasLoaded||!L)&&(S(!1),u(!1))}),[c,u,_.hasLoaded,_.isLoading,L]),a.useEffect((()=>{_.error&&u(!0)}),[_.error]);const{containerRef:U,getPageChunks:E,getPageProps:P,supportsScrollSnapping:k,textDirection:$}=l,D=i.catalogItems||[],O=i.itemStyleMetadata,F=D.map(((e,i)=>{const a=e?.uuid||"",o=C[a]??0,l=T[a]??(0,A._j)(),u=Boolean(c||w[a]),b=function(e,t){if(!e||!t)return e;return(0,h.Nel)({location:e,newQueryParams:{poid:t},persistentQueryParams:h.iaX})}(((e,t,i,a,r)=>e?(0,h.qO8)(e,{storeUuid:t,sectionUuid:i,subsectionUuid:a,itemUuid:r,showSeeDetailsCTA:!0},(0,y.z)(f.g.GLOBAL_SEARCH)):"")(p,t,e?.sectionUuid||"",e?.subsectionUuid||"",a),d);return(0,Y.Y)(v.q7,{$textDirection:$,$margin:g.YK,$pageSize:r,children:(0,Y.Y)(I.A,{storeUuid:t,sectionUuid:e.sectionUuid||"",subsectionUuid:e?.subsectionUuid||"",item:e,catalogSectionType:"HORIZONTAL_GRID",itemStyle:O,surface:f.g.GLOBAL_SEARCH,isGrocery:!0,cartItemCount:o,showQuickViewEntryPoint:!1,isOpen:!0,quickAddCount:l,syncItemQuantity:u,quickAddDisabled:m,itemUrl:b,trackingCode:n,position:i,isQuickView:!0,lazyLoad:s})},i)}
1)).filter(Boolean),R=E(F,r);return(0,Y.Y)(v.mO,{ref:U,$supportsScrollSnapping:k,children:R.map(((e,t,i)=>(0,Y.Y)(v.YW,{$pageMargin:g.YK,...P(t,i.length),children:e},t)))})};var C=i(32036);const _=(0,n.I4)("div",{display:"flex",flexDirection:"column",overflow:"hidden"}),L=(0,n._F)(c.Yq,(e=>{let{$theme:t}=e;return{...t.typography.LabelSmall,textDecoration:"none",paddingRight:t.sizing.scale600}})),w=(0,n.I4)("div",{display:"flex",alignItems:"center",justifyContent:"flex-end",whiteSpace:"nowrap"}),T=(0,n.I4)("div",(e=>{let{$theme:t,$index:i}=e;return{...0!==i?{borderTop:`1px solid ${t.colors.borderOpaque}`,paddingTop:t.sizing.scale600}:{},display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:t.sizing.scale600}})),U=a.forwardRef((function(e,t){let{store:i,analyticsLabel:a,feedItemUuid:n,standardItemsPayload:c,index:y,useLazyLoadImage:f,feedItem:I,pageType:b,shouldLazyLoadItemImages:x=!0,parentOrderUuid:A,onClick:v}=e;const U=(0,o.zy)(),{windowWidth:P}=(0,u.A)(),k=(0,h.jo1)(U,["entryPoint"]),{userQuery:$}=(0,h.g$k)(U,["userQuery"]),D=(0,C.A)(),O=i?.storeUuid||"",F=i.tracking?JSON.stringify(i.tracking):"",R=c.ctaMetadata,M=(0,l.A)({scrollOffset:g.YK}),{isPreviousPageDisabled:N,isNextPageDisabled:B,handlePageChange:z}=M,W=P>1200?6:P>990?5:4,H=c.catalogItems||[],V=H.length>W||!1,K=H[0]?.sectionUuid||"",q=E((0,m.DN)(k,i.actionUrl||"",O,K,$),D,A),G=E((0,m.NU)(U,i.actionUrl),D,A),j=q||G;return(0,Y.Y)(_,{ref:t,onClick:v,children:(0,Y.Y)(s.A,{numItems:H.length,carouselLayoutType:"mini-store-with-catalog-items-carousel",trackingCode:F,analyticsLabel:a,carouselUuid:n,children:(0,Y.FD)("section",{children:[(0,Y.FD)(T,{$index:y,children:[(0,Y.Y)(p.A,{store:i,useLazyLoadImage:f,customUrl:q,storeUrl:G,feedItem:I,position:y,pageType:b}),(0,Y.FD)(w,{children:[(0,Y.Y)(L,{to:j,children:R?R.ctaLabel:(0,Y.Y)(r.H,{id:"shared.viewstore"})}),H.length>0?(0,Y.Y)(d.A,{backwardEnabled:!N&&V,forwardEnabled:!B&&V,onPageChange:z}):null]})]}),(0,Y.Y)(S,{standardItemsPayload:c,storeUuid:O,itemsPerPage:W,trackingCode:F,scrollableCarousel:M,shouldLazyLoadItemImages:x,parentOrderUuid:A})]})})})}));function E(e,t,i){"string"==typeof e&&(e=(0,h.IcR)(e,t));const a=(0,h.Nel)({location:e,path:e.pathname,newQueryParams:{poid:i}});return(0,h.GF3)(a)}},92820:(e,t,i)=>{e.exports=i.p+"2bb9bf351a4914b4.json"}}]); 2//# sourceMappingURL=https://sourcemaps.uberinternal.com/raw/web-eats-v2/client-45654-5b2d7e36fc06f378.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.