(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{431:function(t,e,o){"use strict";o.r(e);var r={props:["courseId","color","type","slug"],methods:{addCart:function(t,e){e?this.$router.push("/purchase/"+this.slug):this.$store.state.auth.loggedIn?(this.$store.dispatch("addCart",t),this.$store.dispatch("getWishListCount")):this.$router.push({path:"/login",query:{next:this.$route.path}})},addWishList:function(t){this.$store.state.auth.loggedIn?(this.$store.dispatch("addWishList",t),this.$store.dispatch("getWishListCount")):this.$router.push({path:"/login",query:{next:this.$route.path}})}}},h=o(9),component=Object(h.a)(r,(function(){var t=this,e=t._self._c;return e("button",{staticClass:"btn",class:2==t.type?"":"btn-favorite",on:{click:function(e){1==t.type?t.addCart(t.courseId):2==t.type?t.addCart(t.courseId,!0):t.addWishList(t.courseId)}}},[1==t.type?e("i",{staticClass:"fa fa-shopping-bag",style:"color:"+t.color,attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),null==t.type?e("i",{staticClass:"fa fa-heart-o",style:"color:"+t.color}):t._e(),t._v(" "),e("span",{staticClass:"text ps-2"},[t._v(t._s(1==t.type?"কার্টে যুক্ত করুন":2==t.type?"কোর্সটি কিনুন":"ফেভারিট"))])])}),[],!1,null,null,null);e.default=component.exports}}]);