PageSourceSearch

https://schnucks.com/_next/static/chunks/7928-87db0c490487ecce.js

js schnucks.com collected 2026-09-24 09:23:45 UTC 61,424 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7928],{82991:function(e,t,n){n.d(t,{e:function(){return r}});var l=n(85893);function r(e){let{embedId:t,autoplay:n=!1}=e;return(0,l.jsx)("div",{className:"relative flex justify-center md:h-0 md:overflow-hidden md:pb-[56.25%]",children:(0,l.jsx)("iframe",{className:"size-full md:absolute md:left-0 md:top-0",width:"853",height:"480",src:"https://www.youtube.com/embed/".concat(t,"?").concat(n?"&autoplay=1":""),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})}},94567:function(e,t,n){n.d(t,{P:function(){return u}});var l=n(85893),r=n(39332),i=n(68004),s=n(14106),a=n(90048),o=n(8766);function c(e){let{title:t,categories:n,selectedCategoriesIds:r=[],loading:i,onSelectCategory:a,scrollToTop:c=()=>{}}=e;return(0,l.jsxs)("nav",{className:"hidden w-52 shrink-0 md:block","aria-label":"Categories",children:[(0,l.jsx)("div",{className:"mb-4 ml-2 text-h4",children:t}),i?(0,s.w6)(0,3).map(e=>(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(o.O,{}),(0,l.jsx)(o.O,{width:"2.5rem"})]},e)):(0,l.jsx)(d,{categories:n,selectedCategoriesIds:r,onSelectCategory:e=>{a&&(a(e),c())}})]})}function d(e){let{categories:t,depth:n=0,selectedCategoriesIds:r,onSelectCategory:i}=e,s=t.some(e=>{var t;return!!(null===(t=e.subCategories)||void 0===t?void 0:t.length)});return(0,l.jsx)("ul",{className:"relative",style:{marginLeft:"".concat(n,"rem")},children:t.map(e=>{let t=r.includes(e.id);return(0,l.jsxs)("li",{children:[(0,l.jsxs)("div",{className:"group flex",children:[!n&&(0,l.jsx)("span",{className:"my-1 -mr-0.5 w-0.5 shrink-0 bg-red transition-transform ".concat(t?"scale-y-100":"scale-y-0 group-hover:scale-y-100")}),(0,l.jsxs)(a.U,{className:"ml-2 flex w-full items-center justify-between gap-2 py-1 text-left transition-[color,font-weight] hover:text-h6 ".concat(!s||n?"":"text-h6"," ").concat(t?"text-red ".concat(s?"":"text-h6"):""),href:e.href,disabled:t,onClick:()=>null==i?void 0:i(e.id),"data-testid":"category-".concat(e.label),children:[e.label,void 0!==e.count&&(0,l.jsx)("span",{className:"rounded-full bg-red px-3 py-0.5 text-[0.875rem] font-normal leading-[1.125rem] text-white",children:e.count})]})]}),e.subCategories&&(0,l.jsx)(d,{categories:e.subCategories,depth:n+1,selectedCategoriesIds:r,onSelectCategory:i})]},e.id)})})}function u(e){var t;return e.loading||(null===(t=e.categories)||void 0===t?void 0:t.length)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{...e}),(0,l.jsx)(m,{...e})]}):null}function m(e){let{categories:t,selectedCategoriesIds:n,loading:s,onSelectCategory:a}=e,o=(0,r.useRouter)();return(0,l.jsx)(i.L,{className:"w-full md:hidden",variant:"button",loading:s,value:n[0],data:t,onChange:e=>{let n=t.find(t=>{let{id:n}=t;return n===e});(null==n?void 0:n.href)&&o.push(n.href),null==a||a(e)}})}},86598:function(e,t,n){n.d(t,{r:function(){return a}});var l=n(85893),r=n(93967),i=n.n(r),s=n(81146);function a(e){let{steps:t,progress:n}=e;return(0,l.jsxs)("div",{className:"flex w-full flex-col px-[1.125rem] pt-3",children:[(0,l.jsx)("div",{className:"-mb-6 h-3 bg-background-grey shadow-inner-sm",children:(0,l.jsx)("div",{className:"h-full rounded-r-full bg-gradient-to-b from-navy-gradient-start to-navy-gradient-end transition-[width] duration-1000",style:{width:"".concat(100*Math.min(n/(t.length-1),1),"%")}})}),(0,l.jsx)("div",{className:"flex justify-between",children:t.map((e,t)=>(0,l.jsxs)("div",{className:"flex w-0 flex-col items-center gap-4",children:[(0,l.jsx)("div",{className:"size-9 rounded-full shadow-inner-sm transition-colors duration-1000 ".concat(n>=t?"bg-navy":"bg-background-grey")}),(0,l.jsx)(s.Q,{className:i()({"grayscale brightness-150":n<t}),name:e})]},e))})]})}},22589:function(e,t,n){n.d(t,{a:function(){return f}});var l=n(85893),r=n(53731),i=n(5316),s=n(25424),a=n(67294),o=n(24189),c=n(74114),d=n(94567),u=n(14106),m=n(8766),x=n(58013);function h(e){let{loadingFilters:t,gridFilters:n,gridFiltersCheckedState:r,onFilterChange:i,scrollToTop:s=()=>{}}=e;return t?(0,l.jsx)("div",{children:(0,u.w6)(0,3).map(e=>(0,l.jsxs)("div",{className:"my-2 flex items-center gap-2",children:[(0,l.jsx)(m.O,{width:"1.5rem",height:"1.5rem",rounded:"lg"}),(0,l.jsx)(m.O,{height:"1.5rem",className:"max-w-52",rounded:"lg"})]},e))}):(null==n?void 0:n.length)?(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsx)("h1",{className:"mb-4 text-h4 md:ml-2",children:"Filters"}),(0,l.jsx)("div",{className:"flex flex-col gap-2 md:p-2",children:n.map(e=>
1(0,l.jsx)(x.X,{checked:!!(null==r?void 0:r[e.id]),onChange:t=>{null==i||i(e.id,e.buttonLabel,e.serviceParamValue,t.currentTarget.checked),s()},children:e.buttonLabel},e.id))})]}):null}function f(e){var t,n;let{title:u,subtitle:m,centerTitle:x=!1,id:f,className:p,onChangeScrollTopOffset:g,loadingCategories:v=!1,categoriesTitle:j="",categoryItems:N=[],selectedCategoriesIds:y=[],onSelectCategory:b,titleChildren:w,categoriesChildren:E,gridFilters:k,loadingFilters:I=!1,gridFiltersCheckedState:S,onFilterChange:C,onClearAllFilters:L,children:_}=e,D=(0,i.G)("md"),A=(0,s.P)(),T="calc(".concat(A,"px + 2rem)"),R=Object.entries(null!=S?S:{}),P=!!(null==k?void 0:k.length)&&!!R.length,O=(0,a.useRef)(null),M=null!=g?g:(null!==(n=null==O?void 0:null===(t=O.current)||void 0===t?void 0:t.offsetTop)&&void 0!==n?n:0)-A-50,F=(0,a.useCallback)(()=>{setTimeout(()=>{window.scrollTo({top:M})})},[M]);return(0,l.jsxs)(r.W,{className:"grid gap-x-8 px-5 md:grid-cols-[auto_1fr] md:grid-rows-[auto_1fr] ".concat(p),style:{gridTemplateAreas:D?'"title" "filter" "grid"':'"filter title" "filter grid"'},children:[(0,l.jsxs)("div",{style:{gridArea:"title"},className:"md:mb-4",ref:O,children:[(0,l.jsx)("div",{className:"mb-4 md:hidden",children:E}),(0,l.jsxs)("div",{id:u?void 0:f,className:"mb-4",children:[u&&(0,l.jsx)("h1",{id:f,className:"mb-2 text-h4 md:text-h1 ".concat(x?"text-center":""),children:u}),m&&(0,l.jsx)("h2",{className:"mb-5 hidden text-h4 md:block",children:m}),w]}),P?(0,l.jsxs)("div",{className:"mb-2 flex flex-col items-start gap-2 md:mb-6 md:flex-row md:items-center",children:[(0,l.jsx)("h1",{className:"mr-2 text-h6",children:"Filtered By:"}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2",children:[R.map(e=>{let[t,{filterButtonLabel:n,filterServiceParamValue:r}]=e;return(0,l.jsx)(c._,{className:"px-3",fill:"none",outline:"solid",decorationEnd:(0,l.jsx)(o.J,{name:"Close"}),onClick:()=>null==C?void 0:C(Number(t),n,r,!1),children:n},t)}),R.length>1&&(0,l.jsx)(c._,{className:"px-3",fill:"none",decorationEnd:(0,l.jsx)(o.J,{name:"Close"}),onClick:L,children:"Clear All"})]})]}):null]}),(0,l.jsx)("div",{style:{gridArea:"filter"},className:"mb-4 md:mb-0",children:(0,l.jsx)("div",{className:"mb-6 flex flex-col md:sticky md:mb-0",style:{to
1p:T},children:(0,l.jsxs)("div",{className:"md:overflow-y-auto md:pr-4",style:{maxHeight:"calc(99vh - ".concat(T,")")},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"hidden md:flex",children:E}),(0,l.jsx)(d.P,{loading:v,title:j,categories:N,selectedCategoriesIds:y,onSelectCategory:b,scrollToTop:F})]}),(0,l.jsx)(h,{loadingFilters:I,gridFilters:k,gridFiltersCheckedState:S,onFilterChange:C,scrollToTop:F})]})})}),(0,l.jsx)("div",{className:"min-w-0",style:{gridArea:"grid"},children:_})]})}},94742:function(e,t,n){n.d(t,{F:function(){return i},R:function(){return r}});var l=n(67294);let r=(0,l.createContext)(void 0),i=()=>(0,l.useContext)(r)},85634:function(e,t,n){n.d(t,{M:function(){return l}});let l=e=>{if(!e)return"";let t=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);return void 0!==t[2]?t[2].split(/[^0-9a-z_-]/i)[0]:t[0]}},43471:function(e,t,n){n.d(t,{k:function(){return s}});var l=n(85893),r=n(24189),i=n(93230);function s(e){var t;let{className:n="",order:s}=e,a=(0,i.CK)(s.status),o="CANCELED"===s.status,c=!!((null===(t=s.fulfillment.window)||void 0===t?void 0:t.revisedStartTime)&&s.fulfillment.window.revisedEndTime);return a||o||!c?null:(0,l.jsxs)("span",{className:"flex items-center gap-2 text-h6 text-red ".concat(n),children:[(0,l.jsx)(r.J,{name:"RunningLate"})," Running Late"]})}},7736:function(e,t,n){n.d(t,{a:function(){return o}});var l=n(85893),r=n(39902),i=n(67294),s=n(5068),a=n(73083);function o(e){let{orderId:t,fallbackData:n,children:o}=e,[c,d]=(0,i.useState)(!1),[u,m]=(0,i.useState)(!0),{data:x,error:h,isLoading:f,isValidating:p,mutate:g}=(0,s.ZP)(()=>t?{url:"user/orders/".concat(t)}:null,r.R1,{shouldRetryOnError:!1,revalidateOnFocus:!1,fallbackData:n,revalidateOnMount:void 0===n,onSuccess:()=>{m(!1)},onError:()=>{m(!1)}});async function v(e){if(!x)throw Error("Attempt to update a non existing order.");d(!0);try{let t=await (0,r.pE)({url:"user/orders/".concat(null==x?void 0:x.id),body:e});return g(t),t}finally{d(!1)}}async function j(e){if(!x)throw Error("Attempt to update a non existing order.");d(!0);try{let t=await (0,r.pE)({url:"user/orders/".concat(x.id),body:{action:"UPDATE_ORDER_DETAILS",customer:x.customer,tipOptionId:e.tipAmount?void 0:x.tip.optionId,tipAmount:x.tip.optionId||e.tipOptionId?void 0:x.tip.value,leaveUnattended:x.leaveUnattended,note:x.note,smsOptIn:x.smsOptIn,...e}});return g(t),t}finally{d(!1)}}async function N(e){if(!x)throw Error("Cannot add an item without a selected order.");d(!0);try{let t=await (0,r.pE)({url:"user/orders/".concat(x.id),body:{action:"ADD_ITEM",orderItem:e}});g(t)}finally{d(!1)}}async function y(e){throw Error("Not yet implemented")}async function b(e,t){if(!x)throw Error("Cannot update an item without a selected order.");d(!0);try{var n,l,i,s;let a=await (0,r.pE)({url:"user/orders/".concat(x.id),body:{action:"UPDATE_ITEM",orderItem:{upcId:e.upcId,quantity:null!==(l=t.quantity)&&void 0!==l?l:e.quantity,unitOfMeasure:t.unitOfMeasure,note:null!==(i=t.note)&&void 0!==i?i:e.note,replacementPreference:null!==(s=t.replacementPreference)&&void 0!==s?s:e.replacementPreference,replacementUpcIds:(null===(n=t.replacementUpcIds)||void 0===n?void 0:n.length)?t.replacementUpcIds:e.replacementUpcIds}}});g(a)}finally{d(!1)}}async function w(e){if(!x)throw Error("There is no selected order to remove the item from.");d(!0);let t=e.map(e=>e.id);try{let n=e.map(e=>(0,r.pE)({url:"user/orders/".concat(x.id),body:{action:"DELETE_ITEM",orderItemDeleteRequest:{orderItemId:e.id,quantity:0}}}));await Promise.all(n);let l=[];x.items.forEach(e=>{t.includes(e.id)||l.push(e)}),g({...x,items:l})}finally{d(!1)}}async function E(){await g()}let k={orderType:"existing",order:x,orderError:h,loadingOrder:f,checkingForOpenOrder:u,updatingOrder:c,validatingOrder:p,canAddOrEditProduct:(null==x?void 0:x.status)==="SUBMITTED",save:v,saveDetails:j,addItem:N,addItems:y,updateItem:b,removeItems:w,revalidate:E};return(0,l.jsx)(a.y.Provider,{value:k,children:o})}},38431:function(e,t,n){n.d(t,{K:function(){return c}});var l=n(39902),r=n(1005),i=n(91307),s=n(86811),a=n(67294),o=n(5068);function c(){let[e,t]=(0,a.useState)(!0),{fulfillmentType:n,fulfillmentStoreId:c,loadingFulfillmentData:d}=(0,r.s)(),{user:u}=(0,i.b)(),{data:m,...x}
1=(0,o.ZP)(function(){return u&&c?{url:"catalog/personalized-savings",params:(0,s.b3)({store:c,fulfillmentType:n})}:null},l.R1,{shouldRetryOnError:!1,revalidateOnFocus:!1,onSuccess:()=>{t(!1)},onError:()=>{t(!1)}});return(0,a.useEffect)(()=>{x.isLoading&&t(!0)},[x.isLoading]),{catalogItems:null==m?void 0:m.items,categories:null==m?void 0:m.categories,curatedItemUpcIds:null==m?void 0:m.curatedItemUpcIds,productsError:x.error,loadingPersonalizedSavings:d||!!u&&e}}},8527:function(e,t,n){n.d(t,{V:function(){return W}});var l={};n.r(l),n.d(l,{disclaimer:function(){return p},h1:function(){return c},h2:function(){return d},h3:function(){return u},h4:function(){return m},h5:function(){return x},h6:function(){return h},normal:function(){return f}});var r={};n.r(r),n.d(r,{bullet:function(){return v},number:function(){return j}});var i={};n.r(i),n.d(i,{TextReplacement:function(){return S},center:function(){return L},color:function(){return D},left:function(){return C},link:function(){return A},right:function(){return _}});var s={};n.r(s),n.d(s,{button:function(){return z},buttonsGroup:function(){return V},imageField:function(){return K}});var a=n(85893),o=n(5814);let c=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h2",{className:"text-h1",children:n})},d=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h3",{className:"text-h2",children:n})},u=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h4",{className:"text-h3",children:n})},m=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h5",{className:"text-h4",children:n})},x=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h6",{className:"text-h5",children:n})},h=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("h6",{className:"text-h6",children:n})},f=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("p",{className:"text-body",children:n})},p=e=>{var t;let{children:n}=e;return null!==(t=g(n))&&void 0!==t?t:(0,a.jsx)("p",{className:"text-body-small",children:n})};function g(e){if(Array.isArray(e)&&1===e.length&&""===e[0])return(0,a.jsx)("br",{})}let v=e=>{let{children:t}=e;return(0,a.jsx)("ul",{className:"list-disc pl-8 font-normal",children:t})},j=e=>{var t,n,l,r;let{children:i}=e,s="list-decimal";if(Array.isArray(i)&&i.length>0&&!isNaN(null===(n=i[0].props)||void 0===n?void 0:null===(t=n.value)||void 0===t?void 0:t.level)&&(null===(r=i[0].props)||void 0===r?void 0:null===(l=r.value)||void 0===l?void 0:l.level)>0){let e=i[0].props.value.level%3;0===e&&(s="list-[lower-roman]"),1===e&&(s="list-decimal"),2===e&&(s="list-[lower-alpha]")}return(0,a.jsx)("ol",{className:"pl-8 font-normal ".concat(s),children:i})};var N=n(42332),y=n(94742),b=n(41664),w=n.n(b);let E={left:"text-left",center:"text-center",right:"text-right",unset:""},k={unset:"",sm:"drop-shadow-text-sm",md:"drop-shadow-text-md",lg:"drop-shadow-text-lg"};var I=n(13891);let S=e=>{let{children:t,value:n}=e,l=(0,y.F)(),r=n&&l&&l[n.token];return(0,a.jsx)("span",{children:r||t})},C=e=>{let{children:t}=e;return(0,a.jsx)("span",{className:"block text-left",children:t})},L=e=>{let{children:t}=e;return(0,a.jsx)("span",{className:"block text-center",children:t})},_=e=>{let{children:t}=e;return(0,a.jsx)("span",{className:"block text-right",children:t})},D=e=>{let{children:t,value:n}=e;return n?(0,a.jsx)("span",{className:k[n.dropShadow],style:{color:(0,I.JT)(n,!0)},children:t}):(0,a.jsx)(a.Fragment,{children:t})},A=e=>{let{children:t,value:n}=e;return(0,a.jsx)(w(),{className:"underline ".concat((0,N.y)({variant:"text",color:"navy",width:"fit",size:"fit",defaultProps:!1})),...(0,I.LR)(n),children:t})};var T=n(20265),R=n(93967),P=n.n(R);let O={xs:"max-w-[6rem]",sm:"max-w-[12rem]",md:"max-w-[18rem]",lg:"max-w-[24rem]",xl:"max-w-[30rem]"},M={row:"flex-row",column:"flex-col"};function F(e){let{className:t="",link:n,color:l,variant:r,width:i,customWidth:s}=e;return(0,a.jsx)(T.r,{className:"".concat("custom"===i?O[s]:""," ").concat(t),variant:r,color:l,width:i,...(0,I.LR)(n),children:n.title})}let z=e=>{let{value:t}=e;return(0,a.jsx)("div",{className:E[t.alignment],children:(0,a.jsx)(F,{...t})})},G={left:"mr-auto",center:"mx-auto",right:"ml-auto",unset:""},V=e=>{let{value:{direction:t,buttons:n}}=e;return(0,a.jsx)("div",{className:"flex flex-wrap gap-4 ".concat(M[t]),children:n.map(e=>{let t=P()("whitespace-nowrap",G[e.alignment],{"w-full md:w-fit":"fit"===e.width});return(0,a.jsx)(F,{className:t,...e},e._key)})})};var B=n(48763);let q={sharp:"rounded-none",sm:"rounded-md",md:"rounded-xl",lg:"rounded-3xl",full:"rounded-full"},K=e=>{var t;let{value:{source:n,size:l,customSize:r,aspectRatio:i,display:s,alignment:o,corners:c="sharp",isLink:d,link:u}}=e,m=function(e,t){switch(e){case"lg":return 512;case"md":return 256;case"sm":return 128;
1case"custom":return null!=t?t:"auto";default:return"auto"}}(l,r),x=(0,a.jsx)("img",{className:"object-cover ".concat(q[c]," ").concat(function(e,t){switch(e){case"block":switch(t){case"left":return"mr-auto";case"center":return"mx-auto";case"right":return"ml-auto";default:return""}case"inline":switch(t){case"left":return"float-left mr-2";case"right":return"float-right ml-2";default:return""}}}(s,o)),src:function(e,t){let n=(0,B.u)(e);return"auto"===t?n.url():n.width(t).height(t).url()}(n,m),alt:null!==(t=n.alt)&&void 0!==t?t:"",width:m,height:m,loading:"lazy",style:{aspectRatio:i}});return d?(0,a.jsx)(w(),{...(0,I.LR)(u),children:x}):x},U={block:l,marks:i,list:r,types:s};function W(e){let{value:t}=e;return(0,a.jsx)(o.YI,{components:U,onMissingComponent:!1,value:t})}},17928:function(e,t,n){n.d(t,{z:function(){return tI}});var l={};n.r(l),n.d(l,{accordionListSection:function(){return f},accordionSection:function(){return x},articleCard:function(){return i.T},autoScrollBannerSection:function(){return C},carouselSection:function(){return eo},columnsSection:function(){return ec},customTable:function(){return ex},digitalAdSection:function(){return eA},digitalCouponsSection:function(){return eB},dividerLineSection:function(){return eq.K},dropdownSelectorSection:function(){return eW},fiftyFiftySection:function(){return eZ},googleFormsSection:function(){return eY},heroSection:function(){return e2},orderStatusSection:function(){return te},pageTitleSection:function(){return tt},productGridSection:function(){return tm},recipeCard:function(){return O.v},sectionCollectionSection:function(){return tx},splitHeroSection:function(){return tv},textAreaSection:function(){return tj},textBannerSection:function(){return ty},textBlockSection:function(){return tw},youTubeVideoSection:function(){return tk}});var r=n(85893),i=n(65276),s=n(17091),a=n(53731),o=n(23259),c=n(24189),d=n(83216),u=n(8527);function m(e){let{topic:{title:t,content:n},smallerHeadings:l=!1,className:i=""}=e;return(0,r.jsx)(d.p,{as:"section",children:e=>{let{open:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.p.Button,{className:"flex w-full items-center justify-between gap-2 rounded-md bg-background-grey p-4 text-left ".concat(s?"rounded-b-none":""," ").concat(i),children:[(0,r.jsx)("div",{children:l?(0,r.jsx)("h3",{className:"text-h6",children:t}):(0,r.jsx)("h2",{className:"text-h5",children:t})}),(0,r.jsx)(c.J,{name:"ChevronDown",size:16,className:"transition-transform ".concat(s?"rotate-180":""," text-navy")})]}),(0,r.jsx)(d.p.Panel,{className:"rounded-b-md bg-background-grey p-4 ".concat(i),children:(0,r.jsx)(u.V,{value:n})})]})}})}function x(e){let{accordion:t,sectionAnchor:n,showTitle:l,title:i}=e,{topics:c}=t;return(0,r.jsx)(a.W,{children:(0,r.jsxs)(s.Z,{className:"".concat(n?"quick-link-section-anchor ":"","flex flex-col gap-4 p-8"),id:(0,o.N)(n),children:[l&&(0,r.jsx)("h2",{className:"mb-4 text-h2",children:i}),(0,r.jsx)("ul",{className:"flex flex-col gap-4",children:null==c?void 0:c.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(m,{topic:e})},e._key))})]})})}function h(e){var t;let{accordion:n}=e;return(0,r.jsxs)(d.p,{as:"section",className:"flex flex-col",children:[(0,r.jsx)(d.p.Button,{className:"flex w-full items-center justify-between rounded-md bg-background-grey px-4 pt-4 text-left text-h5 ui-open:rounded-b-none ui-not-open:pb-4",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{children:n.title}),(0,r.jsx)(c.J,{name:"ChevronDown",size:16,className:"text-navy transition-transform ui-open:rotate-180"})]})}),(0,r.jsx)(d.p.Panel,{className:"rounded-b-md bg-background-grey p-5",children:(0,r.jsx)("ul",{className:"flex flex-col gap-4",children:null===(t=n.topics)||void 0===t?void 0:t.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(m,{topic:e,smallerHeadings:!0,className:"bg-white"})},e._key))})})]})}function f(e){let{title:t,sectionAnchor:n,showTitle:l,accordions:i}=e;return(0,r.jsx)(a.W,{children:(0,r.jsxs)(s.Z,{className:"".concat(n?"quick-link-section-anchor ":"","flex flex-col gap-4 p-8"),id:(0,o.N)(n),children:[l&&(0,r.jsx)("h2",{className:"mb-4 text-h2",children:t}),(0,r.jsx)("ul",{className:"flex flex-col gap-4",children:null==i?void 0:i.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(h,{accordion:e})},e._id))})]})})}var p=n(54122),g=n(67294),v=n(68092),j=n(98995);function N(e){let{id:t,className:n="",extendContent:l=!1,autoScrollDuration:i,children:s}=e,o=g.Children.toArray(s).filter(e=>!("type"in e)||!("props"in e)||("function"==typeof e.type?null!==e.type(e.props):null!==e.type)),d=o.length,u=d>1,m=(0,g.useRef)(null),[x,h]=(0,g.useState)(!1),[f,N]=(0,g.useState)(0),[y,b]=(0,g.useState)(()=>[d-1,0,1]),w=e=>{let t=m.current;if(e===f||!t)return;let n=e>f,l=(0,p.yO)(e,d-1);h(!0),N(l),b(e=>n?[e[0],e[1],l]:[l,e[1],e[2]]),setTimeout(()=>{t.scrollTo({left:n?t.scrollWidth-t.clientWidth:0,behavior:"smooth"})},0)},[E,k]=function(e,t,n,l){let[r,i]=(0,g.useState)(!1);return(0,g.useEffect)(()=>
1{if(!e||r)return;let t=setTimeout(()=>l(n+1),e);return()=>clearTimeout(t)},[n,e,t,l,r]),[r,i]}(u?i:0,d,f,w),I=(0,g.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.scrollTo({left:m.current.clientWidth,behavior:"instant"})},[]),S=(0,g.useCallback)(()=>{b([(0,p.yO)(f-1,d-1),f,(0,p.yO)(f+1,d-1)]),h(!1),setTimeout(()=>I(),0)},[I,f,d]);return(0,g.useEffect)(()=>{let e=m.current;if(e)return e.addEventListener("scrollend",S),()=>e.removeEventListener("scrollend",S)},[S]),(0,g.useEffect)(()=>{I()},[I]),(0,r.jsxs)(a.W,{id:t,className:"w-full ".concat(n),extendContent:l,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-2 ".concat(l?"":"sm:px-0"),children:[u&&(0,r.jsx)(v.z,{className:"shrink-0",adornmentStart:(0,r.jsx)(c.J,{name:"ChevronLeft"}),size:"sm",width:"square",disabled:x,onClick:()=>w(f-1),"aria-label":"Previous slide"}),(0,r.jsx)("div",{ref:m,className:"flex w-full overflow-x-hidden scroll-smooth",onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:y.map((e,t)=>(0,r.jsx)("div",{className:"w-full shrink-0",role:"group","aria-roledescription":"Slide","aria-hidden":1!==t,children:o[e]},t))}),u&&(0,r.jsx)(v.z,{className:"shrink-0",adornmentStart:(0,r.jsx)(c.J,{name:"ChevronRight"}),size:"sm",width:"square",disabled:x,onClick:()=>w(f+1),"aria-label":"Next slide"})]}),u&&(0,r.jsx)(j.s,{size:d-1,current:f,displayPauseControl:!!i,paused:E,onPauseChange:k,onClickDot:w})]})}function y(e){let{type:t}=e;return(0,r.jsxs)("div",{className:"border border-red bg-[#FF9999] p-3 text-center font-bold text-red",children:['renderer for "',t,'" not found']})}var b=n(91307),w=n(76315),E=n(33011),k=n(30120);function I(e){let{sectionShowHideDates:t,children:n}=e,l=null==t?void 0:t.showDate,i=null==t?void 0:t.hideDate;return(0,r.jsxs)("div",{className:"border bg-[#c9f3e185]",children:[(0,r.jsxs)("div",{className:"border-b bg-[#9fe3aea5] p-3 text-center",children:[(0,r.jsx)("h3",{className:"font-bold text-black",children:"~ Section below is not currently visible ~"}),(0,r.jsxs)("div",{className:"mt-4 flex justify-evenly",children:[l&&(0,r.jsxs)("p",{className:"text-black",children:["Show Date:",(0,r.jsx)("span",{className:"mx-2 font-bold",children:"".concat(k.ou.fromISO(l).toFormat("MMM dd, yyyy"))})]}),i&&(0,r.jsxs)("p",{className:"text-black",children:["Hide Date:",(0,r.jsx)("span",{className:"mx-2 font-bold",children:"".concat(k.ou.fromISO(i).toFormat("MMM dd, yyyy"))})]})]})]}),n]})}function S(e){var t,n;let{section:i,id:s,pageTitle:a="",siteSettings:o}=e,{user:c,loadingUser:d}=(0,b.b)(),u=(0,E.R)();if(!(e=>{if(!e)return!0;let{loggedInUsers:t=!0,loggedOutUsers:n=!0}=e;return!!n&&!c||!d&&!!t&&!!c})(i.sectionVisibility))return null;let m=l[i._type];return(0,w.S)(i.sectionShowHideDates,u)?(0,r.jsx)("div",{"data-sanity-key":null!==(n=i.title)&&void 0!==n?n:"untitled ".concat(i._type),children:(0,r.jsx)(m,{...i,siteSettings:o,pageTitle:a,id:s})}):(null==u?void 0:u.isPreviewPlaceholderVisible)?(0,r.jsx)(I,{sectionShowHideDates:i.sectionShowHideDates,children:(0,r.jsx)("div",{"data-sanity-key":null!==(t=i.title)&&void 0!==t?t:"untitled ".concat(i._type),children:(0,r.jsx)(m,{...i,siteSettings:o,pageTitle:a,id:s})})}):null}function C(e){let{sectionAnchor:t,extendContent:n,autoScrollDuration:i,items:s}=e;return(0,r.jsx)(N,{id:(0,o.N)(t),className:"".concat(t?" quick-link-section-anchor":""),extendContent:n,autoScrollDuration:1e3*i,children:s.map(e=>e._type in l?(0,r.jsx)(S,{section:e},e._key):(0,r.jsx)(y,{type:e._type},e._key))})}var L=n(19578),_=n(48763),D=n(41664),A=n.n(D),T=n(13891);function R(e){let{image:t,link:n,title:l}=e,i=(0,T._m)(n),s="Link to view more about ".concat(i&&n.title?n.title:l);return(0,r.jsx)(A(),{...(0,T.LR)(n),"aria-label":s,children:(0,r.jsxs)("div",{className:"flex w-60 flex-col gap-y-4","data-testid":"ad-card",children:[(0,r.jsx)("div",{style:{backgroundImage:"url(".concat((0,_.u)(t).url(),")")},className:"h-36 w-60 rounded-2xl bg-cover"}),i&&(0,r.jsxs)("p",{className:"inline-flex w-fit items-center justify-center gap-2 break-words rounded-lg px-5 py-[0.6875rem] text-h6 text-navy hover:underline",color:"navy",children:[n.title,(0,r.jsx)(c.J,{name:"ChevronRight"})]})]})})}function P(e){let{ads:t,maxLength:n,...l}=e;return(null==t?void 0:t.length)?(0,r.jsx)(L.l,{...l,children:t.slice(0,n).map((e,t)=>{var n,l;return(0,r.jsx)(R,{...e},null!==(l=null!==(n=e.id)&&void 0!==n?n:e._key)&&void 0!==l?l:t)})}):(0,r.jsx)(r.Fragment,{})}var O=n(38889),M=n(8766);let F=()=>(0,r.jsx)(s.Z,{className:"h-28 w-80 overflow-hidden rounded-lg bg-white shadow-md shadow-navy/30",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 roun
1ded-lg border border-dashed border-light-grey bg-white p-4",children:[(0,r.jsx)(M.O,{width:"350",height:"250",rounded:"xl",disableMargin:!0}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,r.jsx)(M.O,{className:"text-h6",width:"50%"}),(0,r.jsx)("div",{children:(0,r.jsx)(M.O,{lines:2})}),(0,r.jsx)("div",{children:(0,r.jsx)(M.O,{width:"70%",lines:2})}),(0,r.jsx)(M.O,{height:"2.75rem",rounded:"lg"})]})]})});var z=n(14106);let G=e=>{let{maxLength:t}=e;return(0,r.jsx)(L.l,{arrowsNavigation:"DESKTOP",dotsNavigation:"MOBILE",children:(0,z.w6)(0,t).map(e=>(0,r.jsx)(F,{},e))})},V=e=>{switch(e){case"articles":return["article"];case"recipes":return["recipe"];default:return["recipe","article"]}};function B(e){let t=V(e.typeOfContent);if(!e.articlesAndRecipes)return(0,r.jsx)(G,{maxLength:e.maxLength});if(!e.articlesAndRecipes.length)return null;let n=e.articlesAndRecipes.reduce((e,t)=>e.find(e=>e._id===t._id)?e:[...e,t],[]).filter(e=>!!e&&t.includes(e._type)).slice(0,e.maxLength).map(e=>({article:(0,r.jsx)(i.T,{...e},e._id),recipe:(0,r.jsx)(O.v,{...e},e._id)})[e._type]);return(0,r.jsx)(L.l,{...e,arrowsNavigation:"DESKTOP",dotsNavigation:"MOBILE",children:n})}function q(e){let{articles:t,maxLength:n,...l}=e;return(null==t?void 0:t.length)?(0,r.jsx)(L.l,{...l,children:t.slice(0,n).map((e,t)=>{var n;return(0,r.jsx)(i.T,{...e},null!==(n=null==e?void 0:e._id)&&void 0!==n?n:t)})}):(0,r.jsx)(G,{maxLength:(null==t?void 0:t.length)||0})}var K=n(5316),U=n(42496),W=n(34567),J=n(20265),X=n(23825);function H(e){let{image:t,link:n,imageAspectRatio:l,copy:i,alternateText:s,title:a,itemBackgroun
1dColor:o,itemBackgroundBoxSize:d,className:m,imageClassName:x,button:h,disclaimer:f}=e,p=(0,K.G)("sm"),[v,j]=(0,g.useState)(!1);return(0,r.jsx)("div",{className:"h-full ".concat(m),"data-testid":"image-card",children:(0,r.jsxs)("div",{className:"mx-auto flex h-full flex-col justify-between rounded object-cover p-5",style:{backgroundColor:(0,T.JT)(o),width:p?"auto":d},children:[(0,r.jsx)(()=>{let e=()=>{var e,n;return(0,r.jsxs)("div",{className:"text-black",children:[t&&(0,r.jsx)("img",{src:"".concat((0,_.u)(t).auto("format").fit("max").width(1600).url()),alt:null!==(n=null!==(e=t.alt)&&void 0!==e?e:s)&&void 0!==n?n:"",title:a,style:{aspectRatio:l},className:"mx-auto ".concat(x)}),(0,X.Mz)(i)&&(0,r.jsx)("div",{className:"mt-5",children:(0,r.jsx)(u.V,{value:i})})]})};return(0,r.jsx)(r.Fragment,{children:n?(0,r.jsx)(J.r,{...(0,T.LR)(n),className:"h-full",children:(0,r.jsx)(e,{})}):(0,r.jsx)("div",{className:"h-full",children:(0,r.jsx)(e,{})})})},{}),f&&(0,r.jsx)("button",{className:"absolute right-2 top-2 z-10",onClick:()=>j(e=>!e),"aria-label":"Toggle details","data-testid":"toggle-button-coupon-details-test",children:(0,r.jsx)(c.J,{name:v?"Close":"Info"})}),v&&(0,r.jsx)("section",{className:"absolute inset-0 flex flex-col rounded-lg bg-background-grey",children:(0,r.jsx)("div",{className:"h-full overflow-auto p-4 pr-6",children:(0,r.jsx)("p",{className:"mb-8",children:f})})}),h&&(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(J.r,{className:"px-5 py-3",variant:"contained",width:"full",color:null==h?void 0:h.color,...(0,T.LR)(null==h?void 0:h.link),"data-testid":"image-block-button",children:null==h?void 0:h.link.title})})]})})}var Z=n(60247);function Y(e,t){return e.sortValue<t.sortValue?-1:e.sortValue>t.sortValue?1:0}function Q(e,t){return t?e.filter(e=>(e.description+e.brand).toLowerCase().includes(t.toLowerCase())):e}var $=n(39902),ee=n(5068);let et=e=>{let t=(0,ee.ZP)(function(){return e?{url:"coupon-api/v1/coupons/".concat(e),authenticated:!1}:null},$.R1,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{coupon:t.data,loadingCoupon:t.isLoading}};function en(e){let{couponId:t}=e,{coupon:n,loadingCoupon:l}=et(t);return l?(0,r.jsx)(U.q,{className:"md:w-[420px]",vertical:!0}):n?(0,r.jsx)(U.K,{className:"h-full md:w-[420px]",coupon:n,vertical:!0}):null}function el(e){var t,n,l;let i=(0,K.G)("md"),{coupons:s,loadingCoupons:a}=(0,W.b)();return s.sort(Y),(0,r.jsx)(L.l,{...e,arrowsNavigation:"DESKTOP",dotsNavigation:"MOBILE",showInnerGap:(null===(t=s[0])||void 0===t||!t.featured)&&(null===(n=s[0])||void 0===n||!n.expiring),children:a?(l=e.maxLength,(0,z.w6)(1,l).map(e=>(0,r.jsx)(U.q,{className:"w-[13.75rem] md:w-[26rem]",vertical:i},e))):(()=>{if(e.carouselItems){var t;return null===(t=e.carouselItems)||void 0===t?void 0:t.slice(0,e.maxLength).map(e=>"carouselCustomizedCoupon"===e._type?(0,r.jsx)("div",{className:"relative size-full items-center",children:(0,r.jsx)(H,{...e,className:"h-full rounded-lg border border-dashed border-black bg-white lg:w-[420px]",imageClassName:"h-32",button:e.button})},e._key):"carouselCouponId"===e._type?(0,r.jsx)(en,{couponId:e.couponId},e._key):(0,r.jsx)(r.Fragment,{}))}return s.slice(0,e.maxLength).map(e=>(0,r.jsx)(U.K,{className:"h-full sm:w-[31vw] md:w-[26rem]",coupon:e,vertical:i},e.id))})()})}function er(e){let{images:t,maxLength:n,...l}=e;if(!(null==t?void 0:t.length))return(0,r.jsx)(r.Fragment,{});let i=t.map(e=>
1({...e,itemBackgroundColor:l.itemBackgroundColor,itemBackgroundBoxSize:l.itemBackgroundBoxSize}));return(0,r.jsx)(L.l,{...l,children:i.slice(0,n).map((e,t)=>{var n,l;return(0,r.jsx)(H,{...e},null!==(l=null!==(n=e.id)&&void 0!==n?n:e._key)&&void 0!==l?l:t)})})}var ei=n(7687);function es(e){return e.recipes?(0,r.jsx)(L.l,{...e,arrowsNavigation:"DESKTOP",dotsNavigation:"MOBILE",children:e.recipes.slice(0,e.maxLength).map(e=>(0,r.jsx)(O.v,{...e},e._id))}):(0,r.jsx)(G,{maxLength:e.maxLength})}function ea(e){switch((0,o.N)(e.type)){case"ads":return(0,r.jsx)(P,{...e});case"images":return(0,r.jsx)(er,{...e});case"products":return(0,r.jsx)(ei.b,{...e});case"coupons":return(0,r.jsx)(el,{...e});case"articles-and-recipes":return(0,r.jsx)(B,{...e});case"articles":return(0,r.jsx)(q,{...e});case"recipes":return(0,r.jsx)(es,{...e})}}function eo(e){let{sectionAnchor:t,...n}=e;return(0,r.jsx)(a.W,{id:(0,o.N)(t),className:"".concat(t?"quick-link-section-anchor ":"","px-5 md:px-0"),children:(0,r.jsx)(ea,{...n})})}function ec(e){let{title:t,showTitle:n,description:l,extendContent:i,backgroundColor:s,textColor:c,rows:d=[],sectionAnchor:u}=e;return(0,r.jsx)("div",{id:(0,o.N)(u),className:"".concat(u?"quick-link-section-anchor ":"","w-full px-4 py-8"),style:{color:(0,T.JT)(c,!0),background:(0,T.JT)(s)},children:(0,r.jsxs)(a.W,{extendContent:i,children:[(n||l)&&(0,r.jsxs)("header",{className:"mb-4",children:[n&&(0,r.jsx)("h2",{className:"text-h1",children:t}),l&&(0,r.jsx)("p",{children:l})]}),(0,r.jsx)("div",{className:"flex flex-col gap-8",children:d.map(e=>(0,r.jsx)(ed,{...e},e._key))})]})})}function ed(e){let{columns:t=[]}=e;return(0,r.jsx)("div",{className:"flex flex-col flex-wrap gap-8 md:flex-row",children:t.map(e=>(0,r.jsx)(eu,{...e},e._key))})}function eu(e){let{widthWeight:t,sections:n}=e;return(0,r.jsx)("div",{className:"flex-1",style:{flexGrow:t},children:(0,r.jsx)(tI,{sections:n})})}function em(e){let{children:t}=e,n=t.startsWith("http://")||t.startsWith("https://"),l=t.includes(" ");return n&&!l?(0,r.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",style:{fontSize:"1rem",fontWeight:"700",lineHeight:"1.375rem",textDecorationLine:"underline",color:"#293969"},children:t}):(0,r.jsx)("span",{children:t})}function ex(e){let{title:t,description:n,showTitle:l,showHeaderColumn:i,showHeaderRow:s,alternateRowColor:c,table:d,sectionAnchor:u}=e,m=s?d.rows.slice(1):d.rows;return(0,r.jsxs)(a.W,{className:u?"quick-link-section-anchor":"",id:(0,o.N)(u),children:[l&&(0,r.jsx)("h2",{className:"text-h2",children:t}),n&&(0,r.jsx)("p",{children:n}),(0,r.jsxs)("table",{className:"my-3 w-full table-auto self-center rounded-lg border border-solid",children:[s&&(0,r.jsx)(eg,{rowContent:d.rows[0]}),(0,r.jsx)("tbody",{children:m.map((e,n)=>(0,r.jsx)(ep,{rowIndex:n,rowContent:e,alternateRowColor:c,showHeaderColumn:i},"".concat(t,"-bodyRow-").concat(n)))})]})]})}let eh=e=>{let{isAlternateColor:t=!1,children:n}=e;return(0,r.jsx)("td",{className:"border border-solid p-2 ".concat(t?"bg-light-grey":""),children:n})},ef=e=>{let{children:t}=e;return(0,r.jsx)("th",{className:"border border-solid bg-dark-grey p-2 font-bold uppercase text-white",children:t})},ep=e=>{let{rowIndex:t,rowContent:n,alternateRowColor:l,showHeaderColumn:i}=e;return(0,r.jsx)("tr",{children:n.cells.map((e,n)=>i&&0===n?(0,r.jsx)(ef,{children:(0,r.jsx)(em,{children:e})},"headerCell-".concat(t,"-").concat(n)):l&&t%2!=0?(0,r.jsx)(eh,{isAlternateColor:!0,children:(0,r.jsx)(em,{children:e})},"standardCell-".concat(t,"-").concat(n)):(0,r.jsx)(eh,{children:(0,r.jsx)(em,{children:e})},"standardCell-".concat(t,"-").concat(n)))})},eg=e=>{let{rowContent:t}=e;return(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:t.cells.map((e,t)=>(0,r.jsx)(ef,{children:(0,r.jsx)(em,{children:e})},"headerCell-".concat(t)))})})};var ev=n(80407),ej=n(83978),eN=n(66400),ey=n(26816),eb=n(55247),ew=n(1005),eE=n(73665),ek=n(17005),eI=n(39332),eS=n(4298),eC=n.n(eS),eL=n(27837),e_=n(78510),eD=n(34155);function eA(e){let{sectionAnchor:t}=e,[n,l]=(0,g.useState)(!0),[i,s]=(0,g.useState)(null),[a,c]=(0,g.useState)(null),d=(0,g.useRef)(null),u=(0,g.useRef)(new Set),m=(0,g.useRef)(0),{fulfillmentStoreId:x,fulfillmentType:h,loadingFulfillmentData:f,fulfillmentCustomerId:v}=(0,ew.s)(),j=(0,eI.useRouter)(),N=(0,eI.usePathname)(),{user:y}=(0,b.b)(),w=(0,ek.G)(),{clipCoupons:E,unclipCoupons:k,coupons:I,loadingCoupons:S}=(0,W.b)({fulfillmentType:h,storeId:x,screenName:"Digital Ad",statusFilter:["AVAILABLE","CLIPPED"]}),C=(0,g.useMemo)(()=>I.reduce((e,t)=>
1("CLIPPED"===(0,Z.wK)(t)&&e.push({couponId:t.id.toString()}),e),[]),[I]),{showSelectStoreModal:L,setShowSelectStoreModal:_}=(0,eE.n)(),D=(0,g.useRef)(()=>{}),A=(0,g.useRef)(()=>{}),T=(0,g.useRef)(()=>{}),R=(0,g.useRef)(()=>{}),P=e=>e.reduce((e,t)=>{let n=(0,p.p3)(t.couponId);return n&&e.push(n),e},[]);D.current=e=>{if("true"===eD.env.NEXT_PUBLIC_ENABLE_DIGITAL_AD_LOGGING&&console.log("Digital Ad Event: onClipCoupon",e),!y&&!v){let t="".concat(N).concat(e.deepLink?"?".concat(e.deepLink):"");j.push(ej._.SIGN_IN(encodeURIComponent(t)));return}let t=P(e.items);if(!(t.length>0&&t.every(e=>I.some(t=>t.id===e)))){eN.u.error("Failed to clip coupon in Digital Ad",{error:"Coupon not available",couponIds:t});return}E(t).then(()=>{let t=[...C,...e.items];e.callback({status:"success",message:"Coupon successfully clipped",clippedCoupons:t})}).catch(n=>{var l;eN.u.error("Failed to clip coupon in Digital Ad",{error:(null==n?void 0:n.message)||String(n),couponIds:t}),e.callback({status:"failure",message:null!==(l=null==n?void 0:n.message)&&void 0!==l?l:"Failed to clip coupon"})})},A.current=e=>{if("true"===eD.env.NEXT_PUBLIC_ENABLE_DIGITAL_AD_LOGGING&&console.log("Digital Ad Event: onUnclipCoupon",e),w===ek.V.PDA)return;let t=P(e.items);k(t).then(()=>{let t=C.filter(t=>!e.items.some(e=>e.couponId===t.couponId));e.callback({status:"success",message:"Coupon successfully unclipped",clippedCoupons:t})}).catch(n=>{var l;eN.u.error("Failed to unclip coupon in Digital Ad",{error:(null==n?void 0:n.message)||String(n),couponIds:t}),e.callback({status:"failure",message:null!==(l=null==n?void 0:n.message)&&void 0!==l?l:"Failed to unclip coupon"})})},T.current=e=>{var t;"true"===eD.env.NEXT_PUBLIC_ENABLE_DIGITAL_AD_LOGGING&&console.log("Digital Ad Event: onOfferDetail",e),(null==e?void 0:null===(t=e.items)||void 0===t?void 0:t.length)>0&&(c(e.items[0]),(0,ey.R)("Digital Ad Offer Clicked",h,(0,e_.G)({fulfillmentStoreId:x,offer:e.items[0]})))},R.current=e=>{var t;"true"===eD.env.NEXT_PUBLIC_ENABLE_DIGITAL_AD_LOGGING&&console.log("Digital Ad Event: onVisibleHandler",e),(null==e?void 0:null===(t=e.items)||void 0===t?void 0:t.length)>0&&e.items.forEach(e=>{d.current?d.current!==e.adId&&(d.current=e.adId,u.current.clear(),m.current=0,(0,ey.R)("Digital Ad Changed",h,{store_id:x,ad_id:e.adId})):(d.current=e.adId,u.current.clear(),m.current=0,(0,ey.R)("Digital Ad Loaded",h,{store_id:x,ad_id:e.adId}));let t="".concat(e.adId,"-").concat(e.clientKey);if(!u.current.has(t)){if(u.current.add(t),"offer"===e.type){m.current+=1;let t=Number(m.current);(0,ey.R)("Digital Ad Offer Visible",h,{offer_id:e.clientKey,ad_id:e.adId,position:t})}else(0,ey.R)("Digital Ad Non-offer Visible",h,{data_id:e.clientKey,ad_id:e.adId,type:e.type})}})},(0,g.useEffect)(()=>{let e;if(f||S||i)return;let t=()=>{window.PRDigitalAd?s(new PRDigitalAd({containerId:"pr-ad-holder",apiKey:"pgH7QzFHJx4w46fI~5Uzi4RvtTwlEXp10",storeLocatorEnabled:!1,storeKey:"".concat(x),cartItems:[],clippedCoupons:C,onClipCoupon:e=>D.current(e),onUnclipCoupon:e=>A.current(e),onOfferDetail:e=>T.current(e),onVisibleHandler:e=>R.current(e),offerDetailMode:"client-controlled"})):e=setTimeout(t,100)};return e=setTimeout(()=>{t()},100),()=>{clearTimeout(e)}},[f,S]);let O=(0,g.useRef)({fulfillmentType:h,userFulfillmentStoreId:x,digitalAdLoaded:!1});return(0,g.useEffect)(()=>{O.current={fulfillmentType:h,userFulfillmentStoreId:x,digitalAdLoaded:!!i}},[h,x,i]),(0,g.useEffect)(()=>()=>{O.current.digitalAdLoaded&&(0,ey.R)("Digital Ad Unloaded",O.current.fulfillmentType,{store_id:O.current.userFulfillmentStoreId})},[]),(0,g.useEffect)(()=>()=>{var e;null==i||null===(e=i.destroy)||void 0===e||e.call(i)},[i]),(0,g.useEffect)(()=>{i&&x&&i.setStore("".concat(x))},[i,x]),(0,g.useEffect)(()=>{i&&i.setClippedCoupons(C)},[i,C]),(0,r.jsxs)("div",{className:t?"quick-link-section-anchor":"",id:(0,o.N)(t),children:[(0,r.jsx)(eC(),{id:"pr-digital-ad-script",src:"https://pr1schnucks-prod.przone.net/pr1da/pr-digitalad-main.js",onReady:()=>{l(!1)}}),n||f?(0,r.jsx)("div",{className:"my-16 w-full text-center","data-testid":"digital-ad-loading",children:(0,r.jsx)(ev.P,{})}):(0,r.jsx)("div",{id:"pr-ad-holder"}),(0,r.jsx)(eb.D,{open:L&&!v,onClose:()=>_(!1),hideCloseButton:L}),(0,r.jsx)(eL.G,{open:!!a,onClose:()=>c(null),offer:a})]})}var eT=n(74780),eR=n(55582),eP=n(22589),eO=n(49526);function eM(e){var t;let{coupons:n,loading:l=!1,emptySearchState:i,showViewMore:s,screenName:a}=e,[o,c]=(0,g.useState)(0),[d,u]=(0,g.useState)(s),m=(0,g.useRef)(null);(0,g.useEffect)(()=>{let e=d?6:30;c(n.length>e?e:n.length)},[d,n.length]),(0,g.useEffect)(()=>{d||new IntersectionObserver(e=>{e[0].isIntersecting&&c(e=>e+30)}).observe(m.current)},[d]);let x=o<n.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mx-auto grid w-full grid-cols-1 gap-5 pb-4 lg:grid-cols-2 xl:grid-cols-3",children:l?(0,r.jsx)(eF,{}):n.length?null===(t=n.slice(0,o))||void 0===t?void 0:t.map(e=>(0,r.jsx)(U.K,{className:"h-full",coupon:e,vertical:!0,screenName:a},e.id)):(0,r.jsx)("div",{className:"col-span-full mx-auto py-4",children:i})}),(0,r.jsx)("div",{ref:m,children:d?(0,r.jsx)(eO.m,{onClick:()=>u(!1),className:"mb-8 w-full p-2"}):(0,r.jsx)("div",{className:"mb-8 w-full rounded-lg border-2 border-dashed border-black p-2 text-center font-bold",style:{display:x?"block":"none"},children:"Loading more coupons..."})})]})}function eF(){return(0,r.jsx)(r.Fragment,{children:(0,z.w6)(1,6).map(e=>(0,r.jsx)(U.q,{vertical:!0},e))})}var ez=n(50683),eG=n(31304),eV=n.n(eG);function eB(e){var t;let{title:n,showSearchBar:l=!0,showViewMore:i=!1,sectionAnchor:s}=e,a=(0,eI.useRouter)(),c=(0,eI.usePathname)(),d=(0,eI.useSearchParams)(),{fulfillmentType:u}=(0,ew.s)(),m=(0,eI.useParams)(),{coupons:x,loadingCoupons:h}=(0,W.b)({statusFilter:["AVAILABLE","CLIPPED","REDEEMED","EXPIRED"]}),f=(0,g.useMemo)(()=>(function(e){let t=[{id:0,label:"All Coupons",count:(0,Z.iE)(e,["REDEEMED","EXPIRED"]).length},{id:1,label:"Clipped Coupons",count:(0,Z.ak)(e,["CLIPPED","REDEEMED","EXPIRED"]).length}];return[...Array.from(new Set(e.flatMap(e=>[...e.customCategories]))).sort(),...Array.from(new Set(e.map(e=>
1e.category))).sort()].forEach(n=>{let l=function(e,t,n){let l=n.filter(t=>t.category===e||t.customCategories.includes(e));if(l.length)return{id:t,label:e,count:l.length}}(n,t.length,(0,Z.iE)(e,["REDEEMED","EXPIRED"]));l&&t.push(l)}),t})(x),[x]),p=null!==(t=f.find(e=>{let{label:t}=e;return(t?eV()(t,{lower:!0}):"")===(null==m?void 0:m.category)}))&&void 0!==t?t:f[0],v="Search ".concat(p.label),{searchTerm:j,debouncingSearch:N,searchInputProps:y,setPlaceholder:b}=(0,ez.d)({placeholder:v}),w=Q(0===p.id?x.filter(e=>"REDEEMED"!==(0,Z.wK)(e)&&"EXPIRED"!==(0,Z.wK)(e)):x.filter(e=>1===p.id?["CLIPPED","REDEEMED","EXPIRED"].includes((0,Z.wK)(e)):!["REDEEMED","EXPIRED"].includes((0,Z.wK)(e))&&(e.category===p.label||e.customCategories.includes(p.label))),j).sort(Y),E=function(e,t){var n;let l=null==t?void 0:null===(n=t.get("targetIds"))||void 0===n?void 0:n.split(",");if(!(null==l?void 0:l.length))return e;let r=[...e];return l.reverse().forEach(e=>{let t=r.findIndex(t=>e==="".concat(t.id));t>=0&&r.unshift(r.splice(t,1)[0])}),r}((0,g.useMemo)(()=>w.sort((e,t)=>{if(1===p.id){p.id;let n=e=>{switch(e){case"CLIPPED":return 1;case"REDEEMED":return 2;case"EXPIRED":return 3;default:return 0}},l=(0,Z.wK)(e),r=(0,Z.wK)(t);return n(l)-n(r)}return"CLIPPED"===(0,Z.wK)(e)&&"REDEEMED"===(0,Z.wK)(t)?-1:0}),[w,p]),d);return(0,g.useEffect)(()=>{null==b||b(v)},[b,v]),(0,r.jsx)(eP.a,{id:(0,o.N)(s),title:n,className:s?"quick-link-section-anchor":"",loadingCategories:h,categoriesTitle:"Coupon Type",categoryItems:f,selectedCategoriesIds:[null==p?void 0:p.id],onSelectCategory:e=>{var t;let n=null==c?void 0:c.split("/").slice(0,-1).join("/"),l=null!==(t=f.find(t=>{let{id:n}=t;return n===e}))&&void 0!==t?t:f[0],r=eV()(l.label,{lower:!0});(0,ey.R)("Coupon Category Clicked",u,{category:l.id}),a.push("".concat(n,"/").concat(r,"?").concat(d))},titleChildren:l&&!!x.length&&(0,r.jsx)(eR.M,{className:"mb-6 max-w-[44rem] md:mb-8",...y}),children:(0,r.jsx)(eM,{coupons:E,loading:h||N,showViewMore:i,emptySearchState:(0,r.jsx)(eT.j,{illustration:"NoSavings",title:"No Coupons to Show!",message:"Please modify your search and try again"})})})}var eq=n(18190),eK=n(68004);let eU=e=>e?e.map(e=>({id:e._key,label:null==e?void 0:e.title})):[];function eW(e){let{dropdownSelector:t,showTitle:n,title:l,sectionAnchor:i}=e,{dropdownOptions:s,placeholder:c,sections:d}=null!=t?t:{},[u,m]=(0,g.useState)(""),x=null==s?void 0:s.find(e=>e._key===u);return(0,r.jsxs)(a.W,{id:(0,o.N)(i),className:i?"quick-link-section-anchor":"",children:[n&&(0,r.jsx)("h2",{className:"text-h2",children:l}),(0,r.jsx)(eK.L,{className:"my-8","data-testid":"dropdown-selector-".concat(l),data:eU(s),placeholder:c,value:u,onChange:e=>{m(e)}}),(0,r.jsx)(tI,{sections:x?x.sections:d})]})}var eJ=n(81548);function eX(e){var t;let{value:n,className:l,isInline:i=!1}=e;if(!n)return null;let{width:s,height:a}=(0,eJ.pz)(n);return(0,r.jsx)("img",{src:(0,_.u)(n).width(i?100:800).fit("max").auto("format").url(),alt:null!==(t=n.alt)&&void 0!==t?t:"",loading:"lazy",className:l,style:{display:i?"inline-block":"block",aspectRatio:"".concat(s," / ").concat(a)}})}function eH(e){let{image:t,title:n,showTitle:l,description:i,button:s,showButton:a}=e;return(0,r.jsxs)("section",{className:"flex flex-col justify-between gap-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,r.jsx)(A(),{...(0,T.LR)(null==s?void 0:s.link),children:(0,r.jsx)(eX,{value:t})}),l&&(0,r.jsx)("h2",{className:"text-center text-h4","data-testid":"image-block-header",children:n}),(0,r.jsx)(u.V,{value:i})]}),a&&(0,T._m)(null==s?void 0:s.link)&&(0,r.jsx)("div",{className:"mt-3 w-40 self-center",children:(0,r.jsx)(J.r,{className:"px-5 py-3",variant:"contained",width:"full",size:"fit",color:null==s?void 0:s.color,...(0,T.LR)(null==s?void 0:s.link),"data-testid":"image-block-button",children:null==s?void 0:s.link.title})})]})}function eZ(e){let{imageBlocks:t,sectionAnchor:n}=e;return(0,r.jsx)(a.W,{id:(0,o.N)(n),className:"".concat(n?"quick-link-section-anchor ":"","grid grid-cols-1 gap-4 lg:grid-cols-2"),children:null==t?void 0:t.map(e=>(0,r.jsx)(eH,{...e},e._key))})}function eY(e){let{title:t,sectionAnchor:n,formUrl:l,formHeight:i}=e,s=l.replace(/^(?:https:\/\/docs\.google\.com\/forms\/d\/e\/|forms\.gle\/)/,"").replace(/\/.*$/,"");return(0,r.jsx)("iframe",{title:t,id:(0,o.N)(n),src:"https://docs.google.com/forms/d/e/".concat(s,"/viewform?embedded=true"),width:"100%",height:i,className:n?"quick-link-section-anchor":"",children:(0,r.jsx)(ev.P,{})})}var eQ=n(7599),e$=n(25675),e0=n.n(e$);function e1(e){var t,n;let{image:l,breakpointImages:i=[],alt:s="",...a}=e;return(0,r.jsxs)("picture",{children:[i.sort((e,t)=>
1(0,eQ.he)(e.screenSize)-(0,eQ.he)(t.screenSize)).map(e=>(0,r.jsx)("source",{srcSet:(0,_.u)(e.image).auto("format").fit("max").width(1600).url(),media:"(max-width: ".concat((0,eQ.he)(e.screenSize),"px)"),width:(0,eJ.pz)(e.image).width,height:(0,eJ.pz)(e.image).height},e.image)),(0,r.jsx)(e0(),{...a,width:(0,eJ.pz)(l).width,height:(0,eJ.pz)(l).height,src:(0,_.u)(l).auto("format").fit("max").width(1600).url(),alt:null!==(n=null!==(t=l.alt)&&void 0!==t?t:s)&&void 0!==n?n:""})]})}function e2(e){var t,n;let{background:l,content:i,extendContent:s,containerPadding:c,sectionAnchor:d}=(0,o.N)(e);return(0,r.jsxs)(a.W,{className:"relative flex lg:flex-row ".concat(c?"m-8":""," ").concat((null==i?void 0:i.flipPositionInMobile)?"flex-col-reverse":"flex-col").concat(d?" quick-link-section-anchor":""),extendContent:s,id:d,children:[l&&l.image&&(0,r.jsx)(e1,{image:l.image,breakpointImages:null==l?void 0:l.breakpointImages,className:"object-cover ".concat(c?"".concat((null==i?void 0:i.flipPositionInMobile)?"rounded-b-[2.5rem]":"rounded-t-[2.5rem]"," lg:rounded-[2.5rem]"):"")}),(0,r.jsx)("div",{className:"w-full overflow-hidden lg:absolute lg:inset-y-0 ".concat(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unset";if(e)return"".concat(t?"rounded-t-[2.5rem]":"rounded-b-[2.5rem]"," ").concat({left:"lg:rounded-l-[2.5rem] lg:rounded-r-none",center:"lg:rounded-[2.5rem]",right:"lg:rounded-r-[2.5rem] lg:rounded-l-none",unset:""}[n])}(c,null!==(t=null==i?void 0:i.flipPositionInMobile)&&void 0!==t&&t,null==i?void 0:i.position)),style:{background:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unset";if(!e||"gradient"!==e.style)return;let n=(0,T.JT)(e.color);switch(t){case"left":return"linear-gradient(90deg, ".concat(n," 0%, ").concat(n," 35%, ").concat(n,"00 100%)");case"right":return"linear-gradient(90deg, ".concat(n,"00 0%, ").concat(n," 65%, ").concat(n," 100%)");case"center":return"linear-gradient(90deg, ".concat(n,"00 0%, ").concat(n," 32%, ").concat(n," 68%, ").concat(n,"00 100%)");default:return""}}(l,null==i?void 0:i.position)},children:(0,r.jsx)("div",{className:"size-full px-4 pb-8 pt-10 sm:pb-16 sm:pt-12 md:pb-20 md:pt-16 lg:w-1/2 lg:px-8 lg:pb-28 lg:pt-20 xl:pb-32 xl:pt-28 ".concat({left:"mr-auto",center:"mx-auto",right:"ml-auto",unset:""}[null!==(n=null==i?void 0:i.position)&&void 0!==n?n:"left"]),style:{background:function(e){if(e&&"solid"===e.style)return(0,T.JT)(e.color)}(l)},children:(null==i?void 0:i.copy)&&(0,r.jsx)(u.V,{value:i.copy})})})]})}var e3=n(86598),e5=n(17396),e8=n(43471),e4=n(10609),e6=n(7736),e9=n(93230);function e7(e){var t;let{order:n}=e,[l,i]=(0,g.useState)({fulfillmentStart:void 0,fulfillmentType:void 0,fulfillmentEnd:void 0}),{title:s,message:a,progress:o}=(0,e9.IE)(n.status,n.fulfillment.type),{fulfillmentEnd:c,fulfillmentStart:d,fulfillmentType:u}=l,m=(0,e9.CK)(n.status),x="CANCELED"===n.status,h=(null===(t=n.fulfillment.window)||void 0===t?void 0:t.revisedStartTime)&&n.fulfillment.window.revisedEndTime;return(0,g.useEffect)(()=>{if(n.fulfillment.window)i({fulfillmentStart:k.ou.fromMillis(n.fulfillment.window.startTime),fulfillmentType:(0,e5.LF)(n.fulfillment.type),fulfillmentEnd:k.ou.fromMillis(n.fulfillment.window.endTime)})},[n.fulfillment.type,n.fulfillment.window]),(0,r.jsxs)("div",{className:"flex flex-col gap-x-10 gap-y-5 lg:flex-row lg:items-center",children:[(0,r.jsx)("div",{className:"w-full lg:w-1/3",children:(0,r.jsx)(e3.r,{steps:e9.zX[n.fulfillment.type],progress:o})}),(0,r.jsxs)("div",{className:"grow",children:[(0,r.jsxs)("p",{className:"flex flex-wrap items-end gap-x-4 gap-y-1",children:[(0,r.jsxs)("span",{className:"text-h3",children:[u," Order"]}),(0,r.jsx)(e8.k,{className:"mb-0.5",order:n}),(m||x||!h)&&(0,r.jsx)("span",{className:"mb-0.5 text-red",children:s})]}),(0,r.jsx)("p",{children:a}),c&&d&&u&&(0,r.jsxs)("p",{children:[u,": ",(0,e9.Gc)(n,"LLL dd")]})]}),"SUBMITTED"===n.status&&(0,r.jsx)(J.r,{className:"mt-2 block whitespace-nowrap",variant:"contained",width:"fit",href:"/shop/orders/".concat(n.id),children:"Add or Edit Items"})]})}function te(e){let{sectionAnchor:t}=e,{isLoading:n,orders:l}=(0,e4.y)((0,e9.lr)(["IN-PROGRESS"]),"0","1");if(!l.length)return(0,r.jsx)(r.Fragment,{});let i=l[0];return(0,r.jsx)(e6.a,{orderId:l[0].id,children:(0,r.jsx)(a.W,{className:"px-5 md:px-0",id:(0,o.N)(t),children:(0,r.jsx)(s.Z,{children:(0,r.jsx)(s.Z.Content,{children:n?(0,r.jsx)("div",{className:"flex min-h-[6.25rem] items-center justify-center",children:(0,r.jsx)(ev.P,{})}):(0,r.jsx)(e7,{order:i})})})})})}function tt(e){let{pageTitle:t,sectionAnchor:n}=e;return(0,r.jsx)(a.W,{children:(0,r.jsx)("h1",{className:"".concat(n?"quick-link-section-anchor ":"","text-h2"),id:(0,o.N)(n),children:t})})}var tn=n(80054),tl=n(38431),tr=n(8251),ti=n(2593),ts=n(8615);let ta=["Coupons"];function to(e){var t;let{title:n,loadingFirstPage:l,catalogItems:i=[],categories:s,emptySearchState:a,emptyState:o,showSearchInput:c=!0,screenName:d,id:u,...m}=e,[x,h]=(0,g.useState)(s[0]),f="Search ".concat(x.name),{searchTerm:p,debouncingSearch:v,searchInputProps:j,setPlaceholder:N}=(0,ez.d)({placeholder:f}),y=0===x.id?i:i.filter(e=>{let{upcId:t}=e;return x.upcIds.includes(t)});(0,g.useEffect)(()=>{null==N||N(f)},[N,f]);let b=ta.includes(x.name),w=b&&null!==(t=null==y?void 0:y.flatMap(e=>e.couponIds))&&void 0!==t?t:[],{coupons:E}=(0,W.b)({couponIds:w,screenName:d});return(0,r.jsx)(eP.a,{title:n,id:u,loadingCategories:l,categoriesTitle:"Savings Type",categoryItems:s.map(e=>({id:e.id,slug:eV()(e.name,{lower:!0}),label:e.name,count:e.upcIds.length})),selectedCategoriesIds:[x.id],onSelectCategory:e=>{let t=s.find(t=>{let{id:n}=t;return n===e});h(null!=t?t:s[0])},titleChildren:c&&!!i.length&&(0,r.jsx)(eR.M,{className:"mb-6 max-w-[44rem] md:mb-8",...j}),children:b?(0,r.jsx)(eM,{coupons:Q(E,p),screenName:d,emptySearchState:a}):(0,r.jsx)(ts.e,{catalogItems:(0,ti.Gv)(y,p),loadingFirstPage:l||v,emptyState:p?a:o,screenName:d,...m})})}function tc(e){var t;let{title:n,showSearchBar:l=!0,sectionAnchor:i}=e,{catalogItems:s,categories:a,productsError:c,loadingPersonalizedSavings:d}=(0,tl.K)();return(0,r.jsx)(to,{title:n,id:(0,o.N)(i),className:i?"quick-link-section-anchor":"",addToCart:!0,catalogItems:s,showSearchInput:l,categories:[{id:0,name:"All Savings",upcIds:null!==(t=null==s?void 0:s.map(e=>{let{upcId:t}=e;return t}))&&void 0!==t?t:[]},...null!=a?a:[]],loadingFirstPage:d,error:!!c,emptyState:(0,r.jsx)(eT.j,{illustration:"NoSavings",title:tn.F.PERSONALIZED_
1SAVINGS_EMPTY_TITLE,message:tn.F.PERSONALIZED_SAVINGS_EMPTY_MESSAGE}),emptySearchState:(0,r.jsx)(eT.j,{illustration:"NoSavings",title:tn.F.PERSONALIZED_SAVINGS_EMPTY_TITLE,message:tn.F.PERSONALIZED_SAVINGS_EMPTY_SEARCH_MESSAGE}),onClickItem:tr.v,screenName:"PersonalizedSavings"})}var td=n(86811);function tu(e){var t,n;let{title:l,sectionAnchor:i,showSearchBar:s=!0}=e,a=(0,eI.useSearchParams)(),{itemsForMe:c,categories:d,itemsForMeError:u,loadingItemsForMe:m}=function(e){let{adItemUpcs:t}=e,[n,l]=(0,g.useState)(!0),{fulfillmentType:r,fulfillmentStoreId:i,fulfillmentCustomerId:s,loadingFulfillmentData:a}=(0,ew.s)(),{data:o,...c}=(0,ee.ZP)(()=>s&&i?{url:"item-catalog-api/v1/external/items-for-me",params:(0,td.b3)({customerId:s,store:i,fulfillmentType:r,adItemUpcs:t}),authenticated:!1}:null,$.R1,{revalidateOnFocus:!1,shouldRetryOnError:!1,onSuccess:()=>{l(!1)},onError:()=>{l(!1)}});(0,g.useEffect)(()=>{c.isLoading&&l(!0)},[c.isLoading]);let d=!!s&&n;return{itemsForMe:null==o?void 0:o.items,categories:null==o?void 0:o.categories,itemsForMeError:c.error,loadingItemsForMe:a||d}}({adItemUpcs:null!==(t=null==a?void 0:a.get("adItemUpcs"))&&void 0!==t?t:""});return(0,r.jsx)(to,{title:l,id:(0,o.N)(i),className:i?"quick-link-section-anchor":"",catalogItems:c,showSearchInput:s,categories:[{id:0,name:"All Savings",upcIds:null!==(n=null==c?void 0:c.map(e=>{let{upcId:t}=e;return t}))&&void 0!==n?n:[]},...null!=d?d:[]],loadingFirstPage:m,error:!!u,emptyState:(0,r.jsx)(eT.j,{illustration:"NoSavings",title:"No Savings to Show!"}),emptySearchState:(0,r.jsx)(eT.j,{illustration:"NoSavings",title:"No Savings to Show!",message:"Please modify your search and try again"}),onClickItem:tr.v})}function tm(e){let t=(0,o.N)(e);switch(t.gridType){case"Personalized Savings":return(0,r.jsx)(tc,{...t});case"Weekly Ad":return(0,r.jsx)(tu,{...t});default:return(0,r.jsx)("div",{id:t.sectionAnchor,children:"I am a Grid but I don't know how I should be rendered!"})}}function tx(e){let{collection:t}=e;return(0,r.jsx)(tI,{sections:t.sections})}var th=n(93967),tf=n.n(th),tp=n(82991);let tg=e=>{let{leftContentType:t,rightContentType:n,toggleRoundedCorners:l,image:i,text:s,youtubeVideo:a}=e,o=(0,r.jsx)(r.Fragment,{});switch(null!=t?t:n){case"image":o=(0,r.jsx)("div",{className:tf()({"p-5":(null==i?void 0:i.size)==="cropped","rounded-xl":l}),children:i&&i.image&&(0,r.jsx)(e1,{image:i.image,breakpointImages:null==i?void 0:i.breakpointImages,className:tf()("w-full object-cover",{"rounded-xl":(null==i?void 0:i.size)==="cropped"},{"rounded-l-xl":l&&t},{"rounded-r-xl":l&&n})})});break;case"text":o=(0,r.jsx)("div",{className:"p-5",children:(0,r.jsx)(u.V,{value:s})});break;case"youtube_video":o=(0,r.jsx)(tp.e,{embedId:a})}return o};function tv(e){let{left:t,right:n,backgroundColor:l,extendContent:i,toggleRoundedCorners:s,flipPositionInMobile:a,sectionAnchor:c,toggleSwapColumns:d=!1,toggleBackgroun
1dExtend:u=!1}=(0,o.N)(e),m=(0,K.G)("xl"),x=(0,K.G)("lg"),h=(0,T.JT)(l),f=d?n:t,p=d?t:n;return(0,r.jsx)("div",{className:tf()("w-full",c?"quick-link-section-anchor":""),style:{backgroundColor:u?h:"transparent"},id:c,children:(0,r.jsxs)("div",{className:tf()("w-full mx-auto flex lg:flex-row flex-col sm:px-0 lg:px-0",{"rounded-xl":s},a?"flex-col-reverse":"flex-col",i?"":m&&!x?"max-w-[80%]":"container w-full mx-auto"),style:{backgroundColor:u?"transparent":h},children:[(0,r.jsx)("div",{className:"flex flex-1 flex-col justify-center",children:(0,r.jsx)(tg,{toggleRoundedCorners:s,...f})}),(0,r.jsx)("div",{className:"flex flex-1 flex-col justify-center",children:(0,r.jsx)(tg,{toggleRoundedCorners:s,...p})})]})})}function tj(e){let{sectionAnchor:t,content:n}=e;return(0,r.jsx)(a.W,{className:"".concat(t?"quick-link-section-anchor ":"","px-8"),id:(0,o.N)(t),children:(0,r.jsx)(u.V,{value:(0,o.N)(n)})})}function tN(e){let{body:t,contentAlignment:n,toggleMargins:l=!1,outline:i=!1,dropShadow:s=!1,backgroundColor:a,blocksCount:o}=e;return(0,r.jsx)("div",{className:tf()("rounded-2xl py-8 px-6 col-span-4",{"md:col-span-2 xl:col-span-1":o>1,border:i,"shadow-xl":s}),style:{background:(0,T.JT)(a)},"data-testid":"text-banner-container",children:(0,r.jsx)("div",{className:tf()({"max-w-lg":l,"mr-auto":"left"
1===n,"mx-auto flex flex-col items-center":"center"===n,"ml-auto":"right"===n}),children:(0,r.jsx)(u.V,{value:t})})})}function ty(e){var t;let{textBanners:n,extendContent:l,sectionAnchor:i}=(0,o.N)(e),s=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;return(0,r.jsx)(a.W,{className:tf()("grid grid-cols-4 gap-4",{"xl:grid-cols-3":3===s,"xl:grid-cols-2":2===s},i?"quick-link-section-anchor":""),"data-testid":"text-banner-section",extendContent:l,id:i,children:null==n?void 0:n.map((e,t)=>(0,r.jsx)(tN,{...e,blocksCount:s},"".concat(e.title,"_").concat(t)))})}let tb={black:"text-black",white:"text-white"},tw=e=>{let{textBlocks:t}=e;return(0,r.jsx)(a.W,{className:"flex flex-col gap-4 lg:flex-row",children:null==t?void 0:t.map((e,t)=>{let{title:n,body:l,textColor:i,backgroundColor:s,button:{link:a,buttonColor:o}}=e;return(0,r.jsxs)("div",{className:tf()("flex flex-col py-8 rounded-2xl px-6","text-".concat(i),"bg-".concat(s)),children:[(0,r.jsx)("h2",{className:"text-h2 ".concat(tb[i]),"data-testid":"text-block-title",children:n}),(0,r.jsx)("div",{className:"w-full","data-testid":"text-block-text",children:(0,r.jsx)(u.V,{value:l})}),(0,T._m)(a)&&(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(J.r,{color:o,...(0,T.LR)(a),"data-testid":"text-block-button",children:a.title})})]},n+t)})})};var tE=n(85634);function tk(e){let{title:t,showTitle:n,sectionAnchor:l,description:i,videoUrl:s}=e,c=(0,tE.M)((0,o.N)(s));return(0,r.jsxs)(a.W,{className:"".concat(l?"quick-link-section-anchor ":"","px-8"),id:(0,o.N)(l),children:[n&&t&&(0,r.jsx)("h2",{className:"my-2 text-h3",children:t}),i&&(0,r.jsx)("span",{children:i}),(0,r.jsx)("div",{className:"my-5",children:(0,r.jsx)(tp.e,{embedId:c})})]})}function tI(e){let{className:t="",sections:n=[],children:i,...s}=e;if(!(null==n?void 0:n.length))return i?(0,r.jsx)(r.Fragment,{children:i}):null;let a=e=>"clientContentSection"===e._type,o=!n.some(a);return(0,r.jsxs)("div",{className:"flex w-full flex-col gap-8 ".concat(t),children:[n.map(e=>a(e)?i:e._type in l?(0,r.jsx)(S,{...s,section:e},e._key):(0,r.jsx)(y,{type:e._type},e._key)),o&&i]})}},7687:function(e,t,n){n.d(t,{b:function(){return m}});var l=n(85893),r=n(80407),i=n(19578),s=n(83978),a=n(37824),o=n(8251),c=n(38431),d=n(13263),u=n(23259);let m=e=>{let{products:t,...n}=e;switch((0,u.N)(t)){case"personalizedSavings":return(0,l.jsx)(h,{...n});case"buyAgain":return(0,l.jsx)(f,{...n});case"generic":return(0,l.jsx)(x,{...n});default:return(0,l.jsx)(l.Fragment,{})}};function x(e){return(0,l.jsx)(p,{...e})}function h(e){var t;let{catalogItems:n,loadingPersonalizedSavings:r}=(0,c.K)(),i=(null===(t=e.viewAllLink)||void 0===t?void 0:t.linkType)?e.viewAllLink:{title:"View All",href:s._.PERSONALIZED_SAVINGS,linkType:"internal"};return(0,l.jsx)(p,{catalogItems:n,loading:r,...e,viewAllLink:i})}function f(e){var t;let{catalogItems:n,catalogItemsLoading:r}=(0,d.W)({context:"CAROUSEL",pageSize:e.maxLength}),i=(null===(t=e.viewAllLink)||void 0===t?void 0:t.linkType)?e.viewAllLink:{title:"View All",href:s._.BUY_IT_AGAIN,linkType:"internal"};return(0,l.jsx)(p,{catalogItems:n,loading:r,...e,viewAllLink:i})}function p(e){let{catalogItems:t,loading:n,maxLength:s,isSpotlightCollection:c,itemClassName:d="",...u}=e;return n?(0,l.jsx)(r.P,{}):(null==t?void 0:t.length)?(0,l.jsx)(i.l,{...u,children:t.slice(0,s).map(e=>(0,l.jsx)(a.c,{catalogItem:e,onClick:()=>(0,o.v)(e,{navigateBackOnClose:!0}),addToCart:!0,isSpotlightCollection:c,className:d,useNameSlugLink:!0}
1,e.upcId))}):(0,l.jsx)(l.Fragment,{})}},18190:function(e,t,n){n.d(t,{K:function(){return o}});var l=n(85893),r=n(53731),i=n(7599),s=n(23259),a=n(13891);function o(e){let t,{sectionAnchor:n,extendContent:o=!1,color:c={_type:"color",preset:"grey"}}=e;switch((0,s.N)(null==c?void 0:c.preset)){case"grey":t=(0,i.Xv)("medium-grey");break;case"none":t="transparent";break;default:t=(0,a.JT)(c)}return t=(null==c?void 0:c.preset)==="grey"?(0,i.Xv)("medium-grey"):(null==c?void 0:c.preset)==="none"?"transparent":(0,a.JT)(c),(0,l.jsx)(r.W,{extendContent:o,children:(0,l.jsx)("hr",{id:(0,s.N)(n),className:n?"quick-link-section-anchor":"",style:{background:t,height:"3px"}})})}},76315:function(e,t,n){n.d(t,{S:function(){return r}});var l=n(30120);let r=(e,t)=>{let n=null==e?void 0:e.showDate,r=null==e?void 0:e.hideDate,s=null==e?void 0:e.repeatYearly,a=(null==t?void 0:t.previewDate)?l.ou.fromISO(t.previewDate):l.ou.now();return!(n&&i(n,a,s)>a||r&&i(r,a,s)<a)},i=(e,t,n)=>n?l.ou.fromISO(e).set({year:t.year}):l.ou.fromISO(e)},73665:function(e,t,n){n.d(t,{n:function(){return s}});var l=n(1005),r=n(91307),i=n(67294);function s(){let{fulfillmentStoreId:e,loadingFulfillmentData:t}=(0,l.s)(),{user:n}=(0,r.b)(),[s,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{n||e||t||a(!0)},[s,n,e,t]),{showSelectStoreModal:s,setShowSelectStoreModal:a}}}}]);

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.