PageSourceSearch

https://www.mcalistersdeli.com/_next/static/chunks/app/(home)/(category)/page-08da1efc90b77aa4.js

js mcalistersdeli.com collected 2026-09-24 10:20:34 UTC 43,985 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8312],{22034:function(e,t,a){Promise.resolve().then(a.bind(a,59684)),Promise.resolve().then(a.bind(a,70469)),Promise.resolve().then(a.bind(a,97436)),Promise.resolve().then(a.bind(a,86739)),Promise.resolve().then(a.bind(a,596)),Promise.resolve().then(a.bind(a,91502)),Promise.resolve().then(a.bind(a,32810)),Promise.resolve().then(a.bind(a,86947))},36373:function(e,t,a){"use strict";a.d(t,{c:function(){return h}});var n=a(98505),l=a(81695),o=a(85094),i=a(29729),d=a(2263),r=a(70144),s=a(86686),u=a(55264),c=a(79386),v=a(40387);let h=()=>{let{t:e}=(0,n.$G)(),{showApiFailure:t,showToast:a}=(0,v.useToast)(),{cartData:h}=(0,s.CG)(e=>e.cart),m=(0,s.TL)(),p=(0,l.usePathname)(),{push:g}=(0,l.useRouter)();return{getcards:async()=>{try{var e;let t=await (0,o.U2)("".concat(u.Q.wallet));return null===(e=t.data)||void 0===e?void 0:e.data}catch(e){return e.response}},deleteCard:async e=>{try{return(await (0,o.QO)("".concat(u.Q.deletewallet,"/").concat(e))).data}catch(e){return e}},setPrimarycard:async(e,a)=>{try{let t=await (0,c.UjN)("update_card");if(t.token)return(await (0,o.gz)("".concat(u.Q.updatewallet,"/").concat(e),a,"",t)).data;return null}catch(e){var n,l,i,d,r;if((null===(l=e.response)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.code)==="409")return t(null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(d=r.data)||void 0===d?void 0:null===(i=d.errors)||void 0===i?void 0:i[0]);return e}},getSubscription:async()=>{try{return(await (0,o.U2)("".concat(u.Q.subscription,"?offset=0"))).data}catch(e){return e}},getSubscriptionById:async e=>{try{return(await (0,o.U2)("".concat(u.Q.subscription,"/").concat(e))).data}catch(e){var t;throw null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data}},getRenewalHistoryById:async e=>{try{return(await (0,o.U2)("".concat(u.Q.renewalHistory,"/").concat(e,"?offset=0&limit=12"))).data}catch(e){throw e}},updateSubscription:async e=>{try{let t={planType:e.planType,autoRenewEnabled:e.autoRenewEnabled};return e.userWalletTokenId&&(t.userWalletTokenId=e.userWalletTokenId),(await (0,o.gz)("".concat(u.Q.subscription,"/").concat(e.subscriptionId),t)).data}catch(e){throw e}},cancelSubscription:async e=>{try{return(await (0,o.QO)("".concat(u.Q.subscription,"/").concat(e.subscriptionId))).data}catch(e){var t;throw null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data}},completeTeaPassPurchase:async e=>{try{return(await (0,o.v_)("".concat(u.Q.subscription,"/submit"),e)).data}catch(e){var a,n,l,i;t(null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:null===(n=l.errors)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.message)}},addReorderItems:async(t,n,l)=>{var s,c,v;try{let v=await (0,o.v_)("".concat(u.Q.cart,"/").concat((null==h?void 0:h.cartId)||l,"/product/multiple"),t);return m((0,r.Sf)({cartData:null==v?void 0:null===(s=v.data)||void 0===s?void 0:s.data})),a({message:e("reorder.add.items",{count:n}),type:"success",link:[{message:e("reorder.view.cart"),onClick:()=>{m((0,d.pF)({showCart:!0}))}}]}),m((0,i.jW)({orderConfirmationDetails:void 0,orderHistorySection:""})),p!==u.appRoutes.home&&g(u.appRoutes.orderhistory),null==v?void 0:null===(c=v.data)||void 0===c?void 0:c.data}catch(e){throw null==e?void 0:null===(v=e.response)||void 0===v?void 0:v.data}},getNotificationSettingsModule:async()=>{try{var e;let t=await (0,o.U2)(u.Q.notificationSettingsModule);return null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data}catch(e){throw e.response.data}},getNotificationSettingsSignUpModule:async()=>{try{var e;let t=await (0,o.U2)(u.Q.notificationSettingsSignUpModule);return null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data}catch(e){throw e.response.data}}}}},79331:function(e,t,a){"use strict";a.d(t,{S:function(){return o}});var n=a(25158);let l=e=>(e.modules.forEach((t,a)=>{if(t.sys&&(t.fields.templateType?(t.fields.ui=t.fields.templateType,delete t.fields.templateType):t.fields.ui=t.sys.contentType.sys.id,delete t.sys),t.fields)for(let e in t.fields)"object"==typeof t.fields[e]&&(t.fields[e].fields&&(t.fields[e]=t.fields[e].fields),t.fields[e].file&&!t.fields[e].file.url.includes("https")&&(t.fields[e].file.url="https:".concat(t.fields[e].file.url))),Array.isArray(t.fields[e])&&t.fields[e].forEach((a,n)=>{a.fields&&(t.fields[e][n]=a.fields)});e.modules[a]=t.fields,delete e.modules[a].fields}),e),o=()=>{let e=(0,n.createClient)({space:"zqt8tllj2cy0",accessToken:"D74Hvk6WILedDLEZGu_J06gxKX4MZOLPRydn_2FjAVE",environment:"master"});return{getDataByRestFulMethod:async(t,a,n)=>{try{var o;let i=await e.getEntries({content_type:t,limit:1,include:10,"metadata.tags.sys.id[in]":n?[n]:[],"fields.slug":a});return l(null==i?void 0:null===(o=i.items[0])||void 0===o?void 0:o.fields)}catch(e){throw Error(e)}},getAssetMethod:async t=>{var a,n,l;try{let l=await e.getAsset(t);return null==l?void 0:null===(n=l.fields)||void 0===n?void 0:null===(a=n.file)||void 0===a?void 0:a.url}catch(e){throw Error(null==e?void 0:null===(l=e.response)||void 0===l?void 0:l.data)}},getSiteDataByRestFulMethod:async(t,a)=>{try{return await e.getEntries({content_type:null!=t?t:"","metadata.tags.sys.id[in]":[a],"fields.slug[exist]":!0})}catch(e){throw Error(e)}}}}},78602:function(e,t,a){"use strict";a.d(t,{m:function(){return o}});var n=a(85094),l=a(55264);let o=()=>({getRewards:async(e,t)=>{try{return(await (0,n.U2)("".concat(l.Q.rewards,"?event_filter=").concat(e),t)).data}catch(e){return e}},postPromoCode:async(e,t)=>{try{let a=await (0,n.v_)(l.Q.promocode,e,t);return null==a?void 0:a.data}catch(e){return e}},getReferralCode:async()=>{try{return(await (0,n.U2)(l.Q.profileInfo)).data}catch(e){return e}},sendDealsId:async(e,t)=>{try{let a=await (0,n.v_)(l.Q.getQRCodeDeals,e,t);return null==a?void 0:a.data}catch(e){return e}}})},38404:function(e,t,a){"use strict";a.d(t,{j:function(){return o}});var n=a(55264),l=a(85094);let o=()=>({getSuggestedSellDetails:async e=>{try{return(await (0,l.v_)(n.Q.suggestedSell,e)).data}catch(e){return e}},getModulesDetails:async e=>{try{return(await (0,l.U2)("".concat(n.Q.contentModule).concat(e))).data}catch(e){return e}},getTemplateLastUpdatedInfo:async()=>{try{return await (0,l.U2)("".concat(n.Q.contentTemplateLastUpdate))}catch(e){return e}},getTemplateDetails:async e=>{try{return await (0,l.U2)("".concat(n.Q.contentTemplateDetails,"?locationId=").concat(e||"global"))}catch(e){throw Error(e)}}})},66051:function(e,t,a){"use strict";a.d(t,{I:function(){return h}});var n=a(27573),l=a(7653),o=a(51699),i=a(4148),d=a(60529),r=a(10607),s=a(83125),u=a(40387),c=a(78602),v=a(88146);let h=e=>{let{rewardId:t}=e,{loyaltyRewards:a="v2"}=(0,i.Vb)(),{t:h}=(0,o.$G)(),{sendDealsId:m}=(0,c.m)(),{showToast:p}=(0,u.useToast)(),[g,f]=(0,l.useState)(""),y=(0,l.useRef)(!1);(0,l.useEffect)(()=>{t&&!y.current&&(y.current=!0,x())},[]);let x=async()=>{var e;let n={id:Number(t),type:s.Hxo.DEAL},l=await m(n,a);(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.redeemableId)?f(l.data.redemptionTrackingCode):(f(""),p({message:h("reward.dealinrestaurant.errorToast.text"),type:"error"}))};return(0,n.jsxs)("div",{className:"selectedRewardModal",children:[(0,n.jsx)("h1",{className:"singleDealHeading",children:h("teapass.
1claimYourDailyTeaRestaurant.text")}),(0,n.jsxs)("div",{className:"modalBtns",children:[(0,n.jsx)("div",{className:(0,r.Z)("scanQrCode",{scanQRCodeAPIFail:!g}),children:!!g&&(0,n.jsx)(d.ZP,{value:g,level:"H"})}),(0,n.jsx)("p",{className:(0,r.Z)("qrCodeText",{scanQRCodeAPIFailText:!g}),"data-testid":"rewards_code_value",children:g}),(0,n.jsx)("span",{className:"singleDealExp",children:h("teapass.cashierRedemption.text")})]}),(0,n.jsx)(v.default,{className:"termsLink","data-testid":"terms_link",href:s.shI,target:"_blank",children:h("terms.title.text")})]})}},8876:function(e,t,a){"use strict";a.d(t,{h:function(){return f}});var n=a(27573),l=a(7653),o=a(81695),i=a(74765),d=a(51699),r=a(17635),s=a(83125),u=a(40387),c=a(79386),v=a(55264),h=a(86686),m=a(56901),p=a(36373),g=a(7630);let f=e=>{let{storeDatas:t,clickEvent:a,scheduleType:f,scheduleTxt:y,isReorder:x,reorderCartPayload:b,setIsCateringNav:w}=e,{t:S}=(0,d.$G)(),j=(0,h.TL)(),C=(0,h.CG)(e=>e.cart.cartData),{delivery:I}=(0,h.CG)(e=>e.storeSearch),{selectedButtonTab:k}=(0,h.CG)(e=>e.tab),{showToast:_}=(0,u.useToast)(),{createCart:T}=(0,g.r)(),[N,P]=(0,l.useState)(!1),R=(0,o.usePathname)(),U=(0,i.y)(),{push:L}=(0,o.useRouter)(),{addReorderItems:G}=(0,p.c)(),F=U.get("orderId"),O=k===s.rnt,M=f===s.Iap,B=S(O?"order.confirmOrderType.popup.text":M?"order.confirmOrderTypeDeliveryLater.popup.text":"order.confirmOrderTypeDelivery.popup.text",{location:O?null==t?void 0:t.locationName:"",type:k?f?f===s.Iap&&k!==s.rnt?k:"".concat(k," ").concat(f):k:"",interpolation:{escapeValue:!1}}),D=async()=>{var e,a,n,l,o,i,d;P(!0);try{let o=null==C?void 0:C.cartId;if(!(null==C?void 0:C.cartId)){let e=await T(null!==(n=null==t?void 0:t.ngdpId)&&void 0!==n?n:s.atl);o=null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.cartId}await G(b,null!==(l=null==b?void 0:null===(e=b.products)||void 0===e?void 0:e.length)&&void 0!==l?l:0,o)}catch(e){_({message:null!==(d=null==e?void 0:null===(i=e.errors)||void 0===i?void 0:null===(o=i[0])||void 0===o?void 0:o.message)&&void 0!==d?d:S("toaster.api.failure.error.text"),type:"error"})}finally{P(!1),j((0,m.VG)())}};return(0,n.jsxs)("div",{className:"confirmOrderModel w-[287px]",children:[(0,n.jsx)("div",{className:"removeFavoriteModalProps svgCenterAlign orderInfoIcon",children:(0,n.jsx)(r.EY,{})}),(0,n.jsx)("h3",{className:"updatedSavedLocation",children:S("order.confirmOrderType")}),(0,n.jsxs)("p",{className:"confirmationOrderPickup",children:[B,y&&M&&(0,n.jsx)("span",{className:"mt-3 block text-[length:--fontSizeFontSizeRg] leading-[--lineHeightsMd] text-[--colorForegroundContentSubtleEnabled]",children:y})]}),(0,n.jsx)(r.e$,{selectedStore:t,selectedTab:k,deliveryAddress:null==I?void 0:I.deliveryAddress}),(0,n.jsx)(r.pI,{primaryTitle:S("order.confirmOrderType.Confirm"),secondaryTitle:S("order.confirmOrderType.Change"),handleConfirm:()=>{null==a||a(),x&&b&&D()},handleCancel:()=>{null==w||w(!1),j((0,m.VG)()),x&&((0,c.tMq)("".concat(R,"?orderId=").concat(F)),L("".concat(v.appRoutes.orderInfo,"?isEdit=true")))},loading:N}),(0,n.jsx)(r.xG,{})]})}},97436:function(e,t,a){"use strict";a.d(t,{ContentWrap:function(){return s}});var n=a(27573),l=a(81695),o=a(64387),i=a(10607),d=a(55264),r=a(83125);let s=e=>{let{showAuthHeader:t,children:a}=e,s=(0,l.usePathname)(),{status:u}=(0,o.useSession)(),c=(s===d.appRoutes.welcome||s===d.appRoutes.groupOrderWelcome||s===d.appRoutes.tablesideWelcome)&&u===r.iyH.UNAUTH,v=s===d.appRoutes.signuponboarding;return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,i.Z)("auth-layout",{welcomeBg:c}),children:(0,n.jsx)("div",{className:"auth-childlayout",children:a})}),c&&r.hyX&&(0,n.jsx)("div",{className:"subFooter"}),v&&(0,n.jsx)("div",{className:"isOnBoardingPageFooter"})]}):a}},7002:function(e,t,a){"use strict";a.d(t,{h:function(){return g}});var n=a(27573),l=a(51699),o=a(81695),i=a(4148),d=a(40397),r=a(48057),s=a(15514),u=a(83125),c=a(78152),v=a(86686),h=a(56901),m=a(2814),p=a(20280);let g=e=>{let{link:t,pdpStartOrder:a}=e,{t:g}=(0,l.$G)(),f=(0,v.TL)(),{locationFilter:y}=(0,i.Vb)(),{push:x}=(0,o.useRouter)(),{selectedStore:b}=(0,v.CG)(e=>e.storeSearch),{location_denied_warning:w,carvel_location_denied_warning:S}=s.assets,{menuNavigation:j}=(0,c.p)();return(0,n.jsxs)("div",{className:"storeclosedpopup promostrorepopup w-[320px]",children:[(0,n.jsx)("div",{className:"removeFavoriteModalProps svgCenterAlign",children:(0,n.jsx)(d.b,{IS_AA:u.bCn,IS_CARVEL:u.hyX,WarningAAIconProps:w,WarningFadedIconProps:u.hyX?S:w,id:"bt
1n_locationnotfound"})}),(0,n.jsx)("h3",{className:"updatedSavedLocation",children:g((null==b?void 0:b.locationName)?"promo.location.notavailable":"promo.location.unavailable",{locationName:null==b?void 0:b.locationName,interpolation:{escapeValue:!1}})}),(0,n.jsxs)("div",{className:"mt-6 flex flex-col gap-4",children:[(0,n.jsx)(r.zx,{label:g("promo.location.button"),"data-testid":"promo_choose_new_location_Btn",className:"buttonPrimary px-3",onClick:()=>{y&&f((0,m.Xc)({filterToggle:!0})),a&&f((0,p.OL)({pdpStartOrderSlice:!0})),f((0,p.OL)({homeStartOrder:!0})),x(t),f((0,h.VG)())}}),(0,n.jsx)(r.zx,{label:g(a?"menu.searchResults.backtomenu.title":"pdp.modal.fudgiewhale.remove.button.cancel.text"),"data-testid":"no_go_back",className:"buttonPrimary px-3",variant:"secondary",onClick:()=>{f((0,h.VG)()),a&&x(j(null==b?void 0:b.locationName,null==b?void 0:b.ngdpId))}})]})]})}},14300:function(e,t,a){"use strict";a.d(t,{HomeHeroBannerModule:function(){return h}});var n=a(27573),l=a(48057);let o=e=>"object"==typeof e&&null!==e&&"file"in e,i=e=>{if(e){if("string"==typeof e)return e||void 0;if(o(e)){var t,a,n,l,i,d,r,s,u,c,v,h;let o={url:null!==(u=null===(t=e.file)||void 0===t?void 0:t.url)&&void 0!==u?u:e.url,width:null!==(c=null===(l=e.file)||void 0===l?void 0:null===(n=l.details)||void 0===n?void 0:null===(a=n.image)||void 0===a?void 0:a.width)&&void 0!==c?c:e.width,height:null!==(v=null===(r=e.file)||void 0===r?void 0:null===(d=r.details)||void 0===d?void 0:null===(i=d.image)||void 0===i?void 0:i.height)&&void 0!==v?v:e.height,title:e.title,description:e.description,contentType:null!==(h=null===(s=e.file)||void 0===s?void 0:s.contentType)&&void 0!==h?h:e.contentType};return o.url?o:void 0}return e.url?e:void 0}},d=e=>(null==e?void 0:e.trim())||void 0,r=e=>!!e&&("string"==typeof(null==e?void 0:e.text)||"string"==typeof(null==e?void 0:e.deeplink)||"string"==typeof(null==e?void 0:e.url)),s=e=>{if(!e)return;let t=e.filter(r).map(e=>{let t=d(e.text),a=d(e.deeplink)||d(e.url);return t&&a?{label:t,href:a}:void 0}).filter(e=>!!e);return t.length?t:void 0},u=e=>{let t=null==e?void 0:e.items;if(!Array.isArray(t))return;let a=t.filter(e=>!!e);return a.length?a:void 0},c=e=>{var t,a,n,l,o,d,r,u,c,v,h,m,p;return e.size?{size:e.size,variant:e.variant,headline_sm:null!==(t=e.headline_sm)&&void 0!==t?t:e.headlineSm,headline_md:null!==(a=e.headline_md)&&void 0!==a?a:e.headlineMd,headline_lg:null!==(n=e.headline_lg)&&void 0!==n?n:e.headlineLg,headline_mobile:null!==(l=e.headline_mobile)&&void 0!==l?l:e.headlineMobile,subheading_sm:null!==(o=e.subheading_sm)&&void 0!==o?o:e.subheadingSm,subheading_lg:null!==(d=e.subheading_lg)&&void 0!==d?d:e.subheadingLg,image_desktop:i(null!==(r=e.image_desktop)&&void 0!==r?r:e.imageDesktop),image_mobile:i(null!==(u=e.image_mobile)&&void 0!==u?u:e.imageMobile),decorativeBackground:i(e.decorativeBackground),decorativeBackgroundOpacity:e.decorativeBackgroundOpacity,video_mobile:i(null!==(c=e.video_mobile)&&void 0!==c?c:e.videoMobile),video_desktop:i(null!==(v=e.video_desktop)&&void 0!==v?v:e.videoDesktop),ctas:s(e.ctas),tac:e.tac,tacLink:e.tacLink,displayOnMobile:e.displayOnMobile,video_autoplay:null!==(h=e.video_autoplay)&&void 0!==h?h:e.videoAutoplay,video_muted:null!==(m=e.video_muted)&&void 0!==m?m:e.videoMuted,video_looped:null!==(p=e.video_looped)&&void 0!==p?p:e.videoLooped,brand:"mca"}:null},v=(e,t)=>c({...e,ctas:t?u(e.ctasCollection):e.ctas}),h=e=>{let{data:t,isStaticPage:a=!1}=e,o=v(t,a);return o?(0,n.jsx)(l.RH,{...o}):null}},86947:function(e,t,a){"use strict";a.d(t,{Home:function(){return ed}});var n=a(27573),l=a(7653),o=a(81695),i=a(64387),d=a(64070),r=a(35661),s=a.n(r),u=a(51699),c=a(4148),v=a(66924),h=a(98505),m=a(83125),p=a(10607),g=a(32156),f=a(93636),y=a(47488),x=a(66181),b=a(15514),w=a(56901),S=a(86686),j=a(66051);let C=e=>{var t,a,l,o,i,d,r;let{title:s="",isDisabled:u=!1,descHeading:c="",desc:v="",badge:h,buttonText:y,onClick:b,isAvailable:C,isAccount:k,cardData:_,eyeBrowText:T,tac:N,image:P}=e,R=(0,S.TL)(),U=_||[],L=null!==(d=null==U?void 0:null===(t=U[0])||void 0===t?void 0:t.rewardId)&&void 0!==d?d:"";return k?(0,n.jsxs)("div",{className:"choosePortion renewTeaPass",children:[(0,n.jsx)("div",{className:"min-h-36 w-60",children:(0,n.jsx)("div",{className:"relative h-full w-full",children:(0,n.jsx)(x.ImageWrap,{src:"/assets/shared-assets/teapasspromo.svg",className:"choooseSummaryImg",alt:"renewteapass"})})}),(0,n.jsxs)("div",{className:"w-3/5 p-6 text-center",children:[(0,n.jsx)("h2",{className:"BourtonHandStylized mb-3 text-[20px] text-[--colorSecondary700]",children:(0,g.t)("home.bannerSection.McAlisters.text")}),(0,n.jsx)("h3",{className:"font-Primary mb-4 text-[length:--typographyHeadlinePointsSmallFontSize] leading-9",children:(0,g.t)("tpprocard.unauth.descHeading")}),(null==_?void 0:_.subscriptionStatus)===m._a3&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"font-Body mb-1 text-[length:--fontSizeFontSizeXs] text-[--colorBaseRed700]",children:(0,g.t)("tpprocard.unauth.tpCancel.text")}),(0,n.jsxs)("p",{className:"font-Body text-[length:--fontSizeFontSizeXs] text-[--colorBaseRed700]",children:[(0,g.t)("Expires.text"),null==_?void 0:_.endDate]})]}),(0,n.jsx)("button",{className:"buttonSecondary mt-4 w-full",onClick:b,children:(null==_?void 0:_.subscriptionStatus)===m.iNe?(0,n.jsx)("span",{children:(0,g.t)("teapass.payemntBtn.label")}):(0,n.jsx)("span",{children:(0,g.t)("teapass.renewTeaPass.label")})}),(0,n.jsx)("span",{className:"renewTeaLinkActive",children:(null==_?void 0:_.subscriptionStatus)===m.iNe&&(0,n.jsxs)(n.Fragment,{children:[(0,g.t)("teapass.
1claimDailyTea.text")," ",(0,n.jsx)(I,{})]})})]})]}):(0,n.jsx)("div",{className:"twoColumn homePageContainer",children:(0,n.jsxs)("div",{className:(0,p.Z)("teaPassCard",{disabled:u}),children:[(0,n.jsxs)("div",{className:"relative overflow-hidden lg:w-1/2",children:[!!(null==h?void 0:h.text)&&(0,n.jsx)("div",{className:"teaPassBadge",children:null==h?void 0:h.text}),(0,n.jsx)(x.ImageWrap,{src:null!==(r=null==P?void 0:P.url)&&void 0!==r?r:"",className:"disabledImg",width:null==P?void 0:null===(l=P.details)||void 0===l?void 0:null===(a=l.image)||void 0===a?void 0:a.width,height:null==P?void 0:null===(i=P.details)||void 0===i?void 0:null===(o=i.image)||void 0===o?void 0:o.height,alt:"teapass badge"}),C&&(0,n.jsx)("div",{className:"availableBadge",children:(0,g.t)("teapass.available_now")})]}),(0,n.jsx)("div",{className:"teaPassCardBody",children:(0,n.jsxs)("div",{className:"teaPassCardInner",children:[(0,n.jsx)("p",{className:"cardTitle",children:T}),(0,n.jsx)("h2",{className:"text-center text-4xl font-[--fontWeightsRegular] leading-[--lineHeightsXl] text-[--colorForegroundContentEnabled]",children:s}),(0,n.jsx)("p",{className:"teapPassContent",children:v}),(0,n.jsx)("div",{className:"mb-3",children:(0,n.jsx)(f.z,{title:null!=y?y:"",customClass:"signupBtn buttonSecondary",testid:"facebook-signin-button",type:"button",label:y,onClick:b})}),!C&&(0,n.jsx)("span",{className:"cardTermsAndConditions",children:N}),C&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"claimInStoreLink","data-testid":"link_nutritional_info",onClick:()=>R((0,w.Rm)({content:(0,n.jsx)(j.I,{rewardId:L}),showClose:!0})),children:[(0,g.t)("teapass.clain_in_store_text"),(0,n.jsx)(I,{})]}),(0,n.jsx)("span",{className:"serviceFeeApply mt-3",children:(0,g.t)("teapass.service_fee_applies")})]})]})})]})})},I=()=>{let{fill:e,width:t,height:a}=b.assets.fbrChevronArrowPdp_RightIcon;return(0,n.jsx)(y.Z,{fill:e,width:t,height:a,id:"img_right_Arrow"})},k=e=>{var t,a,l;let{subscriptionList:d,content:r}=e,{t:s}=(0,h.$G)(),{status:u}=(0,i.useSession)(),{isSubscription:v}=(0,c.Vb)(),p=(0,o.useRouter)(),g=null==r?void 0:r.ctas,{deeplink:f,text:y}=null!==(l=null==g?void 0:g[0])&&void 0!==l?l:{},x=(null==r?void 0:r.entity)||[],b=x.length>0?x.filter(e=>!(null==e?void 0:e.isClaimed)):[];return v||r.ui!==m.qyV?"loading"===u||"unauthenticated"===u||"authenticated"===u&&(null==d?void 0:d.length)===0?(0,n.jsx)(C,{eyeBrowText:r.eyebrowText,title:r.title,descHeading:s("tpprocard.unauth.descHeading"),desc:r.description,buttonText:y,onClick:()=>p.push(null!=f?f:"#"),tac:s("tp_tc_serviceFee.text"),image:null==r?void 0:null===(t=r.image)||void 0===t?void 0:t.file,cardData:null!=b?b:null}):"authenticated"===u?(0,n.jsx)(C,{image:null==r?void 0:null===(a=r.image)||void 0===a?void 0:a.file,tac:r.tac,eyeBrowText:r.eyebrowText,title:r.title,isAvailable:!0,descHeading:s("tpprocard.auth.descHeading"),buttonText:y,onClick:()=>p.push(null!=f?f:"#"),cardData:null!=b?b:null}):null:null};var _=a(19141),T=a(14300),N=a(36373),P=a(90972),R=a(5958),U=a(40387),L=a(79386),G=a(48057),F=a(8876),O=a(77584),M=a(50020);let B=e=>{let{data:t}=e,{t:a}=(0,h.$G)(),i=(0,S.TL)(),{analytics:d}=(0,O.useAnalytics)(),{push:r}=(0,o.useRouter)(),{showToast:u}=(0,U.useToast)(),{addReorderItems:c}=(0,N.c)(),v=(0,S.CG)(e=>e.cart.cartData),m=(0,S.CG)(e=>e.order),{selectedStore:p}=(0,S.CG)(e=>e.storeSearch),g=(0,S.CG)(e=>e.menu.menu),f=(0,l.useRef)(""),{getMenuCategories:y}=(0,M.X)(),[b,j]=(0,l.useState)(!1),{onClick:C,isProductLink:I,requireLocationSelection:k}=(0,P.Z)(t),{isDisclaimerApplicable:_}=(0,R.T)(),T=_(),B=(0,L.L0c)(s()(null==m?void 0:m.selectedDate).toDate(),s()(null==m?void 0:m.selectedTime).toDate());(0,l.useEffect)(()=>{var e,t;(null==g?void 0:null===(e=g.categories)||void 0===e?void 0:e.length)&&Object.keys(null!==(t=null==g?void 0:g.products)&&void 0!==t?t:{}).length>0||y()},[g,y]);let D=async e=>{var t,l;d("reorder","add_to_cart",void 0,f.current),d("reorder_add_to_cart",e.products,"PDP_ATC",f.current,"",{}),j(!0);let o={locationId:null==p?void 0:p.ngdpId,products:e.products.map(e=>({productId:null==e?void 0:e.chainproductId,itemQuantity:1,selections:null==e?void 0:e.selections}))},r=null!==(l=null==o?void 0:null===(t=o.products)||void 0===t?void 0:t.length)&&void 0!==l?l:0,s=async()=>
1{if(null==v?void 0:v.cartId)try{await c(o,r)}catch(n){var e,t,l;u({message:null!==(l=null==n?void 0:null===(t=n.errors)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.message)&&void 0!==l?l:a("toaster.api.failure.error.text"),type:"error"})}finally{j(!1),i((0,w.VG)())}else i((0,w.Rm)({content:(0,n.jsx)(F.h,{storeDatas:p,reorderCartPayload:o,isReorder:!0,scheduleType:null==m?void 0:m.scheduleType,scheduleTxt:a("orderdetailbanner.scheduledFor.text",{formatDate:B}),clickEvent:()=>j(!1)}),showClose:!0,customClass:""}))};await s()},E=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{(null==p?void 0:p.ngdpId)&&t&&!E.current&&(E.current=!0,d("reorder","viewed"))},[null==p?void 0:p.ngdpId,t]),(null==p?void 0:p.ngdpId)&&t)return(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(G.D_,{entity:t.entity,ctas:t.ctas,reorderButtonText:t.reorderButtonText,endCardImage:t.endCardImage,endCardTitle:t.endCardTitle,endCardSubcopy:t.endCardSubcopy,fallBackImg:"/assets/icons/noimage.svg",onClickPromo:e=>{k||I?C():r(e)},onReorder:(e,a)=>{var l,o;f.current=e,d("reorder","clicked",void 0,e),d("reorder","items-selected",void 0,e),i((0,w.Rm)({content:(0,n.jsx)("div",{className:"reorderModuleWrapper",children:(0,n.jsx)(G.cf,{items:a,reoderTitleText:null==t?void 0:t.popupTitle,reorderSubtitleText:null==t?void 0:t.popupSubcopy,buttonText:null==t?void 0:t.popupButtonText,disclaimerIcon:(0,n.jsx)(x.ImageWrap,{src:"/assets/shared-assets/disclaimerServiceFeeIcon.svg",alt:"disclaimer service fee icon",id:"img_menu_disclaimer_msg",height:22,width:22,className:"mr-[6px]"}),disclaimerText:T?null==v?void 0:null===(o=v.locationDetails)||void 0===o?void 0:null===(l=o.contentRef)||void 0===l?void 0:l.digitalFeeDisclaimer:void 0,onAddToCart:D,buttonLoader:b,fallBackImg:"/assets/icons/noimage.svg"})}),customClass:"reorderWrapper",showClose:!0}))}})})};var D=a(52678),E=a(96531),A=a(20301);let H=()=>{let{modules:e}=(0,S.CG)(e=>e.homepage);return{getModulesInfo:t=>null==e?void 0:e.some(e=>(null==e?void 0:e.name)===t),getModulesInfoById:t=>null==e?void 0:e.filter(e=>(null==e?void 0:e.ui)===t)}};var Q=a(55264),W=a(83494),V=a(79331),z=a(38404);let X=(0,d.default)(()=>a.e(9836).then(a.bind(a,69836)),{loadableGenerated:{webpack:()=>[69836]},loading:()=>(0,n.jsx)(ea,{})}),Z=(0,d.default)(()=>a.e(6979).then(a.bind(a,26979)),{loadableGenerated:{webpack:()=>[26979]},loading:()=>(0,n.jsx)(ea,{})}),q=(0,d.default)(()=>a.e(2804).then(a.bind(a,4602)),{loadableGenerated:{webpack:()=>[4602]},loading:()=>(0,n.jsx)(ea,{})}),Y=(0,d.default)(async()=>(await a.e(7234).then(a.bind(a,37234))).ContentSection,{loadableGenerated:{webpack:()=>[37234]}}),$=(0,d.default)(async()=>(await a.e(7361).then(a.bind(a,47361))).CampaignBanner,{loadableGenerated:{webpack:()=>[47361]}}),K=(0,d.default)(async()=>(await a.e(8710).then(a.bind(a,48710))).PromotionBannerHome,{loadableGenerated:{webpack:()=>[48710]}}),J=(0,d.default)(async()=>(await Promise.all([a.e(566),a.e(3805),a.e(4081),a.e(7143),a.e(2371),a.e(579),a.e(5609),a.e(4839),a.e(1844),a.e(184),a.e(3942),a.e(8820),a.e(6292)]).then(a.bind(a,83506))).PopularPickSection,{loadableGenerated:{webpack:()=>[83506]}}),ee=(0,d.default)(async()=>(await Promise.all([a.e(6002),a.e(6926)]).then(a.bind(a,96926))).RewardsSection,{loadableGenerated:{webpack:()=>[96926]}}),et=(0,d.default)(async()=>(await a.e(6335).then(a.bind(a,52986))).FullScreenCampaignBanner,{loadableGenerated:{webpack:()=>[52986]}}),ea=(0,d.default)(async()=>(await a.e(2149).then(a.bind(a,42149))).HomeLoader,{loadableGenerated:{webpack:()=>[42149]}}),en=(0,d.default)(async()=>(await a.e(9372).then(a.bind(a,29372))).SurveySection,{loadableGenerated:{webpack:()=>[29372]}}),el=(0,d.default)(async()=>(await Promise.all([a.e(7441),a.e(8732),a.e(880)]).then(a.bind(a,63326))).ReorderSection,{loadableGenerated:{webpack:()=>[63326]}}),eo=(0,d.default)(async()=>(await a.e(4983).then(a.bind(a,34983))).HeroSection,{loadableGenerated:{webpack:()=>[34983]}}),ei=(0,d.default)(async()=>(await Promise.all([a.e(6002),a.e(16)]).then(a.bind(a,60016))).RewardsDeal,{loadableGenerated:{webpack:()=>[60016]}}),ed=()=>{let e=(0,S.CG)(e=>e.modal.showFullScreenBanner),{selectedStore:t}=(0,S.CG)(e=>e.storeSearch),{latitude:a,longitude:d,locationStatus:r}=(0,S.CG)(e=>e.geolocation),v=(0,S.CG)(e=>e.homepage.modules),h=(0,S.CG)(e=>e.templateLastUpdatedInfo),{getModulesInfoById:p}=H(),g=(0,S.TL)(),{status:f,data:y}=(0,i.useSession)(),{showApiFailure:x,showToast:b}=(0,U.useToast)(),{t:j}=(0,u.$G)(),{getLocationBrowserPermission:C}=(0,A.Z)(),{getDefaultGeolocation:I}=(0,W.M)(),{rewardsMaintenance:k}=(0,c.Vb)(),{selectedButtonTab:_}=(0,S.CG)(e=>e.tab),{salutaion:T,showTakeoverModule:P}=(0,S.CG)(e=>e.homepage),{cartData:R}=(0,S.CG)(e=>null==e?void 0:e.cart),{getTemplateLastUpdatedInfo:G,getTemplateDetails:F}=(0,z.j)(),{getDataByRestFulMethod:O}
1=(0,V.S)(),{getSubscription:M}=(0,N.c)(),[B,X]=(0,l.useState)(!0),[Z,q]=(0,l.useState)([]),[Y,$]=(0,l.useState)(!1),K=L.F9n.get(L.efc.isFirstLogin),J=L.F9n.get(L.efc.isShowRewardMaintenance),ee=L.F9n.get("revisit"),et=p(m.Ie0),ea=(0,L.Jtc)(null==R?void 0:R.participants),en=(0,o.usePathname)(),{push:el}=(0,o.useRouter)();(0,l.useEffect)(()=>{m.uL1||eo(),"unauthenticated"===f&&I()},[]),(0,l.useEffect)(()=>(en===Q.appRoutes.home&&(null==R?void 0:R.groupOrderId)&&(null==ea?void 0:ea.type)===m.RnP&&el(Q.appRoutes.menu),()=>{g((0,D.nI)({modules:[]}))}),[]),(0,l.useEffect)(()=>{K&&(b({type:"success",message:j("signin.success")}),L.F9n.remove(L.efc.isFirstLogin)),(P||(null==k?void 0:k.isRewardMaintenance)&&!J&&et&&(null==et?void 0:et.length)>0)&&(et&&(null==et?void 0:et.length)>0&&g((0,w.Rm)({showFullScreenBanner:!0})),L.F9n.set(L.efc.isShowRewardMaintenance,"true"))},[v]);let eo=async()=>{try{var e;let t=await G();(null===(e=t.data)||void 0===e?void 0:e.data)?g((0,E.C_)({date:t.data.data,templateLastUpdatedStatus:(null==h?void 0:h.date)!==t.data.data,isOrderPlaced:null==h?void 0:h.isOrderPlaced})):g((0,E.Hf)())}catch(e){x()}},ei=()=>{if(r===m.mrh){var e,n;let l=Math.round(parseFloat((0,L.Spd)({lat1:a,lon1:d,lat2:null==t?void 0:null===(e=t.geoCoordinates)||void 0===e?void 0:e.latitude,lon2:null==t?void 0:null===(n=t.geoCoordinates)||void 0===n?void 0:n.longitude})));(_===m.rnt?l>50:l>10)&&(L.F9n.remove(null===L.efc||void 0===L.efc?void 0:L.efc.showdrawer),(null==R?void 0:R.groupOrderId)&&m.lwK||b({type:"error",message:j("home.locationdistance.errormessage.text"),link:[{message:j("home.locationdistance.link.text"),url:Q.appRoutes.storeSearch}]}))}},ed=async e=>{try{let a=m.U_Q,n={};if(m.uL1)n=await O("template",Q.appRoutes.home,a);else{var t;let a=await F(e);n=null===(t=a.data)||void 0===t?void 0:t.data}n?(g((0,D.nI)(n)),(null==h?void 0:h.isOrderPlaced)&&g((0,E.C_)({date:null==h?void 0:h.date,templateLastUpdatedStatus:null==h?void 0:h.templateLastUpdatedStatus,isOrderPlaced:!1}))):g((0,D.vW)())}catch(e){x()}},er=[j("home.guest.salutation.breakfast.one")],es=[j("home.guest.salutation.breakfast.one")],eu=[j("home.guest.salutation.lunch.one"),j("home.guest.salutation.lunch.two"),j("home.guest.salutation.lunch.three"),j("home.guest.salutation.lunch.four"),j("home.guest.salutation.lunch.five"),j("home.guest.salutation.lunch.six")],ec=[j("home.auth.salutation.lunch.one"),j("home.auth.salutation.lunch.two"),j("home.auth.salutation.lunch.three"),j("home.auth.salutation.lunch.four"),j("home.auth.salutation.lunch.five"),j("home.auth.salutation.lunch.six")],ev=[j("home.guest.salutation.dinner.one"),j("home.guest.salutation.dinner.two"),j("home.guest.salutation.dinner.three"),j("home.guest.salutation.dinner.four"),j("home.guest.salutation.dinner.five"),j("home.guest.salutation.dinner.six")],ep=[j("home.auth.salutation.dinner.one"),j("home.auth.salutation.dinner.two"),j("home.auth.salutation.dinner.three"),j("home.auth.salutation.dinner.four"),j("home.auth.salutation.dinner.five"),j("home.auth.salutation.dinner.six")],eg=[j("home.guest.salutation.general.one"),j("home.guest.salutation.general.two"),j("home.guest.salutation.general.three"),j("home.guest.salutation.general.four"),j("home.guest.salutation.general.five"),j("home.guest.salutation.general.six"),j("home.guest.salutation.general.seven")],ef=[j("home.auth.salutation.general.one"),j("home.auth.salutation.general.two"),j("home.auth.salutation.general.three"),j("home.auth.salutation.general.four"),j("home.auth.salutation.general.five"),j("home.auth.salutation.general.six"),j("home.auth.salutation.general.seven")],ey=[j("home.auth.salutation.general.gonetwoweeks.one"),j("home.auth.salutation.general.gonetwoweeks.two"),j("home.auth.salutation.general.gonetwoweeks.three"),j("home.auth.salutation.general.gonetwoweeks.four"),j("home.auth.salutation.general.gonetwoweeks.five")],ex=[j("home.auth.salutation.general.gonetwoweeks.one"),j("home.auth.salutation.general.gonetwoweeks.two"),j("home.auth.salutation.general.gonetwoweeks.three"),j("home.auth.salutation.general.gonetwoweeks.four"),j("home.auth.salutation.general.gonetwoweeks.five")],eb=(e,t,a)=>m.aeN?a?[]:e:e.slice(0,t),ew=()=>m.lwK?2:m.hyX?1:3;function eS(){return m.lwK?3:m.bCn||m.mJY?4:m.hyX?1:2}let ej=()=>m.lwK||m.bCn||m.mJY?1:4,eC={breakFastSalutation:{guestUser:eb(er,eS()),loginUser:eb(es,eS())},lunchSalutation:{guestUser:eb(eu,eS()),loginUser:eb(ec,eS())},dinnerSalutation:{guestUser:eb(ev,ew()),loginUser:eb(ep,ew())},twoWeeksGoneSalutation:{guestUser:eb(ey,4,!0),loginUser:eb(ex,4)},generalSalutation:{guestUser:eb(eg,ej()),loginUser:eb(ef,ej())}},eI=e=>{var t;let a=new Uint32Array(1);crypto.getRandomValues(a);let n=a[0]%e.length,l=null!==(t=e[n])&&void 0!==t?t:"";g((0,D.nI)({salutaion:l}))},ek=()=>"authenticated"===f?eC.breakFastSalutation.loginUser:eC.breakFastSalutation.guestUser,e_=()=>"authenticated"===f?eC.lunchSalutation.loginUser:eC.lunchSalutation.guestUser,eT=()=>"authenticated"===f?eC.dinnerSalutation.loginUser:eC.dinnerSalutation.guestUser,eN=()=>"authenticated"===f?eC.twoWeeksGoneSalutation.loginUser:eC.generalSalutation.guestUser,eP=()=>"authenticated"===f?eC.generalSalutation.loginUser:eC.generalSalutation.guestUser,eR=()=>{var e;let t=s()(),a=t.hours(),n=t.minutes(),l=null!==(e=null==y?void 0:y.user.iat)&&void 0!==e?e:0,o=s()(l*m.Ha8),i=s().duration(t.diff(o)).asWeeks();return $(i>=m.YsD),m.hyX&&a>=m.U9$&&a<m.huI?ek():a>
1=m.huI&&(a<m.amB||a===m.amB&&0===n)?e_():a>=m.Bmg&&(a<m.pi||20===a&&0===n)?eT():i>=m.YsD&&!m.hyX?eN():m.hyX?[]:eP()};(0,l.useEffect)(()=>{m.gsH||m.uL1||eI(eR())},[y]),(0,l.useEffect)(()=>{C(),ee===Q.appRoutes.orderconfirmation&&(null===L.F9n||void 0===L.F9n||L.F9n.remove("revisit")),m.gsH&&("unauthenticated"===f&&v&&(null==v?void 0:v.length)>0?eL():"authenticated"===f&&v&&(null==v?void 0:v.length)>0&&eG(y)),"authenticated"!==f||L.F9n.get(L.efc.distanceChecked)||(ei(),L.F9n.set(L.efc.distanceChecked,"true"))},[f,v]),(0,l.useEffect)(()=>{(((null==h?void 0:h.templateLastUpdatedStatus)||(null==t?void 0:t.ngdpId)||(null==h?void 0:h.isOrderPlaced))&&(null==h?void 0:h.date)||m.uL1)&&ed(null==t?void 0:t.ngdpId)},[null==h?void 0:h.templateLastUpdatedStatus,null==t?void 0:t.ngdpId,null==h?void 0:h.isOrderPlaced]),(0,l.useEffect)(()=>{v&&(null==v?void 0:v.length)>0&&X(!1)},[v]),(0,l.useEffect)(()=>{"authenticated"===f&&eF()},[y]);let eU=e=>{g((0,D.nI)({salutaion:e?"":j("home.guest.salutation.general.text")}))},eL=()=>{null===L.F9n.get(null===L.efc||void 0===L.efc?void 0:L.efc.firstTimeGuestUser)?(L.F9n.set(L.efc.firstTimeGuestUser,"FirstTimeGuestUser"),eU(!0)):eU(!1)},eG=e=>{let t=null==v?void 0:v.some(e=>{var t;return null==e?void 0:null===(t=e.dateType)||void 0===t?void 0:t.includes(m.Rd)}),a="".concat(null==e?void 0:e.user.first_name," ").concat(null==e?void 0:e.user.last_name);g((0,D.nI)({salutaion:t?j("home.guest.salutation.birthday.text",{name:a}):j("home.auth.salutation.general.text",{name:a})}))},eF=async()=>{var e,t,a;try{if(m.gsH){let t=await M();(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.length)>0&&q(null==t?void 0:t.data)}}catch(e){x("",null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.code)}},eO=e&&et&&et.length>0||(null==k?void 0:k.isRewardMaintenance)&&e&&et&&et.length>0;return eO?(0,n.jsx)(eh,{tabIndex:eO?0:-1,campaignSection:et[0]}):(0,n.jsx)(em,{text:T,preview:B,subList:Z,checkTwoWeeks:Y})},er=e=>{var t;let{heroBanner:a,session:l,locationId:o,text:i}=e,d=(0,S.CG)(e=>e.homepage.modules);return(null==l?void 0:l.status)!=="unauthenticated"?null:a.length>0?(0,n.jsx)(X,{bannerSection:a[0],locationId:o,salutation:i}):(null==d?void 0:null===(t=d[0])||void 0===t?void 0:t.ui)!==m.QT5?(0,n.jsx)(q,{salutationText:i}):void 0},es={[m.rM]:e=>(0,n.jsx)(eo,{heroSection:e},e.id),[m.QT5]:e=>(0,n.jsx)(T.HomeHeroBannerModule,{data:e},e.id),[m.BVy]:e=>{let{isShowSgsl:t}=(0,c.Vb)();return(null==t?void 0:t.homepage)&&(0,n.jsx)(ec,{data:e},e.id)},[m.YSx]:e=>(0,n.jsx)(eu,{dealsSection:e},e.id),[m.daP]:e=>(0,n.jsx)(en,{content:e},e.id),[m.OXH]:e=>(0,n.jsx)(K,{promotionSection:e},e.id),[m.FvU]:e=>(0,n.jsx)(ee,{content:e},e.id),[m.XoD]:e=>ev(e),[m.qyV]:(e,t)=>(0,n.jsx)(k,{content:e,subscriptionList:null!=t?t:[]},e.id),[m.Ie0]:e=>(0,n.jsx)($,{campaignSection:e}),[m.bH4]:e=>(0,n.jsx)(B,{data:e})},eu=e=>{var t;let{dealsSection:a}=e,l=(0,i.useSession)(),{rewardsMaintenance:o}=(0,c.Vb)(),d=(null==a?void 0:null===(t=a.entity)||void 0===t?void 0:t.map(e=>{var t,n,l,o,i,d,r,s,u;let c=null==a?void 0:null===(t=a.deals)||void 0===t?void 0:t.find(e=>null===m.xO2||void 0===m.xO2?void 0:m.xO2.includes(null==e?void 0:e.entity));return{...e,style:null==c?void 0:c.style,tac:null==c?void 0:c.tac,ctas:null==c?void 0:c.ctas,width:null==c?void 0:null===(i=c.icon)||void 0===i?void 0:null===(o=i.file)||void 0===o?void 0:null===(l=o.details)||void 0===l?void 0:null===(n=l.image)||void 0===n?void 0:n.width,height:null==c?void 0:null===(u=c.icon)||void 0===u?void 0:null===(s=u.file)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:null===(d=r.image)||void 0===d?void 0:d.height}}))||[];return!(null==o?void 0:o.isRewardMaintenance)&&(null==l?void 0:l.status)==="authenticated"&&(0,n.jsx)(ei,{dealsSection:a,dealsToDisplay:d})},ec=e=>{var t,a;let{data:l}=e,{status:o}=(0,i.useSession)(),d=(0,S.CG)(e=>{var t;return null===(t=e.storeSearch)||void 0===t?void 0:t.selectedStore});return"sgsl"===l.type&&(null==d?void 0:d.locationId)?Number(null===(t=l.entity)||void 0===t?void 0:t.length)>0&&(0,n.jsx)(J,{content:l}):"reorder"===l.type&&"authenticated"===o&&(null==d?void 0:d.locationId)?Number(null===(a=l.entity)||void 0===a?void 0:a.length)>0&&(0,n.jsx)(el,{content:l}):void 0},ev=e=>(0,n.jsx)(Y,{content:e},e.id),eh=e=>{let{campaignSection:t,tabIndex:a}=e,l=(0,S.TL)();return(0,n.jsx)(et,{handleClick:()=>l((0,w.VG)()),campaignSection:t,tabIndex:a})},em=e=>{var t,a;let{text:l,preview:o,subList:d,checkTwoWeeks:r}
1=e,s=(0,S.CG)(e=>e.homepage.modules),u=(0,S.CG)(e=>{var t;return null===(t=e.storeSearch)||void 0===t?void 0:t.selectedStore}),h=(0,i.useSession)(),{getModulesInfoById:p}=H(),{rewardsMaintenance:g}=(0,c.Vb)(),f=p(m.Gux),y=p(m.L_L),x=(e,t,a)=>{e===m.Tq8&&(null==s?void 0:s.findIndex(e=>e.ui===m.YSx))===-1&&(e=m.YSx,t={});let n=es[e];return n?n(t,a):null};return(0,n.jsxs)("div",{className:"bodyWrapper",children:[(0,n.jsx)(v.LocationDetail,{}),(null==g?void 0:g.isRewardMaintenance)&&(0,n.jsx)(_.a,{}),o?(0,n.jsx)(ea,{}):(0,n.jsx)("div",{className:"homePageWrapper",children:(0,n.jsxs)("div",{className:"homePage",children:[(null==h?void 0:h.status)==="authenticated"&&(0,n.jsxs)(n.Fragment,{children:[(null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.ui)!==m.QT5&&(0,n.jsx)(Z,{welcomeSection:null!==(a=null==y?void 0:y[0])&&void 0!==a?a:"",text:l,checkTwoWeeks:r}),(0,n.jsx)(er,{heroBanner:f,session:h,locationId:null==u?void 0:u.locationId,text:l})]}),(null==h?void 0:h.status)==="unauthenticated"&&(0,n.jsx)(er,{heroBanner:f,session:h,locationId:null==u?void 0:u.locationId,text:l}),null==s?void 0:s.map(e=>e.ui&&x(e.ui,e,d))]})})]})}},19141:function(e,t,a){"use strict";a.d(t,{a:function(){return d}});var n=a(27573),l=a(10607),o=a(4148),i=a(86686);let d=()=>{let{selectedStore:e}=(0,i.CG)(e=>e.storeSearch),{rewardsMaintenance:t}=(0,o.Vb)();return(0,n.jsx)("div",{className:(0,l.Z)("RewardMaintenanceAlert",{storeRmaintenance:null==e?void 0:e.locationId}),"data-testid":"maintenancealert",children:(0,n.jsx)("p",{children:null==t?void 0:t.alertMessage})})}},90972:function(e,t,a){"use strict";a.d(t,{Z:function(){return g}});var n=a(27573),l=a(7653),o=a(81695),i=a(4148),d=a(17635),r=a(7002),s=a(55264),u=a(79386),c=a(20280),v=a(2814),h=a(56901),m=a(52678),p=a(86686);let g=e=>{var t,a,g,f,y,x,b,w,S,j;let C=null==e?void 0:e.ctas,{productId:I,deeplink:k}=null!==(S=null==C?void 0:C[0])&&void 0!==S?S:{},_=null==e?void 0:e.products,T="boolean"==typeof(null==C?void 0:null===(t=C[0])||void 0===t?void 0:t.isProductLink)?null==C?void 0:null===(a=C[0])||void 0===a?void 0:a.isProductLink:null==C?void 0:null===(f=C[0])||void 0===f?void 0:null===(g=f.isProductLink)||void 0===g?void 0:g["en-US"],N="boolean"==typeof(null==C?void 0:null===(y=C[0])||void 0===y?void 0:y.requireLocationSelection)?null==C?void 0:null===(x=C[0])||void 0===x?void 0:x.requireLocationSelection:null==C?void 0:null===(w=C[0])||void 0===w?void 0:null===(b=w.requireLocationSelection)||void 0===b?void 0:b["en-US"],{selectedStore:P}=(0,p.CG)(e=>e.storeSearch),{cartData:R}=(0,p.CG)(e=>e.cart),{isIsrMenu:U=!1}=(0,i.Vb)(),{push:L}=(0,o.useRouter)(),G=(0,p.TL)(),[F,O]=(0,l.useState)(""),M=_&&I&&_[I],B=M&&(null==M?void 0:M.seoUrl.split("/")[1]),D=M&&(null==M?void 0:M.seoUrl.split("/")[2]),E=M&&(null==M?void 0:M.isAvailable),A=null!==(j=M&&(null==M?void 0:M.seoUrl))&&void 0!==j?j:"",H=e=>U&&(null==P?void 0:P.locationName)?(0,u.$1_)(null==P?void 0:P.locationName,null==P?void 0:P.ngdpId,e):(0,u.hUn)(e);(0,l.useEffect)(()=>{T&&(G((0,c.OL)({homeStartOrder:!1})),(!N||(null==P?void 0:P.ngdpId))&&E?O((null==P?void 0:P.ngdpId)?H(A):(0,u.hUn)(A)):O("".concat(s.appRoutes.storeSearch,"?categoryName=").concat(B,"&productName=").concat(D)))},[null==e?void 0:e.products]);let Q=()=>{let e=()=>u.F9n.set(null===u.efc||void 0===u.efc?void 0:u.efc.redirectUrl,(0,u.YWw)((0,u.hUn)(null!=A?A:"")));!E&&(null==P?void 0:P.ngdpId)?(e(),G((0,h.Rm)({content:(0,n.jsx)(r.h,{link:F})}))):(null==P?void 0:P.ngdpId)||!N?!(null==R?void 0:R.cartId)&&(null==P?void 0:P.ngdpId)&&E?G((0,h.Rm)({content:(0,n.jsx)(d.E5,{navLink:{onClick:()=>L(F)}}),showClose:!0})):L(F):(e(),G((0,v.Xc)({filterToggle:!0})),G((0,c.OL)({homeStartOrder:!0})),L(F))},W=()=>{if(k){if(!(null==P?void 0:P.ngdpId)){u.F9n.set(null===u.efc||void 0===u.efc?void 0:u.efc.redirectUrl,(0,u.YWw)(k)),L(s.appRoutes.storeSearch),G((0,m.nI)({requireLocationSelection:!0}));return}(null==P?void 0:P.ngdpId)&&N&&(null==P?void 0:P.isNewCatering)&&(null==P?void 0:P.cateringUrl)?window.location.href=null==P?void 0:P.cateringUrl:(null==P?void 0:P.ngdpId)&&L(k)}};return{onClick:()=>{T?Q():N&&W()},newLink:F,isProductAvailable:E,isProductLink:T,requireLocationSelection:N}}},74765:function(e,t,a){"use strict";a.d(t,{y:function(){return l}});var n=a(7653);let l=()=>
1{let[e,t]=(0,n.useState)(new URLSearchParams);return(0,n.useEffect)(()=>{t(new URLSearchParams(window.location.search))},[]),e}},5958:function(e,t,a){"use strict";a.d(t,{T:function(){return o}});var n=a(86686),l=a(4148);let o=()=>{let{selectedStore:e}=(0,n.CG)(e=>e.storeSearch),{isCaMenu:t,serviceFeeConfig:a}=(0,l.Vb)();return{isServiceFeeValidate:a=>(null==e?void 0:e.fees)&&(null!=a?a:0)>0&&t,isDisclaimerApplicable:()=>{var t;return(null==e?void 0:null===(t=e.contentRef)||void 0===t?void 0:t.digitalFeeDisclaimer)&&(null==a?void 0:a.showFeeDisclaimer)}}}},64070:function(e,t,a){"use strict";a.d(t,{default:function(){return l.a}});var n=a(23842),l=a.n(n)},23842:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=a(11887);a(27573),a(7653);let l=n._(a(58379));function o(e,t){var a;let n={loading:e=>{let{error:t,isLoading:a,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e);let o={...n,...t};return(0,l.default)({...o,modules:null==(a=o.loadableGenerated)?void 0:a.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42972:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let n=a(20951);function l(e){let{reason:t,children:a}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return a}},58379:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=a(27573),l=a(7653),o=a(42972),i=a(69111);function d(e){return{default:e&&"default"in e?e.default:e}}let r={loader:()=>Promise.resolve(d(()=>null)),loading:null,ssr:!0},s=function(e){let t={...r,...e},a=(0,l.lazy)(()=>t.loader().then(d)),s=t.loading;function u(e){let d=s?(0,n.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,r=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(i.PreloadCss,{moduleIds:t.modules}):null,(0,n.jsx)(a,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(a,{...e})});return(0,n.jsx)(l.Suspense,{fallback:d,children:r})}return u.displayName="LoadableComponent",u}},69111:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let n=a(27573),l=a(92399);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let a=(0,l.getExpectedRequestStore)("next/dynamic css"),o=[];if(a.reactLoadableManifest&&t){let e=a.reactLoadableManifest;for(let a of t){if(!e[a])continue;let t=e[a].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,n.jsx)(n.Fragment,{children:o.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:a.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}}},function(e){e.O(0,[7323,4387,9488,815,1250,8528,1699,294,4944,1668,529,9386,4538,596,397,2839,301,5732,8904,9507,219,2158,4846,6924,1293,1528,1744],function(){return e(e.s=22034)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.