1import{U as _,X as F,g as P,dd as T,l as D,E as L,ci as O,dh as I,r as x,bG as j,di as k,j as q,dj as B}from"./index-CVUXbWDK.js";import{f as G,g as K,A as Q,d as R}from"./AisleContent-Bp-ftWbp.js";import{l as S}from"./bannerCarouselLinkUtils-Dh9XFnai.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 o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="a6874fdc-d5c1-4e15-897b-1e3a9989b821",o._sentryDebugIdIdentifier="sentry-dbid-a6874fdc-d5c1-4e15-897b-1e3a9989b821")}catch{}})();(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o._sentryModuleMetadata=o._sentryModuleMetadata||{},(function(){var s,a=new o.Error().stack,i=o._sentryModuleMetadata[a]||{},r={"_sentryBundlerPluginAppKey:mm-sentry-boysenberry":!0},n={};for(s in i)i.hasOwnProperty(s)&&(n[s]=i[s]);for(s in r)r.hasOwnProperty(s)&&(n[s]=r[s]);o._sentryModuleMetadata[a]=n})()})();function Z(){var w,m,v;const o=_(),s=F.useMediaQuery({maxWidth:(w=o==null?void 0:o.screens)==null?void 0:w.md}),{data:a}=P(),i=T(),{appliedFilters:r}=D(),n=L(),e=O(),g=I(e==null?void 0:e.category),u=I(e==null?void 0:e.subcategory)||"all",t=i==null?void 0:i.find(d=>d.name.toLowerCase()===(g==null?void 0:g.toLowerCase())),y=((m=t==null?void 0:t.aisles)==null?void 0:m.find(d=>d.name.toLowerCase()===(u==null?void 0:u.toLowerCase())))||{id:u,name:"All"};x.useEffect(()=>{t||((e==null?void 0:e.category)==="prepared+foods"?n("/shop/aisle/prepared/all"):(e==null?void 0:e.category)==="saved+&+rescued"?n("/shop/aisle/rescued/all"):(e==null?void 0:e.category)==="vitamins+&+supplements"?n("/shop/aisle/wellness/all"):(e==null?void 0:e.category)==="plant-based+shop"?n("/shop/aisle/plant-based/all"):(e==null?void 0:e.category)==="gluten-free+shop"?n("/shop/aisle/gluten-free/all"):(e==null?void 0:e.category)==="discover+something+new"?n("/shop/aisle/new+picks/all"):n("/shop"))},[t==null?void 0:t.id,y.id]);const f=j({queryKey:["aisle",t==null?void 0:t.id],queryFn:async()=>{var C;const d=await B((C=a==null?void 0:a.nextOrder)==null?void 0:C.chargeID,t==null?void 0:t.id);return d!=null&&d.data&&S(d.data,{aisleID:t==null?void 0:t.id}),d},enabled:((v=a==null?void 0:a.nextOrder)==null?void 0:v.chargeID)>0&&(t==null?void 0:t.id)>0}),{isLoading:b}=f;x.useEffect(()=>{!b&&y.id!=="all"&&k({mobile:s,selector:`#aisle-${y.id}`})},[b]);const{data:l}=(f==null?void 0:f.data)??{},{carouselV2:E,items:p,subAisles:c}=l??{},h=G(r,c,p),M=K(R,c,p);return f.error?null:q.jsx(Q,{isLoading:b,categories:(c==null?void 0:c.length)>0?h:[],carouselV2Data:E,banners:l==null?void 0:l.banners,currentAisle:t,currentCategory:y,filtersData:M,items:h,otherContent:l==null?void 0:l.otherContent})}export{Z as Component}; 2//# sourceMappingURL=Aisle-B__X82LM.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.