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AIhC,cAAcO,QAAQ,cAAc,SAAS,gBAAe,MAAS,WAAWyB,EAAIc,QAAQ,EACz7D,EACIC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/product-quick-buy/Index.vue?6913","webpack:///./resources/area/web/default/js/components/catalog/product-quick-buy/Index.vue?e60f","webpack:///./resources/area/web/default/js/components/catalog/product-quick-buy/Index.vue?edc1","webpack:///./resources/area/web/default/js/components/catalog/product-quick-buy/Index.vue?120a"],"sourcesContent":["\nimport {Component, Vue} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\n\n@Component({\n  name: 'catalog-product-quick-buy',\n  components: ServiceContainer().getComponents()\n})\n\nexport default class extends Vue {\n  private get quickBuyModal(): object {\n    return this.$store.getters['CatalogProductView/getQuickBuyModal'];\n  }\n\n  private resetModal(): void {\n    this.$store.dispatch('CatalogProductView/setQuickBuyModal', {\n      isOpen: false,\n      product: null,\n    });\n  }\n\n  private updated(): void {\n    this.$nextTick(() => {\n      const el = document.getElementById('quickBuySlider');\n      if (el) {\n        new window.BlazeSlider(el, {\n          all: {\n            slidesToShow: 1,\n            slideGap: '0px',\n            loop: false,\n            fixedSlides: true,\n          },\n        });\n      }\n    });\n  }\n\n  private mounted(): void {\n    window.addEventListener('keyup', this.keydownHandler);\n  }\n\n  private beforeDestroy(): void {\n    window.removeEventListener('keyup', this.keydownHandler);\n  }\n\n  private keydownHandler(event: KeyboardEvent): void {\n    if (event.key === 'Escape') {\n      this.resetModal();\n    }\n  }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=00e4a5b8&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=ts&\"\nexport * from \"./Index.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=00e4a5b8&prod&scoped=true&lang=css&\"\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  \"00e4a5b8\",\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!./Index.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!./Index.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('portal',{attrs:{\"to\":\"modals\"}},[_c('transition',{attrs:{\"name\":\"fade\",\"appear\":\"\"}},[(_vm.quickBuyModal.isOpen && _vm.quickBuyModal.product)?_c('div',{staticClass:\"popup__holder\",on:{\"click\":function($event){return _vm.resetModal()}}},[_c('div',{staticClass:\"popup__holder-container --small\",on:{\"click\":function($event){$event.stopPropagation();}}},[_c('span',{staticClass:\"_title\"},[_c('span',{staticClass:\"hide-for-small-only\"},[_vm._v(_vm._s(_vm.quickBuyModal.product.name)+\" - \")]),_vm._v(_vm._s(_vm.$t('Add to cart')))]),_vm._v(\" \"),_c('button',{staticClass:\"_close\",on:{\"click\":function($event){return _vm.resetModal()}}}),_vm._v(\" \"),_c('div',{staticClass:\"_content\"},[_c('div',{staticClass:\"quick-buy__container\"},[_c('div',{staticClass:\"product__gallery\"},[_c('div',{staticClass:\"blaze-slider\",attrs:{\"id\":\"quickBuySlider\"}},[_c('div',{staticClass:\"blaze-container\"},[_c('div',{staticClass:\"blaze-track-container\"},[_c('div',{staticClass:\"blaze-track\"},_vm._l((_vm.quickBuyModal.product['media_gallery']),function(media){return _c('div',{staticClass:\"--image\"},[(media['type'] === 'image')?_c('img',{staticClass:\"lazyload\",attrs:{\"data-src\":media['dimensions']['252x252'],\"data-srcset\":`${media['dimensions']['406x406']} 2x`,\"alt\":_vm.quickBuyModal.product.name}}):_vm._e()])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"blaze-pagination\"})])]),_vm._v(\" \"),_c('div',{staticClass:\"product__information\"},[_c('span',{staticClass:\"product__name show-for-small-only\"},[_vm._v(_vm._s(_vm.quickBuyModal.product.name))]),_vm._v(\" \"),_c('catalog-product-list-price',{attrs:{\"price-incl-tax\":_vm.quickBuyModal.product['price_incl_tax'],\"final-price-incl-tax\":_vm.quickBuyModal.product['final_price_incl_tax']}}),_vm._v(\" \"),_c('catalog-product-list-add-to-cart',{attrs:{\"product\":_vm.quickBuyModal.product,\"size-select\":\"swatch\",\"is-quick-buy\":true}})],1)])])])]):_vm._e()])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","quickBuyModal","this","$store","getters","resetModal","dispatch","isOpen","product","updated","$nextTick","el","document","getElementById","window","BlazeSlider","all","slidesToShow","slideGap","loop","fixedSlides","mounted","addEventListener","keydownHandler","beforeDestroy","removeEventListener","event","key","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","attrs","staticClass","on","$event","stopPropagation","_v","_s","$t","_l","media","_e","staticRenderFns"],"sourceRoot":""}