1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4620],{45601:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/[...category]",function(){return a(43291)}])},43291:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return R},default:function(){return _category_}});var s=a(85893),l=a(3137),i=a(34226),n=a(41445),r=a(53840),o=a(23876),d=a(24049),c=a(58524),u=a(15285),m=a(91231),g=a(25726),v=a(79759),h=a(35636),p=a(67294),f=a(88890),BrowseNavImage_BrowseNavImage=function(e){let{slug:t}=e,a=(0,p.useMemo)(()=>{var e;return null===(e=f.Tp.placements.find(e=>e.slug===t))||void 0===e?void 0:e.image},[t]);return a?(0,s.jsx)("div",{className:"w-pie--browse-nav-image w-desktop-only",children:(0,s.jsx)(v.Z,{alt:a.alt,url:(0,h.V)(f.Tp.assetLocation+a.url,{scaleToRectangle:{width:588,height:490}}),url2X:(0,h.V)(f.Tp.assetLocation+a.url2X,{scaleToRectangle:{width:1176,height:980}})})}):null},y=a(37030),w=a(32577);let findRefinementBySlug=(e,t)=>{let a;let recursiveSearch=e=>e.slug&&e.slug===t?(a=e,!0):Array.isArray(e.refinements)&&e.refinements.find(recursiveSearch);return e.find(recursiveSearch),a};var CategoryDetails_CategoryDetails=function(e){var t,a,l,i,n,r;let{category:o,facets:d,meta:c}=e,m=null===(t=findRefinementBySlug(d,null!==(a=null==o?void 0:o.slice(-1)[0])&&void 0!==a?a:""))||void 0===t?void 0:t.label,g=f.Z5.get(null!==(l=null==o?void 0:o.slice(-1)[0])&&void 0!==l?l:"")&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z,{desktopSize:"s",tabletSize:"s",mobileSize:"m"}),(0,s.jsx)("div",{className:"w-pie--category-description","data-testid":"category-description",children:f.Z5.get(null!==(i=null==o?void 0:o.slice(-1)[0])&&void 0!==i?i:"")})]}),v=(null!==(n=c.total.value)&&void 0!==n?n:0)>200?(0,s.jsx)("span",{className:"w-cms--font-disclaimer","data-testid":"category-results",children:"More than ".concat(200," results")}):(0,s.jsx)("span",{className:"w-cms--font-disclaimer","data-testid":"category-results",children:1===c.total.value?"".concat(c.total.value," result"):"".concat(null!==(r=c.total.value)&&void 0!==r?r:0," results")}),h=(0,s.jsxs)("div",{className:"w-pie--category-details__mobile-results w-hidden-in-desktop",children:[v,(0,s.jsx)(y.Z,{pageTemplate:"browse",menuItems:d})]});return m?(0,s.jsxs)("div",{className:"w-pie--category-details","data-testid":"category-details",children:[(0,s.jsxs)("div",{className:"w-pie--category-head-desc",children:[(0,s.jsxs)("div",{className:"w-pie--category-header",children:[(0,s.jsx)("h1",{"data-testid":"category-header",children:m}),(0,s.jsx)("div",{className:"w-hidden-in-mobile w-hidden-in-tablet",children:v})]}),g]}),(0,s.jsx)(w.Z,{options:f.ax,wrapperClassNames:"w-hidden-in-mobile w-hidden-in-tablet"}),h,(0,s.jsx)(u.Z,{desktopSize:"m",tabletSize:"s",mobileSize:"m"})]}):null},x=a(24370),b=a(65801),j=a(82450),S=a(93906),_=a(83229),Z=a(51648),N=a(77058),k=a(36579),T=a(80444),z=a(81913),C=a(40359),A=a(91521),B=a(11163),E=a(4511),R=!0,_category_=function(e){var t,a,v,h,y,w,R,P,D,I,L,W,F,H,M;let q;let{data:V,dramAmabotContent:X,storeDetailsInitialData:G}=e,[O]=(0,k.Z)(),J=(0,B.useRouter)(),{category:U}=J.query,{webViewState:K}=(0,p.useContext)(N.Z),{data:Q}=(0,z.c)({initialData:null!=G?G:void 0}),Y=Array.isArray(U)&&null!==(w=null==U?void 0:null===(t=U.at(-1))||void 0===t?void 0:t.toString())&&void 0!==w?w:"",$=new URLSearchParams(O).toString(),ee=$?"?leafCategory=".concat(Y,"&").concat($):"?leafCategory=".concat(Y),et="/api/products/category/".concat(Y).concat(ee),{paginatedData:ea,isLoadingMore:es,size:el,setSize:ei,isReachingEnd:en}=(0,T.s)({apiUrl:et,initialData:[V]}),er=(()=>{let e=[...f.iJ,{name:"All Products",url:"/products/all-products".concat((0,C.WH)(O))}],t="/products";if(Array.isArray(V.breadcrumb)&&V.breadcrumb.length>0){var a;null===(a=V.breadcrumb)||void 0===a||a.forEach(a=>{var s,l,i;(null===(s=a.label)||void 0===s?void 0:s.toLowerCase())!=="all products"&&(t="".concat(t,"/").concat(null!==(l=a.slug)&&void 0!==l?l:""),e.push({name:null!==(i=a.label)&&void 0!==i?i:"",url:"".concat(t).concat((0,C.WH)(O))}))})}return e})(),eo=ea.map(e=>(0,A.L9)(e,!1)).map(e=>e.results),ed=V.results&&V.results.length>0&&eo.length>0?(0,s.jsx)(S.Z,{products:eo,size:el,setSize:ei,isReachingEnd:en,isLoadingMore:!!es}):(0,s.jsx)(b.Z,{headerText:f.lq.headerText,subHeaderText:f.lq.subHeaderText,image:f.lq.image}),ec=(null!==(D=null===(a=findRefinementBySlug(null!==(R=V.facets)&&void 0!==R?R:[],null!==(P=null==U?void 0:U.slice(-1)[0])&&void 0!==P?P:""))||void 0===a?void 0:a.label)&&void 0!==D?D:"")?"".concat(null!==(W=null===(v=findRefinementBySlug(null!==(I=V.facets)&&void 0!==I?I:[],null!==(L=null==U?void 0:U.slice(-1)[0])&&void 0!==L?L:""))||void 0===v?void 0:v.label)&&void 0!==W?W:""," at Whole Foods Market"):"Whole Foods Market: Browse Products by Aisle and Section",eu=(q="",Array.isArray(U)?U.forEac
1h(e=>{q+="/".concat(e)}):q="/".concat(null!=U?U:""),q),em=K.isWebView?null:(0,s.jsx)(i.Z,{dramAmabotContent:X});return(0,s.jsxs)(E.SV,{fallbackRender:l.Z,children:[(0,s.jsx)(d.Z,{canonicalLink:"https://www.wholefoodsmarket.com/products".concat(eu),pageDescription:"Browse Whole Foods Market products by store aisles. From the finest groceries and fresh produce to high-quality meat, supplements, and more for every lifestyle.",pageTitle:ec}),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.Z,{}),(0,s.jsx)(_.Z,{breadcrumb:er,hasStoreSelected:!!Q}),em]})}),(0,s.jsx)(u.Z,{desktopSize:"l",tabletSize:"l",mobileSize:"l"}),(0,s.jsxs)("div",{className:"w-pie--category-landing w-grid",children:[(0,s.jsxs)("div",{className:"w-pie--side-nav w-hidden-in-mobile w-hidden-in-tablet",children:[(0,s.jsx)(c.Z,{destinationAnchor:"#category-page-body",children:"Skip categories & filters navigation"}),(0,s.jsx)(g.Z,{menuItems:null!==(F=V.facets)&&void 0!==F?F:[],passHref:"/products/[...category]",passSlug:"/products"}),(null===(h=V.meta)||void 0===h?void 0:h.state.refinements)?(0,s.jsx)(BrowseNavImage_BrowseNavImage,{slug:null!==(H=V.meta.state.refinements[0].slug)&&void 0!==H?H:""}):null]}),(0,s.jsx)(m.ZP,{menuTitle:"Browse categories",menuItems:null!==(M=V.facets)&&void 0!==M?M:[],passHref:"/products/[...category]",passSlug:"/products",wrapperClassNames:"w-hidden-in-desktop"}),(0,s.jsxs)("div",{className:"w-pie--body-content",id:"category-page-body",children:[V.meta&&V.facets?(0,s.jsx)(CategoryDetails_CategoryDetails,{meta:V.meta,facets:V.facets,category:U}):null,(null===(y=V.meta)||void 0===y?void 0:y.state.refinements)?(0,s.jsx)(Z.Z,{refinements:V.meta.state.refinements}):null,ed,(0,s.jsx)(o.Z,{size:"large",style:"light"}),(0,s.jsx)(u.Z,{desktopSize:"m",tabletSize:"m",mobileSize:"m"}),(0,s.jsx)(r.Z,{disclaimerText:f.WC})]})]}),(0,s.jsx)(n.Z,{scrollPercentage:C._G.B2T_PERCENTAGE})]})}}},function(e){e.O(0,[3590,5671,1521,815,4477,5735,9774,2888,179],function(){return e(e.s=45601)}),_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.