d37c72f.js.map 7.0 KB

1
  1. {"version":3,"sources":["webpack:///./components/Card.vue?0f98","webpack:///./components/Card.vue","webpack:///./components/Card.vue?197f","webpack:///./components/Card.vue?55cd","webpack:///./node_modules/core-js/modules/es.array.find.js","webpack:///./components/Card.vue?65dc"],"names":["module","exports","props","cardData","showPricing","type","Boolean","default","data","computed","comImg","_this$cardData$main","this","$utils","generateResizedImageUrl","main","image","comBestIcon","_this$cardData$collec","bestSeller","collection_detail","find","item","name","img","methods","addCompareList","id","e","_this","$axios","post","compare_keys","then","res","code","$store","dispatch","$emit","target","$message","message","msg","catch","goProduct","$router","push","params","product_code","component","_vm","_c","_self","staticClass","attrs","staticStyle","_v","_e","_l","cycle_icon","index","key","images","_s","product_name","icon","url","$","$find","addToUnscopables","FIND","SKIPS_HOLES","Array","proto","forced","callbackfn","arguments","length","undefined"],"mappings":"8EACAA,EAAOC,QAAU,CAAC,C,6DCDlB,ICAiP,EDClO,CACbC,MAAO,CACLC,SAAU,CAAC,EACXC,YAAa,CAAEC,KAAMC,QAASC,SAAS,IAEzCC,KAAI,WACF,MAAO,CAAC,CACV,EACAC,SAAS,CACPC,OAAM,WAAE,IAAAC,EACN,OAAOC,KAAKC,OAAOC,wBAA0C,QAAnBH,EAACC,KAAKT,SAASY,YAAI,IAAAJ,OAAA,EAAlBA,EAAoBK,MAAM,IACvE,EACAC,YAAW,WAAE,IAAAC,EACLC,EAA4C,QAAlCD,EAAGN,KAAKT,SAASiB,yBAAiB,IAAAF,OAAA,EAA/BA,EAAiCG,MAAK,SAAAC,GAAI,MAAkB,gBAAdA,EAAKC,IAAsB,IAC5F,OAAOJ,EAAaA,EAAWK,IAAM,EACvC,GAEFC,QAAS,CACPC,eAAc,SAACC,EAAIC,GAAG,IAAAC,EAAA,KACpBjB,KAAKkB,OACFC,KAAK,mBAAoB,CACxBJ,KACAK,aAAc,SAEfC,MAAK,SAACC,GACY,IAAbA,EAAIC,MACNN,EAAKO,OAAOC,SAAS,kBACrBR,EAA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H,EAAIM,GAAGN,EAAIa,GAAGb,EAAI/C,SAAS6C,iBAAiBE,EAAIM,GAAG,KAAKL,EAAG,MAAM,CAACE,YAAY,kBAAkBH,EAAIQ,GAAIR,EAAI/C,SAAS8D,MAAM,SAAS3C,EAAKsC,GAAO,OAAOT,EAAG,MAAM,CAACU,IAAID,EAAMN,MAAM,CAAC,IAAMhC,EAAK4C,MAAM,IAAG,QAC3jC,GACsB,IEUpB,EACA,KACA,WACA,MAIa,UAAAjB,U,0CClBf,IAAIkB,EAAI,EAAQ,GACZC,EAAQ,EAAQ,IAAgC/C,KAChDgD,EAAmB,EAAQ,KAE3BC,EAAO,OACPC,GAAc,EAIdD,IAAQ,IAAIE,MAAM,GAAGF,IAAM,WAAcC,GAAc,CAAO,IAIlEJ,EAAE,CAAE5B,OAAQ,QAASkC,OAAO,EAAMC,OAAQH,GAAe,CACvDlD,KAAM,SAAcsD,GAClB,OAAOP,EAAMxD,KAAM+D,EAAYC,UAAUC,OAAS,EAAID,UAAU,QAAKE,EACvE,IAIFT,EAAiBC,E,mCCrBjB,M","file":"d37c72f.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","\nexport default {\n props: {\n cardData: {},\n showPricing: { type: Boolean, default: false },\n },\n data() {\n return {};\n },\n computed:{\n comImg(){\n return this.$utils.generateResizedImageUrl(this.cardData.main?.image,300)\n },\n comBestIcon(){\n const bestSeller = this.cardData.collection_detail?.find(item => item.name === \"Best Seller\");\n return bestSeller ? bestSeller.img : '';\n }\n },\n methods: {\n addCompareList(id, e) {\n this.$axios\n .post(\"home/compare_add\", {\n id,\n compare_keys: \"keys\",\n })\n .then((res) => {\n if (res.code === 1) {\n this.$store.dispatch(\"getCompareList\");\n this.$emit(\"addCompare\", e.target);\n } else {\n this.$message({\n message: res.msg,\n type: \"warning\",\n });\n }\n })\n .catch(() => {});\n },\n goProduct(cardData) {\n this.$router.push({\n name: \"product-code\",\n params: { code: cardData.product_code },\n });\n // let routeData = this.$router.resolve({\n // name: \"product-code\",\n // params:{ code: cardData.product_code },\n // });\n // window.open(routeData.href, '_blank');\n },\n },\n};\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Card.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Card.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Card.vue?vue&type=template&id=0c1bd2af&scoped=true\"\nimport script from \"./Card.vue?vue&type=script&lang=js\"\nexport * from \"./Card.vue?vue&type=script&lang=js\"\nimport style0 from \"./Card.vue?vue&type=style&index=0&id=0c1bd2af&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0c1bd2af\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\n// eslint-disable-next-line es/no-array-prototype-find -- testing\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","export * from \"-!../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../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=0c1bd2af&prod&lang=scss&scoped=true\""],"sourceRoot":""}