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MAAM,CAAC,SAAWT,EAAIvJ,kBAAkB,KAAO,UAAUmL,GAAG,CAAC,MAAQ5B,EAAIxH,2BAA2BwH,EAAIiB,GAAG,KAAMjB,EAAqB,kBAAEC,EAAG,OAAO,CAACO,YAAY,wCAAwCkB,SAAS,CAAC,YAAc1B,EAAImB,GAAGnB,EAAIrK,GAAGqK,EAAIhJ,2BAA2BgJ,EAAIgB,OAAOhB,EAAIgB,OAAOhB,EAAIgB,KAAKhB,EAAIiB,GAAG,KAAKhB,EAAG,SAAS,CAACM,IAAI,iBAAiBC,YAAY,OAAOC,MAAM,CAAC,cAAc,yBAAyBT,EAAIiB,GAAG,KAAKhB,EAAG,6BAA6B,CAACQ,MAAM,CAAC,2BAA2BT,EAAIwC,4BAA4B,EACxhI,EACIC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?8363","webpack:///./resources/area/web/default/js/helpers/catalog/product/delivery/DeliveryPromiseResolver.ts","webpack:///./resources/area/web/default/js/shared/helpers/enhanced-ecommerce/index.ts","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?2b57","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?856c","webpack:///./resources/area/web/default/js/components/catalog/product/ProductConfiguration.vue?4e11"],"sourcesContent":["\nimport {TranslateResult} from 'vue-i18n';\nimport {ToggleButton} from 'vue-js-toggle-button';\nimport {Component, Prop, Provide, Vue, Watch} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\nimport {CartEvents, SolarDataLayer, WishlistEvents} from '@flashpointbv/solar-datalayer/dist';\nimport {ValidationObserver} from \"vee-validate\";\nimport DeliveryPromiseResolver from \"../../../helpers/catalog/product/delivery/DeliveryPromiseResolver\";\nimport {addProductDetail} from '../../../shared/helpers/enhanced-ecommerce';\n\n@Component({\n name: 'catalog-product-configuration',\n components: {\n ...ServiceContainer().getComponents(),\n 'catalog-product-custom-options': () => import(/* webpackChunkName: \"catalog-product-custom-options\" */ './../product/custom-options/CustomOptions.vue'),\n 'catalog-product-tier-prices': () => import(/* webpackChunkName: \"catalog-product-tier-prices\" */ './TierPrices.vue'),\n 'catalog-product-relation': () => import(/* webpackChunkName: \"catalog-product-relation\" */ './ProductRelation.vue'),\n ToggleButton,\n ValidationObserver\n }\n})\n\nexport default class extends Vue {\n $refs!: {\n addToCartPopup: HTMLElement;\n addToCartForm: InstanceType;\n }\n\n @Prop({default: () => null}) private customer: object\n\n @Prop({default: 'field'}) private readonly qtyType: string;\n @Prop({default: false}) private readonly enableTooltip: boolean;\n @Prop({default: 1}) private qtyIncrement: number;\n @Prop({default: false}) private readonly hasSizeChart: boolean;\n @Prop({default: null}) private readonly sizeChartInformation: null | object;\n @Prop({default: false}) private readonly hideDeliveryPromise: boolean;\n\n @Prop() private readonly productData!: object;\n @Prop() private readonly bundleProducts: null | Array;\n @Prop({default: null}) private readonly bundleSizeCharts: null | object;\n @Prop() private readonly customOptionsBlock: null | object;\n @Prop({required: true, default: []}) private readonly relationProducts: Array;\n @Prop() private readonly tierPrices: null | object;\n @Prop() private readonly extraTierPriceContent: string;\n @Prop({default: null}) readonly tweakwiseRecommendation!: null | object;\n @Prop({default: []}) private readonly productBreadcrumbs!: Array;\n\n @Provide() productEntity: object = this.productData\n\n private _throttle: number;\n private showTooltip: boolean = false;\n private addToCartIsLoading: boolean = false;\n private maxAllowedQty: number = 50;\n private ready: boolean = false;\n private showData: boolean = false;\n\n private deliveryPromiseClass: string = '';\n private deliveryPromiseMessage: string = '';\n\n private get categoryNames(): Array {\n return this.productBreadcrumbs.map(breadcrumb => breadcrumb['label']).slice(0, -1) || [];\n }\n\n private get categoryIds(): Array {\n return this.productBreadcrumbs.map(breadcrumb => breadcrumb['identifier']).slice(0, -1) || [];\n }\n\n @Provide() categoryNameGroup: Array = this.productBreadcrumbs;\n\n private get qty(): number {\n return this.$store.getters['CatalogProductView/getQty'] || 1;\n }\n\n private set qty(value: number) {\n this.$store.dispatch('CatalogProductView/setQty', {\n value: value,\n productId: this.selectedProduct['product_id'],\n });\n\n this.calculateDeliveryPromise();\n }\n\n private get buttonText(): TranslateResult {\n return this.productData['product_type'] === 'bundle' ?\n this.$t('Add set to cart') :\n this.$t('Add to cart');\n }\n\n private get isSaleable(): boolean {\n return this.$store.getters['CatalogProduct/isSaleable'];\n }\n\n private get isInStock(): boolean {\n return Boolean(this.productData['status_in_stock']) && Boolean(this.productData['is_in_stock']);\n }\n\n private get showTierPrices(): boolean{\n return this.tierPrices && (this.productData.hasOwnProperty('hide_tierprices') == false || this.productData['hide_tierprices'] == 0);\n }\n\n private get hasAvailableOptions(): boolean {\n if (this.productData['product_type'] === 'configurable') {\n return (this.productData['virtual_products'] || []).length > 0;\n }\n\n return true;\n }\n\n private get isOnWishlist(): boolean {\n return this.$store.getters['CustomerWishlist/wishlistItems'].findIndex(\n i => `${this.productData['product_id']}` === `${i['product_id']}`\n ) >= 0;\n }\n\n private get availableStock(): number {\n if ( ! this.selectedProduct || ! this.selectedProduct['is_in_stock']) {\n return 0;\n }\n\n if (this.selectedProduct['min_qty'] > 0 && this.selectedProduct['backorders']) {\n return this.selectedProduct['salable_qty'] || this.maxAllowedQty;\n }\n\n if (this.selectedProduct['backorders'] && this.selectedProduct['min_qty'] === 0) {\n return this.maxAllowedQty;\n }\n\n if ( ! this.selectedProduct['backorders'] && this.selectedProduct['qty'] < this.maxAllowedQty) {\n return this.selectedProduct['qty'];\n }\n\n return this.maxAllowedQty;\n }\n\n private get selectedOptions(): Array {\n return this.$store.getters['CatalogConfigurableProduct/selectedOptions'];\n }\n\n private get isWishlistLoading(): boolean {\n return this.$store.state.CustomerWishlist.isLoading;\n }\n\n private get hasAddToCartError(): boolean {\n return this.$store.state.CheckoutCart.addToCartError;\n }\n\n private get addToCartErrorMessage(): string {\n return this.$store.state.CheckoutCart.cartMessage;\n }\n\n private get selectedProduct(): null | object {\n if (this.productData['product_type'] === 'configurable') {\n const selectedProduct = this.productData['virtual_products'].filter(\n p => this.selectedOptions.every(\n o => p[`${o['attributeCode']}_option_id`] === parseInt(o['selectedValue'])\n )\n );\n\n return selectedProduct[0] || null;\n }\n\n return this.productData;\n }\n\n private get personalizationExtraDelivery(): any {\n const options = this.$store.getters['CatalogProductPersonalisation/getPersonalisationOptionsActive'][1] || {};\n\n if ( ! options.hasOwnProperty(this.productData['product_id'])) {\n return 0;\n }\n\n let optionArray = Object.values(options[this.productData['product_id']]);\n\n return optionArray.reduce((n, {delayed_delivery}) => n < delayed_delivery ? delayed_delivery : n, 0);\n }\n\n private get customOptionsQuotePayload(): object {\n return this.$store.getters['CatalogProductPersonalisation/getPersonalisationPayload'][1] || {};\n }\n\n private get bundleOptionsQuotePayload(): object {\n return this.$store.getters['CatalogBundleProduct/getAddToQuotePayload'][1] || {}\n }\n\n private get hasActivePersonalizationOptions(): boolean {\n const personalizationOptions = this.$store.getters['CatalogProductPersonalisation/getPersonalisationOptionsActive'][1] || {};\n const hasActivePersonalizationOptions = personalizationOptions.hasOwnProperty(this.productData['product_id']) && Object.values(personalizationOptions[this.productData['product_id']]).length > 0;\n\n return new RegExp(/-(?:ID|DUMMY)$/).test(this.selectedProduct['mpn'] || '') || hasActivePersonalizationOptions;\n }\n\n private get renderDeliveryPromiseMessage(): boolean {\n if (this.hideDeliveryPromise) {\n return false;\n }\n\n return this.productData['product_type'] !== 'bundle';\n }\n\n private async calculateDeliveryPromise(): Promise {\n const deliveryPromiseResult = await DeliveryPromiseResolver.resolve(this.selectedProduct['sku'], this.qty, this.hasActivePersonalizationOptions)\n this.deliveryPromiseMessage = deliveryPromiseResult['message'] || ''\n this.deliveryPromiseClass = (deliveryPromiseResult['interval'] || 99) > 1 ? '_late' : '_early'\n }\n\n private async productToggleWishlist(): Promise {\n try {\n await this.$store.dispatch('CustomerWishlist/toggleWishlistProduct', {\n productId: this.productData['product_id'],\n newState: ! this.isOnWishlist\n });\n\n SolarDataLayer.init().addAddToWishlist({\n ...this.productData,\n 'item_id': this.productData['product_id'],\n 'item_group_id': this.productData['product_id'],\n 'category_names': this.categoryNames,\n }, this.isOnWishlist ? WishlistEvents.ADD : WishlistEvents.REMOVE,\n this.productData['final_price_incl_tax'],\n );\n } catch (e) {\n console.error(`Unable to mutate wishlist: ${e}`);\n }\n }\n\n private async addToCartAvailable(): Promise {\n return await this.$refs.addToCartForm.validate().then(r => r);\n }\n\n private get cartTotals(): number {\n return this.$store.getters['CheckoutCart/cartTotals'] ?\n this.$store.getters['CheckoutCart/cartTotals']['grand_total'] :\n 0;\n }\n\n private async productAddToCart(): Promise {\n if ( ! await this.addToCartAvailable()) {\n return;\n }\n this.addToCartIsLoading = true;\n\n const categoryPath = this.categoryNames.length > 0 ?\n this.categoryNames.join('|') :\n this.productData['category_names'].join('|');\n\n const categoryIds = this.categoryIds.length > 0 ?\n this.categoryIds.join('|') :\n this.productData['category_ids'].join('|');\n\n let productPayload = {\n sku: this.productData['sku'],\n qty: this.qty,\n extension_attributes: {\n origin_category_path: categoryPath,\n origin_category_path_ids: categoryIds,\n },\n product_option: {\n extension_attributes: {}\n }\n };\n\n if (this.productData['product_type'] === 'bundle') {\n productPayload.product_option.extension_attributes['bundle_options'] = this.bundleOptionsQuotePayload;\n }\n\n if (Object.keys(this.customOptionsQuotePayload).length) {\n if (this.productData['product_type'] === 'configurable' && this.customOptionsQuotePayload.hasOwnProperty(this.productData['product_id'])) {\n productPayload.product_option.extension_attributes['custom_options'] = this.customOptionsQuotePayload[this.productData['product_id']];\n }\n\n if (this.productData['product_type'] === 'bundle') {\n productPayload.product_option.extension_attributes['bundle_custom_options'] = Object.entries(this.customOptionsQuotePayload).map(([productId, options]) => {\n return {\n product_id: parseInt(productId),\n custom_options: options\n };\n });\n }\n }\n\n if (this.productData['product_type'] === 'configurable' && this.selectedOptions.length > 0) {\n productPayload.product_option.extension_attributes['configurable_item_options'] = this.selectedOptions.map(o => {\n return {\n option_id: o['attributeId'],\n option_value: o['selectedValue']\n };\n });\n }\n\n await this.$store.dispatch('CheckoutCart/addProductToQuote', productPayload);\n\n if (this.hasAddToCartError) {\n this.addToCartIsLoading = false;\n return;\n }\n\n this.$eventBus.$emit('quote-added-product', {\n parentProduct: this.productData,\n selectedProduct: this.selectedProduct,\n selectedOptions: this.selectedOptions,\n selectedCustomOptions: [],\n selectedQty: this.qty\n });\n\n this.$refs.addToCartPopup.click();\n this.addToCartIsLoading = false;\n\n if (this.productData['product_type'] !== 'configurable') {\n SolarDataLayer.init().addAddToCart({\n ...this.productData,\n 'item_id': this.productData['product_id'],\n 'item_group_id': this.productData['product_id'],\n 'category_names': this.categoryNames,\n }, CartEvents.ADD, this.qty, this.cartTotals);\n }\n\n if (this.productData['product_type'] === 'configurable') {\n SolarDataLayer.init().addAddToCart({\n ...this.productData,\n ...this.dataLayerParams,\n 'price_incl_tax': this.selectedProduct['price_incl_tax'],\n 'final_price_incl_tax': this.selectedProduct['final_price_incl_tax'],\n 'category_names': this.categoryNames,\n }, CartEvents.ADD, this.qty, this.cartTotals);\n }\n }\n\n private addToCartTooltip(e): void {\n if ( ! this.isSaleable && this.enableTooltip && this.isInStock) {\n if (e.type === 'mouseenter') {\n this.showTooltip = true;\n return;\n }\n\n clearTimeout(this._throttle);\n\n this._throttle = window.setTimeout(() => {\n this.showTooltip = false;\n }, 1000);\n }\n }\n\n private get dataLayerParams(): object {\n return this.$store.getters['CatalogProductView/dataLayerParams'];\n }\n\n protected async created(): Promise {\n if (this.relationProducts.length > 0) {\n await this.$store.dispatch('CatalogConfigurableProduct/initProductRelations', this.relationProducts);\n }\n\n await this.$store.dispatch('CatalogProductView/setSizeChartInformation', this.sizeChartInformation);\n\n if (this.customer) {\n this.$store.commit('CheckoutGlobal/SET_CUSTOMER', this.customer);\n }\n\n this.$store.subscribe(mutation => {\n if (mutation.type !== 'CatalogConfigurableProduct/SET_SELECTED_OPTION') {\n return;\n }\n\n if (this.qty > this.availableStock) {\n this.qty = 1;\n }\n });\n\n await this.$store.dispatch('CatalogProduct/getProductData', this.productData);\n\n if (this.productData['product_type'] === 'bundle') {\n if ( ! this.productData['dynamic_pricing']) {\n this.$store.commit('CatalogBundleProduct/SET_BUNDLE_PRICE', {\n bundleId: 1,\n prices: {\n priceInclTax: this.productData['price_incl_tax'],\n priceExclTax: this.productData['price_excl_tax'],\n totalPriceInclTax: this.productData['final_price_incl_tax'],\n totalPriceExclTax: this.productData['final_price_excl_tax'],\n }\n });\n } else {\n this.$store.commit('CatalogBundleProduct/SET_BUNDLE_PRICE', {\n bundleId: 1,\n prices: null\n });\n }\n\n const bundleOptions = JSON.parse(this.productData['bundle_options_info'] || '[]');\n\n bundleOptions.map((bundleOption) => {\n return bundleOption.selections.map((option) => {\n if (option.hasOwnProperty('configurable_options') && option['configurable_options'].length > 0) {\n option['selected_options'] = null;\n }\n return option;\n })\n });\n\n await this.$store.dispatch('CatalogBundleProduct/setBundleData', {\n bundleId: 1,\n bundleOptionsInfo: bundleOptions,\n bundleProductIds: this.productData['bundle_product_ids'],\n bundleProducts: this.bundleProducts,\n bundleDiscountAmount: this.productData['bundle_discount_percentage'],\n bundleDiscountPercentage: this.productData['bundle_discount_percentage'],\n });\n\n await this.$store.dispatch('CatalogBundleProduct/setBundleSizeCharts', {\n bundleId: 1,\n bundleSizeCharts: this.bundleSizeCharts\n });\n }\n\n addProductDetail(this.productData);\n\n if (this.productData['product_type'] !== 'configurable') {\n SolarDataLayer.init().addViewItem({\n ...this.productData,\n 'item_id': this.productData['product_id'],\n 'item_group_id': this.productData['product_id'],\n 'category_names': this.categoryNames,\n });\n }\n\n await this.calculateDeliveryPromise();\n\n this.ready = true;\n }\n\n private mounted(): void {\n const catalogProductInformationPlaceholder = document.querySelector('.catalog__product-placeholder');\n if (catalogProductInformationPlaceholder) {\n (catalogProductInformationPlaceholder as HTMLElement).style.display = 'none';\n }\n this.showData = true;\n }\n\n @Watch('selectedProduct', {deep: true})\n async handleSelectProduct(nv: object, ov: object): Promise {\n if (nv['product_id'] != ov['product_id']) {\n await this.calculateDeliveryPromise();\n }\n }\n\n @Watch('hasActivePersonalizationOptions', {deep: true})\n async handlePersonalizationToggle(nv, ov): Promise {\n if (nv != ov) {\n await this.calculateDeliveryPromise();\n }\n }\n}\n","import SolarStatefulClient from '../../../../shared/transport/solar/SolarStatefulClient'\n\nexport default {\n async resolve(sku: string, qty: number, personalized: boolean, params: object = {}): Promise {\n const payload: object = {sku, qty, personalized: personalized ? 1 : 0, ...params};\n try {\n const {data} = await SolarStatefulClient.get('/api/catalog/product/delivery/estimate', {params: payload})\n return data\n } catch (e) {\n console.error(e)\n return ''\n }\n }\n}\n","export const addProductImpressions = (products: Array): void => {\n const impressions: Array = [];\n\n window.dataLayer.push({\n 'ecommerce': {\n 'currencyCode': 'EUR',\n 'impressions': impressions\n }\n });\n\n products.forEach((p, i) => {\n impressions.push({\n 'name': p['name'],\n 'id': p['product_id'],\n 'price': p['final_price_incl_tax'],\n 'brand': p['manufacturer'],\n 'category': p.hasOwnProperty('product_category') ? p['product_category'] : '',\n 'variant': p.hasOwnProperty('color') ? p['color'] : '',\n 'list': 'product-list',\n 'position': (i + 1)\n });\n });\n}\n\nexport const addProductClick = (product: object, index: string | number | boolean | symbol): void => {\n window.dataLayer.push({\n 'event': 'productClick',\n 'ecommerce': {\n 'click': {\n 'actionField': {'list': 'product-list'},\n 'products': [{\n 'name': product['name'],\n 'id': product['product_id'],\n 'price': product['final_price_incl_tax'],\n 'brand': product['manufacturer'],\n 'category': product.hasOwnProperty('product_category') ? product['product_category'] : '',\n 'variant': product.hasOwnProperty('color') ? product['color'] : '',\n 'position': (index as number) + 1\n }]\n }\n }\n });\n}\n\nexport const addProductDetail = (product: object): void => {\n window.dataLayer.push({\n 'ecommerce': {\n 'detail': {\n 'products': [{\n 'name': product['name'],\n 'id': product['product_id'],\n 'price': product['final_price_incl_tax'],\n 'brand': product['manufacturer'],\n 'category': product.hasOwnProperty('product_category') ? product['product_category'] : '',\n 'variant': '',\n }]\n }\n }\n });\n}\n\nexport const addProductAddToCart = (product: object, selectedProduct: object, qty: number = 1): void => {\n let selectedOptions = [];\n if (selectedProduct.hasOwnProperty('color')) {\n selectedOptions.push(selectedProduct['color']);\n }\n\n if (selectedProduct.hasOwnProperty('size')) {\n selectedOptions.push(selectedProduct['size']);\n }\n\n window.dataLayer.push({\n 'event': 'addToCart',\n 'ecommerce': {\n 'currencyCode': 'EUR',\n 'add': {\n 'products': [{\n 'name': product['name'],\n 'id': product['product_id'],\n 'price': product['final_price_incl_tax'],\n 'brand': product['manufacturer'],\n 'category': product.hasOwnProperty('product_category') ? product['product_category'] : '',\n 'variant': selectedOptions.length ? selectedOptions.join(' | ') : '',\n 'quantity': qty\n }]\n }\n }\n });\n}\n\nexport const addProductRemoveFromCart = (product: object): void => {\n window.dataLayer.push({\n 'event': 'removeFromCart',\n 'ecommerce': {\n 'remove': {\n 'products': [{\n 'name': product['name'],\n 'id': product['item_id'],\n 'price': product['row_total_incl_tax'],\n 'brand': '',\n 'category': '',\n 'variant': '',\n 'quantity': product['qty']\n }]\n }\n }\n });\n}\n\nexport const addCheckout = (products: Array, step: number, option: string = ''): void => {\n const productList: Array = [];\n\n if (step === 1) {\n window.dataLayer.push({\n 'event': 'checkout',\n 'ecommerce': {\n 'checkout': {\n 'actionField': {'step': step, 'option': option},\n 'products': productList\n }\n }\n });\n\n products.forEach(p => {\n let options = [];\n if (p.hasOwnProperty('options')) {\n JSON.parse(p['options'] || '[]').forEach(o => {\n options.push(o['value']);\n });\n }\n\n productList.push({\n 'name': p['name'],\n 'id': p['item_id'],\n 'price': p['row_total_incl_tax'],\n 'brand': '',\n 'category': '',\n 'variant': options.length ? options.join(' | ') : '',\n 'quantity': p['qty']\n });\n });\n } else {\n window.dataLayer.push({\n 'event': 'checkoutOption',\n 'ecommerce': {\n 'checkout_option': {\n 'actionField': {'step': step, 'option': option}\n }\n }\n });\n }\n}\n","import { render, staticRenderFns } from \"./ProductConfiguration.vue?vue&type=template&id=55f9f5e4&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=55f9f5e4&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 \"55f9f5e4\",\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!./ProductConfiguration.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!./ProductConfiguration.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('ValidationObserver',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showData),expression:\"showData\"}],ref:\"addToCartForm\",staticClass:\"product__configuration\",attrs:{\"tag\":\"div\"}},[_c('div',{staticClass:\"product__information-container\"},[_c('div',[(_vm.isInStock)?_c('catalog-product-price',{attrs:{\"product-id\":_vm.productData['entity_id'],\"position\":\"top\"},scopedSlots:_vm._u([{key:\"price_text\",fn:function(){return [_vm._t(\"price_text\")]},proxy:true}],null,true)}):_vm._e(),_vm._v(\" \"),_vm._t(\"team_wear\")],2),_vm._v(\" \"),(_vm.showTierPrices)?_c('catalog-product-tier-prices',{attrs:{\"tier-prices\":_vm.tierPrices,\"product\":_vm.productData,\"extra-tier-price-content\":_vm.extraTierPriceContent}}):_vm._e(),_vm._v(\" \"),_vm._t(\"usp\")],2),_vm._v(\" \"),( ! _vm.isInStock)?_c('div',{staticClass:\"global__message--bg --warning --margin\"},[_vm._t(\"out_of_stock\")],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"product__option\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTooltip),expression:\"showTooltip\"}],staticClass:\"product-options__tooltip hide-for-small-only\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Select one of the required options.'))+\"\\n \")])]),_vm._v(\" \"),(_vm.relationProducts.length > 1)?_c('catalog-product-relation',{attrs:{\"relation-products\":_vm.relationProducts,\"selected-color\":_vm.productData.color}}):_vm._e(),_vm._v(\" \"),_c(`catalog-product-${_vm.productData['product_type']}`,{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isInStock),expression:\"isInStock\"}],tag:\"component\",attrs:{\"has-size-chart\":this.hasSizeChart,\"bundle-size-charts\":_vm.bundleSizeCharts,\"bundle-id\":1}})],1),_vm._v(\" \"),(_vm.isInStock && _vm.productData['product_type'] !== 'bundle')?_c('catalog-product-custom-options',{attrs:{\"custom-options-block\":_vm.customOptionsBlock,\"product-id\":_vm.productData.entity_id,\"group-id\":1}}):_vm._e(),_vm._v(\" \"),(_vm.isInStock)?_c('div',{staticClass:\"product_add-to-cart_form\"},[(_vm.hasAvailableOptions)?_c('div',{staticClass:\"add-to-cart__holder\"},[(_vm.renderDeliveryPromiseMessage)?_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isInStock),expression:\"isInStock\"}],class:['--delivery', _vm.deliveryPromiseClass],domProps:{\"innerHTML\":_vm._s(_vm.deliveryPromiseMessage)}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"--actions\"},[(_vm.productData['product_type'] !== 'bundle')?_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((_vm.availableStock),function(i){return _c('option',{key:i,domProps:{\"selected\":i === 1,\"textContent\":_vm._s(i)}})}),0):_vm._e(),_vm._v(\" \"),_c('div',{on:{\"mouseenter\":function($event){return _vm.addToCartTooltip($event)},\"mouseleave\":function($event){return _vm.addToCartTooltip($event)}}},[_c('button',{staticClass:\"--button\",class:{ '--loading': _vm.addToCartIsLoading },attrs:{\"disabled\":( ! _vm.isSaleable || _vm.addToCartIsLoading) || ! _vm.isInStock},domProps:{\"textContent\":_vm._s(_vm.buttonText)},on:{\"click\":_vm.productAddToCart}})]),_vm._v(\" \"),_c('button',{staticClass:\"add__wishlist hide-for-small-only\",class:{ '--active': _vm.isOnWishlist },attrs:{\"disabled\":_vm.isWishlistLoading,\"type\":\"button\"},on:{\"click\":_vm.productToggleWishlist}})]),_vm._v(\" \"),(_vm.hasAddToCartError)?_c('span',{staticClass:\"global__message --margin--top --error\",domProps:{\"textContent\":_vm._s(_vm.$t(_vm.addToCartErrorMessage))}}):_vm._e()]):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('button',{ref:\"addToCartPopup\",staticClass:\"hide\",attrs:{\"data-toggle\":\"offCanvas-addToCart\"}}),_vm._v(\" \"),_c('catalog-product-off-canvas',{attrs:{\"tweakwise-recommendation\":_vm.tweakwiseRecommendation}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","productEntity","this","productData","showTooltip","addToCartIsLoading","maxAllowedQty","ready","showData","deliveryPromiseClass","deliveryPromiseMessage","categoryNameGroup","productBreadcrumbs","categoryNames","map","breadcrumb","slice","categoryIds","qty","$store","getters","value","dispatch","productId","selectedProduct","calculateDeliveryPromise","buttonText","$t","isSaleable","isInStock","Boolean","showTierPrices","tierPrices","hasOwnProperty","hasAvailableOptions","length","isOnWishlist","findIndex","i","availableStock","selectedOptions","isWishlistLoading","state","CustomerWishlist","isLoading","hasAddToCartError","CheckoutCart","addToCartError","addToCartErrorMessage","cartMessage","filter","p","every","o","parseInt","personalizationExtraDelivery","options","Object","values","reduce","n","delayed_delivery","customOptionsQuotePayload","bundleOptionsQuotePayload","hasActivePersonalizationOptions","personalizationOptions","RegExp","test","renderDeliveryPromiseMessage","hideDeliveryPromise","deliveryPromiseResult","resolve","productToggleWishlist","newState","SolarDataLayer","init","addAddToWishlist","WishlistEvents","ADD","REMOVE","e","console","error","addToCartAvailable","$refs","addToCartForm","validate","then","r","cartTotals","productAddToCart","categoryPath","join","productPayload","sku","extension_attributes","origin_category_path","origin_category_path_ids","product_option","keys","entries","product_id","custom_options","option_id","option_value","$eventBus","$emit","parentProduct","selectedCustomOptions","selectedQty","addToCartPopup","click","addAddToCart","CartEvents","dataLayerParams","addToCartTooltip","enableTooltip","type","clearTimeout","_throttle","window","setTimeout","created","relationProducts","sizeChartInformation","customer","commit","subscribe","mutation","bundleId","prices","priceInclTax","priceExclTax","totalPriceInclTax","totalPriceExclTax","bundleOptions","JSON","parse","bundleOption","selections","option","bundleOptionsInfo","bundleProductIds","bundleProducts","bundleDiscountAmount","bundleDiscountPercentage","bundleSizeCharts","addProductDetail","addViewItem","mounted","catalogProductInformationPlaceholder","document","querySelector","style","display","handleSelectProduct","nv","ov","handlePersonalizationToggle","Prop","default","Array","required","Provide","Watch","deep","Component","name","components","getComponents","ToggleButton","ValidationObserver","personalized","params","payload","data","get","addProductImpressions","products","impressions","dataLayer","push","forEach","addProductClick","product","index","addProductAddToCart","addProductRemoveFromCart","addCheckout","step","productList","render","_vm","_c","_self","_setupProxy","directives","rawName","expression","ref","staticClass","attrs","scopedSlots","_u","key","fn","_t","proxy","_e","_v","extraTierPriceContent","_s","color","tag","hasSizeChart","customOptionsBlock","entity_id","class","domProps","modifiers","on","$event","$$selectedVal","prototype","call","target","selected","val","_value","_n","multiple","_l","tweakwiseRecommendation","staticRenderFns"],"sourceRoot":""}