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YAAY,kBAAkB,CAACH,EAAG,OAAO,CAACG,YAAY,uBAAuB,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,mBAAmB,OAAOP,EAAIK,GAAG,KAAKJ,EAAG,KAAKD,EAAIQ,GAAIR,EAA2B,yBAAE,SAASS,GAAe,OAAOR,EAAG,KAAK,CAACA,EAAG,OAAO,CAACD,EAAIK,GAAG,aAAaL,EAAIM,GAAGG,EAAqB,OAAG,cAAeA,EAAwB,QAAER,EAAG,SAAS,CAACS,MAAM,CAAC,cAAc,yBAAyBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIT,WAAWkB,EAAqB,MAAGA,EAAuB,QAAE,IAAI,CAACR,EAAG,IAAI,CAACS,MAAM,CAAC,KAAO,UAAU,cAAc,0BAA0B,CAACV,EAAIK,GAAG,SAASL,EAAIa,OAAOb,EAAIK,GAAG,KAAKJ,EAAG,OAAO,CAACa,SAAS,CAAC,YAAcd,EAAIM,GAAGG,EAAqB,WAAO,IAAG,KAAKT,EAAIK,GAAG,KAAKJ,EAAG,aAAa,CAACS,MAAM,CAAC,GAAK,wBAAwB,MAAQV,EAAI5B,QAAQC,QAAQ,CAAC4B,EAAG,MAAM,CAACG,YAAY,oCAAoCU,SAAS,CAAC,UAAYd,EAAIM,GAAGN,EAAI5B,QAAQA,eAAe,EAC3+B,EACI2C,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/product/ProductSpecificationsTable.vue?fb19","webpack:///./resources/area/web/default/js/components/catalog/product/ProductSpecificationsTable.vue","webpack:///./resources/area/web/default/js/components/catalog/product/ProductSpecificationsTable.vue?eece","webpack:///./resources/area/web/default/js/components/catalog/product/ProductSpecificationsTable.vue?1b14"],"sourcesContent":["\nimport {Component, Prop, Vue} from 'vue-property-decorator';\nimport vToolTip from 'v-tooltip';\n\nVue.use(vToolTip);\n\n@Component({\n name: 'catalog-product-specifications-table',\n components: {\n 'off-canvas': () => import(/* webpackChunkName: \"off-canvas\" */ './../../OffCanvas.vue'),\n }\n})\n\nexport default class extends Vue {\n @Prop({required: true}) readonly initialSpecifications: Array;\n @Prop({default: []}) readonly dynamicSpecificationAttributes: Array;\n\n private specifications: Array = [];\n private tooltip: object = {\n title: '',\n tooltip: '',\n };\n\n private get selectedProduct(): null | object {\n const selectedProducts = this.$store.getters['CatalogConfigurableProduct/selectedProducts'];\n return selectedProducts.length === 1 ? selectedProducts[0] : null;\n }\n\n private get specificationsWithValue(): Array {\n if (null === this.selectedProduct || ! this.dynamicSpecificationAttributes.length) {\n return this.specifications.filter(s => null !== s['value']);\n }\n\n let specifications = this.specifications;\n\n this.dynamicSpecificationAttributes.forEach(a => {\n if (this.selectedProduct.hasOwnProperty(a)) {\n const spec = specifications.find(s => s['attribute'] === a);\n if (spec) spec['value'] = this.selectedProduct[a];\n }\n });\n\n return specifications.filter(s => null !== s['value']);\n }\n\n private created(): void {\n this.specifications = this.initialSpecifications;\n }\n\n private setTooltip(title, tooltip): void {\n this.tooltip = {\n title: title,\n tooltip: tooltip\n };\n }\n}\n","import { render, staticRenderFns } from \"./ProductSpecificationsTable.vue?vue&type=template&id=f2873b6e&\"\nimport script from \"./ProductSpecificationsTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductSpecificationsTable.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-6.use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSpecificationsTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-6.use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSpecificationsTable.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"product__specs\"},[_c('span',{staticClass:\"hide-for-small-only\"},[_vm._v(_vm._s(_vm.$t('Specifications'))+\":\")]),_vm._v(\" \"),_c('ul',_vm._l((_vm.specificationsWithValue),function(specification){return _c('li',[_c('span',[_vm._v(\"\\n \"+_vm._s(specification['label'])+\"\\n \"),(specification['tooltip'])?_c('button',{attrs:{\"data-toggle\":\"offCanvas-specs-popup\"},on:{\"click\":function($event){return _vm.setTooltip(specification['label'], specification['tooltip'])}}},[_c('i',{attrs:{\"role\":\"tooltip\",\"data-toggle\":\"offCanvas-specs-popup\"}},[_vm._v(\"i\")])]):_vm._e()]),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(specification['value'])}})])}),0)]),_vm._v(\" \"),_c('off-canvas',{attrs:{\"id\":\"offCanvas-specs-popup\",\"title\":_vm.tooltip.title}},[_c('div',{staticClass:\"specification__off-canvas --table\",domProps:{\"innerHTML\":_vm._s(_vm.tooltip.tooltip)}})])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","use","specifications","tooltip","title","selectedProduct","selectedProducts","this","$store","getters","length","specificationsWithValue","dynamicSpecificationAttributes","filter","s","forEach","a","hasOwnProperty","spec","find","created","initialSpecifications","setTooltip","Prop","required","Array","default","Component","name","components","render","_vm","_c","_self","_setupProxy","staticClass","_v","_s","$t","_l","specification","attrs","on","$event","_e","domProps","staticRenderFns"],"sourceRoot":""}