(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{542:function(t,c,o){"use strict";var A=o(2),r=o(99).find,n=o(219),e="find",d=!0;e in[]&&Array(1)[e]((function(){d=!1})),A({target:"Array",proto:!0,forced:d},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(e)},547:function(t,c,o){t.exports={}},550:function(t,c,o){"use strict";o.r(c);o(542),o(42),o(11);var A={props:{cardData:{},showPricing:{type:Boolean,default:!1}},data:function(){return{}},computed:{comImg:function(){var t;return this.$utils.generateResizedImageUrl(null===(t=this.cardData.main)||void 0===t?void 0:t.image,300)},comBestIcon:function(){var t,c=null===(t=this.cardData.collection_detail)||void 0===t?void 0:t.find((function(t){return"Best Seller"===t.name}));return c?c.img:""}},methods:{goProduct:function(t){this.$router.push({name:"product-code",params:{code:t.product_code}})}}},r=(o(556),o(21)),component=Object(r.a)(A,(function(){var t=this,c=t._self._c;return c("nuxt-link",{staticClass:"card",attrs:{to:{name:"product-code",params:{code:t.cardData.product_code}}}},[c("figure",[c("div",{staticClass:"card-img"},[c("el-image",{staticClass:"card-img-1",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.comImg,fit:"cover"}}),t._v(" "),t.cardData.co2_uk_air&&t.cardData.co2_uk_sea?c("div",{staticClass:"co2-info"},[c("img",{staticClass:"co2-icon",attrs:{src:o(554),alt:"CO2"}}),t._v(" "),c("span",[t._v(t._s(t.cardData.co2_uk_sea||0)+" kg")]),t._v(" "),c("div"),t._v(" "),c("img",{staticClass:"co2-icon",attrs:{src:o(555),alt:"CO2"}}),t._v(" "),c("span",[t._v(t._s(t.cardData.co2_uk_air||0)+" kg")])]):t._e(),t._v(" "),t.comBestIcon?c("img",{staticClass:"best_icon",attrs:{src:t.comBestIcon}}):t._e(),t._v(" "),c("div",{staticClass:"cycle_icon"},t._l(t.cardData.cycle_icon,(function(t,o){return c("img",{key:o,attrs:{src:t.images}})})),0)],1),t._v(" "),t.showPricing?c("p",{staticClass:"show-pricing"},[t._v("Pricing")]):t._e(),t._v(" "),c("figcaption",{staticClass:"card-info"},[t.cardData.product_name&&t.cardData.product_name.length>40?[c("el-tooltip",{attrs:{content:t.cardData.product_name,placement:"top-start"}},[c("h1",[t._v(t._s(t.cardData.product_name))])])]:[c("h1",[t._v(t._s(t.cardData.product_name))])],t._v(" "),c("p",{staticClass:"card-info-point"},[t._v(t._s(t.cardData.product_code))]),t._v(" "),c("div",{staticClass:"card-info-icon"},t._l(t.cardData.icon,(function(t,o){return c("img",{key:o,attrs:{src:t.url}})})),0)],2)])])}),[],!1,null,"19cd839b",null);c.default=component.exports},554:function(t,c){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI+SURBVHgB7ZjrUcMwDIAVjv+wAR6hG5ANYIOGCcgGzQgwQdMJgAmaTtAwQbJB0wmEhB3i+OLEefRxXL47XQO2ZdWSJaUAMzOXxYORIKKgD2EZLjzPS+FSkHFb7GZNcg/nhjYN0J0IBnILw1lqz18khTHOp/aknhdwbgz3ioZxoY0nMJAbuHKcXUyn8Ax1VwntOaTxJheXPBhxmNPtjmEq0O229mULU8Anh6fD79rfxcW6q2KSHYzDhyoDiK7JfdPMbmzs0Knxx9J1/v+5xV2oeOKbfkeyoZNOYAJGGYiyxr6ShFCPVS6DOciYZWNzGEhvF7NRJKFKEweSyDCuRKixDGWaCvAUTQPWmwLe6GBJGYkynOenljm8dq/9HcAY1GnFaIc3jJryGcpazGuzlvVrbKjjrsatWoxK0CHJarqeO77oCvqAzb1e6cLBcaRO1RYCfh9FkeEG98X9jP3Q9oma5tlusd6ZHKfKaToq9Ry1f+XOi1Fejr+YgxOB9Qsk+qw1WywfJoZ0LjT9e9u8tkStdy0+TE+oPW+gL1h/pzjg0Hxl1525uNdaizmIaeE7yAsz9cs363wB2VwUY2r1xWn96QOrFuoRZEMgQKYDlm+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AAAASUVORK5CYII="},556:function(t,c,o){"use strict";o(547)}}]);
//# sourceMappingURL=341a112.js.map