(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a71fa1c"],{4921:function(e,t,n){"use strict";var r=n("941fc"),a=n.n(r);a.a},"941fc":function(e,t,n){},a5b8:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{style:{color:e.STYLE_CONFIG.mainTextColor},attrs:{id:"v2-rewards"}},[n("div",{staticClass:"v2-rewards__greeting-banner",style:{backgroundColor:e.STYLE_CONFIG.accentBackgroundColor,color:e.STYLE_CONFIG.accentBackgroundTextColor}},[e._v(" "+e._s(e.bannerCopy)+" ")]),n("ConnectedProfileCompletion"),n("ConnectedMilestoneNotificationBar"),n("div",{staticClass:"v2-rewards__header-container",style:{fontFamily:e.STYLE_CONFIG.stylizedFont}},[e.tagline?n("div",{staticClass:"v2-rewards__tagline"},[e._v(e._s(e.tagline))]):e._e(),n("div",{staticClass:"v2-rewards__header"},[e._v(" "+e._s(e.HEADER_COPY.rewards)+" ")])]),n("div",{attrs:{id:"v2-rewards__tabs"}},[n("Tabs",{attrs:{sliderColor:e.STYLE_CONFIG.highlightColor,titleColor:e.STYLE_CONFIG.mainTextColor},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.isActiveIdx;return[n("Tab",{attrs:{title:"Active"}},[r(0)?[0===e.activeRewardSelections.length?n("EmptyState",{attrs:{text:e.EMPTY_STATE_COPY.rewards.active,id:"reward-list__empty-state-active",rounded:e.STYLE_CONFIG.roundedCorners}}):e._e(),n("div",{staticClass:"v2-reward-list__tab-content-wrapper"},e._l(e.activeRewardSelections,(function(t,r){return n("div",{key:"reward-selection-"+r},[n("RewardSelectionCard",e._b({on:{redeem:function(n){e.redeem(n),e.$store.dispatch("eventTracking/TRACK_EVENT",{eventAction:"Redeem now",eventLabel:t.reward_data.client_facing_description})},likelyRedeemed:function(n){e.UPDATE_LIKELY_REDEEMED({id:n.id,uuid:t.offer_uuid}),e.$store.dispatch("eventTracking/TRACK_EVENT",{eventAction:"Claim reward",eventLabel:t.reward_data.client_facing_description})},"~expanded":function(n){return e.$store.dispatch("eventTracking/TRACK_EVENT",{eventAction:"Intent reward",eventLabel:t.reward_data.client_facing_description})}}},"RewardSelectionCard",e.getProps(t,!1),!1))],1)})),0)]:e._e()],2),n("Tab",{attrs:{title:"Inactive"}},[r(1)?[n("div",{staticClass:"v2-reward-list__tab-content-wrapper"},[0===e.inactiveRewardSelections.length?n("EmptyState",{attrs:{text:e.EMPTY_STATE_COPY.rewards.inactive,id:"reward-list__empty-state-inactive",rounded:e.STYLE_CONFIG.roundedCorners}}):e._e(),e._l(e.inactiveRewardSelections,(function(t,r){return n("div",{key:"reward-selection-"+r},[n("RewardSelectionCard",e._b({},"RewardSelectionCard",e.getProps(t,!0),!1))],1)}))],2)]:e._e()],2)]}}],null,!1,63128240)})],1)],1):e._e()},a=[],i=(n("96cf"),n("1da1")),o=n("5530"),c=n("2b0e"),s=n("2f62"),d=n("41b3"),l=n("a469"),_=n("d7b6"),u=n("1295"),C=n("e02a"),T=n("d9bc"),v=n("d988d"),f=n("4ac9d"),w=n("724c"),E=n("b344a"),b=n("d090"),p=c["default"],S=p.extend({name:"RewardList",components:{Tab:u["a"],Tabs:_["a"],EmptyState:E["a"],RewardSelectionCard:f["a"],ConnectedProfileCompletion:T["a"],ConnectedMilestoneNotificationBar:b["a"]},data:function(){return{getTitle:C["b"],configs:v["a"],show:!1}},computed:Object(o["a"])({},Object(s["c"])(["STYLE_CONFIG","IS_STAFF_OR_ADMIN","EMPTY_STATE_COPY",l["C"],l["Y"],l["Z"]]),{},Object(s["e"])("transactions",["activeRewardSelections","inactiveRewardSelections"]),{},Object(s["e"])("account",["account"]),{tagline:function(){return this.$store.getters.COPY_CONFIG.tagline||""},bannerCopy:function(){var e;return"Hi, ".concat(null===(e=this.account)||void 0===e?void 0:e.first_name)}}),mounted:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.show=!1,t.next=3,e.FETCH_SELECTIONS({config:e.configs.active});case 3:e.show=!0,e.FETCH_SELECTIONS({config:e.configs.inactive});case 5:case"end":return t.stop()}}),t)})))()},methods:Object(o["a"])({},Object(s["b"])("transactions",[d["g"],d["U"],d["l"],d["T"]]),{redeem:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t[d["U"]](Object(o["a"])({},e,{redemptionStatus:"se_re"}));case 2:r=n.sent,r.error||t.HANDLE_REWARD_REDEMPTION({id:e.id});case 4:case"end":return n.stop()}}),n)})))()},getProps:function(e,t){return Object(w["b"])({moreInfoTitle:this.PRT.plural,disabled:t,reward:e,offerStatus:"can_redeem",selected:!1,successColor:"",footerTextColor:this.STYLE_CONFIG.accentBackgroundTextColor,footerColor:this.STYLE_CONFIG.accentBackgroundColor,accentColor:this.STYLE_CONFIG.accentBackgroundColor,buttonTextColor:this.STYLE_CONFIG.accentBackgroundTextColor,fontFamily:this.STYLE_CONFIG.basicFont,rounded:this.STYLE_CONFIG.roundedCorners,redemptionCtaCopyConfig:this.REDEMPTION_METHOD_COPY_CONFIG})}})}),g=S,O=(n("4921"),n("2877")),h=Object(O["a"])(g,r,a,!1,null,"e678458c",null);t["default"]=h.exports}}]);
//# sourceMappingURL=chunk-1a71fa1c.841d4c3a.js.map