(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{635:function(t,e,n){t.exports={}},654:function(t,e,n){"use strict";n.r(e);n(31),n(11);var r={props:["reviews"],data:function(){return{selectedRating:"",dropDown:!1,buttonText:"All ratings"}},methods:{selectRating:function(t){var e=t.charAt(0);this.selectedRating=parseInt(e),this.dropDown=!this.dropDown,this.buttonText=t,this.$emit("selectRating",this.selectedRating)},filteredReviews:function(t){return this.reviews.filter((function(e){return e.rating===t}))}}},s=(n(848),n(140)),i=Object(s.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"drop_down"},[e("p",{staticClass:"text-14 FF_Rubik-light text-center cursor_pointer pt-1 mb-1",on:{click:function(e){t.dropDown=!t.dropDown}}},[t._v(t._s(t.buttonText))]),t._v(" "),t.dropDown?e("div",[e("p",{staticClass:"text-16 FF_Manrope text-center cursor_pointer",on:{click:function(e){return t.selectRating("All ratings")}}},[t._v("All ratings")]),t._v(" "),e("p",{staticClass:"text-16 FF_Manrope text-center grey--text mb-1 cursor_pointer",on:{click:function(e){return t.selectRating("1 star")}}},[t._v("1 star("+t._s(t.filteredReviews(1).length)+")")]),t._v(" "),e("p",{staticClass:"text-16 FF_Manrope text-center grey--text mb-1 cursor_pointer",on:{click:function(e){return t.selectRating("2 star")}}},[t._v("2 stars ("+t._s(t.filteredReviews(2).length)+")")]),t._v(" "),e("p",{staticClass:"text-16 FF_Manrope text-center grey--text mb-1 cursor_pointer",on:{click:function(e){return t.selectRating("3 star")}}},[t._v("3 stars ("+t._s(t.filteredReviews(3).length)+")")]),t._v(" "),e("p",{staticClass:"text-16 FF_Manrope text-center mb-1 cursor_pointer",on:{click:function(e){return t.selectRating("4 star")}}},[t._v("4 stars ("+t._s(t.filteredReviews(4).length)+")")]),t._v(" "),e("p",{staticClass:"text-16 FF_Manrope text-center grey--text mb-1 cursor_pointer",on:{click:function(e){return t.selectRating("5 star")}}},[t._v("5 stars ("+t._s(t.filteredReviews(5).length)+")")])]):t._e()])])}),[],!1,null,null,null);e.default=i.exports},848:function(t,e,n){"use strict";n(635)}}]);