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EAAG,IAAI,CAACG,YAAY,WAAWC,MAAM,CAAC,KAAO,mBAAmB,CAACL,EAAIQ,GAAGR,EAAIsC,GAAGtC,EAAIwC,GAAG,4BAA4B,EAC76L,EACIM,EAAkB,E","sources":["webpack:///./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?ff4b"],"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 showFromLabel(): boolean {\n if (this.productData['product_type'] !== 'configurable') {\n return false;\n }\n return new Set(this.selectedProducts.map(product =>\n product['custom_price'] > 0 ? product['custom_price'] : this.totalPrices['totalPriceInclTax']\n )).size > 1;\n }\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=1bc6f968&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=1bc6f968&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 \"1bc6f968\",\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.showFromLabel,\"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","showFromLabel","productData","Set","selectedProducts","map","product","totalPrices","size","selectedProduct","$store","getters","length","isAddToQuoteLoading","selectedOptions","selectedOptionAttributeCodes","option","addedProduct","selectedProductStock","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":""}