exports.ids = [3];
exports.modules = {

/***/ 149:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 152:
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI+SURBVHgB7ZjrUcMwDIAVjv+wAR6hG5ANYIOGCcgGzQgwQdMJgAmaTtAwQbJB0wmEhB3i+OLEefRxXL47XQO2ZdWSJaUAMzOXxYORIKKgD2EZLjzPS+FSkHFb7GZNcg/nhjYN0J0IBnILw1lqz18khTHOp/aknhdwbgz3ioZxoY0nMJAbuHKcXUyn8Ax1VwntOaTxJheXPBhxmNPtjmEq0O229mULU8Anh6fD79rfxcW6q2KSHYzDhyoDiK7JfdPMbmzs0Knxx9J1/v+5xV2oeOKbfkeyoZNOYAJGGYiyxr6ShFCPVS6DOciYZWNzGEhvF7NRJKFKEweSyDCuRKixDGWaCvAUTQPWmwLe6GBJGYkynOenljm8dq/9HcAY1GnFaIc3jJryGcpazGuzlvVrbKjjrsatWoxK0CHJarqeO77oCvqAzb1e6cLBcaRO1RYCfh9FkeEG98X9jP3Q9oma5tlusd6ZHKfKaToq9Ry1f+XOi1Fejr+YgxOB9Qsk+qw1WywfJoZ0LjT9e9u8tkStdy0+TE+oPW+gL1h/pzjg0Hxl1525uNdaizmIaeE7yAsz9cs363wB2VwUY2r1xWn96QOrFuoRZEMgQKYDlm+Sz7YUpJJ6oNb7UG8q2Cu7Lh2NSlGWOVtTYJKhrA4LFVssPsnbAB3CxcDIooQ3y3E45foU7YavXU+wpKy/wpizUN84w25+Gws0ajhWdVnX4Zv2eBYjOUelLrGBVZzqL/U5yBiLSUfhqoPmhjAzc2X8ANlXpn4kNgy3AAAAAElFTkSuQmCC"

/***/ }),

/***/ 153:
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIuSURBVHgB7ViBVcIwEL36HIANzAY6QkfACewGsgHdgDIBbGA3ACcQJyhOgBucd3LBcC9JU8Di8/W/91+lTe5+7idpI8CAAQOiyOBKQMQRXXLiA/FObn8QN8R1lmWf0DdYFHFCXGEcDfEJ+oIImxJ32A35bSBgTpcp7MvPVnC5N3JlG7b2N1mxiQmjyzNxInEsOM47sSauOR5bKu0L4kzajTNPUBZWQjdshTbxVgb3pITx/TlxGZpjlN/QpZGfc/2wUCVeEytiTdycYJEF9yulQlFQm6XTb6wtfnD+rmmUj54AnMQo2qlwr5rzdFgSq5RVKe7ZxcG217pBrkbeSFUNJAL3C8Kc0Geh8ppQ41IaaKGLLkk7iMtVvqY1j4yo8AhFEdo6lxKEcY6ZpxCmSxwICF3BGeDJ74lZtQ481kCsPwBOE8Z2rpSwN9zvu506vnDlnOdGAh2CQgcEhH1vPSmdDYbRiNidumcgAQFhjEVqDG0dB6sxDN5EUzbbkDDe+HPoAjze+9hGu48VEhClgpOWOHblX0aYCu6+XmaexKMWYVP0vwbPE6aSNE7gcUKfkI32vWvgksBjq2sID2SK/mo1mPhBcKpA90umUqJiX8GXsTFBoDsPJ46oXcTG36lWQGCJcbCoqpdqBQSOVBWtqLXY31+1YhChvGAMDPgH8J3qcvg5F/SNVzqHLN0bRwLx+Mh3LTy6h6Ub9fBvrFQHPosL2P9T5xrgo2YJAwYMSMcXcTKvNRWzt4wAAAAASUVORK5CYII="

/***/ }),

/***/ 154:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_19cd839b_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(149);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_19cd839b_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_19cd839b_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_19cd839b_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_19cd839b_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 157:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Card.vue?vue&type=template&id=19cd839b&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('nuxt-link', {
    staticClass: "card",
    attrs: {
      "to": {
        name: 'product-code',
        params: {
          code: _vm.cardData.product_code
        }
      }
    }
  }, [_c('figure', [_c('div', {
    staticClass: "card-img"
  }, [_c('el-image', {
    staticClass: "card-img-1",
    staticStyle: {
      "width": "100%",
      "height": "100%"
    },
    attrs: {
      "src": _vm.comImg,
      "fit": "cover"
    }
  }), _vm._v(" "), _vm.cardData.co2_uk_air && _vm.cardData.co2_uk_sea ? _c('div', {
    staticClass: "co2-info"
  }, [_c('img', {
    staticClass: "co2-icon",
    attrs: {
      "src": __webpack_require__(152),
      "alt": "CO2"
    }
  }), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.cardData.co2_uk_sea || 0) + " kg")]), _vm._v(" "), _c('div'), _vm._v(" "), _c('img', {
    staticClass: "co2-icon",
    attrs: {
      "src": __webpack_require__(153),
      "alt": "CO2"
    }
  }), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.cardData.co2_uk_air || 0) + " kg")])]) : _vm._e(), _vm._v(" "), _vm.comBestIcon ? _c('img', {
    staticClass: "best_icon",
    attrs: {
      "src": _vm.comBestIcon
    }
  }) : _vm._e(), _vm._v(" "), _c('div', {
    staticClass: "cycle_icon"
  }, _vm._l(_vm.cardData.cycle_icon, function (item, index) {
    return _c('img', {
      key: index,
      attrs: {
        "src": item.images
      }
    });
  }), 0)], 1), _vm._v(" "), _vm.showPricing ? _c('p', {
    staticClass: "show-pricing"
  }, [_vm._v("Pricing")]) : _vm._e(), _vm._v(" "), _c('figcaption', {
    staticClass: "card-info"
  }, [_vm.cardData.product_name && _vm.cardData.product_name.length > 40 ? [_c('el-tooltip', {
    attrs: {
      "content": _vm.cardData.product_name,
      "placement": "top-start"
    }
  }, [_c('h1', [_vm._v(_vm._s(_vm.cardData.product_name))])])] : [_c('h1', [_vm._v(_vm._s(_vm.cardData.product_name))])], _vm._v(" "), _c('p', {
    staticClass: "card-info-point"
  }, [_vm._v(_vm._s(_vm.cardData.product_code))]), _vm._v(" "), _c('div', {
    staticClass: "card-info-icon"
  }, _vm._l(_vm.cardData.icon, function (item, index) {
    return _c('img', {
      key: index,
      attrs: {
        "src": item.url
      }
    });
  }), 0)], 2)])]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/Card.vue?vue&type=template&id=19cd839b&scoped=true

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Card.vue?vue&type=script&lang=js
/* harmony default export */ var Cardvue_type_script_lang_js = ({
  props: {
    cardData: {},
    showPricing: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  },
  computed: {
    comImg() {
      var _this$cardData$main;
      return this.$utils.generateResizedImageUrl((_this$cardData$main = this.cardData.main) === null || _this$cardData$main === void 0 ? void 0 : _this$cardData$main.image, 300);
    },
    comBestIcon() {
      var _this$cardData$collec;
      const bestSeller = (_this$cardData$collec = this.cardData.collection_detail) === null || _this$cardData$collec === void 0 ? void 0 : _this$cardData$collec.find(item => item.name === "Best Seller");
      return bestSeller ? bestSeller.img : '';
    }
  },
  methods: {
    goProduct(cardData) {
      this.$router.push({
        name: "product-code",
        params: {
          code: cardData.product_code
        }
      });
      // let routeData = this.$router.resolve({
      //   name: "product-code",
      //   params:{ code: cardData.product_code },
      // });
      // window.open(routeData.href, '_blank');
    }
  }
});
// CONCATENATED MODULE: ./components/Card.vue?vue&type=script&lang=js
 /* harmony default export */ var components_Cardvue_type_script_lang_js = (Cardvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/Card.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(154)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_Cardvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "19cd839b",
  "31b9daa8"
  
)

/* harmony default export */ var Card = __webpack_exports__["default"] = (component.exports);

/***/ })

};;
//# sourceMappingURL=card.js.map