1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8410],{21859:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ca/[locale]/locations/[state]/[city]",function(){return o(26965)}])},26965:(e,t,o)=>{"use strict";o.r(t),o.d(t,{LOCATIONS_CITY_STRAPI:()=>C,__N_SSG:()=>I,default:()=>L});var n=o(37876),a=o(89099),r=o(77328),l=o.n(r),s=o(14232),i=o(27999),d=o(61568),c=o.n(d),u=o(57384),h=o(76830),g=o(12116),v=o(58527),f=o(53166),m=o(37930),y=o(43264),p=o(9099),S=o(26046),A=o(30464),I=!0;let C=e=>'\n query locationsCity {\n intLocationsCityPages(limit: 1, where: { countryLocale: "'.concat(e,'" }) {\n metaData {\n title\n metaKeywords\n metaDescription\n }\n title\n subtitle\n contentBlock\n cityButtonLink\n cityButtonLabel\n copyText\n contentBox {\n title\n contentText\n galleryImage {\n url\n alternativeText\n }\n titleURL\n linkURL\n }\n }\n }\n');async function x(e,t){return y.A.get((0,S.A)(p.A.LOCATIONS_CITY_SPECIFIC_LOCATIONS,{city:e,stateLabel:t}),void 0,{[A.GA.COUNTRY_ALPHA_2]:"CA"})}let L=e=>{let{locationsInfo:t,locale:o,menus:r,initialStoresData:d}
1=e,[y,p]=(0,s.useState)(),[S,A]=(0,s.useState)(),[I,C]=(0,s.useState)(!1),[L,w]=(0,s.useState)(!1),[T,N]=(0,s.useState)(),[_,O]=(0,s.useState)(),[b,k]=(0,s.useState)([]),[j,q]=(0,s.useState)(!1),P=(0,a.useRouter)(),{city:E,state:F}=P.query,{data:D}=(0,u.Ay)(E&&F?[E,F]:null,async()=>x((0,i.xL)((0,i.Sn)(E)),(0,i.CO)((0,i.Sn)(F))),{fallbackData:d,refreshInterval:6e4,dedupingInterval:6e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,errorRetryCount:0}),R=(0,s.useCallback)((e,t)=>{var o;e.preventDefault(),e.stopPropagation(),k(null==(o=t.locationExclusiveDeliveryAddressConnection)?void 0:o.edges),O(t),q(!0)},[]),B=null==D?void 0:D.locations,G=(0,s.useMemo)(()=>(0,g.kS)((0,v.e)(o,"/locations/".concat(F,"/").concat(E),h.aj.CANADA)),[o,F,E]);return P.isFallback?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,g.dU)("/".concat(e.headerProps.countryCode,"/").concat(c()(o),"/locations"),o),G]}),(0,n.jsx)(m.A,{isCanada:!0,menus:r,LocationSearchByCityData:{props:e,data:D,locationsInfo:t,showModal:I,setShowModal:C,quote:S,setQuote:A,modalInput:y,setModalInput:p,setChangeSelectedStoreData:w,changeSelectedStoreData:L,isExclusiveLocationModalOpen:j,setIsExclusiveLocationModalOpen:q,selectedPlace:_,handoff:T,exclusiveDelivery:b,storesList:B,handleExclusiveLocation:R,setHandoff:N}}),(0,n.jsx)(f.A,{showModal:I,setShowModal:C,changeSelectedStoreData:L,input:y,isGetAQuote:!1,quote:S})]})}},53166:(e,t,o)=>{"use strict";o.d(t,{A:()=>x});var n=o(37876);o(14232);var a=o(44264),r=o(89099),l=o.n(r),s=o(39312),i=o(44232),d=o(28074),c=o(85323),u=o(26328),h=o(27999),g=o(9114),v=o(4523),f=o(30464),m=o(60729),y=o(905),p=o(43264),S=o(26046),A=o(9099);let I=a.Ay.div.withConfig({componentId:"sc-ce5de65d-0"})(["text-align:center;margin:1rem 0 2rem 0;p{font-size:1.2rem;text-align:center;margin:1rem 0;}"]),C=a.Ay.div.withConfig({componentId:"sc-ce5de65d-1"})(["display:inline-block;"]),x=e=>{let{showModal:t,setShowModal:o,isLoyaltyItem:a,couponSubcategorySlug:x,couponItemSlug:L,isGetAQuote:w,input:T,changeSelectedStoreData:N,quote:_,autodetectUsed:O,setShowAddressModal:b,couponItemId:k,existingCategory:j,propsContainsCoupon:q}=e,P=new s.A,E=P.get(f.rC.quote),F=P.get("couponItemId"),{setNumberOfItemsInCart:D,setOrderPrice:R}=(0,y.m)(),{query:B}=(0,r.useRouter)(),G=(0,g.A)(),U=async()=>{o(!1),document.body.classList.remove(c.A.classNames.hasModal);let e=E.storeSlug;if(E.storeSlug)try{var t,n;let o=await p.A.get((0,S.A)(A.A.LOCATION_SPECIFIC_SLUG,{slug:E.storeSlug.toLowerCase()}));e=null!=(n=null==o||null==(t=o.primaryLocation)?void 0:t.slug)?n:E.storeSlug}catch(t){e=E.storeSlug}l().push((0,v.$)({menuType:E.menuTypeSlug,countryCode:G,locale:null==B?void 0:B.locale,locationSlug:e,isGetAQuote:E.startingFlow===f.UN,queryParams:{[m.gl]:String(E.handoffId),[m.eT]:String(E.menuTypeId)}}))},M=async()=>{if(P.remove(f.rC.quotecateringId,{path:"/"}),P.remove(f.rC.quote,{path:"/"}),P.remove(f.rC.menuAtAGlanceItem,{path:"/"}),(0,h.l7)("step"),(0,u.oA)("stateChange","clearCart"),j&&j!==(null==_?void 0:_.category)&&!q&&P.remove("couponItemId"),O)o(!1),b(!0);else{if(w){var e,t;P.remove(f.rC.quote,{path:"/"}),P.set(f.rC.quote,JSON.stringify({startingFlow:f.UN,userAddress:N.userAddress,locationId:N.locationId,storeSlug:N.storeSlug,storeName:N.storeName,handoffId:N.handoffId,menuTypeSlug:_.category,menuTypeId:_.categoryId,locationAddress:N.fullAddress||N.locationAddress}),{path:"/",maxAge:21600}),await l().push((0,v.$)({menuType:_.category,countryCode:G,locale:null==B?void 0:B.locale,locationSlug:null!=(t=null==(e=N.primaryLocation)?void 0:e.slug)?t:N.storeSlug,isGetAQuote:!0,queryParams:{[m.gl]:String(N.handoffId),[m.eT]:String(_.categoryId)}}))}else P.remove(f.rC.quote,{path:"/"}),P.set(f.rC.quote,JSON.stringify({startingFlow:"quote",locationId:N.locationId,storeSlug:N.storeSlug,storeName:N.storeName,handoffId:N.handoffId,menuTypeSlug:_.category,menuTypeId:_.categoryId,userAddress:N.exclusiveDelieryAddress||N.address||N.userAddress,locationAddress:N.fullAddress||N.locationAddress}),{path:"/",maxAge:21600}),P.set("couponItemId",JSON.stringify({...F,inCart:!1}),{path:"/",maxAge:12e3}),o(!1),setTimeout(()=>{var e,t;l().push((0,v.$)({menuType:_.category,countryCode:G,locale:null==B?void 0:B.locale,locationSlug:null!=(t=null==(e=N.primaryLocation)?void 0:e.slug)?t:N.storeSlug,queryParams:{[m.gl]:String(N.handoffId),[m.eT]:String(_.categoryId)}}))},1e3);D(0),R(0),document.body.classList.remove(c.A.classNames.hasModal)}};return(0,n.jsxs)(i.A,{show:t,setShow:o,wide:void 0,modalItemClose:void 0,fullWidth:void 0,setShowTipModal:void 0,isOnSide:void 0,padding:void 0,children:[(0,n.jsxs)(I,{children:[(0,n.jsxs)("p",{children:["Your currently have an unfinished order in store:"," ",(0,n.jsx)("strong",{children:(null==E?void 0:E.storeName)||(null==E?void 0:E.storeSlug)}),"."]}
1)," ",(0,n.jsx)("p",{children:" Continuing will overwrite the unfinished order."}),(0,n.jsx)("p",{children:"Are you sure you want to continue?"})]}),(0,n.jsx)(I,{children:(0,n.jsxs)(C,{children:[(0,n.jsxs)(d.$n,{onClick:M,className:void 0,blank:void 0,block:void 0,disabled:void 0,inverted:void 0,important:void 0,onBlur:void 0,onFocus:void 0,onKeyPress:void 0,type:void 0,tabIndex:void 0,fullWidth:void 0,children:["Start new order"," "]}),(0,n.jsx)(d.$n,{onClick:U,className:void 0,blank:void 0,block:void 0,disabled:void 0,inverted:void 0,important:void 0,onBlur:void 0,onFocus:void 0,onKeyPress:void 0,type:void 0,tabIndex:void 0,fullWidth:void 0,children:"Continue previous order"})]})})]})}},58527:(e,t,o)=>{"use strict";o.d(t,{O:()=>a,e:()=>r});var n=o(76830);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=[];return n.i_.forEach(e=>{o.push({href:"".concat(e.href).concat(t),hrefLang:e.hrefLang})}),o.push({href:t||"",hrefLang:"x-default"}),Object.values(n.r4).forEach(e=>{if(0!==e.locales.length){if(t)return void e.locales.forEach(n=>{o.push({href:"/".concat(e.code,"/").concat(n).concat(t),hrefLang:n})});1===e.locales.length?o.push({href:"/".concat(e.code),hrefLang:e.locales[0]}):e.locales.forEach(t=>{o.push({href:"/".concat(e.code,"/").concat(t),hrefLang:t})})}}),o},r=(e,t,o)=>{let a=[{href:t||"",hrefLang:"x-default"}],r=Object.values(n.r4).find(e=>{let{code:t}=e;return t===o});return r&&r.locales.forEach(e=>{a.push({href:"/".concat(r.code,"/").concat(e).concat(t),hrefLang:e})}),a}}},e=>{var t=t=>e(e.s=t);e.O(0,[6894,8992,7871,7157,8942,5143,280,7930,636,6593,8792],()=>t(21859)),_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.