(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{535:function(t,c,r){t.exports={}},540:function(t,c,r){"use strict";r.r(c);r(545),r(39),r(11);var o={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:{addCompareList:function(t,c){var r=this;this.$axios.post("home/compare_add",{id:t,compare_keys:"keys"}).then((function(t){1===t.code?(r.$store.dispatch("getCompareList"),r.$emit("addCompare",c.target)):r.$message({message:t.msg,type:"warning"})})).catch((function(){}))},goProduct:function(t){this.$router.push({name:"product-code",params:{code:t.product_code}})}}},e=(r(547),r(22)),component=Object(e.a)(o,(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.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,r){return c("img",{key:r,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"},[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,r){return c("img",{key:r,attrs:{src:t.url}})})),0)])])])}),[],!1,null,"0c1bd2af",null);c.default=component.exports},545:function(t,c,r){"use strict";var o=r(2),e=r(83).find,n=r(149),d="find",l=!0;d in[]&&Array(1)[d]((function(){l=!1})),o({target:"Array",proto:!0,forced:l},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n(d)},547:function(t,c,r){"use strict";r(535)}}]);
//# sourceMappingURL=7d7a086.js.map