1"use strict";(self["webpackChunklunchbox_storefront"]=self["webpackChunklunchbox_storefront"]||[]).push([[801],{89387:function(e,t,a){a(44114),a(18111),a(13579);t.A={methods:{shouldAllowAccess(){const{require_phone_verification:e,require_email_verification:t}=this.storeConfig||{},{is_phone_verified:a,is_verified:i}=this.customerData||{};return!(e&&!a)&&!(t&&!i)},guardProfileAccess(e,t=null){const a=t?()=>[this.storeConfig,this.customerData,this.branding]:()=>[this.storeConfig,this.customerData];this.$watch(a,a=>{a.some(e=>!e)||((!t||t())&&this.shouldAllowAccess()?e():this.$router.push({name:"ProfileView"}))},{immediate:!0})}}}},34584:function(e,t,a){const i="Something went wrong. Please try again";t.A={methods:{getCustomerId(){return localStorage.getItem("customerId")},showToaster(e){this.$store.commit("SET_TOASTER",{show:!0,message:e})},handleExpiredSession(e,t){return 403==e?.response?.data?.status&&(this.showToaster("Your session has expired. Please log in again"),"function"===typeof t&&t(),!0)}}},a.d(t,["h",0,i])},63800:function(e,t,a){a(74423),a(18111),a(20116);var i=a(18325);t.A={data(){return{loyaltyInfo:null,currentBalance:0}},computed:{getActiveTier(){let e=this.loyaltyInfo?.info?.point_balances?.[1]?.balance||0,t=Object.assign([],this.storeConfig?.loyalty?.programs_information),a=t.sort((e,t)=>t.threshold-e.threshold),i={};return i=null!==this.loyaltyInfo?.info?.schema_id?a.find(e=>e.id===this.loyaltyInfo?.info?.schema_id):a.find(t=>t.threshold<=e),i},getNextTier(){let e=Object.assign([],this.storeConfig?.loyalty?.programs_information),t=this.loyaltyInfo?.info?.point_balances?.[1]?.balance||0,a=e.find(e=>e.threshold>t);return a},getPointsRename(){let e=this.getActiveTier?this.getActiveTier:this.getNextTier;return e?.points_rename||this.storeConfig?.loyalty?.programs_information?.[0]?.points_rename||"points"},getRewardConversionPoint(){let e=this.getActiveTier,t=e||this.getNextTier;if(t){let e=this.storeConfig?.loyalty?.perks_information?.find(e=>"CONVERSION"===e.event_type&&e.tier_requirements.includes(t?.id));if(e)return e?.requirements[0]?.value}let a=this.getNextTier;return a?a.threshold:null},getRewardConversionName(){let e=this.getActiveTier?this.getActiveTier:this.getNextTier,t=this.storeConfig?.loyalty?.perks_information?.find(t=>"CONVERSION"===t.event_type&&t.tier_requirements.includes(e?.id));if(!t){let a=this.storeConfig?.loyalty?.programs_information?.find(t=>t.threshold>e?.threshold);if(t=this.storeConfig?.loyalty?.perks_information?.find(e=>"CONVERSION"===e.event_type&&e.tier_requirements.includes(a?.id)),!t)return a?.name||"your next reward";let i=t?.name;return i||"your next reward"}let a=t?.name;return a||"your next reward"},getRewardConversionNameShort(){let e=this.getActiveTier?this.getActiveTier:this.getNextTier,t=this.storeConfig?.loyalty?.perks_information?.find(t=>"CONVERSION"===t.event_type&&t.tier_requirements.includes(e?.id));if(!t){let a=this.storeConfig?.loyalty?.programs_information?.find(t=>t.threshold>e?.threshold);if(t=this.storeConfig?.loyalty?.perks_information?.find(e=>"CONVERSION"===e.event_type&&e.tier_requirements.includes(a?.id)),!t)return"your next reward"}return t?.rewards&&t.rewards.length>0&&t.rewards[0]?.name||"your next reward"},getRemainingPointsToNextReward(){let e=this.loyaltyInfo?.info?.point_balances?.[0]?.balance||0,t=this.getRewardConversionPoint;return t?Math.max(0,t-e):0},checkIfLastTierReached(){let e=this.getActiveTier,t=this.storeConfig?.loyalty?.programs_information;return!(!t?.length||1==t.length)&&e?.id===t[t.length-1]?.id},shouldShowRewardsProgress(){let e=Number(this.loyaltyInfo?.info?.point_balances?.[0]?.balance||0),t=Number(this.getRewardConversionPoint);const a=this.branding?.display_options?.rewards||{},i=!a.hide_tiers,s=a.display_perks_section??!0;return(i||s)&&Number.isFinite(t)&&t>0&&e<t},getFilledProgress(){let e=this.loyaltyInfo?.info?.point_balances?.[0]?.balance||0,t=this.getRewardConversionPoint;if(!t||0===t)return"0%";let a=e/t*100;return a=Math.max(0,Math.min(100,a)),a+"%"}},methods:{getLoyaltyInfo(){let e=localStorage.getItem("customerId");i.A.getLoyaltyInfo(e).then(e=>{this.loyaltyInfo=e.data.data,this.currentBalance=e.data.data.info.point_balances?.[0]?.balance||0}).catch(e=>{console.log(e)})}}}},54555:function(e,t,a){a.r(t),a.d(t,{default:function(){return Fe}});var i=a(56768),s=a(95187),r=a(5688);const o={key:0,class:"rewardsContent"},n={class:"rewardsTop"},l={key:0,class:"loyaltyId"},d={key:1,class:"remainingProgress"},c={class:"points"},C={key:0}
1,h={key:1},u={class:"rewardsBannerContent"},p={key:0,class:"buttons"},v=["href"],g={class:"rewardsContainer"},w={key:0,class:"rewardsTabs"},f={key:0,class:"rewardsTabIcon",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},y={"clip-path":"url(#clip0_4389_2437)"},b=["fill"],m=["fill"],k={class:"rewardsTabContent"},_={key:0,class:"rewardsTabSubTitle"},L={key:0,class:"rewardsTabIcon",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},T={"clip-path":"url(#clip0_4401_1702)"},E=["fill"],I=["fill"],M={class:"rewardsTabContent"},R={key:0,class:"rewardsTabSubTitle"},X={key:0,class:"rewardsTabIcon",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},V=["fill"],P={class:"rewardsTabContent"},x={class:"rewardsTabTitle"},A={key:0,class:"rewardsTabSubTitle"},Q={key:1},S={class:"rewardsWrapper"},F={key:0,class:"iconContainer"},N={class:"rewardContent"},B={class:"rewardTitles"},H={key:0,class:"rewardTitle"},O={key:1,class:"rewardTitle"},Z={key:0,class:"rewardDescription"},D={key:2},$={class:"rewardsWrapper"},q={key:0,class:"iconContainer"},W={class:"rewardContent"},K={class:"rewardTitles"},Y={key:0,class:"rewardTitle"},z={key:1,class:"rewardTitle"},j={key:0,class:"rewardDescription"},U={key:1,class:"rewardThreshold"},G={key:3},J={key:0,class:"iconContainer"},ee={class:"rewardContent"},te={class:"tierContainer"},ae={key:0,class:"rewardTitle"},ie={key:1,class:"pointsBagde"},se={key:0,class:"rewardDescription"},re={key:1,class:"rewardThreshold"},oe={key:4,class:"perksSection"},ne={class:"rewardsWrapper"},le={class:"rewardContent"},de={key:0,class:"rewardTitle"},ce={key:1,class:"rewardDescription"};function Ce(e,t,a,Ce,he,ue){const pe=(0,i.g2)("RedeemInStoreModal");return e.storeConfig&&e.loyaltyInfo?((0,i.uX)(),(0,i.CE)("div",{key:0,style:(0,s.Tr)({background:e.branding.display_options?.rewards?.image?"url("+e.branding.display_options?.rewards?.image+") no-repeat top center / contain":""}),class:"rewards"},[(0,i.bF)(r.eB,{name:"fade"},{default:(0,i.k6)(()=>[he.redeemInStoreModalIsVisible?((0,i.uX)(),(0,i.Wv)(pe,{key:0,onCloseModal:ue.toggleRedeemInStoreModal,selectedReward:he.rewardInfo},null,8,["onCloseModal","selectedReward"])):(0,i.Q3)("",!0)]),_:1}),e.loyaltyInfo&&e.storeConfig?((0,i.uX)(),(0,i.CE)("div",o,[(0,i.Lk)("div",{class:"rewardsSummary",style:(0,s.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})},[(0,i.Lk)("div",n,[(0,i.Lk)("div",{style:(0,s.Tr)({"grid-column":ue.showLifetimeBalance?"span 1":"span 2"}),class:"balance"},[t[4]||(t[4]=(0,i.Lk)("p",null,"Current Balance",-1)),(0,i.Lk)("h1",null,(0,s.v_)(e.loyaltyInfo.info.point_balances?.[0]?.balance||0)+" "+(0,s.v_)(e.storeConfig?.loyalty?.programs_information?.[0]?.points_rename||"points"),1)],4),ue.showLifetimeBalance?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"balance",style:(0,s.Tr)({"grid-column":ue.showLifetimeBalance?"span 1":"span 2"})},[t[5]||(t[5]=(0,i.Lk)("p",null,"Lifetime Balance",-1)),(0,i.Lk)("h1",null,(0,s.v_)(e.loyaltyInfo.info.point_balances?.[1]?.balance||0)+" "+(0,s.v_)(e.storeConfig?.loyalty?.programs_information?.[0]?.points_rename||"points"),1)],4)):(0,i.Q3)("",!0)]),e.branding?.display_options?.rewards?.display_loyalty_id&&e.loyaltyInfo?.info?.loyalty_id?((0,i.uX)(),(0,i.CE)("p",l," #"+(0,s.v_)(e.loyaltyInfo?.info?.loyalty_id),1)):(0,i.Q3)("",!0),e.shouldShowRewardsProgress?((0,i.uX)(),(0,i.CE)("div",d,[t[6]||(t[6]=(0,i.Lk)("div",{class:"progressBar"},[(0,i.Lk)("div",{class:"filledProgress"})],-1)),(0,i.Lk)("div",c,[(0,i.Lk)("p",null,"0 "+(0,s.v_)(e.getPointsRename),1),(0,i.Lk)("p",null,(0,s.v_)(e.getRewardConversionPoint)+" "+(0,s.v_)(e.getPointsRename),1)]),e.getRemainingPointsToNextReward>0?((0,i.uX)(),(0,i.CE)("p",C,(0,s.v_)(e.getRemainingPointsToNextReward)+" "+(0,s.v_)(e.getPointsRename)+" until "+(0,s.v_)(e.getRewardConversionNameShort)+"! ",1)):((0,i.uX)(),(0,i.CE)("p",h,"Earn "+(0,s.v_)(e.getPointsRename)+" for "+(0,s.v_)(e.getRewardConversionNameShort)+"!",1))])):(0,i.Q3)("",!0),(0,i.Lk)("div",{class:(0,s.C4)(["rewardsBanner",{rewardsBannerNoProgress:!e.shouldShowRewardsProgress}])},[(0,i.Lk)("div",u,[t[7]||(t[7]=(0,i.Fv)('<svg width="55" height="55" viewBox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3ca2f69b><g clip-path="url(#clip0_4389_3323)" data-v-3ca2f69b><path d="M44.0417 38.3125V6.22917C44.0417 4.7097 43.4381 3.25246 42.3636 2.17803C41.2892 1.10361 39.832 0.5 38.3125 0.5L17.6875 0.5C16.168 0.5 14.7108 1.10361 13.6364 2.17803C12.5619 3.25246 11.9583 4.7097 11.9583 6.22917V47.4792C11.9583 48.9986 12.5619 50.4559 13.6364 51.5303C14.7108 52.6047 16.
1168 53.2083 17.6875 53.2083H24.8948L27.2552 55.225C27.4862 55.4225 27.7861 55.5202 28.0891 55.4966C28.3921 55.4729 28.6733 55.3299 28.8708 55.099C29.0684 54.868 29.1661 54.568 29.1424 54.265C29.1188 53.9621 28.9757 53.6809 28.7448 53.4833L21.8698 47.5708C21.6905 47.4137 21.5711 47.1994 21.532 46.9642C21.4929 46.7291 21.5365 46.4876 21.6554 46.281C21.7743 46.0743 21.961 45.9153 22.184 45.8308C22.4069 45.7463 22.6522 45.7417 22.8781 45.8177L27.6333 47.4792C27.8056 47.536 27.989 47.5511 28.1683 47.5232C28.3476 47.4953 28.5177 47.4252 28.6646 47.3188C28.8208 47.2078 28.9467 47.0595 29.0307 46.8874C29.1148 46.7152 29.1544 46.5247 29.1458 46.3333V31.4375C29.1458 31.1336 29.2666 30.8422 29.4814 30.6273C29.6963 30.4124 29.9878 30.2917 30.2917 30.2917C30.5956 30.2917 30.887 30.4124 31.1019 30.6273C31.3168 30.8422 31.4375 31.1336 31.4375 31.4375V44.0417C31.4375 44.3456 31.5582 44.637 31.7731 44.8519C31.988 45.0668 32.2794 45.1875 32.5833 45.1875C32.8872 45.1875 33.1787 45.0668 33.3936 44.8519C33.6084 44.637 33.7292 44.3456 33.7292 44.0417V39.4583C33.7292 39.1544 33.8499 38.863 34.0648 38.6481C34.2797 38.4332 34.5711 38.3125 34.875 38.3125C35.1789 38.3125 35.4703 38.4332 35.6852 38.6481C35.9001 38.863 36.0208 39.1544 36.0208 39.4583V44.0417C36.0208 44.3456 36.1415 44.637 36.3564 44.8519C36.5713 45.0668 36.8628 45.1875 37.1667 45.1875C37.4706 45.1875 37.762 45.0668 37.9769 44.8519C38.1918 44.637 38.3125 44.3456 38.3125 44.0417V40.6042C38.3125 40.3003 38.4332 40.0088 38.6481 39.7939C38.863 39.5791 39.1544 39.4583 39.4583 39.4583C39.7622 39.4583 40.0537 39.5791 40.2686 39.7939C40.4834 40.0088 40.6042 40.3003 40.6042 40.6042V44.0417C40.6042 44.3456 40.7249 44.637 40.9398 44.8519C41.1547 45.0668 41.4461 45.1875 41.75 45.1875C42.0539 45.1875 42.3453 45.0668 42.5602 44.8519C42.7751 44.637 42.8958 44.3456 42.8958 44.0417V41.75C42.8958 41.4461 43.0165 41.1547 43.2314 40.9398C43.4463 40.7249 43.7378 40.6042 44.0417 40.6042C44.3456 40.6042 44.637 40.7249 44.8519 40.9398C45.0668 41.1547 45.1875 41.4461 45.1875 41.75V54.3542C45.1875 54.6581 45.3082 54.9495 45.5231 55.1644C45.738 55.3793 46.0294 55.5 46.3333 55.5C46.6372 55.5 46.9287 55.3793 47.1436 55.1644C47.3584 54.9495 47.4792 54.6581 47.4792 54.3542V41.75C47.4792 40.8383 47.117 39.964 46.4723 39.3193C45.8277 38.6747 44.9533 38.3125 44.0417 38.3125ZM33.7292 2.79167V3.9375C33.7292 4.24139 33.6084 4.53284 33.3936 4.74773C33.1787 4.96261 32.8872 5.08333 32.5833 5.08333H23.4167C23.1128 5.08333 22.8213 4.96261 22.6064 4.74773C22.3916 4.53284 22.2708 4.24139 22.2708 3.9375V2.79167H33.7292ZM30.2917 28C29.5825 28.002 28.8912 28.2233 28.3127 28.6336C27.7342 29.0439 27.2968 29.623 27.0604 30.2917H19.9792V29.1458C19.9792 28.0925 20.1866 27.0495 20.5897 26.0764C20.9928 25.1033 21.5836 24.2191 22.3284 23.4742C23.0732 22.7294 23.9574 22.1386 24.9306 21.7355C25.9037 21.3325 26.9467 21.125 28 21.125C29.0533 21.125 30.0963 21.3325 31.0694 21.7355C32.0426 22.1386 32.9268 22.7294 33.6716 23.4742C34.4164 24.2191 35.0072 25.1033 35.4103 26.0764C35.8134 27.0495 36.0208 28.0925 36.0208 29.1458V30.2917H33.5229C33.2865 29.623 32.8491 29.0439 32.2706 28.6336C31.6921 28.2233 31.0009 28.002 30.2917 28ZM39.4583 37.1667C38.8664 37.1688 38.2854 37.3269 37.774 37.625C37.3571 36.969 36.7302 36.4737 35.9956 36.2198C35.261 35.966 34.4621 35.9685 33.7292 36.2271V32.5833H38.3125C38.6164 32.5833 38.9078 32.4626 39.1227 32.2477C39.3376 32.0328 39.4583 31.7414 39.4583 31.4375C39.4583 31.1336 39.3376 30.8422 39.1227 30.6273C38.9078 30.4124 38.6164 30.2917 38.3125 30.2917V29.1458C38.3113 26.61 37.3758 24.1636 35.6848 22.2739C33.9939 20.3842 31.6659 19.1838 29.1458 18.9021V17.6875C29.1458 17.3836 29.0251 17.0922 28.8102 16.8773C28.5953 16.6624 28.3039 16.5417 28 16.5417C27.6961 16.5417 27.4047 16.6624 27.1898 16.8773C26.9749 17.0922 26.8542 17.3836 26.8542 17.6875V18.9021C24.3341 19.1838 22.0061 20.3842 20.3151 22.2739C18.6242 24.1636 17.6887 26.61 17.6875 29.1458V30.2917C17.3836 30.2917 17.0922 30.4124 16.8773 30.6273C16.6624 30.8422 16.5417 31.1336 16.5417 31.4375C16.5417 31.7414 16.6624 32.0328 16.8773 32.2477C17.0922 32.4626 17.3836 32.5833 17.6875 32.5833H26.8542V44.7406L23.5
1542 43.5948C22.8251 43.3515 22.0342 43.3685 21.3162 43.6428C20.5982 43.9172 19.9976 44.432 19.6165 45.0995C19.2355 45.767 19.0976 46.5459 19.2264 47.3037C19.3552 48.0614 19.7427 48.7511 20.3229 49.2552L22.2708 50.9167H17.6875C16.7758 50.9167 15.9015 50.5545 15.2568 49.9098C14.6122 49.2652 14.25 48.3909 14.25 47.4792V6.22917C14.25 5.31749 14.6122 4.44314 15.2568 3.79849C15.9015 3.15383 16.7758 2.79167 17.6875 2.79167H19.9792V3.9375C19.9792 4.84918 20.3413 5.72352 20.986 6.36818C21.6306 7.01284 22.505 7.375 23.4167 7.375H32.5833C33.495 7.375 34.3694 7.01284 35.014 6.36818C35.6587 5.72352 36.0208 4.84918 36.0208 3.9375V2.79167H38.3125C39.2242 2.79167 40.0985 3.15383 40.7432 3.79849C41.3878 4.44314 41.75 5.31749 41.75 6.22917V38.0604C41.1225 37.49 40.3063 37.1717 39.4583 37.1667Z" fill="var(--primary-color)" data-v-3ca2f69b></path></g><defs data-v-3ca2f69b><clipPath id="clip0_4389_3323" data-v-3ca2f69b><rect width="55" height="55" fill="white" transform="translate(0.5 0.5)" data-v-3ca2f69b></rect></clipPath></defs></svg><p class="rewardsBannerMessage" data-v-3ca2f69b> Each order gets you loyalty points. Maximize your benefits and unlock new rewards at participating locations. </p>',2)),he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",p,[(0,i.Lk)("a",null,[(0,i.Lk)("button",{onClick:t[0]||(t[0]=(...e)=>ue.startOrder&&ue.startOrder(...e))},"Start Order")]),e.branding.display_options?.rewards?.secondary_button?.show?((0,i.uX)(),(0,i.CE)("a",{key:0,href:e.branding.display_options?.rewards?.secondary_button?.url,target:"_blank"},[(0,i.Lk)("button",{class:"secondaryButton",style:(0,s.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"})},(0,s.v_)(e.branding.display_options?.rewards?.secondary_button?.text),5)],8,v)):(0,i.Q3)("",!0)]))])],2),(0,i.Lk)("div",g,[ue.availableTabs.length?((0,i.uX)(),(0,i.CE)("div",w,[e.loyaltyInfo?.balances?.length>0&&ue.nonBankRewards?.length?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,s.C4)(["rewardsTab",0===he.activeTab?"rewardsTabActive":""]),onClick:t[1]||(t[1]=e=>he.activeTab=0)},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("svg",f,[(0,i.Lk)("g",y,[(0,i.Lk)("path",{d:"M5.70802 27.9999H22.2909C23.4426 27.9999 24.3763 27.0662 24.3763 25.9146V15.4875H3.62271V25.9146C3.62271 27.0662 4.55641 27.9999 5.70802 27.9999Z",fill:0===he.activeTab?"white":"var(--primary-color)"},null,8,b),(0,i.Lk)("path",{d:"M2.32669 11.6208V14.4198H25.6733V11.6208C25.6733 10.4692 24.7396 9.53549 23.588 9.53549H17.4838C20.3829 9.53549 24.5514 6.72188 23.6381 3.73832C22.8754 1.24585 20.5862 -0.014716 18.247 -0.000118809C14.9444 0.018649 14.0884 6.94241 14.0884 6.94241H13.9997C13.9997 6.94241 13.1442 0.018649 9.84111 -0.000118809C7.50139 -0.014716 5.21276 1.24585 4.45006 3.73832C3.53617 6.72188 7.70523 9.53549 10.6054 9.53549H4.412C3.26039 9.53549 2.32669 10.4692 2.32669 11.6208ZM20.6759 2.51633C20.6759 2.51633 20.5737 5.92373 15.9949 8.46833C15.9949 8.46833 16.8603 4.09387 20.6759 2.51633ZM7.45082 2.51633C11.2654 4.09335 12.1303 8.46833 12.1303 8.46833C7.55248 5.92373 7.45082 2.51633 7.45082 2.51633Z",fill:0===he.activeTab?"white":"var(--primary-color)"},null,8,m)]),t[8]||(t[8]=(0,i.Lk)("defs",null,[(0,i.Lk)("clipPath",{id:"clip0_4389_2437"},[(0,i.Lk)("rect",{width:"28",height:"28",fill:"white"})])],-1))])),(0,i.Lk)("div",k,[t[9]||(t[9]=(0,i.Lk)("h4",{class:"rewardsTabTitle"},"Available Rewards",-1)),he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("p",_,"Don't miss out on your current available rewards"))])],2)):(0,i.Q3)("",!0),ue.bankRewards?.length?((0,i.uX)(),(0,i.CE)("div",{key:1,class:(0,s.C4)(["rewardsTab",1===he.activeTab?"rewardsTabActive":""]),onClick:t[2]||(t[2]=e=>he.activeTab=1)},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("svg",L,[(0,i.Lk)("g",T,[(0,i.Lk)("path",{d:"M14 27.7846C21.613 27.7846 27.7846 21.613 27.7846 13.9999C27.7846 6.38691 21.613 0.215332 14 0.215332C6.38697 0.215332 0.215385 6.38691 0.215385 13.9999C0.215385 21.613 6.38697 27.7846 14 27.7846Z",fill:1===he.activeTab?"white":"var(--primary-color)"},null,8,E),(0,i.Lk)("path",{d:"M21.2585 13.1601C21.7969 12.6216 21.4954 11.6954 20.7415 11.5877L17.1231 11.0708C16.8215 11.0277 16.5631 10.8339 16.4339 10.5754L14.8185 7.30159C14.4739 6.61236 13.5046 6.61236 13.1815 7.30159L11.5662 10.5
1754C11.4369 10.8554 11.1785 11.0277 10.8769 11.0708L7.25847 11.5877C6.50462 11.6954 6.20308 12.6216 6.74154 13.1601L9.3477 15.7231C9.56308 15.9385 9.67077 16.2401 9.60616 16.5416L8.98154 20.1385C8.87385 20.8924 9.67077 21.4524 10.3385 21.1077L13.5692 19.4062C13.8277 19.2554 14.1508 19.2554 14.4308 19.4062L17.6615 21.1077C18.3292 21.4524 19.1262 20.8924 18.9969 20.1385L18.3723 16.5416C18.3292 16.2401 18.4154 15.9385 18.6308 15.7231L21.2585 13.1601Z",fill:1===he.activeTab?"var(--primary-color)":"white"},null,8,I)]),t[10]||(t[10]=(0,i.Lk)("defs",null,[(0,i.Lk)("clipPath",{id:"clip0_4401_1702"},[(0,i.Lk)("rect",{width:"28",height:"28",fill:"white"})])],-1))])),(0,i.Lk)("div",M,[t[11]||(t[11]=(0,i.Lk)("h4",{class:"rewardsTabTitle"},"Loyalty Offers",-1)),he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("p",R,"Use loyalty points to buy these exclusive rewards"))])],2)):(0,i.Q3)("",!0),ue.hasTiers?((0,i.uX)(),(0,i.CE)("div",{key:2,class:(0,s.C4)(["rewardsTab",2===he.activeTab?"rewardsTabActive":""]),onClick:t[3]||(t[3]=e=>he.activeTab=2)},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("svg",X,[(0,i.Lk)("path",{d:"M24.8582 5.90337C24.549 5.68987 24.1558 5.63504 23.8058 5.76104C23.6903 5.80187 21.6043 6.55437 20.1343 8.43037C18.9338 6.29304 17.4708 4.5337 14.5647 2.93187C14.2158 2.7382 13.7888 2.7382 13.44 2.93187C10.5408 4.52437 9.10816 6.2382 7.8785 8.42687C6.40733 6.54154 4.305 5.79954 4.18833 5.75987C3.83833 5.6397 3.44866 5.6922 3.143 5.9057C1.28333 7.19954 1.16783 14.3932 1.16783 14.4644C1.16783 20.5905 2.56433 22.7465 2.723 22.9717C2.8595 23.1654 3.052 23.3124 3.27483 23.394C3.47666 23.4687 8.29966 25.2164 14.0012 25.2164C19.7027 25.2164 24.5245 23.4687 24.7263 23.394C24.9538 23.3112 25.1487 23.1584 25.2863 22.96C25.445 22.729 26.8333 20.5345 26.8333 14.4644C26.8333 14.392 26.7167 7.19837 24.8582 5.9057V5.90337Z",fill:2===he.activeTab?"white":"var(--primary-color)"},null,8,V)])),(0,i.Lk)("div",P,[(0,i.Lk)("h4",x,(0,s.v_)(ue.getChainName)+" Tiers",1),he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("p",A,(0,s.v_)(ue.getTiersDescription),1))])],2)):(0,i.Q3)("",!0)])):(0,i.Q3)("",!0),0===he.activeTab&&ue.nonBankRewards.length?((0,i.uX)(),(0,i.CE)("div",Q,[(0,i.Lk)("div",S,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.nonBankRewards,a=>((0,i.uX)(),(0,i.CE)("div",{key:a,class:"rewardItem"},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",F,[...t[12]||(t[12]=[(0,i.Fv)('<svg class="rewardIcon" width="28" height="28" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" data-v-3ca2f69b><g clip-path="url(#clip0_4389_2437)" data-v-3ca2f69b><path d="M5.70802 27.9999H22.2909C23.4426 27.9999 24.3763 27.0662 24.3763 25.9146V15.4875H3.62271V25.9146C3.62271 27.0662 4.55641 27.9999 5.70802 27.9999Z" fill="var(--primary-color)" data-v-3ca2f69b></path><path d="M2.32669 11.6208V14.4198H25.6733V11.6208C25.6733 10.4692 24.7396 9.53549 23.588 9.53549H17.4838C20.3829 9.53549 24.5514 6.72188 23.6381 3.73832C22.8754 1.24585 20.5862 -0.014716 18.247 -0.000118809C14.9444 0.018649 14.0884 6.94241 14.0884 6.94241H13.9997C13.9997 6.94241 13.1442 0.018649 9.84111 -0.000118809C7.50139 -0.014716 5.21276 1.24585 4.45006 3.73832C3.53617 6.72188 7.70523 9.53549 10.6054 9.53549H4.412C3.26039 9.53549 2.32669 10.4692 2.32669 11.6208ZM20.6759 2.51633C20.6759 2.51633 20.5737 5.92373 15.9949 8.46833C15.9949 8.46833 16.8603 4.09387 20.6759 2.51633ZM7.45082 2.51633C11.2654 4.09335 12.1303 8.46833 12.1303 8.46833C7.55248 5.92373 7.45082 2.51633 7.45082 2.51633Z" fill="var(--primary-color)" data-v-3ca2f69b></path></g><defs data-v-3ca2f69b><clipPath id="clip0_4389_2437" data-v-3ca2f69b><rect width="28" height="28" fill="white" data-v-3ca2f69b></rect></clipPath></defs></svg>',1)])])),(0,i.Lk)("div",N,[(0,i.Lk)("div",B,[a?.show_amount?((0,i.uX)(),(0,i.CE)("h4",H,(0,s.v_)(e.formatPrice(a.amount)),1)):(0,i.Q3)("",!0),a.name||a.discount_code?((0,i.uX)(),(0,i.CE)("h4",O,(0,s.v_)(a.name||a.discount_code),1)):(0,i.Q3)("",!0)]),a.description?((0,i.uX)(),(0,i.CE)("p",Z,(0,s.v_)(a.description),1)):(0,i.Q3)("",!0)])]))),128))])])):(0,i.Q3)("",!0),1===he.activeTab&&ue.bankRewards.length?((0,i.uX)(),(0,i.CE)("div",D,[(0,i.Lk)("div",$,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.bankRewards,a=>((0,i.uX)(),(0,i.CE)("div",{key:a,class:"rewardItem"},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",q,[...t[13]||(t[13]=[(0,i.Fv)('<svg class="rewardIcon" width="28" height="28" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" data-v-3ca2f69b><g clip-path="url(#clip0_4401_1702)" data-v-3ca2f69b><path d="M14 27.7846C21.613 27.7846 27.7846 21.613 27.7846 13.9999C27.7846 6.38691 21.613 0.215332 14 0.215332C6.38697 0.215332 0.215385 6.38691 0.215385 13.9999C0.215385 21.613 6.38697 27.7846 14 27.7846Z" fill="var(--primary-color)" data-v-3ca2f69b></path><path d="M21.2585 13.1601C21.7969 12.6216 21.4954 11.6954 20.7415 11.5877L17.1231 11.0708C16.8215 11.0277 16.5631 10.8339 16.4339 10.5754L14.8185 7.30159C14.4739 6.61236 13.5046 6.61236 13.1815 7.30159L11.5662 10.5
1754C11.4369 10.8554 11.1785 11.0277 10.8769 11.0708L7.25847 11.5877C6.50462 11.6954 6.20308 12.6216 6.74154 13.1601L9.3477 15.7231C9.56308 15.9385 9.67077 16.2401 9.60616 16.5416L8.98154 20.1385C8.87385 20.8924 9.67077 21.4524 10.3385 21.1077L13.5692 19.4062C13.8277 19.2554 14.1508 19.2554 14.4308 19.4062L17.6615 21.1077C18.3292 21.4524 19.1262 20.8924 18.9969 20.1385L18.3723 16.5416C18.3292 16.2401 18.4154 15.9385 18.6308 15.7231L21.2585 13.1601Z" fill="white" data-v-3ca2f69b></path></g><defs data-v-3ca2f69b><clipPath id="clip0_4401_1702" data-v-3ca2f69b><rect width="28" height="28" fill="white" data-v-3ca2f69b></rect></clipPath></defs></svg>',1)])])),(0,i.Lk)("div",W,[(0,i.Lk)("div",K,[a?.show_amount?((0,i.uX)(),(0,i.CE)("h4",Y,(0,s.v_)(e.formatPrice(a.amount)),1)):(0,i.Q3)("",!0),a.name||a.discount_code?((0,i.uX)(),(0,i.CE)("h4",z,(0,s.v_)(a.name||a.discount_code),1)):(0,i.Q3)("",!0)]),a.description?((0,i.uX)(),(0,i.CE)("p",j,(0,s.v_)(a.description),1)):(0,i.Q3)("",!0),a?.points?((0,i.uX)(),(0,i.CE)("p",U,"Claim for "+(0,s.v_)(a.points)+" points",1)):(0,i.Q3)("",!0)])]))),128))])])):(0,i.Q3)("",!0),2===he.activeTab&&ue.hasTiers?((0,i.uX)(),(0,i.CE)("div",G,[(0,i.Lk)("div",{class:(0,s.C4)(["rewardsWrapper",{columnLayout:2===he.activeTab}])},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.storeConfig?.loyalty?.programs_information,a=>((0,i.uX)(),(0,i.CE)("div",{key:a.id,class:"rewardItem"},[he.isMobile?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",J,[...t[14]||(t[14]=[(0,i.Lk)("svg",{class:"rewardIcon",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},[(0,i.Lk)("path",{d:"M24.8582 5.90337C24.549 5.68987 24.1558 5.63504 23.8058 5.76104C23.6903 5.80187 21.6043 6.55437 20.1343 8.43037C18.9338 6.29304 17.4708 4.5337 14.5647 2.93187C14.2158 2.7382 13.7888 2.7382 13.44 2.93187C10.5408 4.52437 9.10816 6.2382 7.8785 8.42687C6.40733 6.54154 4.305 5.79954 4.18833 5.75987C3.83833 5.6397 3.44866 5.6922 3.143 5.9057C1.28333 7.19954 1.16783 14.3932 1.16783 14.4644C1.16783 20.5905 2.56433 22.7465 2.723 22.9717C2.8595 23.1654 3.052 23.3124 3.27483 23.394C3.47666 23.4687 8.29966 25.2164 14.0012 25.2164C19.7027 25.2164 24.5245 23.4687 24.7263 23.394C24.9538 23.3112 25.1487 23.1584 25.2863 22.96C25.445 22.729 26.8333 20.5345 26.8333 14.4644C26.8333 14.392 26.7167 7.19837 24.8582 5.9057V5.90337Z",fill:"var(--primary-color)"})],-1)])])),(0,i.Lk)("div",ee,[(0,i.Lk)("div",te,[a?.name?((0,i.uX)(),(0,i.CE)("h4",ae,(0,s.v_)(a.name),1)):(0,i.Q3)("",!0),e.getActiveTier?.id==a.id?((0,i.uX)(),(0,i.CE)("p",ie,"Current Tier")):(0,i.Q3)("",!0)]),a?.description?((0,i.uX)(),(0,i.CE)("p",se,(0,s.v_)(a.description),1)):(0,i.Q3)("",!0),a.threshold?((0,i.uX)(),(0,i.CE)("p",re," Collect "+(0,s.v_)(a.threshold)+" lifetime "+(0,s.v_)(a.points_rename)+" to reach "+(0,s.v_)(a.name),1)):(0,i.Q3)("",!0)])]))),128))],2)])):(0,i.Q3)("",!0),ue.getPerks&&ue.getPerks.length>0&&ue.displayPerksSection&&(1===ue.availableTabs.length||he.activeTab===ue.firstAvailableTab)?((0,i.uX)(),(0,i.CE)("div",oe,[t[15]||(t[15]=(0,i.Lk)("h3",{class:"perksTitle"},"Perks",-1)),(0,i.Lk)("div",ne,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.getPerks,e=>((0,i.uX)(),(0,i.CE)("div",{key:e,class:"rewardItem"},[(0,i.Lk)("div",le,[e.name?((0,i.uX)(),(0,i.CE)("h4",de,(0,s.v_)(e.name),1)):(0,i.Q3)("",!0),e.description?((0,i.uX)(),(0,i.CE)("p",ce,(0,s.v_)(e.description),1)):(0,i.Q3)("",!0)])]))),128))])])):(0,i.Q3)("",!0)])],4)])):(0,i.Q3)("",!0)],4)):(0,i.Q3)("",!0)}a(44114),a(18111),a(22489);var he=a(60782),ue=a(79281),pe=a(63800),ve=a(89387),ge=a(49148),we=a.n(ge),fe=a(79634);const ye={class:"modalWrapper"},be={key:0,class:"step1"},me={class:"buttons"},ke={key:1,class:"step2"},_e=["src"],Le={class:"discountCode"};function Te(e,t,a,o,n,l){return(0,i.uX)(),(0,i.CE)("div",{onClick:t[3]||(t[3]=(0,r.D$)((...e)=>l.closeModal&&l.closeModal(...e),["self"])),class:"modalContainer"},[(0,i.Lk)("div",ye,[(0,i.Lk)("div",{onClick:t[0]||(t[0]=(...e)=>l.closeModal&&l.closeModal(...e)),class:"close"},[...t[4]||(t[4]=[(0,i.Lk)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,i.Lk)("path",{d:"M8.1161 6.6228L7.75908 6.97635L8.11437 7.33163L13.4572 12.6745L12.6745 13.4572L11.8466 12.6294L11.8449 12.6277L7.37718 8.11608L7.02364 7.75906L6.66835 8.11435L1.32551 13.4572L0.542786 12.6745L5.88563 7.33163L6.24062 6.97664L5.8842 6.62309L0.543158
11.32514L1.32551 0.542787L6.66835 5.88563L7.02334 6.24061L7.37689 5.88419L12.6748 0.543155L13.4572 1.32551L12.6294 2.15333L12.6277 2.15504L8.1161 6.6228ZM12.7648 13.5475C12.7649 13.5476 12.765 13.5478 12.7651 13.5479L12.7648 13.5475ZM0.452113 12.7651L0.452145 12.7651C0.452134 12.7651 0.452123 12.7651 0.452113 12.7651Z",fill:"black",stroke:"black"})],-1)])]),1==n.step?((0,i.uX)(),(0,i.CE)("div",be,[(0,i.Lk)("h2",null,"Are you ready to redeem '"+(0,s.v_)(a.selectedReward?.name)+"' now?",1),t[5]||(t[5]=(0,i.Lk)("p",null,"You only have 60 seconds to show this to you server.",-1)),(0,i.Lk)("div",me,[(0,i.Lk)("button",{class:"secondaryButton",style:(0,s.Tr)({backgroundColor:e.branding.dark_mode_enabled?"var(--background-color)":"#FFFFFF"}),onClick:t[1]||(t[1]=(...e)=>l.closeModal&&l.closeModal(...e))}," NOT YET ",4),(0,i.Lk)("button",{onClick:t[2]||(t[2]=(...e)=>l.selectRedeem&&l.selectRedeem(...e))},"REDEEM")])])):(0,i.Q3)("",!0),2==n.step?((0,i.uX)(),(0,i.CE)("div",ke,[(0,i.Lk)("img",{class:"logo",src:l.getMenuLogo,alt:"companyLogo"},null,8,_e),(0,i.Lk)("h2",null,(0,s.v_)(a.selectedReward?.name),1),t[6]||(t[6]=(0,i.Lk)("p",null,"Redemption Code:",-1)),(0,i.Lk)("h2",Le,(0,s.v_)(a.selectedReward?.discount_code),1)])):(0,i.Q3)("",!0)])])}var Ee=a(18325),Ie=a(34584),Me={data(){return{step:1}},mixins:[Ie.A],props:["selectedReward"],computed:{...(0,he.aH)(["branding","cookies"]),getMenuLogo(){return this.branding.menu_logo_url}},methods:{closeModal(){this.$emit("closeModal")},selectRedeem(){let e=this.getCustomerId(),t={wallet_reward_id:this.selectedReward?.id,provider:"lunchbox"};Ee.A.redeemLoyaltyInStore(t,e).then(e=>{console.log(e),this.step=2}).catch(e=>{console.log(e)})}}},Re=a(71241);const Xe=(0,Re.A)(Me,[["render",Te],["__scopeId","data-v-8e3c5892"]]);var Ve=Xe;const Pe={data(){return{redeemInStoreModalIsVisible:!1,rewardInfo:null,activeTab:0,isMobile:window.innerWidth<=768}},components:{RedeemInStoreModal:Ve},mixins:[ue.A,pe.A,ve.A],computed:{...(0,he.aH)(["branding","storeConfig","cookies","customerData"]),getPerks(){let e=this.storeConfig?.loyalty?.perks_information?.filter(e=>"CONVERSION"!==e.event_type&&"TIER_REACHED_ONE_OFF"!==e.event_type)||[];return e},hasTiers(){return!this.branding?.display_options?.rewards?.hide_tiers&&this.storeConfig?.loyalty?.programs_information?.length>0},showLifetimeBalance(){return!!this.loyaltyInfo?.info?.point_balances?.[1]&&!this.branding?.display_options?.rewards?.hide_lifetime_balance},getBankPerks(){return this.storeConfig?.loyalty?.perks_information?this.storeConfig.loyalty.perks_information.filter(e=>e.is_bankable):[]},displayPerksSection(){return this.branding?.display_options?.rewards?.display_perks_section??!0},bankRewards(){const e=this.loyaltyInfo?.balances?.filter(e=>e?.is_bank_reward)||[],t=this.getBankPerks||[];return[...e,...t]},nonBankRewards(){return this.loyaltyInfo?.balances?.filter(e=>!e?.is_bank_reward)||[]},availableTabs(){const e=[];return this.loyaltyInfo?.balances?.length>0&&this.nonBankRewards?.length&&e.push(0),this.bankRewards?.length&&e.push(1),this.hasTiers&&e.push(2),e},firstAvailableTab(){return this.availableTabs.length>0?this.availableTabs[0]:0},getChainName(){return this.storeConfig?.chain_display_name||"Chain"},getTiersDescription(){return"Each Tier brings you exclusive offers and more savings."}},methods:{...(0,he.PY)(["SET_COOKIES"]),toggleRedeemInStoreModal(){this.redeemInStoreModalIsVisible=!this.redeemInStoreModalIsVisible},openRedeemInStore(e){this.rewardInfo={id:e.id,name:e.name,discount_code:e.discount_code},this.toggleRedeemInStoreModal()},startOrder(){this.$router.push({name:"HomeView"})},formatDate(e){return(0,fe.kn)(we()(e))},checkMobile(){this.isMobile=window.innerWidth<=768},setActiveTabToFirstAvailable(){this.activeTab!==this.firstAvailableTab&&(this.activeTab=this.firstAvailableTab)}},created(){this.guardProfileAccess(this.getLoyaltyInfo),this.$watch(()=>this.availableTabs,()=>{this.$nextTick(()=>{this.setActiveTabToFirstAvailable()})},{immediate:!0})},mounted(){window.addEventListener("resize",this.checkMobile)},beforeUnmount(){window.removeEventListener("resize",this.checkMobile)}},xe=()=>{(0,r.$9)(e=>({v4f174cd5:e.getFilledProgress}))},Ae=Pe.setup;Pe.setup=Ae?(e,t)=>(xe(),Ae(e,t)):xe;var Qe=Pe;const Se=(0,Re.A)(Qe,[["render",Ce],["__scopeId","data-v-3ca2f69b"]]);var Fe=Se}}]); 2//# sourceMappingURL=rewards.bcf048a2.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.