PageSourceSearch

https://www.auntieannes.com/_next/static/chunks/6923.07f976ec90696c4d.js

js auntieannes.com collected 2026-10-02 03:48:34 UTC 20,090 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6923],{26450:function(e,l,t){t.d(l,{l:function(){return v}});var i=t(27573),n=t(7653),d=t(10607),r=t(51699),s=t(81668),o=t(15514),a=t(79386),u=t(83125),c=t(47488);let v=e=>{var l,t,u,v,h;let{children:x,length:f=0,isPromotion:g,isReorder:j,isRewards:b,isDeal:C,isRewardsV1:N,dealsToDisplay:I=0,isRewardData:w,isSGSL:S,isCartShow:_,isCarouselModItem:T}=e,{t:L}=(0,r.$G)(),y=(0,n.useRef)(null),A=(0,n.useRef)(null),{slider_chevron_rightIcon:D}=o.assets,[Z,k]=(0,n.useState)(!1),[M,E]=(0,n.useState)(!0),R=(0,s.Z)("(min-width:768px)"),[W,P]=(0,n.useState)(0),[B,F]=(0,n.useState)(!1),G=f;(0,n.useEffect)(()=>{var e;let l=()=>{if(null==y?void 0:y.current){var e,l,t;k((null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.scrollLeft)>0),E((null==y?void 0:null===(l=y.current)||void 0===l?void 0:l.scrollLeft)<(null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.scrollWidth)-(null==y?void 0:y.current.offsetWidth))}};return null===(e=y.current)||void 0===e||e.addEventListener("scroll",l),()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.removeEventListener("scroll",l)}},[]);let O=()=>{k(!0),E(!0)},H=()=>{if(y.current){var e;let l=Math.trunc((null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.scrollWidth)/f),t=Math.trunc((0===y.current.scrollLeft?l:y.current.scrollLeft+l)/l)-1,i=Math.trunc((0===y.current.scrollLeft?l:y.current.scrollLeft+l)/l);y.current.scrollLeft-=l,0===t||t<i-1?(k(!1),E(!0)):O()}},$=()=>{if(y.current){var e;let l=Math.trunc((null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.scrollWidth)/f),t=Math.trunc((0===y.current.scrollLeft?l:y.current.scrollLeft+l)/l);y.current.scrollLeft+=l;let i=y.current.clientWidth+l*t-y.current.scrollWidth;P(t),y.current.clientWidth+l*t<y.current.scrollWidth?O():y.current.scrollWidth===y.current.clientWidth+l*t-i?(k(!0),E(!1)):O()}},z=()=>0===I&&f>8?7:1===I&&f>5?5:2===I&&f>4?3:I>2&&f>=4?3:2,U=()=>{G=R&&!_?f>z()?3:2:f>3?3:2},V=null!==(h=null!==(v=null!==(u=null!==(t=null!==(l=(()=>{if(g)return f>2})())&&void 0!==l?l:(()=>{if(_&&C&&R)return G=f>3?3:2,f>1;if(!C)return;G=f>3?3:2;let e=R?2:1;return w&&N?f>1:f>e})())&&void 0!==t?t:(()=>{if(b)return U(),_&&f>=3||!_&&R&&(f>4||I>2&&f>3)||f>1&&!R})())&&void 0!==u?u:!!j&&(G=f>(R?4:2)?3:2,f>3&&R||f>1&&!R))&&void 0!==v?v:(()=>{if(S)return G=2,f>2&&!R})())&&void 0!==h?h:(()=>{if(T)return G=4,f>4&&R})();(0,n.useLayoutEffect)(()=>{var e,l;let t=null===(e=document.getElementById("item-list"))||void 0===e?void 0:e.clientWidth,i=null===(l=document.getElementById("rewards-section"))||void 0===l?void 0:l.clientWidth;t&&i&&0===I&&G>5&&F(t>=i)},[]);let Q=T?"var(--colorBaseAlpha50)":"var(--colorBaseOffBlack500)";return(0,i.jsxs)("div",{className:(0,d.Z)("itemListContainer",{sgslContainer:S,withDeal:!B&&b&&I>0,withoutDeal:!B&&b&&0===I}),ref:A,children:[(0,i.jsx)("div",{id:"item-list",className:"itemList",ref:y,children:x}),(0,i.jsxs)("div",{className:(0,d.Z)("rewardSliderTermsandCondition",{hidden:0===I&&!!b&&!!R&&7>f}),children:[(0,i.jsx)(p,{isRewards:b,isCartShow:_}),V&&(0,i.jsxs)("div",{className:"sliderChevronIcon",children:[(0,i.jsx)(m,{isPromotion:g,cardLength:G,carouselIndex:W,right:M,left:Z,isCarouselModItem:T}),(0,i.jsxs)("div",{className:(0,d.Z)("sliderArrowContainer",{promotionArrow:g}),children:[(0,i.jsx)("span",{className:(0,d.Z)("sliderCircleArrow sliderLeftChevronIcon",{disabledLeftChevronIcon:!Z}),children:(0,i.jsx)(c.Z,{...D,customClass:"cursor-pointer",id:"breadcrumbs_left_id",tabIndex:0,onClick:H,role:L("guestRecentError.role.text"),label:L("signup.onboarding.previous"),onKeyDown:e=>(0,a.TMZ)(e,H),fill:Q})}),(0,i.jsx)("span",{className:(0,d.Z)("sliderCircleArrow",{disabledLeftChevronIcon:!M}),children:(0,i.jsx)(c.Z,{...D,customClass:"cursor-pointer focus:outline-none",id:"breadcrumbs_right_id",tabIndex:0,onClick:$,role:L("guestRecentError.role.text"),label:L("signup.onboarding.next"),onKeyDown:e=>(0,a.TMZ)(e,$),fill:Q})})]})]})]})]})},m=e=>{let{isPromotion:l,cardLength:t,carouselIndex:n,right:r,left:s,isCarouselModItem:o}=e,a=()=>{if(3===t){if(r&&!s)return 0;if(r&&s)return 1;if(!r&&s)return 2}if(2===t){if(r&&!s)return 0;if(!r&&s)return 1}};return o?null:!l&&(0,i.jsx)("div",{className:"sliderDotIcon flex flex-row items-center",children:[...Array(t).keys()].map((e,l)=>(0,i.jsx)("div",{"data-testid":l+"-"+n,className:(0,d.Z)("dot ",{dotactive:a()===l})},e))})},p=e=>{let{isRewards:l,isCartShow:t}=e,{t:n}=(0,r.$G)();return l&&(0,i.jsx)("span",{className:"taxAndFeesApplylink",children:"".concat(n("deals.taxesFees.text")).concat(u.bCn&&!t?" ".concat(n("reward.limit.text")):"")})}},26568:function(e,l,t){t.d(l,{n:function(){return s}});var i=t(27573),n=t(60329),d=t(5958),r=t(66181);let s=e=>{var l,t;let{text:s,showDisclaimer:o=!1,showIcon:a=!0}=e,{cartData:u}=(0,n.CG)(e=>e.cart),{isDisclaimerApplicable:c}=(0,d.T)(),v=c();return(o||v)&&(0,i.jsxs)("div",{className:"disclaimerContent",children:[a&&(0,i.jsx)("span",{children:(0,i.jsx)(r.ImageWrap,{src:"/assets/shared-assets/disclaimerServiceFeeIcon.svg",alt:"disclaimer service fee icon",id:"disclaimer_service_fee_icon",height:22,width:22})}),(0,i.jsx)("p",{"data-testid":"disclaimer_text",className:"informationText",children:null!=s?s:null==u?void 0:null===(t=u.locationDetail
1s)||void 0===t?void 0:null===(l=t.contentRef)||void 0===l?void 0:l.digitalFeeDisclaimer})]})}},47864:function(e,l,t){t.d(l,{Q:function(){return u}});var i=t(27573),n=t(7653),d=t(51699),r=t(10607),s=t(81668),o=t(83125),a=t(93636);let u=e=>{let{children:l,clsAccountPopUpTxt:t,content:d="",customClass:u,hideButton:v=!1,maxCharacter:m,maxCharacterShow:p,openByDefault:h,onClick:x,onToggle:f}=e,[g,j]=(0,n.useState)(null!=h&&h),b=(0,s.Z)("(max-width:".concat(o.fEU-1,"px)"))||!o.aeN?o.GW8:o.L$3,C=()=>g?o.gsH?null!=p?p:o.AFe:d.length:null!=m?m:b,N=!g||!p&&o.gsH&&(null==d?void 0:d.length)>o.AFe;return(0,i.jsxs)("p",{className:(0,r.Z)(u,{"text-left":(null==d?void 0:d.length)>b}),children:[l||(0,i.jsx)(()=>(null==d?void 0:d.slice(0,C()))||"",{}),(l||(null==d?void 0:d.length)>b)&&!v&&(0,i.jsxs)(i.Fragment,{children:[N&&"...",(0,i.jsx)(a.z,{type:"button",customClass:(0,r.Z)("font-[--fontWeightsBold] underline text-[length:--fontSizeFontSizeSm]",{"ml-1":N,"ml-0.5":!N,"normal-case":o.aeN}),onClick:x||(()=>{j(e=>(f&&f(!e),!e))}),testid:"btn_show_more_less",title:(0,i.jsx)(c,{clsAccountPopUpTxt:t,showLess:g})})]})]})},c=e=>{let l,{clsAccountPopUpTxt:t,showLess:i}=e,{t:n}=(0,d.$G)();return n((l=i?"showLess":"showMore",t)?"closePopUp.".concat(l,".btn.label"):"deals.".concat(l,".btn.label"))}},72762:function(e,l,t){t.d(l,{C:function(){return s}});var i=t(27573),n=t(5958),d=t(26568),r=t(60329);let s=e=>{var l,t;let{customClass:s}=e,{isDisclaimerApplicable:o}=(0,n.T)(),a=o(),{cartData:u}=(0,r.CG)(e=>e.cart);return a&&(0,i.jsx)("div",{"data-testid":"suggested_cell_price",className:s,children:(0,i.jsx)(d.n,{text:null==u?void 0:null===(t=u.locationDetails)||void 0===t?void 0:null===(l=t.contentRef)||void 0===l?void 0:l.digitalFeeDisclaimer})})}},47285:function(e,l,t){t.r(l),t.d(l,{ReorderSection:function(){return y}});var i=t(27573),n=t(7653),d=t(81695),r=t(51699),s=t(4148),o=t(81668),a=t(48057),u=t(2263),c=t(60329),v=t(14427),m=t(77584),p=t(79386),h=t(81165),x=t(40387),f=t(15514),g=t(83125),j=t(85469),b=t(93636),C=t(26450),N=t(47488),I=t(66181),w=t(72762),S=t(10607),_=t(47864);let T=e=>{let{customClass:l="",gap:t=0,inline:d=!1,lines:r=[],maxCharacters:s=1/0,maxLines:o=5}
1=e,[a,u]=(0,n.useState)(!1),c=a?r:r.slice(0,o),v=c.some(e=>e.length>s);return(0,i.jsx)(_.Q,{customClass:l,hideButton:r.length<=o&&!v,onToggle:e=>u(e),children:(0,i.jsx)("ul",{className:(0,S.Z)({inline:d&&!a}),children:c.map(e=>{let l=!a&&e.length>s?e.slice(0,s):e;return(0,i.jsx)("li",{className:(0,S.Z)({inline:d&&!a,["mb-".concat(t," lg:my-").concat(t," last:mb-2")]:t>0}),children:l},e)})})})};var L=t(34250);let y=e=>{var l,t,f,N,S,_,T;let{content:y,isRewardsPage:Z}=e,{tpProductIds:k}=(0,h.m)({menuTab:!1,reOrder:null==y?void 0:y.entity}),{showToast:M}=(0,x.useToast)(),{handleAddCart:E}=(0,v.g)(),{isCaMenu:R,isSubscription:W}=(0,s.Vb)(),{t:P}=(0,r.$G)(),{analytics:B}=(0,m.useAnalytics)(),{push:F}=(0,d.useRouter)(),G=(0,c.TL)(),{storeStatus:O}=(0,j.M)(),H=(0,o.Z)("(min-width: ".concat(g.fEU,"px)")),{menu:$}=(0,c.CG)(e=>e.menu),{selectedStore:z}=(0,c.CG)(e=>e.storeSearch),{cartData:U}=(0,c.CG)(e=>e.cart),[V,Q]=(0,n.useState)({isLoading:!1,selectedProductId:""}),{title:K,description:X}=y,{ctas:q}=null!=y?y:[],J=null!==(_=null==q?void 0:null===(l=q[0])||void 0===l?void 0:l.text)&&void 0!==_?_:"",Y=null!==(T=null==q?void 0:null===(t=q[0])||void 0===t?void 0:t.deeplink)&&void 0!==T?T:"",{isAtomicComponent:ee}=(0,s.Vb)(),el=e=>{let l=null==e?void 0:e.find(e=>{var l;return(null==e?void 0:null===(l=e.type)||void 0===l?void 0:l.toLowerCase())===(H?g.aQ4:g.OkX)&&(null==e?void 0:e.url)});return null==l?void 0:l.url},et=async(e,l,t)=>{var i,n,d,r,s,o,a,c,v,m,h;Q({isLoading:!0,selectedProductId:t});let x=null==$?void 0:null===(d=$.products)||void 0===d?void 0:null===(n=d[null==e?void 0:e.chainproductId])||void 0===n?void 0:null===(i=n.product)||void 0===i?void 0:i.categoryId;if(l){let l=null==$?void 0:null===(s=$.products[null==e?void 0:e.chainproductId])||void 0===s?void 0:null===(r=s.product)||void 0===r?void 0:r.seoUrl,i=null==$?void 0:null===(a=$.products[null==e?void 0:e.chainproductId])||void 0===a?void 0:null===(o=a.product)||void 0===o?void 0:o.name,n=null==$?void 0:null===(v=$.products[null==e?void 0:e.chainproductId])||void 0===v?void 0:null===(c=v.product)||void 0===c?void 0:c.id,d=null==$?void 0:null===(h=$.products[null==e?void 0:e.chainproductId])||void 0===h?void 0:null===(m=h.product)||void 0===m?void 0:m.cost;B("select_item",x,"suggestedSell",n,i,d),B("view_item",x,"suggestedSell",n,i,d),l&&F((0,p.hUn)(l)),p.F9n.remove(null===p.efc||void 0===p.efc?void 0:p.efc.showdrawer),G((0,u.c_)()),Q({isLoading:!1,selectedProductId:t})}else await E(e,x,"","recent_quick_add_to_cart"),Q({isLoading:!1,selectedProductId:t})},ei=e=>{let{product:l,productImageSrc:t}=e;return(0,i.jsx)(I.ImageWrap,{src:null!=t?t:"",alt:null==l?void 0:l.itemName,width:416,height:234,className:"menuResultsTailImage moduleImage",id:"img_reorder"})},en=e=>{let{product:l}=e;return ee?(0,i.jsx)(a.ZT,{className:"pdpListTileText",innerHtml:(null==l?void 0:l.templateId)===g.C8D?P("bogo.title"):null==l?void 0:l.itemName,as:"p"}):(0,i.jsx)("div",{className:"pdpListTileTextwrapper",children:(0,i.jsx)("p",{className:"pdpListTileText",dangerouslySetInnerHTML:{__html:(null==l?void 0:l.templateId)===g.C8D?P("bogo.title"):null==l?void 0:l.itemName}})})},ed=e=>{let{costValue:l}=e;return ee?(0,i.jsxs)(a.ZT,{as:"span",children:["$",(0,p.B16)((null!=l?l:"0").toString())]}):(0,i.jsxs)("span",{className:"subtextPrice",children:["$",(0,p.B16)((null!=l?l:"0").toString())]})};if(!Z&&(null==y?void 0:null===(f=y.entity)||void 0===f?void 0:f.length)===0)return;if(Z&&Array.isArray(null==y?void 0:y.entity)&&(null==y?void 0:null===(N=y.entity)||void 0===N?void 0:N.length)===0)return(0,i.jsx)("div",{className:"noItemsWrap",children:(0,i.jsxs)("div",{className:"noItemsCont",children:[(0,i.jsx)(L.Z,{}),(0,i.jsx)("p",{className:"titleTxt",children:K}),(0,i.jsx)("p",{className:"recentItemsDesc",children:X}
1),J&&(0,i.jsx)(b.z,{title:J,testid:"btn_ordernow",customClass:"buttonSecondary",onClick:()=>F(Y)})]})});let er=null==y?void 0:null===(S=y.entity)||void 0===S?void 0:S.map(e=>e.products).flat().slice(0,5),es=(e,l)=>{(null==k?void 0:k.includes(null==e?void 0:e.chainproductId))?M({type:"error",message:P("teapass.userReachedPassLimit")}):(null==U?void 0:U.locationId)?et(e,!1,l):O(null==z?void 0:z.ngdpId,!1,Y,!1,()=>{et(e,!1,l)})};return(0,i.jsx)("div",{className:"sliderArrow anotherRoundctr container lg:mx-auto ",children:(0,i.jsxs)("div",{className:"moduleCtr",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col-reverse lg:flex-row lg:justify-between",children:[(0,i.jsx)("div",{className:"flex gap-6",children:(0,i.jsx)(C.l,{length:null==er?void 0:er.length,isPromotion:!1,isReorder:!0,children:null==er?void 0:er.map((e,l)=>{var t,n,d,r,s,o;if((0,p.$42)(W,null==e?void 0:e.isSubscription))return null;let u=(0,p.wen)({fees:null!==(s=null==e?void 0:null===(t=e.fees)||void 0===t?void 0:t.total)&&void 0!==s?s:"",cost:null!==(o=null==e?void 0:null===(n=e.totalCost)||void 0===n?void 0:n.toString())&&void 0!==o?o:"",isCaMenu:R}),c=(null==e?void 0:e.caloriesRange)||(null==e?void 0:e.calories)||(null==e?void 0:e.baseCal),v="".concat(null==e?void 0:e.chainproductId,"_").concat(l),m=[g.s08,g.C8D].includes(null==e?void 0:e.templateId),h=e.templateId===g.C8D?null===(r=e.category)||void 0===r?void 0:null===(d=r.images[0])||void 0===d?void 0:d.url:el(e.images),x=V.isLoading&&V.selectedProductId===v;return(0,i.jsx)("div",{className:"itemListSlider min-w-[332px] max-w-[332px] pb-3 lg:min-w-[282px] lg:max-w-[282px] lg:rounded-lg",children:(0,i.jsxs)("div",{className:"pdpListTile lg:mb-0",children:[(0,i.jsxs)("div",{className:"pdpListTileImg lg:h-40",children:[(0,i.jsx)(ei,{product:e,productImageSrc:h}),(0,i.jsx)("span",{className:"texture"}),(0,i.jsx)("div",{className:"badgesContainer modulebadgesContainer",children:(0,i.jsx)("div",{className:"badgeContent",children:!(null==e?void 0:e.isAvailable)&&(0,i.jsx)("div",{className:"unavailableBatch","data-testid":"txt_unavailable",children:P("component.badge.text")})})})]}),(0,i.jsxs)("div",{className:"listinnerwrapper",children:[(0,i.jsx)(en,{product:e}),(0,i.jsx)("p",{className:"moduleSubText",children:(0,i.jsx)(D,{menuItem:e})}),(0,i.jsxs)("div",{className:"subText reOrderCalAndPrice",children:[(0,i.jsx)(ed,{costValue:u}),c&&!m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"subTextdot"}),ee?(0,i.jsx)(a.ZT,{as:"span",children:"".concat(P("home.selectedSellCard.cal.text",{calories:c,interpolation:{escapeValue:!1}}))}):(0,i.jsx)("span",{className:"subtextCal",children:(0,i.jsx)("span",{className:"subtextCal",children:"".concat(P("home.selectedSellCard.cal.text",{calories:c,interpolation:{escapeValue:!1}}))})})]})]}),(0,i.jsx)("div",{className:"pdpListButtonwrapper moduleSectionBtn",children:ee?(0,i.jsx)(a.zx,{className:"textStyle",label:P("home.btn.addtocart"),"data-testid":"btn_add_to_cart_reorder_".concat(l),disabled:!(null==e?void 0:e.isAvailable),isLoading:x,onClick:()=>es(e,v)}):(0,i.jsx)(b.z,{onClick:()=>es(e,v),title:P("home.btn.addtocart"),label:P("home.btn.addtocart"),customClass:"buttonPrimary moduleBtn",testid:"btn_add_to_cart_reorder_".concat(l),disabled:!(null==e?void 0:e.isAvailable),isLoading:x})})]})]})},null==e?void 0:e.orderId)})})}),(0,i.jsxs)("div",{className:"viewMore",children:[(0,i.jsxs)("div",{className:"lg:w-full",children:[(0,i.jsx)("div",{className:"bannerDoubleText",children:(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)("div",{className:"bannerTextSecond",children:K&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"bannerDoubleTextOne","data-testid":"txt_reorderfirst",dangerouslySetInnerHTML:{__html:K}}),(0,i.jsx)("span",{className:"bannerDoubleTextTwo","data-testid":"txt_reordersecond",dangerouslySetInnerHTML:{__html:K}})]})})})}),X&&(0,i.jsx)("p",{className:"reorderContent","data-test-id":"text_reorder_desc",dangerouslySetInnerHTML:{__html:X}})]}),(0,i.jsx)(A,{btnText:J,reOrderProducts:er,deeplink:Y})]})]}),(0,i.jsx)(w.C,{customClass:"disclaimerTextCartHomePage"})]})})},A=e=>{let{reOrderProducts:l,btnText:t,deeplink:n}=e,{push:r}=(0,d.useRouter)(),{slider_chevron_rightIcon:s}=f.assets;return l&&(null==l?void 0:l.length)>3&&(0,i.jsxs)("div",{className:"viewAllBtn","data-testid":"view-all-btn",children:[(0,i.jsx)(b.z,{title:t,onClick:()=>
1r(n),testid:"btn_edit_reorder"}),(0,i.jsx)("span",{children:(0,i.jsx)(N.Z,{...s,customClass:"cursor-pointer",id:"link_txt",onClick:()=>r(n)})})]})},D=e=>{var l,t;let{menuItem:n}=e,d=(0,o.Z)("(max-width: ".concat(g.xnF+1,"px)")),{selections:r}=n,u=[],c=[],v="",m="",p=(e,l,t,i,n)=>{e&&t.push("".concat(i).concat(l?" (+$"+(null==n?void 0:n.cost)+")":""))},h=(e,l)=>e&&!e.showChildrenOnly&&!(null==l?void 0:l.skipInCart)&&!(null==l?void 0:l.isSkipped),{isAtomicComponent:x}=(0,s.Vb)();if(n.templateId===g.s08||n.templateId===g.C8D)r.forEach(e=>{let{itemModifier:l,itemModifierGrp:t}=e;if(h(l,t)){let{mulGrpId:e}=t||{},{name:i,isSubProd:d,fees:r}=l,s=!d,o=Number(null==r?void 0:r.cost)>0;1===e?(p(s,o,u,i,r),(d||n.templateId===g.C8D)&&(v=n.templateId===g.C8D?n.name||"":i)):2===e&&(p(s,o,c,i,r),d&&(m=i))}});else{let e=null==r?void 0:r.filter(e=>{var l,t,i;return(null==e?void 0:null===(l=e.itemModifier)||void 0===l?void 0:l.choiceId)&&!(null==e?void 0:null===(t=e.itemModifier)||void 0===t?void 0:t.showChildrenOnly)&&!(null==e?void 0:null===(i=e.itemModifierGrp)||void 0===i?void 0:i.isSkipped)}).map(e=>{var l;return"+ ".concat(null==e?void 0:null===(l=e.itemModifier)||void 0===l?void 0:l.name)}).slice(0,3);return x?(0,i.jsx)(a.ZT,{className:"moduleSubText",as:"span",children:null==e?void 0:e.join(", ")}):(0,i.jsx)("span",{className:"moduleSubText",children:null==e?void 0:e.join(", ")})}let f=(e,l)=>"".concat(e,": ").concat(l.join(", ")," "),j=null===(l=f((null==n?void 0:n.templateId)===g.C8D?null==n?void 0:n.itemName:v,u))||void 0===l?void 0:l.trim(),b=null===(t=f(m,c))||void 0===t?void 0:t.trim();return(0,i.jsx)(T,{lines:[j,b],customClass:"moduleSubText",gap:4,inline:!0,maxCharacters:d?30:50,maxLines:1})}},81165:function(e,l,t){t.d(l,{m:function(){return u}});var i=t(36373),n=t(83409),d=t(60329),r=t(83125),s=t(40387),o=t(64387),a=t(7653);let u=e=>{let{menuTab:l,favoriteList:t,recentList:u,reOrder:c}=e,v=(0,d.TL)(),{menu:m}=(0,d.CG)(e=>e.menu),{cartData:p}=(0,d.CG)(e=>e.cart),{showApiFailure:h}=(0,s.useToast)(),{status:x}=(0,o.useSession)(),{getSubscription:f}=(0,i.c)(),[g,j]=(0,a.useState)(!1),[b,C]=(0,a.useState)(!1),[N,I]=(0,a.useState)([]),w=async()=>{try{var e,i,d,r,s,o,a,x,g,b,N;j(!0);let h=await f(),w=null==h?void 0:null===(e=h.data)||void 0===e?void 0:e.filter(e=>!1===e.autoRenewEnabled&&"ACTIVE"===e.subscriptionStatus||!1===e.autoRenewEnabled&&"INITIATED"===e.subscriptionStatus||!0===e.autoRenewEnabled&&"SUSPENDED"!==e.subscriptionStatus),_=null!==(d=null==p?void 0:null===(i=p.products)||void 0===i?void 0:i.filter(e=>e.isSubscription).map(e=>e.productId))&&void 0!==d?d:[],T=_.length+(null!==(r=null==w?void 0:w.length)&&void 0!==r?r:0);if(v((0,n.eX)(T)),T>=4){if(t&&(null==t?void 0:t.length)>0){let e=null!==(s=t&&Object.values(t).filter(e=>e.product.isSubscription))&&void 0!==s?s:[],l=null!==(o=null==e?void 0:e.map(e=>{var l;return null==e?void 0:null===(l=e.product)||void 0===l?void 0:l.chainproductId}))&&void 0!==o?o:[];I(l)}else if(l){let e=null!==(g=(null==m?void 0:m.products)&&Object.values(null==m?void 0:m.products).filter(e=>e.product.isSubscription))&&void 0!==g?g:[],l=null!==(b=null==e?void 0:e.map(e=>{var l;return null==e?void 0:null===(l=e.product)||void 0===l?void 0:l.id}))&&void 0!==b?b:[],t=(null==h?void 0:null===(a=h.data)||void 0===a?void 0:a.length)<4&&(null==h?void 0:null===(x=h.data)||void 0===x?void 0:x.length)+_.length===4;C(t),I(l)}else if(u&&(null==u?void 0:u.length)>0){let e=null!==(N=null==u?void 0:u.flatMap(e=>(null==e?void 0:e.orderDate)!==void 0&&Array.isArray(e.products)?Object.values(e.products).filter(e=>null==e?void 0:e.isSubscription):[]))&&void 0!==N?N:[],l=null==e?void 0:e.map(e=>null==e?void 0:e.chainproductId),t=null==l?void 0:l.filter(e=>void 0!==e);(null==t?void 0:t.length)>0&&I(t)}else c&&(null==c?void 0:c.length)>0&&(null==c||c.map(e=>(null==e?void 0:e.orderDate)!==void 0&&(null==e?void 0:e.products)&&Object.values(null==e?void 0:e.products).filter(e=>null==e?void 0:e.isSubscription)),(null==c?void 0:c.length)>0&&I(S(c)))}else C(!1),I([]);j(!1)}catch(e){j(!1),h()}},S=e=>(null==e?void 0:e.flatMap(e=>Array.isArray(e.products)?e.products.filter(e=>e.isSubscription&&e.chainproductId).map(e=>{var l;return null!==(l=e.chainproductId)&&void 0!==l?l:""}):[]))||[];return(0,a.useEffect)(()=>{r.gsH&&"authenticated"===x&&w()},[null==p?void 0:p.products,r.gsH,x]),{loading:g,tpProductIds:N,inCartBadge:b}}}}]);

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.