PageSourceSearch

https://www.wholefoodsmarket.com/_next/static/chunks/815-93a1c3f7c3cce0fe.js

js wholefoodsmarket.com collected 2026-10-01 08:17:26 UTC 16,713 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[815],{52173:function(e,t,n){n.d(t,{Z:function(){return FulfillmentInfo}});var l=n(85893),i=n(13869),a=n(86907);let o={"in-store":{prefix:"Sold in",changeLabel:"Change Store",locationKey:"store"},pickup:{prefix:"Pickup from",changeLabel:"Change Store",locationKey:"store"},delivery:{prefix:"Delivery to",changeLabel:"Change Address",locationKey:"zipCode"}},r={"in-store":e=>"Currently not sold in ".concat(e),pickup:e=>"Currently not sold in ".concat(e),delivery:e=>"Currently unavailable for delivery to ".concat(e)};function FulfillmentInfo(e){let{asin:t,store:n,inStock:s,variant:d="in-store",zipCode:c,className:u,isLoading:m=!1}=e,{openLocationSelector:p}=(0,i.l)(),h="".concat(null!=t?t:"","_").concat(null!=n?n:"");if(m)return(0,l.jsx)("div",{className:u,"data-testid":"skeleton-fulfillment","aria-hidden":"true",children:(0,l.jsx)(a.Z,{width:"55%",height:"1.5rem"})});if(!s){let e="delivery"===d?null!=c?c:"":null!=n?n:"";return(0,l.jsx)("div",{"data-testid":"sold-in-store",className:u,"data-csa-c-type":"notification","data-csa-c-slot-id":"prodInfo-soldIn","data-csa-c-content-id":"notSoldIn_".concat(h),children:r[d](e)})}let{prefix:v,changeLabel:g,locationKey:f}=o[d],x="zipCode"===f?null!=c?c:"":null!=n?n:"";return(0,l.jsxs)("div",{"data-testid":"sold-in-store",className:u,children:[(0,l.jsxs)("span",{"data-csa-c-type":"notification","data-csa-c-slot-id":"prodInfo-soldIn","data-csa-c-content-id":h,children:[v," "]}),(0,l.jsx)("span",{className:"font-bold",children:"".concat(x," ")}),(0,l.jsx)("button",{type:"button",onClick:p,className:"border-none bg-transparent pl-[2px] text-kale underline","data-csa-c-type":"link","data-csa-c-slot-id":"prodInfo-soldIn","data-csa-c-content-id":h,children:g})]})}},86907:function(e,t,n){var l=n(85893),i=n(93967),a=n.n(i);t.Z=function(e){let{width:t="100%",height:n="1rem",bgClass:i="bg-gray-200",className:o=""}=e;return(0,l.jsx)("div",{"data-testid":"skeleton-bar",className:a()("animate-pulse rounded",i,o),style:{width:t,height:n},"aria-hidden":"true"})}},41445:function(e,t,n){var l=n(85893),i=n(91371),a=n(93967),o=n.n(a),r=n(67294),s=n(30523),d=n.n(s);t.Z=function(e){let{scrollPercentage:t}=e,n=(0,i.Z)(),a=null!=t?t:50,[s,c]=(0,r.useState)(!1),[u,m]=(0,r.useState)(n.height*(a/100)),p=o()("w-back-to-top",{"w-hide":!s}),h=o()("w-back-to-top-wrapper",{"is-inactive":!s}),handleScroll=()=>{setTimeout(()=>{window.scrollY<=u?c(!1):c(!0)},200)};return(0,r.useEffect)(()=>(d().polyfill(),document.addEventListener("scroll",handleScroll,{passive:!0}),()=>{document.removeEventListener("scroll",handleScroll)}),[]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{m(n.height*(a/100))},200);return()=>clearTimeout(e)},[null==n?void 0:n.height]),(0,l.jsx)("div",{className:h,children:(0,l.jsxs)("button",{className:p,onClick:()=>{var e;window.scrollTo({top:0,left:0,behavior:"smooth"}),null===(e=document.getElementById("main-content"))||void 0===e||e.focus()},"data-testid":"back-to-top-button","aria-hidden":s?"false":"true",type:"button",children:[(0,l.jsx)("i",{className:"w-icon w-icon-chevron-up-white","aria-hidden":"true"}),(0,l.jsx)("span",{className:"sr-only",children:"Back To"}),(0,l.jsx)("span",{children:"Top"})]})})}},82450:function(e,t,n){var l=n(85893),i=n(23876),a=n(79759),o=n(15285),r=n(51363),s=n(90210),d=n(67294);t.Z=function(){let{pieBrowseStore:e}=(0,d.useContext)(r.nj),t="".concat((0,s.OB)("NEXT_PUBLIC_ASSETS_URL"),"out-of-us/");return e.isUSStore?null:(0,l.jsxs)("section",{className:"w-banner--out-of-usa w-cms-grid",children:[(0,l.jsx)(o.Z,{desktopSize:"m",tabletSize:"m",mobileSize:"s"}),(0,l.jsx)("div",{className:"w--banner_out-of-usa_left",children:(0,l.jsx)(a.Z,{assetLocation:t,url:"desktop/img-apples-left.png",url2X:"desktop/[email protected]",urlTablet:"tablet/img-apples-left.png",urlTablet2X:"tablet/[email protected]"})}),(0,l.jsx)("div",{className:"w--banner_out-of-usa_center w-pie--out-of-usa_text",children:"Our online catalog currently only includes Whole Foods Market stores in the US. Feel free to browse products to get an idea of what we sell in our stores."}),(0,l.jsx)("div",{className:"w--banner_out-of-usa_right",children:(0,l.jsx)(a.Z,{assetLocation:t,url:"desktop/img-apples-right.png",url2X:"desktop/[email protected]",urlTablet:"tablet/img-apples-right.png",urlTablet2X:"tablet/[email protected]"})}),(0,l.jsx)(o.Z,{desktopSize:"m",tabletSize:"s",mobileSize:"s"}),(0,l.jsx)(i.Z,{size:"large",style:"light"})]})}},93906:function(e,t,n){n.d(t,{Z:function(){return ProductsGrid_ProductsGrid}});var l=n(85893),i=n(15285),a=n(23876),o=n(67294),Modal_Modal=function(e){let{id:t,children:n}=e;return(0,l.jsx)("div",{"aria-hidden":"true",className:"modal micromodal-slide","data-testid":t,id:t,children:(0,l.jsx)("div",{tabIndex:-1,
1className:"modal--overlay","data-micromodal-close":!0,children:(0,l.jsxs)("div",{"aria-modal":"true",className:"modal--container",role:"dialog",children:[(0,l.jsx)("button",{"aria-label":"Close Dialog",className:"modal--close w-link","data-micromodal-close":!0,"data-testid":"close",type:"button",children:"Close"}),(0,l.jsx)("div",{className:"modal--content",id:"".concat(t,"-content"),children:n})]})})})},r=n(41483),s=n(20043),d=n(82872),c=n(68635),u=n(52173),m=n(77058),p=n(51363),h=n(99650),MiniTile_MiniTile=function(e){var t,n;let{brand:v,csaSlotId:g,name:f,pricing:x,slug:b}=e,{pieBrowseStore:S}=(0,o.useContext)(p.nj),{webViewState:j}=(0,o.useContext)(m.Z),_=j.isWebView&&j.isWebViewAuthenticated,w=!j.isWebView,P=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{desktopSize:"s",tabletSize:"s",mobileSize:"s"}),(0,l.jsx)(a.Z,{size:"large",style:"light"}),(0,l.jsx)(i.Z,{desktopSize:"s",tabletSize:"s",mobileSize:"s"})]}),E=(0,l.jsx)(s.Z,{clickEventOrigin:"ProductsGrid",csaSlotId:g,enabled:_||w,productASIN:(0,d.g)(b),productName:f});return(0,l.jsxs)("div",{"data-testid":"product-mini-tile",className:"product-mini-tile",children:[(0,l.jsx)("button",{className:"w-pie--product-tile__link","data-testid":"product-tile-link","data-csa-c-type":"miniTile","data-csa-c-content-id":f,onClick:e=>{e.preventDefault(),h.Z.show(b)},type:"button",children:(0,l.jsx)(r.Z,{color:"tahini",class:"w-pie--mini-tile","data-testid":"mini-tile",children:(0,l.jsxs)("div",{className:"w-pie--mini-tile__content",children:[v?(0,l.jsx)("span",{className:"w-cms--font-disclaimer","data-testid":"mini-tile-brand",children:v}):null,(0,l.jsx)("h3",{className:"w-cms--font-body__sans-bold","data-testid":"mini-tile-name",children:f}),(0,l.jsx)(c.Z,{regPrice:null==x?void 0:x.regPrice,salePrice:null==x?void 0:x.salePrice,primePrice:null==x?void 0:x.primePrice,primeMultiple:null==x?void 0:x.primeMultiple,saleMultiple:null==x?void 0:x.saleMultiple,incrementalSalePrice:null==x?void 0:x.incrementalSalePrice,uom:null==x?void 0:x.uom})]})})}),E,(0,l.jsx)(Modal_Modal,{id:b,children:(0,l.jsxs)("div",{className:"w-pie--mini-modal__content",children:[v?(0,l.jsx)("p",{className:"w-pie--mini-modal_brand",children:(0,l.jsx)("span",{"data-testid":"mini-tile-brand",children:v})}):null,(0,l.jsx)("h2",{className:"w-cms--font-headline__serif","data-testid":"mini-modal-name",children:f}),P,(0,l.jsxs)("div",{className:"w-pie--mini-modal_price",children:[(0,l.jsx)(c.Z,{regPrice:null==x?void 0:x.regPrice,salePrice:null==x?void 0:x.salePrice,primePrice:null==x?void 0:x.primePrice,primeMultiple:null==x?void 0:x.primeMultiple,saleMultiple:null==x?void 0:x.saleMultiple,incrementalSalePrice:null==x?void 0:x.incrementalSalePrice,uom:null==x?void 0:x.uom}),(0,l.jsx)(u.Z,{asin:(0,d.g)(b),inStock:!0,store:null!==(n=null===(t=S.store)||void 0===t?void 0:t.name)&&void 0!==n?n:""})]}),P,E,(0,l.jsx)("p",{className:"w-pie--mini-modal_info",children:"We don’t have any additional info for this product just yet. Check back as we’re continually adding info about our products."})]})})]})},v=n(40359),ProductsGrid_ProductsGrid=function(e){let{products:t,miniProducts:n,isLoadingMore:a,isReachingEnd:o,size:r,setSize:s,openInNewWindow:c=!1}=e,u=o?null:(0,l.jsx)("button",{className:"w-button w-button--secondary w-button--load-more","data-csa-c-content-id":"loadMore","data-csa-c-type":"widget","data-testid":"load-more-button","aria-label":"Load More Products","aria-disabled":a,disabled:a,onClick:()=>{s(r+1)},type:"button",children:(0,l.jsx)("span",{children:a?"Loading...":"Load more"})}),m=(null==t?void 0:t.length)?(0,l.jsx)("section",{children:(0,l.jsx)("div",{className:"w-pie--products-grid",children:t.map((e,t)=>null==e?void 0:e.map((e,n)=>{var i,a;let o={regPrice:e.regularPrice,primePrice:e.primePrice,incrementalSalePrice:e.incrementalSalePrice,salePrice:e.salePrice,primeMultiple:e.primeMultiple,saleMultiple:e.saleMultiple,uom:e.uom,saleStartDate:null===(i=e.saleStartDate)||void 0===i?void 0:i.toString(),saleEndDate:null===(a=e.saleEndDate)||void 0===a?void 0:a.toString()};return(0,l.jsx)(d.Z,{slug:e.slug,name:e.name,image:e.imageThumbnail,local:e.isLocal,brand:e.brand,pricing:o,csaSlotId:"".concat((t*v._G.LOAD_MORE_PAGE_SIZE+n+1).toString()),headerLevel:2,o
1penInNewWindow:c},e.slug)}))})}):null,p=(null==t?void 0:t.length)?(0,l.jsx)(i.Z,{desktopSize:"l",tabletSize:"l",mobileSize:"l"}):null,h=(null==n?void 0:n.length)?(0,l.jsxs)("section",{className:"w-pie--mini-tiles",children:[(0,l.jsxs)("div",{className:"w-pie--mini-tile_header",children:[(0,l.jsx)("h2",{className:"w-cms--font-subhead-lg__serif",children:"More Results"}),(0,l.jsx)("p",{children:"The below products are also sold in store."})]}),(0,l.jsx)("div",{className:"w-pie--product-mini-grid",children:n.map(e=>{let t={regPrice:e.regularPrice,primePrice:e.primePrice,incrementalSalePrice:e.incrementalSalePrice,salePrice:e.salePrice,primeMultiple:e.primeMultiple,saleMultiple:e.saleMultiple,uom:e.uom,saleStartDate:e.saleStartDate,saleEndDate:e.saleEndDate};return(0,l.jsx)(MiniTile_MiniTile,{slug:e.slug,name:e.name,brand:e.brand,pricing:t},e.slug)})})]}):null;return(null==t?void 0:t.length)||(null==n?void 0:n.length)?(0,l.jsxs)(l.Fragment,{children:[m,p,h,u,(0,l.jsx)(i.Z,{desktopSize:"l",tabletSize:"l",mobileSize:"l"})]}):null}},83229:function(e,t,n){n.d(t,{Z:function(){return StoreBar_StoreBar}});var l=n(85893),i=n(93967),a=n.n(i),o=n(67294),r=n(27657),s=n(82687),d=n(39637),c=n(70369),u=n(42550),m=n(13869);function SelectStoreDialog(e){let{open:t,onOpenChange:n}=e,{openLocationSelector:i}=(0,m.l)();return(0,l.jsx)(d.fC,{open:t,onOpenChange:null!=n?n:void 0,children:(0,l.jsxs)(d.h_,{children:[(0,l.jsx)(c.TX,{children:(0,l.jsx)(d.Dx,{children:"Select Store"})}),(0,l.jsx)(d.aV,{className:"fixed inset-0 z-[200] bg-black/60"}),(0,l.jsxs)(d.VY,{className:" fixed left-1/2 top-1/2 z-[200] max-h-[85vh] w-[90vw] max-w-[600px] -translate-x-1/2 -translate-y-1/2 rounded-md bg-white p-12  focus:outline-none",children:[(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsx)(d.Dx,{className:"bds--heading-2 m-0 text-center",children:"See what's in your store"}),(0,l.jsx)(d.dk,{className:"bds--body-1 text-center",children:"Find in-store pricing, weekly sales, and local products by selecting your store below."}),(0,l.jsx)(u.ZP,{onClick:()=>{null==n||n(!1),setTimeout(()=>{i()},100)},children:"Select Store"})]}),(0,l.jsx)(d.x8,{asChild:!0,children:(0,l.jsx)("button",{type:"button",className:"absolute right-4 top-4 inline-flex cursor-pointer rounded border-none bg-transparent p-2 hover:bg-gray-100","aria-label":"Close dialog",children:(0,l.jsx)("span",{className:"bds--heading-5 text-chard",children:"close \xd7"})})})]})]})})}var p=n(77058),StoreBar_StoreBar=function(e){let{breadcrumb:t,hasStoreSelected:n=!1}=e,{webViewState:i}=(0,o.useContext)(p.Z),[d,c]=(0,o.useState)(!1),u=!n,m=!i.isWebView&&!n&&!d;(0,o.useEffect)(()=>{n&&c(!1)},[n]);let h=a()("w-pie-store-finder",{"w-hide":!u}),v=a()("w-grid",{"w-pie--store-bar":u,"w-pie--breadcrumb-bar":!u});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:v,"data-testid":"store-breadcrumb-bar",children:[(0,l.jsx)(r.Z,{items:t}),(0,l.jsx)("div",{className:h,children:u?(0,l.jsx)(s.Z,{header:"Browse Products",label:"Select a store to browse products and see local pricing.",csaContentId:"storeFinder"}):null})]}),(0,l.jsx)(SelectStoreDialog,{open:m,onOpenChange:e=>{e||c(!0)}})]})}},36579:function(e,t,n){n.d(t,{Z:function(){return useQueryParams}});var l=n(51363),i=n(40359),a=n(11163),o=n.n(a),r=n(67294);function useQueryParams(){var e;let t=(0,a.useRouter)(),{pieBrowseStore:n}=(0,r.useContext)(l.nj),s=null===(e=n.store)||void 0===e?void 0:e.browseId,[d,c]=(0,r.useState)(()=>(0,i.vl)(t.asPath)),u=(0,r.useCallback)(e=>{!Object.hasOwn(e,"store")&&s&&(e.store=s.toString());let n={};for(let t in e)i._G.AS_PATH_QUERY_PARAMS.has(t)||(n[t]=e[t]);let l="?"==="?".concat(new URLSearchParams(e))?"":"?".concat(new URLSearchParams(e)),a="?"==="?".concat(new URLSearchParams(n))?"":"?".concat(new URLSearchParams(n));t.push("".concat(t.pathname).concat(l),"".concat(t.asPath.split("?")[0]).concat(a)),c(e)},[t]);return(0,r.useEffect)(()=>{let routeChangeComplete=()=>{c((0,i.vl)(o().asPath))};return o().events.on("routeChangeComplete",routeChangeComplete),()=>{o().events.off("routeChangeComplete",routeChangeComplete)}},[]),[d,u]}},80444:function(e,t,n){n.d(t,{g:function(){return usePaginateOrders},s:function(){return usePaginateProducts}});var l=n(36472),i=n(16357);n(34291);var a=n(40359),o=n(28016);l.Ae.DESCENDING,l.Ae.DESCENDING;var r=n(67294),s=n(76607),d=n(29726),c=n(51363),u=n(36579);function usePaginateProducts(e){var t,n,l,o,d,u,m,p,h,v;let{apiUrl:g,initialData:f,store:x,headers:b={},useTotalCount:S=!1}=e;if(!g)throw Error("API URL is required");let{pieBrowseStore:j}=(0,r.useContext)(c.nj),_=null!=x?x:null==j?void 0:null===(t=j.store)||void 0===t?void 0:t.browseId,w=!Object.hasOwn((0,a.vl)(g),"store")&&_?"".concat(g,"&store=").concat(_):"".concat(g),P=(null===(n=(0,a.vl)(w))||void 0===n?void 0:n.store)!==void 0&&(null===(l=(0,a.vl)(w))||void 0===l?void 0:l.store)!==(null==f?void 0:null===(m=f[0])||void 0===m?void 0:null===(u=m.results)||void 0===u?void 0:null===(d=u[0])||void 0===d?void 0:null===(o=d.store)||void 0===o?void 0:o.toString()),{data:E,error:N,size:O,setSize:C}=(0,s.ZP)(e=>"".concat(w,"&limit=").concat(i.LOAD_MORE_PAGE_SIZE,"&offset=").concat(e*i.LOAD_MORE_PAGE_SIZE),(e,t)=>(0,a._i)(e,{...t,headers:b}),{fallbackData:f,revalidateOnFocus:!1,revalidateOnMount:P,refreshWhenOffline:!1,refreshWhenHidden:!1,refreshInterval:0}),y=(null==E?void 0:null===(p=E[O-1])||void 0===p?void 0:p.results)||(null==E?void 0:null===(h=E[O-1])||void 0===h?void 0:h.products),D=(null==y?void 0:y.length)===0,k=D||(S?O*i.LOAD_MORE_PAGE_SIZE>=(null==E?void 0:null===(v=E[0])||void 0===v?void 0:v.totalCount):((null==y?void 0:y.length)||0)<i.LOAD_MORE_PAGE_SIZE),I=!E&&!N||O>0&&E&&void 0===E[O-1];return{paginatedData:E,error:N,isLoadingMore:I,size:O,setSize:C,isReachingEnd:k}}function usePaginateOrders(e){var t;let{programType:n,isInStore:l}=e,[s]=(0,u.Z)(),c=(0,r.useMemo)(()=>new Date().toISOString(),[]),m=(0,r.useMemo)(()=>(0,o.YD)(new Date,180).toISOString(),[]),getOrdersApiUrl=e=>"".concat("/api/wwos/orders","?").concat((0,o.Qs)({paginationOffsetStartIndex:"".concat(e*i.ORDERS_LOAD_MORE_PAGE_SIZE),paginationOffsetEndIndex:"".concat((e+1)*i.ORDERS_LOAD_MORE_PAGE_SIZE),programType:n,...s}).toString()),getInStoreOrdersApiUrl=e=>"".concat("/api/wwos/posOrders","?").concat((0,o.Qs)({paginationOffsetStartIndex:"".concat(e*i.ORDERS_LOAD_MORE_PAGE_SIZE),paginationOffsetEndIndex:"".concat((e+1)*i.ORDERS_LOAD_MORE_PAGE_SIZE),startDateTime:m,endDateTime:c,programType:n,...s}).toString()),{data:p,error:h,fetchNextPage:v,hasNextPage:g,isFetchingNextPage:f,isLoading:x}=(0,d.N)({queryKey:["orders",l?"in-store":"post-order",n,s,...l?[m,c]:[]],queryFn:e=>{let{pageParam:t=0}=e,n=l?getInStoreOrdersApiUrl(t):getOrdersApiUrl(t);return(0,a._i)(n)},initialPageParam:0,getNextPageParam:(e,t)=>{if((null==e?void 0:e.bookmarkIndex)!==-1&&(null==e?void 0:e.bookmarkIndex)!==null&&(null==e?void 0:e.orders)&&!(e.orders.length<i.ORDERS_LOAD_MORE_PAGE_SIZE))return t.length},staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnMount:!1}),b=null==p?void 0:p.pages,S=(null==p?void 0:null===(t=p.pages)||void 0===t?void 0:t.length)||0;return{paginatedData:b,error:h,isLoadingInitialData:x,isLoadingMore:f,size:S,setSize:e=>{let t="function"==typeof e?e(S):e;return t>S&&g?v():Promise.resolve()},isReachingEnd:!g}}},36472:function(e,t,n){var l,i,a,o,r,s,d;n.d(t,{Ae:function(){return l},Kq:function(){return i},Zb:function(){return a},gG:function(){return o}}),(r=l||(l={})).ASCENDING="ASCENDING",r.DESCENDING="DESCENDING",(i||(i={})).CANCELLED="Cancelled",(s=a||(a={})).ECO="ECO",s.ALL="ALL",(d=o||(o={})).STORE="STORE",d.HOME="HOME"}}]);

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.