1import{l as b,g as h,n as w,eD as v,r as i,eE as k,j as I,eF as m}from"./index-CVUXbWDK.js";import{f as E,g as M,d as S,A as D}from"./AisleContent-Bp-ftWbp.js";import"./ChevronDownIcon-DxIiIRv9.js";import"./Breadcrumbs-CcG9y1mh.js";import"./BackButton-Biq-2jqL.js";import"./arrayUtils-J12NMbFi.js";import"./ProductSpotlight-Bn2K4F0J.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9bc1e720-1b06-43e7-93cb-913384e92be7",t._sentryDebugIdIdentifier="sentry-dbid-9bc1e720-1b06-43e7-93cb-913384e92be7")}catch{}})();(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},(function(){var e,n=new t.Error().stack,s=t._sentryModuleMetadata[n]||{},r={"_sentryBundlerPluginAppKey:mm-sentry-boysenberry":!0},a={};for(e in s)s.hasOwnProperty(e)&&(a[e]=s[e]);for(e in r)r.hasOwnProperty(e)&&(a[e]=r[e]);t._sentryModuleMetadata[n]=a})()})();const _={"Imperfect but Delicious":{copy:"Traditional grocery stores reject produce with surface quirks, funny shapes, or color variation. We know better: it's still nutritious, fresh, and delicious, plus you get it at a discount.",imageName:"imperfect-but-delicious"},"Different Sizes":{copy:"Produce doesn't always grow uniformly, but supermarkets want everything to look the same. We buy a full range of sizesâbig, small, and everything betweenâthen pass savings on to you.",imageName:"different-sizes"},"Different Packaging":{copy:"The label's a little off or the company changed branding, yet grocery stores won't accept mixed styles on the shelf. What's inside is exactly the sameâand priced lower for the mismatch.",imageName:"different-packaging"},"Extra & Surplus":{copy:"Sometimes a harvest goes better than expected, or a brand ends up with more than they can sell. It's not second-rate, just great food that deserves a good home.",imageName:"extra-and-surplus"},"Mystery Items":{copy:"A surprise variety of the freshest produce of the season. By saying yes to whatever type is ready to harvest, you help farmers earn more and prevent waste.",imageName:"mystery-items",linkStyle:"inline",linkTitle:"Learn More",linkURL:"https://blog.misfitsmarket.com/farm-fresh-produce-mystery-bundles/"},"Upcycled Ingredients":{copy:"High-quality parts of food saved from going to waste during manufacturing, combined with other top-notch ingredients to create something even better that's worth every penny.",imageName:"upcycled-ingredients",linkStyle:"inline",linkTitle:"Learn More",linkURL:"https://blog.misfitsmarket.com/upcycled-foods/"},"Last Call":{copy:"Getting close to its best-by date, recently discontinued, or leaving our shelves for good, but still fresh and tasty, never expired. We'd rather you enjoy it than see it go to waste.",imageName:"last-call"}};function A(t){return t.flatMap(e=>{const n=_[e.name];if(!n)return[];const{imageName:s,...r}=n,a=`boysenberry/images/${s}`;return[{...r,largeImage:`${a}_desktop.jpg`,smallImage:`${a}_mobile.jpg`,taxonomyID:e.id}]})}function F(){var u,c;const{appliedFilters:t}=b(),{data:e={}}=h(),{data:n={}}=w(),{data:s,isLoading:r}=v(),a=i.useMemo(()=>((s==null?void 0:s.aisles)??[]).map((o,l)=>({...o,id:o.id??o.rankNumber??l+1})),[s]),y=k(s),f=i.useMemo(()=>A(a),[a]),g=i.useMemo(()=>E(t,a,[]),[t,a]),d=!!((u=n==null?void 0:n.ebtCard)!=null&&u.last4),p=i.useMemo(()=>{var o;return M(S,a,[],(o=e==null?void 0:e.featureFlags)==null?void 0:o.featureSnapEnabled,d).filter(l=>!["Rescued","Last Chance","Impact"].includes(l.name))},[a,(c=e==null?void 0:e.featureFlags)==null?void 0:c.featureSnapEnabled,d]);return I.jsx(D,{banners:f,categories:g,currentAisle:{id:m.id,name:m.name,inStockCount:y},currentCategory:{id:"all",name:"All"},isLoading:r,filtersData:p})}export{F as Component}; 2//# sourceMappingURL=Rescued-DQVLowCI.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.