PageSourceSearch

https://order.doughnutplant.com/js/255.5a2da035.js

js doughnutplant.com collected 2026-09-26 05:06:57 UTC 47,019 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunklunchbox_storefront"]=self["webpackChunklunchbox_storefront"]||[]).push([[255],{45580:function(e,t,i){i.r(t),i.d(t,{default:function(){return Re}});var a=i(56768),s=i(45130),o=i(24232),r=i(35837);const n={key:1,class:"menuWrapper"},d={class:"categories"},l={key:0,class:"topMenusWrapper"},c={class:"topCategory"},m={key:0,class:"gradientLeft"},g={key:1,class:"gradientRight"},u={class:"topCategory"},h={key:0,class:"gradientLeft"},_={key:1,class:"gradientRight"},I={key:1,class:"promoPart"},p=["innerHTML"],y={class:"leftCategories"},S={class:"inputWrapper"},v=["onClick","onKeydown","aria-current","aria-label"],E=["src","alt"],f=["onClick","onKeydown","aria-current","aria-label"],C={class:"categoryLine"},k=["src","alt"],b={class:"categoryList"},w={key:0},A={class:"searchTopPart"},T={key:0,class:"searchResultText"},D={key:1,class:"searchResultText"},L={class:"searchResults"},M=["onClick","onKeydown","tabindex","aria-disabled","aria-label"],O={key:1},F={key:0,class:"suggestions"},R={key:0,class:"suggestionGroupHeader"},x={key:0,ref:"filterDropdown",class:"inputWrapper"},P=["onClick"],q={key:0},X={class:"suggestionHeaderWrapper"},U={class:"suggestionHeader"},W={key:0},V=["onClick","onKeydown","tabindex","aria-disabled","aria-label"],Q=["id"],B={key:0,class:"categoryImageWrapper"},N=["src","alt"],K={key:1,class:"categoryName"},$={key:2,class:"categoryDescription"},H={key:0,class:"subCategories"},G=["id"],j={class:"categoryInfo"},z={class:"categoryName"},Y={key:0,class:"categoryDescription"},Z={class:"items"},J=["onClick","onKeydown","tabindex","aria-disabled","aria-label"],ee={class:"items"},te=["onClick","onKeydown","tabindex","aria-disabled","aria-label"],ie={key:2,class:"emptyMenu"},ae={key:0},se={key:1};function oe(e,t,i,oe,re,ne){const de=(0,a.g2)("DateAndTimeModal"),le=(0,a.g2)("PendingDiscountModal"),ce=(0,a.g2)("CartModal"),me=(0,a.g2)("WithAddons"),ge=(0,a.g2)("HeroView"),ue=(0,a.g2)("LoaderView"),he=(0,a.g2)("swiper-slide"),_e=(0,a.g2)("swiper"),Ie=(0,a.g2)("ItemCell"),pe=(0,a.g2)("FooterView");return(0,a.uX)(),(0,a.CE)("div",{onScroll:t[13]||(t[13]=(...e)=>ne.updateActiveCategory&&ne.updateActiveCategory(...e)),class:"menu"},[(0,a.bF)(s.eB,{name:"fade"},{default:(0,a.k6)(()=>[re.dateAndTimeModalIsOpen?((0,a.uX)(),(0,a.Wv)(de,{key:0,onCloseModal:ne.toggleDateAndTimeModal,onOpenDiscountModal:ne.openDiscountModal,onAddDeepLinkItemToCart:ne.addDeepLinkItemToCart},null,8,["onCloseModal","onOpenDiscountModal","onAddDeepLinkItemToCart"])):(0,a.Q3)("",!0)]),_:1}),(0,a.bF)(s.eB,{name:"fade"},{default:(0,a.k6)(()=>[re.pendingDiscountModalIsOpen?((0,a.uX)(),(0,a.Wv)(le,{key:0,onCloseModal:ne.togglePendingDiscountModal,discountData:re.pendingDiscountData},null,8,["onCloseModal","discountData"])):(0,a.Q3)("",!0)]),_:1}),((0,a.uX)(),(0,a.Wv)(a.Im,{to:"body"},[(0,a.bF)(s.eB,{name:"slide"},{default:(0,a.k6)(()=>[e.cartIsOpen?((0,a.uX)(),(0,a.Wv)(ce,{key:0,onCloseModal:ne.toggleCartViewModal,onCheckoutClicked:ne.toggleCartViewModal,onOpenUpsellItem:ne.openUpsellItem,onOpenWithAddons:ne.openEditWithAddons},null,8,["onCloseModal","onCheckoutClicked","onOpenUpsellItem","onOpenWithAddons"])):(0,a.Q3)("",!0)]),_:1})])),((0,a.uX)(),(0,a.Wv)(a.Im,{to:"body"},[(0,a.bF)(s.eB,{name:"slide"},{default:(0,a.k6)(()=>[re.withAddonsModalIsOpen?((0,a.uX)(),(0,a.Wv)(me,{key:0,onCloseModal:ne.toggleWithAddonsModal,itemData:re.itemData,normalizedAddons:re.normalizedAddons,mode:re.itemModalMode,editItemData:re.editItemData,onGetFavStatus:ne.getFavStatus},null,8,["onCloseModal","itemData","normalizedAddons","mode","editItemData","onGetFavStatus"])):(0,a.Q3)("",!0)]),_:1})])),(0,a.bF)(ge),!re.menus||re.showLoader?((0,a.uX)(),(0,a.Wv)(ue,{key:0,showLoader:re.showLoader},null,8,["showLoader"])):(0,a.Q3)("",!0),ne.checkIfMenuVisible?((0,a.uX)(),(0,a.CE)("div",n,[(0,a.Lk)("div",d,[ne.getAvailableMenus&&ne.getAvailableMenus.length>1&&!this.branding?.display_options?.collapse_menu_categories?((0,a.uX)(),(0,a.CE)("div",l,[(0,a.bF)(_e,{navigation:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:15,modules:re.modules,onSwiper:ne.onSwiper,class:"swiperGradientRight"},{default:(0,a.k6)(()=>[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ne.getAvailableMenus,(e,t)=>((0,a.uX)(),(0,a.Wv)(he,{class:(0,o.C4)({selectedMenu:re.selectedMenuIndex==t}),onClick:e=>ne.changeMenu(t),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.changeMenu(t),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.changeMenu(t),["prevent"]),["space"])],role:"button",tabindex:"0","aria-current":re.selectedMenuIndex==t?"true":null,"aria-label":`Select menu ${e.name}`,key:e.menu_id},{default:(0,a.k6)(()=>[(0,a.Lk)("p",c,(0,o.v_)(e.name),1)]),_:2},1032,["class","onClick","onKeydown","aria-current","aria-label"]))),128)),re.swiperSlideData.isBeginning?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",m)),re.swiperSlideData.isEnd?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",g))]),_:1},8,["modules","onSwiper"])])):(0,a.Q3)("",!0),(0,a.Lk)("div",{style:(0,o.Tr)({display:e.branding&&"top"==e.branding.category_placement||re.innerWidth<=768?"flex":"none"}),ref:"topCategoriesWrapper",class:"topCategoriesWrapper"},[(0,a.bF)(_e,{navigation:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:15,modules:re.modules,onSlideChange:t[0]||(t[0]=e=>ne.getActiveSlide(e)),onSwiper:ne.onSwiper,class:"mySwiper"},{default:(0,a.k6)(()=>[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ne.getTopCategories,(e,t)=>((0,a.uX)(),(0,a.Wv)(he,{key:e.category_id,onClick:i=>ne.scrollToCategory(e.category_id,t),onKeydown:[(0,s.jR)((0,s.D$)(i=>ne.scrollToCategory(e.category_id,t,!0),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(i=>ne.scrollToCategory(e.category_id,t,!0),["prevent"]),["space"])],role:"button",tabindex:"0","aria-current":re.activeCategoryIndex==t?"true":null,"aria-label":`Jump to category ${e.name}`,class:(0,o.C4)({active:re.activeCategoryIndex==t})},{default:(0,a.k6)(()=>[(0,a.Lk)("p",u,(0,o.v_)(e.name),1)]),_:2},1032,["onClick","onKeydown","aria-current","aria-label","class"]))),128)),re.swiperSlideData.isBeginning?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",h)),re.swiperSlideData.isEnd?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",_))]),_:1},8,["modules","onSwiper"]),(0,a.bo)((0,a.Lk)("button",{class:"mobileSearchToggle",onClick:t[1]||(t[1]=(...e)=>ne.openMobileSearch&&ne.openMobileSearch(...e)),"aria-label":"Search menu items"},[...t[14]||(t[14]=[(0,a.Lk)("svg",{class:"searchIcon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 19 19"}
1,[(0,a.Lk)("path",{d:"M16.912,17.814l-4.279-4.279a7.686,7.686,0,1,1,.9-.9l4.279,4.279a.637.637,0,0,1-.9.9ZM1.274,7.677a6.4,6.4,0,1,0,6.4-6.4A6.409,6.409,0,0,0,1.274,7.677Z",transform:"translate(0.5 0.5)",fill:"white",stroke:"rgba(0,0,0,0)","stroke-miterlimit":"10","stroke-width":"1"})],-1)])],512),[[s.aG,!1]]),(0,a.bo)((0,a.Lk)("div",{class:(0,o.C4)(["inputWrapper",{mobileSearchOpen:re.mobileSearchOpen}])},[t[15]||(t[15]=(0,a.Lk)("svg",{class:"searchIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19"},[(0,a.Lk)("path",{id:"Search",d:"M16.912,17.814l-4.279-4.279a7.686,7.686,0,1,1,.9-.9l4.279,4.279a.637.637,0,0,1-.9.9ZM1.274,7.677a6.4,6.4,0,1,0,6.4-6.4A6.409,6.409,0,0,0,1.274,7.677Z",transform:"translate(0.5 0.5)",fill:"#292828",stroke:"rgba(0,0,0,0)","stroke-miterlimit":"10","stroke-width":"1"})],-1)),(0,a.bo)((0,a.Lk)("input",{ref:"mobileSearchInput",onKeyup:t[2]||(t[2]=e=>ne.searchItems()),"onUpdate:modelValue":t[3]||(t[3]=e=>re.search=e),class:"searchInput",type:"text",placeholder:"Search Items"},null,544),[[s.Jo,re.search]]),re.search.length>=3||re.mobileSearchOpen?((0,a.uX)(),(0,a.CE)("img",{key:0,class:"clearSearch",onClick:t[4]||(t[4]=(...e)=>ne.closeMobileSearch&&ne.closeMobileSearch(...e)),src:r})):(0,a.Q3)("",!0)],2),[[s.aG,!1]])],4),e.selectedStore&&e.selectedStore.promo_text&&""!=e.selectedStore.promo_text&&!re.searchedItems?((0,a.uX)(),(0,a.CE)("div",I,[(0,a.Lk)("p",{innerHTML:ne.getPurifiedBody,style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF",border:e.branding.dark_mode_enabled?"1px solid var(--border-color)":"none"})},null,12,p)])):(0,a.Q3)("",!0),(0,a.Lk)("div",{class:"menuGrid",style:(0,o.Tr)({"grid-template-columns":e.branding&&"top"==e.branding.category_placement?"1fr":"minmax(168px, min(280px, 44vw)) 1fr"})},[(0,a.Lk)("div",{style:(0,o.Tr)({display:e.branding&&"side"==e.branding.category_placement?"block":"none"}),class:"leftCategoriesWrapper"},[(0,a.Lk)("div",y,[(0,a.bo)((0,a.Lk)("div",S,[t[16]||(t[16]=(0,a.Lk)("svg",{class:"searchIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19"},[(0,a.Lk)("path",{id:"Search",d:"M16.912,17.814l-4.279-4.279a7.686,7.686,0,1,1,.9-.9l4.279,4.279a.637.637,0,0,1-.9.9ZM1.274,7.677a6.4,6.4,0,1,0,6.4-6.4A6.409,6.409,0,0,0,1.274,7.677Z",transform:"translate(0.5 0.5)",fill:"#292828",stroke:"rgba(0,0,0,0)","stroke-miterlimit":"10","stroke-width":"1"})],-1)),(0,a.bo)((0,a.Lk)("input",{onKeyup:t[5]||(t[5]=e=>ne.searchItems()),"onUpdate:modelValue":t[6]||(t[6]=e=>re.search=e),class:"searchInput",type:"text",placeholder:"Search Items"},null,544),[[s.Jo,re.search]]),re.search.length>=3?((0,a.uX)(),(0,a.CE)("img",{key:0,class:"clearSearch",onClick:t[7]||(t[7]=(...e)=>ne.clearSearch&&ne.clearSearch(...e)),src:r})):(0,a.Q3)("",!0)],512),[[s.aG,!1]]),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ne.getAvailableMenus[re.selectedMenuIndex].categories,i=>((0,a.uX)(),(0,a.CE)("div",{key:i.category_id,class:"leftCategory",onClick:e=>ne.scrollToCategory(i.category_id),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.scrollToCategory(i.category_id,null,!0),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.scrollToCategory(i.category_id,null,!0),["prevent"]),["space"])],role:"button",tabindex:"0","aria-current":re.activeCategoryId==i.category_id?"true":null,"aria-label":`Jump to category ${i.name}`},[(0,a.Lk)("div",{class:(0,o.C4)(["categoryLine",{leftSelected:re.activeCategoryId==i.category_id}])},[e.branding.display_options?.category_image?.show&&i.name===e.branding.display_options?.favorites_category?.title?((0,a.uX)(),(0,a.CE)("a",{key:0,class:"favorite",style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})},[...t[17]||(t[17]=[(0,a.Lk)("svg",{class:"favoriteFill categoryImage",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30"},[(0,a.Lk)("path",{id:"heart-fill",d:"M46.654,0A7.425,7.425,0,0,0,39.83,4.53,7.422,7.422,0,0,0,33.006,0C27.9,0,24.83,\n        4.864,24.83,8.874c0,6.719,15,16.959,15,16.959s15-10.238,15-16.958C54.83,4.864,51.758,0,46.654,0Z",transform:"translate(-24.83)",fill:"#010101"})],-1)])],4)):(0,a.Q3)("",!0),e.branding.display_options?.category_image?.show&&i.name!==e.branding.display_options?.favorites_category?.title?((0,a.uX)(),(0,a.CE)("img",{key:1,class:"categoryImage",style:(0,o.Tr)({"border-radius":"image"==e.branding.display_options?.category_image.type?"50%":"0","object-fit":"image"==e.branding.display_options?.category_image.type?"cover":"contain"}),src:i.image_urls?.thumbnail,alt:i.name},null,12,E)):(0,a.Q3)("",!0),(0,a.Lk)("p",null,(0,o.v_)(i.name),1)],2),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(i.categories,t=>((0,a.uX)(),(0,a.CE)("div",{class:(0,o.C4)(["leftSubCategory",{leftSelected:re.activeSubCategoryId==t.category_id}]),key:t.category_id,onClick:(0,s.D$)(e=>ne.scrollToCategory(t.category_id),["stop"]),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.scrollToCategory(t.category_id,null,!0),["prevent","stop"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.scrollToCategory(t.category_id,null,!0),["prevent","stop"]),["space"])],role:"button",tabindex:"0","aria-current":re.activeSubCategoryId==t.category_id?"true":null,"aria-label":`Jump to category ${t.name}`},[(0,a.Lk)("div",C,[e.branding.display_options?.category_image?.show?((0,a.uX)(),(0,a.CE)("img",{key:0,style:(0,o.Tr)({"border-radius":"image"==e.branding.display_options?.category_image.type?"50%":"0","object-fit":"image"==e.branding.display_options?.category_image.type?"cover":"contain"}),src:t.image_urls?.thumbnail,alt:t.name},null,12,k)):(0,a.Q3)("",!0),(0,a.Lk)("p",null,(0,o.v_)(t.name),1)])],42,f))),128))],40,v))),128))])],4),(0,a.Lk)("div",b,[re.searchedItems?((0,a.uX)(),(0,a.CE)("div",w,[(0,a.Lk)("div",A,[re.searchedItems&&0!=re.searchedItems.length?((0,a.uX)(),(0,a.CE)("h4",T,(0,o.v_)(re.searchedItems.length)+" results for '"+(0,o.v_)(re.search)+"' ",1)):(0,a.Q3)("",!0),re.searchedItems&&0==re.searchedItems.length?((0,a.uX)(),(0,a.CE)("h4",D," No result for '"+(0,o.v_)(re.search)+"' ",1)):(0,a.Q3)("",!0),(0,a.Lk)("a",{class:"clear",onClick:t[8]||(t[8]=(...e)=>ne.clearSearch&&ne.clearSearch(...e)),href:"javascript:;"},[...t[18]||(t[18]=[(0,a.Lk)("p",null,"CLEAR SEARCH RESULTS",-1)])])]),(0,a.Lk)("div",L,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(re.searchedItems,t=>((0,a.uX)(),(0,a.CE)("div",{onClick:e=>ne.activateMenuItem(t,t.category),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(t,t.category),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(t,t.category),["prevent"]),["space"])],class:(0,o.C4)(["item item-v2",{outOfStockItem:ne.isMenuItemOutOfStock(t),browseItem:ne.isBrowseOnlyItem(t)}]),role:"button",tabindex:ne.isMenuItemInteractive(t)?0:-1,"aria-disabled":ne.isMenuItemInteractive(t)?"false":"true","aria-label":ne.getMenuItemAriaLabel(t),style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"}),key:t.item_id},[(0,a.bF)(Ie,{item:t,category:t.category,browseMode:ne.browseMode,onGetItemData:ne.getItemData,onChangeQty:ne.changeQty,orderData:e.orderData,qtyLoading:re.qtyLoading,selectedItemId:re.selectedItemId,quickAddLoadingItemId:re.quickAddLoadingItemId,fillScreenAnimation:re.fillScreenAnimation,fillScreenItemId:re.fillScreenItemId,flyToCardItemId:re.flyToCardItemId},null,8,["item","category","browseMode","onGetItemData","onChangeQty","orderData","qtyLoading","selectedItemId","quickAddLoadingItemId","fillScreenAnimation","fillScreenItemId","flyToCardItemId"])],46,M))),128))])])):(0,a.Q3)("",!0),re.searchedItems?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",O,[e.selectedStore&&0!=ne.getFilteredSuggestions?.length?((0,a.uX)(),(0,a.CE)("div",F,[e.branding.suggestions?((0,a.uX)(),(0,a.CE)("div",R,[(0,a.Lk)("h2",null,(0,o.v_)(e.branding.suggestions.main_header),1),re.suggestions.length>1?((0,a.uX)(),(0,a.CE)("div",x,[t[19]||(t[19]=(0,a.Lk)("svg",{class:"arrow",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,a.Lk)("path",{d:"M5.53558 7.93101L0.221517 2.61692C-0.0347764 2.36063 -0.0347764 1.94511 0.221517 1.68885L0.841317 1.06904C1.09717 0.813189 1.51184 0.812697 1.7683 1.06795L5.99963 5.27946L10.2309 1.06795C10.4874 0.812697 10.9021 0.813189 11.1579 1.06904L11.7777 1.68885C12.034 1.94514 12.034 2.36065 11.7777 2.61692L6.46368 7.93101C6.20739 8.18728 5.79188 8.18728 5.53558 7.93101Z",fill:"#171717"})],-1)),(0,a.Lk)("div",{onClick:t[9]||(t[9]=(...e)=>ne.toggleFilterDropdown&&ne.toggleFilterDropdown(...e)),class:"customSelect"},[(0,a.Lk)("p",null,(0,o.v_)(re.selectedSuggestionFilter),1)]),re.filterDropdownIsOpen?((0,a.uX)(),(0,a.CE)("div",{key:0,class:"dropdown",style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})}
1,[(0,a.Lk)("div",{onClick:t[10]||(t[10]=e=>ne.selectFilter("See All")),class:(0,o.C4)([{selected:"See All"==re.selectedSuggestionFilter},"dropdownItem"])}," See All ",2),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(re.suggestions,e=>((0,a.uX)(),(0,a.CE)("div",{key:e,onClick:t=>ne.selectFilter(e.display_name),class:(0,o.C4)(["dropdownItem",{selected:e.display_name==re.selectedSuggestionFilter}])},(0,o.v_)(e.display_name),11,P))),128))],4)):(0,a.Q3)("",!0)],512)):(0,a.Q3)("",!0)])):(0,a.Q3)("",!0),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ne.getFilteredSuggestions,i=>((0,a.uX)(),(0,a.CE)("div",{key:i,class:"suggestion",style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})},[i.items&&0!=i.items.length?((0,a.uX)(),(0,a.CE)("div",q,[(0,a.Lk)("div",X,[(0,a.Lk)("p",U,["temperature"==i.type?((0,a.uX)(),(0,a.CE)("span",W,"It's "+(0,o.v_)(re.temperature)+" °F in "+(0,o.v_)(e.selectedStore.city)+".",1)):(0,a.Q3)("",!0),(0,a.eW)(" "+(0,o.v_)(i.prompt),1)]),"surprise"==i.type?((0,a.uX)(),(0,a.CE)("a",{key:0,onClick:t[11]||(t[11]=(...e)=>ne.getSurpriseSuggestions&&ne.getSurpriseSuggestions(...e)),class:"surpriseButton",href:"javascript:;"},[...t[20]||(t[20]=[(0,a.Lk)("p",null,"SURPRISE ME",-1)])])):(0,a.Q3)("",!0)]),(0,a.bF)(_e,{navigation:!0,slidesPerView:"auto",spaceBetween:15,slidesOffsetBefore:re.windowWidth>768?0:20,slidesOffsetAfter:re.windowWidth>768?0:20,modules:re.modules,class:"mySwiper"},{default:(0,a.k6)(()=>[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)("surprise"==i.type?re.surpriseSuggestions:i.items,(t,i)=>((0,a.uX)(),(0,a.Wv)(he,{key:t.item_id},{default:(0,a.k6)(()=>[(0,a.Lk)("div",{onClick:e=>ne.activateMenuItem(t,ne.getCategory(t.category_id)),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(t,ne.getCategory(t.category_id)),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(t,ne.getCategory(t.category_id)),["prevent"]),["space"])],class:(0,o.C4)(["item item-v2",{outOfStockItem:ne.isMenuItemOutOfStock(t),browseItem:ne.isBrowseOnlyItem(t)}]),role:"button",tabindex:ne.isMenuItemInteractive(t)?0:-1,"aria-disabled":ne.isMenuItemInteractive(t)?"false":"true","aria-label":ne.getMenuItemAriaLabel(t),style:(0,o.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})},[(0,a.bF)(Ie,{item:t,category:ne.getCategory(t.category_id),index:i,browseMode:ne.browseMode,onGetItemData:ne.getItemData,onChangeQty:ne.changeQty,orderData:e.orderData,qtyLoading:re.qtyLoading,selectedItemId:re.selectedItemId,quickAddLoadingItemId:re.quickAddLoadingItemId,fillScreenAnimation:re.fillScreenAnimation,fillScreenItemId:re.fillScreenItemId,flyToCardItemId:re.flyToCardItemId},null,8,["item","category","index","browseMode","onGetItemData","onChangeQty","orderData","qtyLoading","selectedItemId","quickAddLoadingItemId","fillScreenAnimation","fillScreenItemId","flyToCardItemId"])],46,V)]),_:2},1024))),128))]),_:2},1032,["slidesOffsetBefore","slidesOffsetAfter","modules"])])):(0,a.Q3)("",!0)],4))),128))])):(0,a.Q3)("",!0),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ne.getAvailableMenus[re.selectedMenuIndex].categories,(t,i)=>((0,a.uX)(),(0,a.CE)("div",{class:"category",style:(0,o.Tr)({"scroll-margin-top":"top"==e.branding.category_placement?"80px":"60px"}),key:t.category_id,id:t.category_id},[(0,a.Lk)("div",{class:(0,o.C4)(["categoryInfo",{parentCategory:0!=t.categories?.length}])},[e.branding?.display_options?.show_category_headers?((0,a.uX)(),(0,a.CE)("div",B,[(0,a.Lk)("img",{class:"categoryMainImage",src:ne.getCategoryImage(t.image_urls.standard),alt:t.name},null,8,N)])):(0,a.Q3)("",!0),!1!==!e.branding?.display_options?.hide_category_names?((0,a.uX)(),(0,a.CE)("h2",K,(0,o.v_)(t.name),1)):(0,a.Q3)("",!0),t.short_desc?((0,a.uX)(),(0,a.CE)("p",$,(0,o.v_)(t.short_desc),1)):(0,a.Q3)("",!0)],2),0!=t.categories?.length?((0,a.uX)(),(0,a.CE)("div",H,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(t.categories,(t,i)=>((0,a.uX)(),(0,a.CE)("div",{class:"category",key:t.category_id,id:t.category_id},[(0,a.Lk)("div",j,[(0,a.Lk)("h2",z,(0,o.v_)(t.name),1),t.short_desc?((0,a.uX)(),(0,a.CE)("p",Y,(0,o.v_)(t.short_desc),1)):(0,a.Q3)("",!0)]),(0,a.Lk)("div",Z,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(t.items,r=>((0,a.uX)(),(0,a.CE)("div",{onClick:e=>ne.activateMenuItem(r,t),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(r,t),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(r,t),["prevent"]),["space"])],class:(0,o.C4)(["item item-v2",{outOfStockItem:ne.isMenuItemOutOfStock(r),browseItem:ne.isBrowseOnlyItem(r)}]),role:"button",tabindex:ne.isMenuItemInteractive(r)?0:-1,"aria-disabled":ne.isMenuItemInteractive(r)?"false":"true","aria-label":ne.getMenuItemAriaLabel(r),key:r.item_id},[(0,a.bF)(Ie,{item:r,category:t,index:i,browseMode:ne.browseMode,onGetItemData:ne.getItemData,onChangeQty:ne.changeQty,orderData:e.orderData,qtyLoading:re.qtyLoading,selectedItemId:re.selectedItemId,quickAddLoadingItemId:re.quickAddLoadingItemId,fillScreenAnimation:re.fillScreenAnimation,fillScreenItemId:re.fillScreenItemId,flyToCardItemId:re.flyToCardItemId},null,8,["item","category","index","browseMode","onGetItemData","onChangeQty","orderData","qtyLoading","selectedItemId","quickAddLoadingItemId","fillScreenAnimation","fillScreenItemId","flyToCardItemId"])],42,J))),128))])],8,G))),128))])):(0,a.Q3)("",!0),(0,a.Lk)("div",ee,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(t.items,r=>((0,a.uX)(),(0,a.CE)("div",{onClick:e=>ne.activateMenuItem(r,t),onKeydown:[(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(r,t),["prevent"]),["enter"]),(0,s.jR)((0,s.D$)(e=>ne.activateMenuItem(r,t),["prevent"]),["space"])],class:(0,o.C4)(["item item-v2",{outOfStockItem:ne.isMenuItemOutOfStock(r),browseItem:ne.isBrowseOnlyItem(r)}]),role:"button",tabindex:ne.isMenuItemInteractive(r)?0:-1,"aria-disabled":ne.isMenuItemInteractive(r)?"false":"true","aria-label":ne.getMenuItemAriaLabel(r),key:r.item_id},[(0,a.bF)(Ie,{item:r,category:t,index:i,browseMode:ne.browseMode,onGetItemData:ne.getItemData,onChangeQty:ne.changeQty,orderData:e.orderData,qtyLoading:re.qtyLoading,selectedItemId:re.selectedItemId,quickAddLoadingItemId:re.quickAddLoadingItemId,fillScreenAnimation:re.fillScreenAnimation,fillScreenItemId:re.fillScreenItemId,flyToCardItemId:re.flyToCardItemId},null,8,["item","category","index","browseMode","onGetItemData","onChangeQty","orderData","qtyLoading","selectedItemId","quickAddLoadingItemId","fillScreenAnimation","fillScreenItemId","flyToCardItemId"])],42,te))),128))])],12,Q))),128))]))])],4)])])):((0,a.uX)(),(0,a.CE)("div",ie,[ne.browseMode?((0,a.uX)(),(0,a.CE)("p",ae,"There is no menu available for this location.")):((0,a.uX)(),(0,a.CE)("p",se,[t[22]||(t[22]=(0,a.eW)(" There is no active menu for the selected date and time. ",-1)),t[23]||(t[23]=(0,a.Lk)("br",null,null,-1)),(0,a.Lk)("a",{class:"clear",onClick:t[12]||(t[12]=(...e)=>ne.toggleDateAndTimeModal&&ne.toggleDateAndTimeModal(...e)),href:"javascript:;"},[...t[21]||(t[21]=[(0,a.Lk)("p",null,"CHANGE ORDER DATE AND TIME",-1)])])]))])),(0,a.bF)(pe)],32)}i(44114),i(18111),i(22489),i(20116),i(7588),i(61701),i(13579),i(14603),i(47566),i(98721);var re=i(79281),ne=i(1258),de=i(18554),le=i(35635),ce=i(33822),me=i(27175),ge=i(60782),ue=i(82774),he=i(48625),_e=i(45354),Ie=i(36926),pe=i(24705),ye=i(9642),Se=i(9010),ve=i(88638),Ee=i(38421),fe=i(50317),Ce=i(49148),ke=i.n(Ce),be=i(79634),we=i(18353),Ae=i(74082),Te=i(5771),De=i(7721),Le=i(18325),Me={data(){return{storeId:null,menus:null,modules:[fe.Vx],activeCategoryIndex:0,activeCategoryId:null,activeSubCategoryId:null,
1search:"",searchedItems:null,mobileSearchOpen:!1,dateAndTimeModalIsOpen:!0,withAddonsModalIsOpen:!1,itemData:null,normalizedAddons:null,showLoader:!1,swiperSlideData:{activeSlide:0,isBeginning:!0,isEnd:!1},itemModalMode:"add",editItemData:null,swiper:null,innerWidth:window.innerWidth,cartViewIsOpen:!1,suggestions:[],temperature:null,selectedSuggestionFilter:"See All",filterDropdownIsOpen:!1,favorites:null,selectedMenuIndex:0,surpriseSuggestions:[],slidesPerView:3,pendingDiscountModalIsOpen:!1,pendingDiscountData:null,selectedItemId:null,selectedItemName:null,selectedItemIndex:null,removeItemModalIsOpen:!1,qtyLoading:!1,quickAddLoadingItemId:null,fillScreenAnimation:!1,fillScreenItemId:null,flyToCardItemId:null,windowWidth:window.innerWidth,baseTitle:document.title,queryApplied:!1}},components:{HeroView:ue.A,Swiper:Ee.RC,SwiperSlide:Ee.qr,LoaderView:_e.A,DateAndTimeModal:Ie.A,WithAddons:pe.A,FooterView:he.A,CartModal:ye.A,PendingDiscountModal:Se.A,ItemCell:ve.A},watch:{loggedIn(){this.loggedIn&&this.getFavorites()},selectedService(e,t){this.browseMode&&e&&!t&&this.getMenus()},selectedStore(e){if(this.getTemperature(),this.updateTitle(),e&&this.queryApplied){const e=localStorage.getItem("selectedServiceId"),t=this.visibleServices.find(t=>t.service_type_id==e);t&&this.SET_SELECTED_SERVICE(t)}},selectedHour(){this.getMenus()},orderData(e,t){if(e&&null==t&&this.menus){let e=localStorage.getItem("deepLinkItemId");this.orderData&&e&&this.addDeepLinkItemToCart()}e&&this.queryApplied&&this.updateOrderServiceTypeIfNeeded()},menus(e,t){if(e&&null==t&&this.orderData){let e=localStorage.getItem("deepLinkItemId");this.menus&&e&&this.addDeepLinkItemToCart()}}},mixins:[re.A,ne.A,le.A,ce.A,me.A],...de.Ay,computed:{browseMode(){return"1"==this.$route?.query?.browse},...(0,ge.aH)(["storeConfig","loggedIn","selectedStore","branding","cartIsOpen","selectedHour","selectedDay","dayAndTimeSelected","cookies","orderData","selectedService"]),getUpd
1atedFavorites(){return this.favorites},visibleServices(){return this.selectedStore&&this.selectedStore.services?this.selectedStore.services.filter(e=>e.is_visible).sort((e,t)=>(e.display_order??0)-(t.display_order??0)):[]},getAvailableMenus(){let e=this.menus.filter(e=>e.categories.length>0);return e},getFilteredSuggestions(){return"See All"==this.selectedSuggestionFilter?this.suggestions:this.suggestions.filter(e=>e.display_name==this.selectedSuggestionFilter&&e.enabled)},quickAddable(){return!this.normalizedAddons.sizes&&(!this.normalizedAddons.styles&&!(this.normalizedAddons.addOn.pick_lists.length>0))},getPurifiedBody(){const e=["br","strong","a"],t=["href","target"],i=we["default"].sanitize(this.selectedStore.promo_text,{ALLOWED_TAGS:e,ALLOWED_ATTR:t});return i},checkIfMenuVisible(){if(this.menus&&this.getAvailableMenus){let e=this.getAvailableMenus.some(e=>e.categories.length>0);if(0!=this.getAvailableMenus.length&&e)return!0}return!1},getTopCategories(){const e=[],t=this.menus[this.selectedMenuIndex];for(const i of t.categories)i.categories&&0!==i.categories.length?e.push(...i.categories):e.push(i);return e}},methods:{...(0,ge.PY)(["SET_ORDER_DATA","SET_TOASTER","SET_CART_IS_OPEN","SET_COOKIES","SET_DAY_AND_TIME_SELECTED","SET_SELECTED_DAY","SET_SELECTED_HOUR","SET_SELECTED_ADDRESS","SET_ITEM_TOASTER","SET_BUTTON_LOADER","SET_LOGGED_IN","SET_CUSTOMER_DATA","SET_PHONE_VERIFIED","SET_SELECTED_SERVICE"]),getFavoriteCategory(){const e=this.branding?.display_options?.favorites_category;if(e?.enabled&&this.favorites){const t=this.menus[this.selectedMenuIndex];if(t){const i=this.favorites.map(e=>{const i=t.categories.find(t=>t.category_id===e.cat_id)?.items?.find(t=>t.item_id===e.item_id);return i}),a=i.filter(e=>void 0!==e);return{name:e.title||"Favorites",items:a,category_id:0,menu_id:t?.menu_id,hours:t?.hours,categories:[]}}}},checkIfPriceVisible(e){return!("hide_price_if_zero"in this.branding?.display_options)||0!=e||!this.branding?.display_options?.hide_price_if_zero},addDeepLinkItemToCart(){let e=localStorage.getItem("deepLinkItemId"),t=null,i=null;for(const a of this.menus)for(const s of a.categories)for(const a of s.items)if(a.item_id==e){t=a,i=s.category_id;break}t&&(this.getItemData(t,this.getCategory(i),"add","deepLink"),localStorage.removeItem("deepLinkItemId"))},getCategoryImage(e){return e.replace("600,450","1200,900")},getCategory(e){let t;return this.menus.forEach(i=>{i.categories.forEach(i=>{i.category_id===e&&(t=i)})}),t||{category_id:e}},getTotalQuantity(e){let t=0,i=!1;for(let a=0;a<this.orderData.order.items.length;a++){const s=this.orderData.order.items[a];s.item_id===e&&(t+=s.quantity,t>s.quantity&&(i=!0))}return{totalQuantity:t,multipleItems:i}},trackItemClicks(e,t){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"view_item",ecommerce:{currency:"USD",value:t.variants[0].price/100,items:[{item_id:t.item_id,item_name:t.name,item_category:e.name||"",location_id:this.selectedStore.name,price:t.variants[0].price/100}]}})},trackAddToCart(e){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:"USD",value:e.variants[0].price/100,items:[{item_id:e.item_id,item_name:e.name,price:e.variants[0].price/100,location_id:this.selectedStore.name}]}})},getSurpriseSuggestions(){let e=this.suggestions.find(e=>"surprise"==e.type),t=[];for(let i=0;i<3;i++){let a=e.items[Math.floor(Math.random()*e.items.length)];t.includes(a)?i--:t.push(a)}this.surpriseSuggestions=t},openMarketingBox(e){window.open(e,"_blank")},isBrowseOnlyItem(e){return this.browseMode&&"marketing"!==e?.type},isMenuItemOutOfStock(e){return!(!e||"marketing"===e.type)&&!!e.variants?.[0]?.is_out_of_stock},isMenuItemInteractive(e){return!!e&&(!this.isBrowseOnlyItem(e)&&("marketing"===e.type||!this.isMenuItemOutOfStock(e)))},getMenuItemAriaLabel(e){return e?"marketing"===e.type?!e.no_url&&e.url?"Open promotion":"Promotion":this.isMenuItemOutOfStock(e)?`${e.name} unavailable`:this.isBrowseOnlyItem(e)?e.name:`Open item ${e.name}`:"Menu item"},activateMenuItem(e,t){if("marketing"!==e.type)!1!==!e.variants?.[0]?.is_out_of_stock&&this.getItemData(e,t,"add");else{if(e.no_url||!e.url)return;this.openMarketingBox(e.url)}},openDiscountModal(e){this.pendingDiscountData=e,this.togglePendingDiscountModal()},selectFilter(e){this.selectedSuggestionFilter=e,this.toggleFilterDropdown()},formatTime(e){return(0,be.Wk)(ke()(this.calculateTimeToHour(e),"HH:mm:ss"))},toggleDateAndTimeModal(){this.dateAndTimeModalIsOpen=!this.dateAndTimeModalIsOpen},toggleWithAddonsModal(){setTimeout(()=>{this.fillScreenItemId=null,this.fillScreenAnimation=!1},800),this.withAddonsModalIsOpen=!this.withAddonsModalIsOpen},toggleFilterDropdown(){this.filterDropdownIsOpen=!this.filterDropdownIsOpen},toggleCartViewModal(){this.SET_CART_IS_OPEN(!this.cartIsOpen)},togglePendingDiscountModal(){this.pendingDiscountModalIsOpen=!this.pendingDiscountModalIsOpen},toggleRemoveItemModal(){this.removeItemModalIsOpen=!this.removeItemModalIsOpen},openEditWithAddons(e){this.itemModalMode="edit",this.getItemData(e,this.getCategory(e.category_id),"edit")},getActiveSlide(e){this.swiperSlideData.activeSlide=e.activeIndex,this.swiperSlideData.isBeginning=e.isBeginning,this.swiperSlideData.isEnd=e.isEnd},getFavStatus(){this.getFavorites()},openMobileSearch(){this.mobileSearchOpen=!0,this.$nextTick(()=>{this.$refs.mobileSearchInput?.focus()})},closeMobileSearch(){this.mobileSearchOpen=!1,this.search="",this.searchedItems=null},searchItems(){if(this.windowWidth>768&&document.querySelector(".menu")?.scrollTo(0,0),0==this.search.length&&(this.searchedItems=null),this.search.length>2){let e=[];
1this.menus[this.selectedMenuIndex].categories.forEach(t=>{0!=t.categories?.length?t.categories.forEach(t=>{t.items.forEach(i=>{if(i.name?.toLowerCase().includes(this.search.toLowerCase())){let a=i;a.category=t,e.push(a)}})}):t.items.forEach(i=>{if(i.name?.toLowerCase().includes(this.search.toLowerCase())){let a=i;a.category=t,e.push(a)}})}),e.length>0?this.searchedItems=e:this.searchedItems=[]}},clearSearch(){this.search="",this.searchedItems=null},calculateTimeToHour(e){return("0"+Math.floor(parseInt(e)/60)).slice(-2)+":"+("0"+parseInt(e)%60).slice(-2)},getFavorites(){const e=this.branding?.display_options?.favorites_category;if(e?.enabled){const e=localStorage.getItem("customerId");null!==e&&Le.A.getFavoriteItems(e).then(e=>{this.favorites=e.data.data,this.getMenus()})}else this.favorites=null},getMenus(){let e=this.storeId;e.includes(" ")&&(e=e.replace(" ","%20"));let t=localStorage.getItem("selectedServiceId"),i={skip_pick_lists:!0,service_type_id:t};const a="true"===localStorage.getItem("include_out_of_stock")||this.storeConfig?.enable_menu_filters?.include_out_of_stock;if(a&&(i.include_out_of_stock=!0),t||delete i.service_type_id,this.selectedDay&&this.selectedHour){let e="ASAP"==this.selectedHour.hour?this.selectedHour.asapTime:this.selectedHour.hour;i.ready_ts=this.selectedDay.date+" "+e}Ae.A.getMenus(this.storeId,i).then(e=>{if(this.menus=e.data.data,this.branding.display_options?.marketing_box?.enable){let e=this.branding.display_options?.marketing_box;e.type="marketing",e.no_url=e.no_url||!1,this.menus[0].categories.length>0&&(this.menus[0].categories[0].items.length>3?this.menus[0].categories[0].items.splice(4,0,e):this.menus[0].categories[0].items.push(e))}const t=localStorage.getItem("customerId"),i=this.branding?.display_options?.favorites_category;i?.enabled&&null!==t&&this.getUpdatedFavorites?.length>0&&this.getFavoriteCategory()?.items.length>0&&(this.menus[0].categories=[this.getFavoriteCategory(),...this.menus[0].categories]),this.SET_COOKIES(e.data.cookies);let a=[];if(this.menus.forEach(e=>{e.available=!0,e.categories.forEach(t=>{0!=t.categories?.length?t.categories.forEach(t=>{t.menu_id=e.menu_id,t.hours=e.hours,t.items.forEach(t=>{t.menu_id=e.menu_id})}):(t.menu_id=e.menu_id,t.hours=e.hours,t.items.forEach(t=>{t.menu_id=e.menu_id}))}),this.branding?.display_options?.collapse_menu_categories&&(e.categories.forEach(e=>{a.push(e)}),e.categories=a)}),this.branding.suggestions&&this.branding.suggestions.lists&&this.branding.suggestions.lists.length>0){this.suggestions=[],this.branding.suggestions.lists.forEach(e=>{if("temperature"==e.type){if("less"==e.limit_type&&this.temperature>=e.limit)return;if("more"==e.limit_type&&this.temperature<=e.limit)return}let t=[];0!=this.menus.length&&(this.menus.forEach(i=>{i.categories.forEach(i=>{i.items.forEach(a=>{if(a.classes&&a.classes[e.class.name]){if(t.find(e=>e.item_id==a.item_id))return;a.category_id=i.category_id,t.push(a)}})})}),e.items=t,e.items.length>0&&(this.suggestions.push(e),this.selectedSuggestionFilter=this.suggestions[0].display_name))});let e=this.suggestions.find(e=>"surprise"==e.type);e&&this.getSurpriseSuggestions()}this.activeCategoryId=this.getAvailableMenus[this.selectedMenuIndex]?.categories[0].category_id,this.selectedMenuIndex=0}).catch(e=>{console.log(e);let t={show:!0,message:"Something went wrong. Please try again later"};this.SET_TOASTER(t)})},checkInnerWidth(e){e>=768&&(this.slidesPerView=3),e<768&&(this.slidesPerView=2),e<=500&&(this.slidesPerView=1)},scrollToCategory(e,t,i=!1){this.clearSearch(),this.activeCategoryIndex=t;let a=document.getElementById(e);a.scrollIntoView({behavior:"smooth",block:"start",inline:"start"}),i&&this.$nextTick(()=>{window.setTimeout(()=>{const t=document.getElementById(e);if(!t)return;const i=t.querySelector('.items .item[tabindex="0"]');if(i)try{i.focus({preventScroll:!0})}catch(a){i.focus()}},350)})},updateActiveCategory(e){if(this.searchedItems)return;let t;if(this.branding&&"top"==this.branding.category_placement||this.innerWidth<=768){t=this.getTopCategories,t.forEach(e=>{let t=document.getElementById(e.category_id),i=t?.getBoundingClientRect();i?.top<=310&&(this.activeCategoryId=e.category_id,this.activeSubCategoryId=null)});let e=t.findIndex(e=>e.category_id==this.activeCategoryId);this.activeCategoryIndex!=e&&(this.activeCategoryIndex=e,this.swiper.slideTo(e-1,500,!1))}
1else t=this.menus[this.selectedMenuIndex].categories,t.forEach(e=>{if(0!=e.categories?.length)e.categories.forEach(t=>{let i=document.getElementById(t.category_id),a=i?.getBoundingClientRect();a?.top<=310&&(this.activeCategoryId=e.category_id,this.activeSubCategoryId=t.category_id)});else{let t=document.getElementById(e.category_id),i=t?.getBoundingClientRect();i?.top<=310&&(this.activeCategoryId=e.category_id,this.activeSubCategoryId=null)}});let i=e.target;i.scrollHeight-i.scrollTop===i.clientHeight&&(this.activeCategoryIndex=t.length-1)},onSwiper(e){this.swiper=e},changeMenu(e){this.selectedMenuIndex=e,this.swiper.slideTo(0,500,!1)},getItemData(e,t,i,a){if(this.browseMode)return;if(!this.orderData&&!this.dayAndTimeSelected)return void this.toggleDateAndTimeModal();"quickAdd"==a&&(this.quickAddLoadingItemId=e.item_id,this.fillScreenItemId=e.item_id,this.qtyLoading=!1),"quickAdd"!=a&&(this.showLoader=!0),{VUE_APP_SIFT_ENABLED:"true",VUE_APP_CORALOGIX_RECORD_CANVAS:"true",VUE_APP_USE_RELATIVE_PROXY:"true",VUE_APP_CORALOGIX_DOMAIN:"US2",VUE_APP_UNLEASH_URL:"https://features.lunchbox.io/api/frontend",VUE_APP_MAPS_API_KEY:"AIzaSyAQ8ZhIsMCzQvCw94z1vNZ0j3SBpsRgrmM",VUE_APP_ROKT_ID:"3284460495347814400",VUE_APP_ND_API_KEY_WEB:"ba687296-a292-11ed-a39b-f23c918b87aa",VUE_APP_SENTRY_ENABLED:"false",VUE_APP_BACKEND:"https://lbndprx.lunchbox.io",VUE_APP_METAPIXEL_ID:"12345678",VUE_APP_ROKT_PRODUCTION:"true",VUE_APP_RADAR_PUBLIC_KEY:"prj_live_pk_3b40e3b1526b84d6a1d203736df2da66a0a8d082",VUE_APP_UNLEASH_APP_NAME:"default",VUE_APP_SIFT_BEACON_KEY:"9c10cdbac9",VUE_APP_TENANT:"https://doughnutplant.lunchbox.io/api/v2",VUE_APP_UNLEASH_CLIENT_KEY:"default:production.82d8d38f7ac4258558bc331f7866df8b6444855d977f746282e799e0",VUE_APP_CORALOGIX_KEY:"cxtp_uMAwxJTFkiUDCyJ4uY6jz6TbbAMlvl",VUE_APP_GA4_ID:"G-VFLTT6NELS",VUE_APP_SIFT_ACCOUNT_ID:"5e725422ef0a24efc56453c9",VUE_APP_ND_API_KEY_MOBILE:"704d9425-9b61-4d8b-aa37-b2cdcc8c5d46",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_GTM_ID&&"add"==i&&this.trackItemClicks(t,e),"edit"==i?(this.editItemData=e,this.editItemData.menu_id=e.menu_id):this.itemModalMode="add";let s=localStorage.getItem("selectedStoreId");s.includes(" ")&&(s=s.replace(" ","%20"));let o="ASAP"==this.selectedHour.hour?this.selectedHour.asapTime:this.selectedHour.hour,r={ready_ts:this.selectedDay.date+" "+o};const n=this.branding.display_options.favorites_category;t?.name===n?.title&&(t.category_id=this.favorites?.find(t=>t.item_id===e.item_id).cat_id),Ae.A.getItem(s,e.menu_id,t.category_id,e.item_id,r).then(t=>{this.itemData=t.data.data,this.SET_COOKIES(t.data.cookies),this.itemData.menu_id=e.menu_id,this.normalizedAddons=this.normalizeAddons(t.data.data),"quickAdd"!=a&&"deepLink"!=a||!this.quickAddable?(this.fillScreenAnimation=!0,this.showLoader=!1,this.toggleWithAddonsModal(),setTimeout(()=>{this.quickAddLoadingItemId=null,this.flyToCardItemId=null},300)):(this.addToCart(),"quickAdd"==a&&(this.flyToCardItemId=e.item_id),this.trackAddToCart(e))}).catch(e=>{console.log(e),this.showLoader=!1;let t={show:!0,message:"Something went wrong. Please try again later"};this.SET_TOASTER(t)})},addToCart(){let e={menu_id:parseInt(this.itemData.menu_id),quantity:1,item_id:this.itemData.item_id,category_id:this.itemData.category_id,child_items:[],comment:"",size_id:null},t=this.orderData.order.order_id,i=localStorage.getItem("customerId"),a={customer_id:this.loggedIn?i:localStorage.getItem("guestCustomerId"),items:[e]};const s=this.orderData?.order?.items?.find(e=>!e.auto&&Number(e.item_id)===Number(this.itemData.item_id)&&Number(e.menu_id)===Number(this.itemData.menu_id)&&!e.item_size_id&&!e.item_style_id&&!(e.comment||"").trim()&&(!e.child_items||0===e.child_items.length));s&&(a.items=[this.generateOrderObject(s,"changeQty")],a.items[0].order_item_id=s.order_item_id,a.items[0].quantity=Number(s.quantity)+1);const o=s?Te.A.changeItemQuantity(t,a):Te.A.addItemToCart(t,a);o.then(e=>{this.SET_ORDER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies),this.selectedItemId=this.itemData.item_id;const t=this.itemData?.item_name??"Item";let i={show:!0,message:`${t} added to cart.`};this.showLoader=!1,this.quickAddLoadingItemId=null,this.flyToCardItemId=null,this.SET_ITEM_TOASTER(i);const a=this.itemData?.pricelist?.[0]?.display_price??this.itemData?.variants?.[0]?.price??0;this.trackMetaAddToCart(this.itemData,a,1)}).catch(e=>{if(403==e?.response?.data?.status){let e={show:!0,message:"Your session is expired. Please login again."};return void this.SET_TOASTER(e)}let t={show:!0,message:"Something went wrong. Please try again later."};this.SET_TOASTER(t)})},calculateFullPrice(e){let t=e.extended_price;
1return e.child_items&&e.child_items.forEach(e=>{t+=e.extended_price,e.child_items&&e.child_items.forEach(e=>{t+=e.extended_price,e.child_items&&e.child_items.forEach(e=>{t+=e.extended_price})})}),t},removeItemClicked(e){this.removeItem(e)},trackRemoveFromCart(e){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"remove_from_cart",ecommerce:{currency:"USD",value:this.calculateFullPrice(e)/100,items:[{item_id:e.item_id,item_name:e.item_name,price:this.calculateFullPrice(e)/100,quantity:e.display_quantity,location_id:this.selectedStore.name}]}})},removeItem(e){let t=this.orderData.order.order_id;Te.A.removeItemFromCart(t,e.order_item_id).then(t=>{this.qtyLoading=!1,this.trackRemoveFromCart(e),this.SET_ORDER_DATA(t.data.data);let i={show:!0,message:"Item removed from cart"};this.SET_ITEM_TOASTER(i),this.SET_COOKIES(t.data.cookies)}).catch(e=>{this.qtyLoading=!1;let t={show:!0,message:"Something went wrong. Please try again."};this.SET_TOASTER(t),console.log(e)})},childItems(e){let t=[];return e&&0!=e.length?(e.forEach(e=>{let i={menu_id:e.menu_id,size_id:e.item_size_id,style_id:e.item_style_id,quantity:e.quantity,name:e.item_name,item_id:e.item_id,category_id:e.category_id,pick_list_id:e.pick_list_id,child_items:this.childItems(e.child_items)};e.child_items||delete i.child_items,t.push(i)}),t):[]},generateOrderObject(e,t){let i={menu_id:e.menu_id,size_id:e.item_size_id,style_id:e.item_style_id,quantity:e.quantity,item_id:e.item_id,category_id:e.category_id,categories:e.categories,comment:e.comment,child_items:this.childItems(e.child_items),order_item_id:e.order_item_id};if("editClicked"==t&&this.$emit("openWithAddons",i),"changeQty"==t)return i},changeQty(e,t,i){let a=this.orderData.order.items.find(e=>e.order_item_id==t.order_item_id);if(a||(a=this.orderData.order.items.find(e=>e.item_id==t.item_id)),!a){this.qtyLoading=!1;let e={show:!0,message:"Unable to update this item right now. Please try again."};return void this.SET_TOASTER(e)}if(a.max_qty&&"plus"==e&&a.quantity==a.max_qty){let e={show:!0,message:"Maximum quantity you can select is "+a.max_qty+" for "+a.item_name};return void this.SET_TOASTER(e)}if(this.qtyLoading=!0,this.selectedItemId=t.item_id,i&&(this.selectedItemIndex=i),"minus"==e&&1==a.quantity)return void this.removeItemClicked(a);let s,o=this.orderData.order.order_id,r=localStorage.getItem("customerId"),n=a.quantity;if("plus"==e){if(99==n){this.qtyLoading=!1;let e={show:!0,message:"Maximum quantity you can select is 99 for "+a.item_name};return void this.SET_TOASTER(e)}s=n+1}else s=n-1;let d={customer_id:this.loggedIn?r:localStorage.getItem("guestCustomerId"),items:[this.generateOrderObject(a,"changeQty")]};d.items[0].quantity=s,d.items[0].order_item_id=a.order_item_id,d.items[0].child_items.forEach(t=>{let i=t.quantity/n;t.quantity="plus"==e?i*(n+1):i*(n-1),t.child_items&&t.child_items.forEach(t=>{let i=t.quantity/n;t.quantity="plus"==e?i*(n+1):i*(n-1)})}),Te.A.changeItemQuantity(o,d).then(e=>{this.qtyLoading=!1,this.selectedItemId=null,this.selectedItemIndex=null,this.SET_ORDER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies)}).catch(()=>{this.qtyLoading=!1,this.selectedItemId=null,this.selectedItemIndex=null;let e={show:!0,message:"Something went wrong. Please try again later."};this.SET_TOASTER(e)})},getTemperature(){De.A.getWeather(this.selectedStore.latitude,this.selectedStore.longitude).then(e=>{this.temperature=e.data.current_weather.temperature}).catch(e=>{console.log(e)})},openUpsellItem(e,t){this.getItemData(e,t,"add")},updateTitle(){let e=localStorage.getItem("selectedStoreName")||this.selectedStore?.name;e&&(document.title=`${this.baseTitle} - ${e}`)},foreignAuthLoginIfNeeded(){if(this.loggedIn)return;const e=new URLSearchParams(window.location.search),t=e.get("auth_provider"),i=e.get("auth_access_token");if(t&&i){const e={provider:t,auth_info:{access_token:i}};Le.A.foreignAuth(e).then(e=>{localStorage.setItem("customerId",e.data.data.customer_id),this.SET_COOKIES(e.data.cookies),this.getCustomerInfo()}).catch(e=>{console.log(e),this.$emit("ssoError")})}},getCustomerInfo(){this.SET_BUTTON_LOADER(!0),Le.A.getCustomerInfo().then(e=>{let t={show:!0,message:"Welcome back"};this.SET_TOASTER(t),this.SET_CUSTOMER_DATA(e.data.data),this.identifyUser(e.data.data),this.SET_PHONE_VERIFIED(e.data.data.is_phone_verified),localStorage.setItem("phoneVerified",e.data.data.is_phone_verified),this.SET_LOGGED_IN(!0),this.SET_BUTTON_LOADER(!1),this.SET_COOKIES(e.data.cookies)}).catch(e=>{console.log(e)})},cleanServiceTypeIdFromUrl(){const e={...this.$route.query};"service_type_id"in e&&(delete e.service_type_id,this.$router.replace({query:e}))},updateOrderServiceTypeIfNeeded(){if(!this.orderData||!this.orderData.order)return;const e=parseInt(localStorage.getItem("selectedServiceId")),t=this.orderData.order.service_type_id;e!==t&&(this.SET_ORDER_DATA(null),localStorage.removeItem("orderId"),localStorage.removeItem("dayAndTimeSelected"),this.SET_DAY_AND_TIME_SELECTED(!1),localStorage.removeItem("selectedDay"),this.SET_SELECTED_DAY(null),localStorage.removeItem("selectedHour"),this.SET_SELECTED_HOUR(null),localStorage.removeItem("selectedTip"),localStorage.removeItem("tipSelected"),this.dateAndTimeModalIsOpen||(this.dateAndTimeModalIsOpen=!0))}},created(){let e=localStorage.getItem("selectedStoreId"),t=this.$route.params.storeId;e!=t&&(this.SET_ORDER_DATA(null),localStorage.removeItem("dayAndTimeSelected"),this.SET_DAY_AND_TIME_SELECTED(!1),localStorage.removeItem("selectedDay"),this.SET_SELECTED_DAY(null),localStorage.removeItem("selectedHour"),this.SET_SELECTED_HOUR(null),localStorage.removeItem("selectedTip"),localStorage.removeItem("tipSelected"),localStorage.removeItem("selectedStoreId"),this.SET_SELECTED_ADDRESS(null),localStorage.removeItem("selectedAddress"));const i=this.$route?.query?.service_type_id;i&&(localStorage.setItem("selectedServiceId",i),this.queryApplied=!0),this.checkInnerWidth(window.innerWidth),window.addEventListener("resize",()=>{const e=window.innerWidth;this.checkInnerWidth(e)}),this.selectedStore&&this.getTemperature(),this.storeId=this.$route.params.storeId;const a=localStorage.getItem("customerId");null!==a&&this.getFavorites(),this.getMenus(),(localStorage.getItem("dayAndTimeSelected")||this.browseMode)&&(this.dateAndTimeModalIsOpen=!1),window.addEventListener("resize",()=>{const e=window.innerWidth;this.innerWidth=e})},mounted(){document.addEventListener("click",e=>{this.filterDropdownIsOpen&&(this.$refs.filterDropdown.contains(e.target)||(this.filterDropdownIsOpen=!1))}),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth});let e=localStorage.getItem("deepLinkItemId");if(this.orderData&&e&&this.addDeepLinkItemToCart(),this.updateTitle(),this.foreignAuthLoginIfNeeded(),this.queryApplied){if(this.$nextTick(()=>{this.cleanServiceTypeIdFromUrl()}),this.selectedStore){const e=localStorage.getItem("selectedServiceId"),t=this.visibleServices.find(t=>t.service_type_id==e);t&&this.SET_SELECTED_SERVICE(t)}this.orderData&&this.updateOrderServiceTypeIfNeeded()}},beforeUnmount(){document.removeEventListener("click",e=>{this.filterDropdownIsOpen&&(this.$refs.filterDropdown.contains(e.target)||(this.filterDropdownIsOpen=!1))}),window.removeEventListener("resize",()=>{this.windowWidth=window.innerWidth})}},Oe=i(71241);const Fe=(0,Oe.A)(Me,[["render",oe],["__scopeId","data-v-7ba9cefa"]]);var Re=Fe}}]);
2//# sourceMappingURL=255.5a2da035.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.