(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{1684:function(t,e,n){"use strict";n.r(e);n(107),n(7),n(88);var o={name:"tabButtonDeals",props:["title","selectedCategory","slug","onSelected"],data:function(){return{path:"store/attribution",query:null}},methods:{clickedTab:function(t){},replacePage:function(t){var pattern=new RegExp("[&|?]?(page=[0-9]+)");return t.replace(pattern,"")}},watch:{$route:function(){this.query=this.replacePage(window.location.search)}},beforeMount:function(){window.location.pathname.indexOf("store/products")>-1?this.path="store/products/"+this.$store.getters.getSelectedCategory.slug:window.location.pathname.indexOf("store/flashdeals")>-1&&(this.path="store/flashdeals"),window.location.pathname.indexOf("store/products/deals")>-1&&(this.path="store/products/deals/"+this.$store.getters.getSelectedCategory.slug),this.query=this.replacePage(window.location.search)}},l=n(3),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tabbutton",class:[t.selectedCategory===t.slug?"is-selected":""],on:{click:function(e){return t.clickedTab(e)}}},[n("nuxt-link",{attrs:{to:t.localeLink(t.path+"/"+t.slug+t.query)}},[n("div",{staticClass:"content"},[n("h2",{staticClass:"text-container"},[t._v(" "+t._s(this.title))])])])],1)}),[],!1,null,null,null);e.default=component.exports}}]); //# sourceMappingURL=191.1711516068016.92253024e5fe4b9f7afd.js.map