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AQ5F,EAAO6F,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue?2164","webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue","webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue?9a63","webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue?e497","webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue?389f","webpack://website-js/./src/components/product-details/DetailsBulkDiscountsAddToCart.vue?4546"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.details-bulk-discounts-add-to-cart .add-to-cart,.details-bulk-discounts-add-to-cart .details-add-to-cart+div{margin-top:0!important}.details-bulk-discounts-add-to-cart table caption span{font-weight:600}.details-bulk-discounts-add-to-cart table td:first-of-type,.details-bulk-discounts-add-to-cart table th:first-of-type{padding-left:15px}.details-bulk-discounts-add-to-cart table td:last-of-type,.details-bulk-discounts-add-to-cart table th:last-of-type{padding-right:15px}.details-bulk-discounts-add-to-cart table thead{background-color:hsla(var(--black-color-hue),var(--black-color-saturation),var(--black-color-lightness),.02)}.details-bulk-discounts-add-to-cart table thead th{font-weight:600;text-transform:none;font-size:.7rem;text-transform:uppercase}.details-bulk-discounts-add-to-cart table tbody tr.selected{background-color:var(--primary-color);color:#fff}.details-bulk-discounts-add-to-cart table tbody tr.selected .uk-radio:checked{background-color:#fff}.details-bulk-discounts-add-to-cart table tbody tr .discount,.details-bulk-discounts-add-to-cart table tbody tr .price,.details-bulk-discounts-add-to-cart table tbody tr .quantity{font-family:Lucida Console,Monaco,monospace}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{class:{ 'details-bulk-discounts-add-to-cart' : _vm.showBulkdiscounts }},[(_vm.showBulkdiscounts)?_c('div',{staticClass:\"uk-overflow-auto cbx-border\"},[_c('table',{staticClass:\"uk-table uk-table-divider uk-table-small\"},[_c('caption',{staticClass:\"uk-padding\"},[_c('span',{staticClass:\"uk-h3\"},[_vm._v(_vm._s(_vm.$t('product.bulk-discounts-header', ['Bulk discounts'])))])]),_c('thead',[_c('tr',[_c('th'),_c('th',{staticClass:\"uk-text-right uk-text-bold\"},[_vm._v(_vm._s(_vm.$t('pricing.quantity', ['Quantity'])))]),_c('th',{staticClass:\"uk-text-right uk-text-bold\"},[_vm._v(_vm._s(_vm.$t('pricing.price-per-unit', [_vm.unit, 'Price / {0}'])))]),_c('th',{staticClass:\"uk-text-right uk-text-bold\"},[_vm._v(_vm._s(_vm.$t('pricing.save', ['Save'])))])])]),_c('tfoot',[_c('tr',[_c('td',{attrs:{\"colspan\":\"4\"}},[_c('DetailsAddToCart',{attrs:{\"isProductPage\":_vm.isProductPage,\"quantity\":_vm.quantity}})],1)])]),_c('tbody',[_c('tr',[(!_vm.product)?_c('td',{staticClass:\"uk-text-center\",attrs:{\"colspan\":\"4\"}},[_c('span',{attrs:{\"uk-spinner\":\"ratio: .8\"}})]):_vm._e()]),(_vm.product && !_vm.bulkdiscountsContainsColli)?_c('tr',{class:{ 'selected' : _vm.isActive(_vm.colli), 'uk-pointer' : _vm.allowpurchase },on:{\"click\":function($event){return _vm.setQuantity(_vm.colli)}}},[_c('td',{staticClass:\"uk-width-auto\"},[(_vm.allowpurchase)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.quantity),expression:\"quantity\"}],staticClass:\"uk-radio\",attrs:{\"type\":\"radio\",\"name\":\"bulkdiscounts\"},domProps:{\"value\":_vm.colli,\"checked\":_vm._q(_vm.quantity,_vm.colli)},on:{\"change\":function($event){_vm.quantity=_vm.colli}}}):_vm._e()]),_c('td',{staticClass:\"quantity uk-width-auto uk-text-right\"},[_vm._v(_vm._s(_vm.colli))]),_c('td',{staticClass:\"price uk-width-expand uk-text-right\"},[_c('span',{staticClass:\"uk-text-small\"},[_vm._v(_vm._s(_vm.price.currency))]),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.getPrice(_vm.price)))])]),_c('td',{staticClass:\"discount uk-width-auto uk-text-right\"},[(_vm.price.discountpercentage > 0)?_c('span',[_vm._v(_vm._s(_vm.price.discountpercentage)+\"%\")]):_vm._e()])]):_vm._e(),_vm._l((_vm.bulkdiscounts),function(bulkprice,index){return _c('tr',{key:index,class:{ 'selected' : _vm.isActive(bulkprice.quantityasnumeric), 'uk-pointer' : _vm.allowpurchase },on:{\"click\":function($event){return _vm.setQuantity(bulkprice.quantityasnumeric)}}},[_c('td',{staticClass:\"uk-width-auto\"},[(_vm.allowpurchase)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.quantity),expression:\"quantity\"}],staticClass:\"uk-radio\",attrs:{\"type\":\"radio\",\"name\":\"bulkdiscounts\"},domProps:{\"value\":bulkprice.quantityasnumeric,\"checked\":_vm._q(_vm.quantity,bulkprice.quantityasnumeric)},on:{\"change\":function($event){_vm.quantity=bulkprice.quantityasnumeric}}}):_vm._e()]),_c('td',{staticClass:\"quantity uk-width-auto uk-text-right\"},[_vm._v(_vm._s(bulkprice.quantity))]),_c('td',{staticClass:\"price uk-width-expand uk-text-right\"},[_c('span',{staticClass:\"uk-text-small\"},[_vm._v(_vm._s(bulkprice.currency))]),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.getPrice(bulkprice)))])]),_c('td',{staticClass:\"discount uk-width-auto uk-text-right uk-text-bold\"},[(bulkprice.discountpercentage > 0)?_c('span',[_vm._v(_vm._s(bulkprice.discountpercentage)+\"%\")]):_vm._e()])])})],2)])]):_c('DetailsAddToCart',{attrs:{\"enableBulkOrdering\":_vm.enableBulkOrdering,\"reversedMatrix\":_vm.reversedMatrix,\"isProductPage\":_vm.isProductPage,\"installation\":_vm.installation,\"installation-variant-id\":_vm.installationVariantId}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { DisplayPriceInfo, ProductSearchResultProduct } from '../../models/Product';\r\nimport ProductDetailsModule from '../../store/modules/ProductDetailsModule';\r\nimport DetailsAddToCart from './DetailsAddToCart.vue';\r\nimport CartModule from '../../store/modules/CartModule';\r\nimport { WebCartItem } from '@/models/Cart';\r\nimport { CbxVariablesModule } from '@/store/modules/CbxVariablesModule';\r\n\r\n@Component({\r\n name: 'DetailsBulkDiscountsAddToCart',\r\n components: {\r\n DetailsAddToCart,\r\n }\r\n})\r\nexport default class DetailsBulkDiscountsAddToCart extends Vue {\r\n\r\n @Prop({ type: Boolean, required: false, default: false }) private enableBulkOrdering: boolean;\r\n @Prop({ type: Boolean, required: false, default: false }) private isProductPage: boolean;\r\n\r\n private quantity: number = 1;\r\n\r\n private isActive(quantity: number): boolean {\r\n if (this.bulkdiscounts.length > 0)\r\n {\r\n const items = this.bulkdiscounts.filter(item => item.quantityasnumeric <= this.quantity);\r\n\r\n if (items.length > 0)\r\n return items.pop().quantityasnumeric === quantity;\r\n }\r\n\r\n return this.colli == quantity;\r\n }\r\n\r\n get installation(): boolean {\r\n return ProductDetailsModule.INSTALLATION;\r\n }\r\n\r\n get installationVariantId(): string {\r\n return ProductDetailsModule.INSTALLATION_VARIANT_ID;\r\n }\r\n\r\n get reversedMatrix(): boolean {\r\n return CbxVariablesModule.VARIABLES.bulkOrderingReversed;\r\n }\r\n\r\n get product(): ProductSearchResultProduct {\r\n return ProductDetailsModule.PRODUCT;\r\n }\r\n\r\n get productid(): string {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n return ProductDetailsModule.SELECTED_VARIANT?.sku;\r\n }\r\n return this.product?.id;\r\n }\r\n\r\n get variantid(): string {\r\n return '';\r\n }\r\n\r\n get itemFromLookup(): WebCartItem {\r\n const itemfromlookup = CartModule.CART_LOOKUP[`${this.productid}###${this.variantid ?? ''}`];\r\n\r\n if (itemfromlookup != null)\r\n this.quantity = itemfromlookup.quantity;\r\n\r\n return itemfromlookup;\r\n }\r\n\r\n get showBulkdiscounts(): boolean {\r\n return this.showprices && this.bulkdiscounts.length > 0;\r\n }\r\n\r\n get bulkdiscounts(): DisplayPriceInfo[] {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n return ProductDetailsModule.SELECTED_VARIANT?.bulkdiscounts ?? [];\r\n }\r\n return this.product?.bulkdiscounts ?? [];\r\n }\r\n\r\n get showprices(): boolean {\r\n return this.product?.showprices ?? false;\r\n }\r\n\r\n get price(): DisplayPriceInfo {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n return ProductDetailsModule.SELECTED_VARIANT?.price;\r\n }\r\n return this.product?.price;\r\n }\r\n\r\n get unit(): string {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n return ProductDetailsModule.SELECTED_VARIANT?.unit;\r\n }\r\n return this.product?.unit;\r\n }\r\n\r\n get colli(): number {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n if (this.itemFromLookup == null)\r\n this.quantity = ProductDetailsModule.SELECTED_VARIANT?.colli ?? 1;\r\n\r\n return ProductDetailsModule.SELECTED_VARIANT?.colli;\r\n }\r\n\r\n if (this.itemFromLookup == null)\r\n this.quantity = this.product?.colli ?? 1;\r\n\r\n return this.product?.colli;\r\n }\r\n\r\n get bulkdiscountsContainsColli(): boolean {\r\n return this.bulkdiscounts.some(item => item.quantityasnumeric === this.colli)\r\n }\r\n\r\n get allowpurchase(): boolean {\r\n if (ProductDetailsModule.VARIANTS?.length > 0) {\r\n return ProductDetailsModule.SELECTED_VARIANT?.allowpurchase;\r\n }\r\n return this.product?.allowpurchase;\r\n }\r\n\r\n private getPrice(price: DisplayPriceInfo)\r\n {\r\n if (price.showpricesincvat)\r\n return price.priceincvat\r\n\r\n return price.priceexvat;\r\n }\r\n\r\n private setQuantity(quantity: number) {\r\n this.quantity = quantity;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DetailsBulkDiscountsAddToCart.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DetailsBulkDiscountsAddToCart.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DetailsBulkDiscountsAddToCart.vue?vue&type=template&id=29e9761c&\"\nimport script from \"./DetailsBulkDiscountsAddToCart.vue?vue&type=script&lang=ts&\"\nexport * from \"./DetailsBulkDiscountsAddToCart.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DetailsBulkDiscountsAddToCart.vue?vue&type=style&index=0&id=29e9761c&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/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","// style-loader: Adds some css to the DOM by adding a