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EAAAA,EAAAA,IAAM,cAAY,sCA5BFxB,GAAqBoB,EAAAA,EAAAA,IAAA,EAHzCK,EAAAA,EAAAA,IAAU,CACPC,KAAM,2BAEW1B,G,UCVmd,I,eCOpe2B,GAAY,OACd,EACA7C,EACAe,GACA,EACA,KACA,KACA,MAIF,QAAe8B,EAAiB,O","sources":["webpack://website-js/./src/components/product-details/DetailsSpecifications.vue","webpack://website-js/./src/components/product-details/DetailsSpecifications.vue?7551","webpack://website-js/./src/components/product-details/DetailsSpecifications.vue?c85f","webpack://website-js/./src/components/product-details/DetailsSpecifications.vue?b8cc"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('table',{staticClass:\"product-specifications uk-table uk-table-hover uk-table-divider uk-table-small uk-width-large@s uk-text-nowrap\"},[_c('tbody',_vm._l((_vm.specificationsList),function(item,idx){return _c('tr',{key:idx},[_c('td',[_vm._v(_vm._s(item.key))]),_c('td',[_vm._v(_vm._s(item.value))])])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport ProductDetailsModule from '@/store/modules/ProductDetailsModule';\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport ProductService from '../../services/ProductService';\r\n\r\nconst productService: ProductService = new ProductService();\r\n\r\n@Component({\r\n    name: 'DetailsSpecifications',\r\n})\r\nexport default class DetailsSpecifications extends Vue {\r\n    @Prop({ type: Object, required: true}) fallback: { [key: string]: string };\r\n\r\n    private model: { [key: string]: { [key: string]: string } } = {};\r\n\r\n    get variantid(): string {\r\n        if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n            return ProductDetailsModule.SELECTED_VARIANT?.sku;\r\n        }\r\n        return null;\r\n    }\r\n\r\n    get specifications(): { [key: string]: string } {\r\n        if (this.variantid)\r\n            return this.model?.[this.variantid] ?? {};\r\n            \r\n        return this.fallback;\r\n    }\r\n\r\n    get specificationsList(): any {\r\n        return Object.keys(this.specifications).map(key => {\r\n            return {\r\n                key: key,\r\n                value: this.specifications[key],\r\n            }\r\n        });\r\n    }\r\n\r\n    @Watch(\"variantid\")\r\n    private async onVariantIdChange() {\r\n        if (this.variantid && !this.model?.[this.variantid])\r\n            Vue.set(this.model, this.variantid, await productService.getSpecifications(this.variantid));\r\n    }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DetailsSpecifications.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DetailsSpecifications.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DetailsSpecifications.vue?vue&type=template&id=3e5af0ae&\"\nimport script from \"./DetailsSpecifications.vue?vue&type=script&lang=ts&\"\nexport * from \"./DetailsSpecifications.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","_l","specificationsList","item","idx","key","_v","_s","value","staticRenderFns","productService","ProductService","DetailsSpecifications","Vue","constructor","args","_defineProperty","variantid","ProductDetailsModule","VARIANTS","length","SELECTED_VARIANT","sku","specifications","model","fallback","Object","keys","map","async","set","getSpecifications","__decorate","Prop","type","required","Watch","Component","name","component"],"sourceRoot":""}