1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8338],{5269:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});var l=s(37876),i=s(89033),r=s(14232),o=s(98477),a=s(16253),n=s(626),c=s(66497),d=s(69936),u=s(98942),m=s(33473),p=s(46637),h=s(72576),v=s(42710);function x(e){let{title:t,handleSelection:s,allActiveStores:x,metroAreas:g,isStoreButtonLink:f,isStateZoom:y,pickupLocationSelection:b=!1}=e,{t:j}=(0,i.Bd)(),{geolocation:k,fetchGeolocation:w,loading:N}=(0,u.m)(),[_,S]=(0,r.useState)(""),[L,A]=(0,r.useState)(_),[C,E]=(0,r.useState)(!1),F=k&&"string"!=typeof k?k:null,I=(0,r.useRef)(null),T=(0,r.useCallback)(async(e,t,l,i)=>{(0,o.flushSync)(()=>{E(!0)});try{await s(e,t,l,i)}finally{E(!1)}},[s]),{data:B,loading:M}=(0,p.Fi)({searchTerm:L,latitude:null==F?void 0:F.lat,longitude:null==F?void 0:F.lng}),O=(0,r.useMemo)(()=>{var e,t;return(null==B||null==(t=B.stores)||null==(e=t.publicStoreInfoSearch)?void 0:e.map(e=>({distanceInMiles:e.distanceInMiles,...e.store})))||[]},[B]);(0,r.useEffect)(()=>{let e=setTimeout(()=>{A(_)},500);return()=>{clearTimeout(e)}},[_]);let Z=(0,r.useMemo)(()=>(null==F?void 0:F.lat)&&(null==F?void 0:F.lng)?(0,v.j)(x,null==F?void 0:F.lat,null==F?void 0:F.lng):x,[null==F?void 0:F.lat,null==F?void 0:F.lng,x]),P=((null==O?void 0:O.length)||0)>0?O:Z;return(0,r.useEffect)(()=>{w()},[w]),(0,l.jsxs)("div",{className:"bg-white p-4 pt-0 sm:pb-0 sm:pt-[40px]",children:[(0,l.jsxs)("div",{className:"flex px-0 lg:pt-10 lg:px-20",children:[(0,l.jsx)("div",{id:"map",className:"hidden lg:block flex-1 rounded-xl",children:(0,l.jsx)(m.A,{storeList:P,isLoading:M,hideCustomZoom:!((null==F?void 0:F.lat)&&(null==F?void 0:F.lng)||L&&!M&&(null==P?void 0:P.length)||y),isStateZoom:y})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("div",{"data-testid":"store-search-input",className:"md:px-4 pt-4 sm:pt-0 sticky top-[60px] sm:top-[80px] z-[9] bg-white lg:relative lg:top-0 lg:pt-2 lg:pl-[65px] lg:pr-0",children:[(0,l.jsx)(d.A,{as:"h1",variant:"display3",className:"mb-4 lg:mb-9",children:t}),(0,l.jsx)(c.A,{autoFocus:!0,className:"!h-[40px] bg-white",value:_,onChange:e=>S(e.target.value),placeholder:j("order:search_store"),contentLeft:(0,l.jsx)(n.A,{className:"text-grey-20 relative size-5"}),contentRight:_&&(null==_?void 0:_.length)<3?(0,l.jsx)(d.A,{variant:"finePrint",className:"text-grey-60",children:j("stores:keep_typing")}):void 0})]}),(0,l.jsx)("div",{className:"px-1 relative text-sm pl-0 lg:pl-[65px] flex-1 sm:overflow-y-scroll",ref:I,children:(0,l.jsx)("div",{id:"store-list",className:"flex-1 mt-4 sm:mt-0 md:px-4 lg:px-0",children:(0,l.jsx)(h.A,{showLoader:M||N,stores:P,searchTerm:_,geoLocation:k,handleSelection:T,metroAreas:g,isButtonLink:f,pickupLocationSelection:b})})})]})]}),C?(0,l.jsx)("div",{className:"fixed z-50 inset-0 backdrop-blur",children:(0,l.jsx)("div",{className:"flex flex-col items-center justify-center w-full h-full",children:(0,l.jsx)("div",{className:"w-24 h-24 sm:w-32 sm:h-32 lg:w-36 lg:h-36",children:(0,l.jsx)(a.A,{})})})}):null]})}},41946:(e,t,s)=>{var l=s(71266);e.exports=function(e,t){return l(e,t)}},42495:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/stores",function(){return s(73527)}])},73527:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>c,default:()=>d});var l=s(37876),i=s(89033),r=s(89099),o=s(5269),a=s(55020),n=s(71161),c=!0;function d(e){let{allActiveStores:t,metroAreas:s}=e,{t:a}=(0,i.Bd)(),n=(0,r.useRouter)(),c=async e=>{try{if(!e)throw Error("No store slug available for the selected store.");await n.push("/".concat(e))}catch(e){console.error("Selection Error:",e.message)}};return(0,l.jsx)("div",{className:"max-w-9xl m-auto",children:(0,l.jsx)(o.A,{title:a("stores:select_store"),handleSelection:c,allActiveStores:t,metroAreas:s,isStoreButtonLink:!0})})}let u=e=>{let{children:t}=e,{t:s}=(0,i.Bd)("stores"),{locale:o}=(0,r.useRouter)();return(0,l.jsx)(a.A,{footer:!1,overrideOpenGraphTitle:s("stores:seo_title"),overrideOpenGraphDescription:s("stores:seo_description"),structuredData:(e=>{let t=(0,n.ZF)(e,"/"),s=(0,n.ZF)(e,"/stores");return{"@context":"https://schema.org","@type":"WebPage",name:"Find Crumbl Cookies Near Me",description:"Find Crumbl Cookies locations near you. 6 classic cookie flavors plus 4 new rotating flavors every week. Available for delivery, pickup, and carryout.",url:s,mainEntity:{"@type":"ItemList",name:"Crumbl
1Cookies Store Locations",description:"Crumbl Cookies bakery locations offering fresh baked cookies with 6 classic flavors and 4 rotating weekly flavors. Dirty sodas at select locations.",itemListOrder:"https://schema.org/ItemListUnordered"},breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:t},{"@type":"ListItem",position:2,name:"Store Locations",item:s}]}}})(null!=o?o:"en-US"),canonicalUrl:(0,n.ZF)(null!=o?o:"en-US","/stores"),children:t})};d.getLayout=e=>(0,l.jsx)(u,{children:e})}},e=>{e.O(0,[2953,6578,4e3,9555,1221,5020,198,636,6593,8792],()=>e(e.s=42495)),_N_E=e.O()}]); 2//# sourceMappingURL=stores-02b76dc6871c4a64.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.