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./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?8363","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?2b57","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?1384","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?9a45"],"sourcesContent":["\nimport {Component, Vue, Prop} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\n\n@Component({\n name: 'catalog-product-configuration',\n components: ServiceContainer().getComponents()\n})\n\nexport default class extends Vue {\n $refs: {\n offCanvasTrigger: HTMLButtonElement;\n };\n\n @Prop({default: false}) private readonly enableTooltip: boolean;\n @Prop({default: 1}) private qtyIncrement: number;\n @Prop() private readonly productData: object;\n @Prop({default: false}) private readonly isLoggedIn: boolean;\n @Prop({default: false}) private readonly isSalesForce: boolean;\n @Prop({required: true}) private sizeSortOrder!: Array;\n @Prop({default: true}) private showPurchasePrice!: boolean;\n @Prop({default: false}) private isBrandBlocked!: boolean;\n\n private _throttle: number;\n private showTooltip: boolean = false;\n protected qty: number = this.quantityMultiplier;\n private hasAddToCartSuccess: boolean = false;\n\n private get selectedProduct(): null | object {\n if (this.productData['product_type'] !== 'configurable') {\n return this.productData;\n }\n\n return this.$store.getters['CatalogConfigurableProduct/selectedProducts'].length === 1 ? this.$store.getters['CatalogConfigurableProduct/selectedProducts'][0] : null;\n }\n\n private get isAddToQuoteLoading(): boolean {\n return this.$store.getters['CheckoutQuote/getIsAddToQuoteLoading'];\n }\n\n private get selectedOptions(): Array {\n return this.$store.getters['CatalogConfigurableProduct/selectedOptions'];\n }\n\n private get selectedOptionAttributeCodes(): Array {\n return this.selectedOptions.length > 0 ?\n this.selectedOptions.map(option => option['attributeCode']) :\n [];\n }\n\n private get selectedProducts(): Array {\n return this.$store.getters['CatalogConfigurableProduct/selectedProducts'];\n }\n\n private get addedProduct(): null | object {\n if (this.productData['product_type'] !== 'configurable') {\n return this.productData;\n }\n\n return this.$store.getters['CatalogConfigurableProduct/selectedProducts'].length === 1 ?\n this.$store.getters['CatalogConfigurableProduct/selectedProducts'][0] :\n null;\n }\n\n private get selectedProductStock(): null | number {\n if (this.productData['product_type'] !== 'configurable') {\n return this.productData['frontend_stock'];\n }\n\n return this.selectedProducts.length === 1 ? this.selectedProducts[0]['frontend_stock'] : null;\n }\n\n private get quantityMultiplier(): number {\n return this.productData['product_type'] === 'simple' ?\n this.productData['ec_salesqty'] || 1 :\n this.selectedProducts.length === 1 ?\n (this.selectedProducts[0]['ec_salesqty'] || 1) :\n 1;\n }\n\n private get totalPrices(): number {\n return this.$store.getters['CatalogProduct/totalPrices'];\n }\n\n private get locale(): string {\n return window.Locale;\n }\n\n private addToCartTooltip(e): void {\n if ( ! this.isSaleable && this.enableTooltip && this.productData['product_type'] === 'configurable') {\n if (e.type === 'mouseenter') {\n this.showTooltip = true;\n if (this.$mobileDetect.mobile()) {\n (document.getElementsByClassName('product__option')[0] as HTMLElement).scrollIntoView({behavior: 'smooth', block: 'center'});\n }\n } else {\n clearTimeout(this._throttle);\n this._throttle = window.setTimeout(() => {\n this.showTooltip = false;\n }, 1000);\n }\n }\n }\n\n private get isNotAvailableForOrder(): boolean {\n return (1 === this.productData['ec_salesforce_only'] && ! this.isSalesForce);\n }\n\n private get isSaleable(): boolean {\n return this.$store.getters['CatalogProduct/isSaleable'] && (this.productData['in_stock'] || ! this.productData['manage_stock']);\n }\n\n private get addToCartErrorMessage(): null | string {\n return this.$store.state.CheckoutQuote.addToQuoteMessage;\n }\n\n private async productAddToCart(): Promise {\n let addToCartPayload = {};\n\n if (this.productData['product_type'] === 'configurable' && this.selectedProducts.length > 0) {\n addToCartPayload = {\n sku: this.selectedProducts[0]['sku'],\n product_id: this.selectedProducts[0]['product_id'],\n quantity: this.qty,\n parent_sku: this.productData['sku'],\n selected_options: this.productData['super_attribute_codes'].map((c, i) => {\n return {\n option_id: this.productData['super_attribute_ids'][i],\n option_value: this.selectedProducts[0][`${c}_option_id`],\n }\n }),\n };\n } else {\n addToCartPayload = {\n sku: this.productData['sku'],\n product_id: this.productData['product_id'],\n quantity: this.qty,\n };\n }\n\n const response = await this.$store.dispatch('CheckoutQuote/addBulkProductsToQuote', {\n items: [addToCartPayload]\n });\n\n if (response) {\n this.hasAddToCartSuccess = true;\n this.$refs.offCanvasTrigger.click();\n\n setTimeout(() => {\n this.hasAddToCartSuccess = false;\n }, 5000);\n }\n }\n\n private created(): void {\n this.$store.dispatch('CatalogProduct/getProductData', this.productData);\n }\n}\n","import { render, staticRenderFns } from \"./ProductConfiguration.vue?vue&type=template&id=40297de1&scoped=true&\"\nimport script from \"./ProductConfiguration.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductConfiguration.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProductConfiguration.vue?vue&type=style&index=0&id=40297de1&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 \"40297de1\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-26.use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductConfiguration.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-26.use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductConfiguration.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"product__configuration\"},[_c('catalog-product-price',{attrs:{\"show-from-label\":_vm.productData['product_type'] === 'configurable',\"is-logged-in\":_vm.isLoggedIn,\"show-purchase-price\":_vm.showPurchasePrice,\"product\":_vm.productData}}),_vm._v(\" \"),(_vm.productData['product_type'] !== 'configurable')?_c('div',{staticClass:\"product__attributes\"},[_c('catalog-product-attributes')],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"option__attributes--container\"},[_c('div',{staticClass:\"product__option\"},[_c(`catalog-product-${_vm.productData['product_type']}`,{tag:\"component\",attrs:{\"size-sort-order\":_vm.sizeSortOrder,\"is-logged-in\":_vm.isLoggedIn}})],1),_vm._v(\" \"),(_vm.productData['product_type'] === 'configurable')?_c('div',{staticClass:\"product__attributes\"},[_c('catalog-product-attributes')],1):_vm._e()]),_vm._v(\" \"),(_vm.isLoggedIn && ! _vm.isBrandBlocked)?_c('form',{attrs:{\"id\":\"product_addtocart_form\",\"enctype\":\"multipart/form-data\",\"method\":\"post\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.productAddToCart()}}},[_c('div',{ref:\"addToCart\",staticClass:\"product__add-to-cart-container\",on:{\"mouseenter\":function($event){return _vm.addToCartTooltip($event)},\"mouseleave\":function($event){return _vm.addToCartTooltip($event)}}},[_c('div',{staticClass:\"product__qty\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.qty),expression:\"qty\",modifiers:{\"number\":true}}],attrs:{\"name\":\"qty\",\"type\":\"hidden\",\"disabled\":!_vm.isSaleable || _vm.isNotAvailableForOrder || _vm.isAddToQuoteLoading},domProps:{\"value\":(_vm.qty)},on:{\"input\":function($event){if($event.target.composing)return;_vm.qty=_vm._n($event.target.value)},\"blur\":function($event){return _vm.$forceUpdate()}}}),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.qty),expression:\"qty\",modifiers:{\"number\":true}}],attrs:{\"name\":\"qty\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return _vm._n(val)}); _vm.qty=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((10),function(qty){return _c('option',{domProps:{\"value\":qty * _vm.quantityMultiplier}},[_vm._v(\"\\n \"+_vm._s(qty * _vm.quantityMultiplier)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"add-to-cart__holder\"},[_c('button',{staticClass:\"--button\",class:{ '--loading': _vm.isAddToQuoteLoading },attrs:{\"disabled\":!_vm.isSaleable || _vm.isNotAvailableForOrder || _vm.isAddToQuoteLoading}},[_vm._v(_vm._s(_vm.$t('product-addtocart')))]),_vm._v(\" \"),_c('div',[(_vm.selectedProductStock !== null)?_c('span',{staticClass:\"--stock\",class:{'--green': _vm.selectedProductStock >= 10}},[(_vm.selectedProductStock === 0)?[_vm._v(\"\\n \"+_vm._s(_vm.$t('product-out-of-stock'))+\"\\n \")]:[_vm._v(\"\\n \"+_vm._s(_vm.$t('product-stock', {stock: _vm.selectedProductStock >= 10 ? '10+' : _vm.selectedProductStock}))+\"\\n \")]],2):_vm._e(),_vm._v(\" \"),(null !== _vm.selectedProduct && _vm.selectedProduct.hasOwnProperty('next_replenishment'))?_c('span',{staticClass:\"--delivery-date\"},[_vm._v(_vm._s(_vm.$t('quickbuy-deliverytime'))+\": \"),_c('strong',[_vm._v(_vm._s(_vm.selectedProduct['next_replenishment']))])]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"add-to-cart__message\"},[_c('div',{staticClass:\"messages\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTooltip),expression:\"showTooltip\"}],staticClass:\"global__message --margin --error\",domProps:{\"textContent\":_vm._s(_vm.$t('Choose an option'))}})]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isSaleable && _vm.productData['product_type'] !== 'configurable'),expression:\"!isSaleable && productData['product_type'] !== 'configurable'\"}],staticClass:\"global__message --margin --error\"},[_vm._v(_vm._s(_vm.$t('insufficient-quantity')))]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.addToCartErrorMessage)?_c('span',{staticClass:\"global__message --margin --error\",domProps:{\"textContent\":_vm._s(_vm.addToCartErrorMessage)}}):_vm._e()])],1)]):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.isBrandBlocked)?_c('span',{staticClass:\"global__message--bg --margin --error\"},[_vm._v(_vm._s(_vm.$t('product-brand-not-available')))]):_vm._e()]),_vm._v(\" \"),_c('button',{ref:\"offCanvasTrigger\",attrs:{\"data-toggle\":\"add-to-cart-off-canvas\"}}),_vm._v(\" \"),_c('off-canvas',{staticClass:\"add-to-cart__off-canvas\",attrs:{\"id\":\"add-to-cart-off-canvas\",\"title\":\"added-to-cart\"}},[(_vm.addedProduct)?_c('div',{staticClass:\"product\"},[_c('div',{staticClass:\"product__image\"},[_c('img',{attrs:{\"src\":`${_vm.$solarCdnBaseUrl}/cdn/resize-extended/rs:fill/w:100/h:100/extend:true/background:255:255:255/path/media/catalog/product${_vm.addedProduct['image']}`,\"alt\":_vm.productData['name']}})]),_vm._v(\" \"),_c('div',{staticClass:\"product__info\"},[_c('h2',[_vm._v(_vm._s(_vm.qty)+\"x \"+_vm._s(_vm.addedProduct['ec_brand'])+\" \"+_vm._s(_vm.addedProduct['name']))]),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.productData['sku']))]),_vm._v(\" \"),_vm._l((_vm.selectedOptionAttributeCodes),function(attribute){return _c('span',[_vm._v(_vm._s(_vm.addedProduct[attribute]))])})],2),_vm._v(\" \"),(_vm.showPurchasePrice)?_c('span',{staticClass:\"product__price\"},[_vm._v(\"\\n \"+_vm._s((_vm.addedProduct['custom_price'] > 0 ? _vm.addedProduct['custom_price'] : _vm.totalPrices['totalPriceInclTax']).priceFormat(_vm.locale))+\"\\n \")]):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"--actions\"},[_c('button',{staticClass:\"--button --transparent\",attrs:{\"aria-label\":\"Close menu\",\"data-close\":\"\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(_vm._s(_vm.$t('cart-continue-shopping-footer')))])]),_vm._v(\" \"),_c('a',{staticClass:\"--button\",attrs:{\"href\":\"/checkout/cart\"}},[_vm._v(_vm._s(_vm.$t('cart-go-to-cart')))])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","showTooltip","qty","this","quantityMultiplier","hasAddToCartSuccess","selectedProduct","productData","$store","getters","length","isAddToQuoteLoading","selectedOptions","selectedOptionAttributeCodes","map","option","selectedProducts","addedProduct","selectedProductStock","totalPrices","locale","window","Locale","addToCartTooltip","e","isSaleable","enableTooltip","type","$mobileDetect","mobile","document","getElementsByClassName","scrollIntoView","behavior","block","clearTimeout","_throttle","setTimeout","isNotAvailableForOrder","isSalesForce","addToCartErrorMessage","state","CheckoutQuote","addToQuoteMessage","productAddToCart","addToCartPayload","sku","product_id","quantity","parent_sku","selected_options","c","i","option_id","option_value","dispatch","items","$refs","offCanvasTrigger","click","created","Prop","default","required","Array","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","staticClass","attrs","isLoggedIn","showPurchasePrice","_v","_e","tag","sizeSortOrder","isBrandBlocked","on","$event","preventDefault","ref","directives","rawName","value","expression","modifiers","domProps","target","composing","_n","$forceUpdate","$$selectedVal","prototype","filter","call","options","o","selected","val","_value","multiple","_l","_s","class","$t","stock","hasOwnProperty","$solarCdnBaseUrl","attribute","priceFormat","staticRenderFns"],"sourceRoot":""}