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A,EAAAA,IAAA,EAAvDC,EAAAA,EAAAA,IAAK,CAAEC,KAAMP,OAAQQ,UAAU,EAAOC,QAAS,QAAO,gCADtC1B,GAAYsB,EAAAA,EAAAA,IAAA,EAHhCK,EAAAA,EAAAA,IAAU,CACPC,KAAM,kBAEW5B,G,QCT0c,I,sBCQ3d6B,GAAY,OACd,EACAtD,EACAwB,GACA,EACA,KACA,KACA,MAIF,EAAe8B,EAAiB,O,kBChBhC,IAAIC,EAAU,EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQJ,SACnB,kBAAZI,IAAsBA,EAAU,CAAC,CAACzD,EAAOC,GAAIwD,EAAS,MAC7DA,EAAQE,SAAQ3D,EAAO4D,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://website-js/./src/components/product-details/DetailsStock.vue?cbde","webpack://website-js/./src/components/product-details/DetailsStock.vue","webpack://website-js/./src/components/product-details/DetailsStock.vue?f5c7","webpack://website-js/./src/components/product-details/DetailsStock.vue?9238","webpack://website-js/./src/components/product-details/DetailsStock.vue?cdd3","webpack://website-js/./src/components/product-details/DetailsStock.vue?92c5"],"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, `.product-stock-organic{font-weight:600}`, \"\"]);\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',{staticClass:\"product-stock\"},[_c('ul',{staticClass:\"uk-list\"},[_c('li',{staticClass:\"uk-margin-small\"},[_c('span',[(_vm.icon)?_c('span',{staticClass:\"uk-margin-small-right\",class:_vm.color,attrs:{\"uk-icon\":`icon: ${_vm.icon}; ratio: 1`}}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.message)),(!_vm.inStock && _vm.restockMessage)?_c('span',[_vm._v(\". \"+_vm._s(_vm.restockMessage))]):_vm._e()])])]),(_vm.inStock && _vm.deliveryMessage)?_c('li',{staticClass:\"product-stock-trust uk-margin-small\"},[_c('span',{staticClass:\"uk-margin-small-right uk-text-success\",attrs:{\"uk-icon\":\"icon: check; ratio: 1\"}}),_c('span',[_vm._v(_vm._s(_vm.deliveryMessage))]),(_vm.trustpage)?_c('span',[_vm._v(\" - \"),_c('a',{staticClass:\"uk-text-primary uk-text-underline\",attrs:{\"href\":_vm.trustpage.link}},[_vm._v(_vm._s(_vm.trustpage.title))])]):_vm._e()]):_vm._e(),(_vm.isOrganic)?_c('li',{staticClass:\"product-stock-organic\"},[_c('span',{staticClass:\"uk-margin-small-right uk-text-primary\",attrs:{\"uk-icon\":\"icon: info; ratio: 0.8\"}}),_c('span',{staticClass:\"uk-text-primary\"},[_vm._v(_vm._s(_vm.$t('product.organic-label', ['Product is organic'])))])]):_vm._e(),(!_vm.allowLineDiscount)?_c('li',{staticClass:\"product-stock-organic\"},[_c('span',{staticClass:\"uk-margin-small-right uk-text-primary\",attrs:{\"uk-icon\":\"icon: info; ratio: 0.8\"}}),_c('span',{staticClass:\"uk-text-primary\"},[_vm._v(_vm._s(_vm.$t('product.bonus-scheme', ['Is not covered by the bonus scheme'])))])]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { StockMessage } from '../../models/Product';\nimport { LinkModel } from '../../models/Navigation';\nimport ProductDetailsModule from '../../store/modules/ProductDetailsModule';\n\n@Component({\n name: 'DetailsStock',\n})\nexport default class DetailsStock extends Vue {\n @Prop({ type: Object, required: false, default: null }) private trustpage: LinkModel;\n\n get selectedVariant() {\n return ProductDetailsModule.SELECTED_VARIANT ?? null;\n }\n\n get product() {\n return ProductDetailsModule.PRODUCT ?? null;\n }\n\n get stockMessage(): StockMessage {\n if (this.selectedVariant) return this.selectedVariant?.stockmessage;\n else return this.product?.stockmessage;\n }\n\n get inStock(): boolean {\n return this.stockMessage?.instock ?? false;\n }\n\n get icon(): string {\n return this.stockMessage?.icon;\n }\n\n get color(): string {\n return this.stockMessage?.color;\n }\n\n get message(): string {\n return this.stockMessage?.message;\n }\n\n get deliveryMessage(): string {\n return this.stockMessage?.deliverymessage;\n }\n\n get restockMessage(): string {\n return this.stockMessage?.restockmessage;\n }\n\n get isOrganic(): boolean {\n return this.product?.icons?.includes('eco') || this.selectedVariant?.icons?.includes('eco');\n }\n\n get allowLineDiscount() {\n if (this.selectedVariant && Object.prototype.hasOwnProperty.call(this.selectedVariant, 'allowlinediscount')) {\n return this.selectedVariant.allowlinediscount;\n } else if (this.product && Object.prototype.hasOwnProperty.call(this.product, 'allowlinediscount')) {\n return this.product.allowlinediscount;\n }\n return true;\n }\n}\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!./DetailsStock.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!./DetailsStock.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DetailsStock.vue?vue&type=template&id=484781e0&\"\nimport script from \"./DetailsStock.vue?vue&type=script&lang=ts&\"\nexport * from \"./DetailsStock.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DetailsStock.vue?vue&type=style&index=0&id=484781e0&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