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EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQJ,SACnB,kBAAZI,IAAsBA,EAAU,CAAC,CAACjE,EAAOC,GAAIgE,EAAS,MAC7DA,EAAQE,SAAQnE,EAAOoE,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://website-js/./src/components/product-details/DetailsDatasheet.vue?d856","webpack://website-js/./src/components/product-details/DetailsDatasheet.vue","webpack://website-js/./src/services/GS1DataService.ts","webpack://website-js/./src/components/product-details/DetailsDatasheet.vue?e187","webpack://website-js/./src/components/product-details/DetailsDatasheet.vue?d4f5","webpack://website-js/./src/components/product-details/DetailsDatasheet.vue?1300","webpack://website-js/./src/components/product-details/DetailsDatasheet.vue?f270"],"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-datasheet-list-item{display:flex;margin-bottom:7px}.details-datasheet-list-item>div:first-of-type{flex:1}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.data && _vm.translationsReady)?_c('div',{staticClass:\"details-datasheet\"},[_c('ul',{attrs:{\"uk-accordion\":\"\"}},[(_vm.ingredients)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(_vm.$t('datasheet.ingredients', ['Ingredienser'])))]),_c('div',{staticClass:\"uk-accordion-content\"},[_c('p',[_vm._v(_vm._s(_vm.ingredients))])])]):_vm._e(),(_vm.packaging.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(_vm.$t('datasheet.packaging', ['Emballageinformation'])))]),_c('div',{staticClass:\"uk-accordion-content\"},_vm._l((_vm.packaging),function(item,index){return _c('div',{key:index,staticClass:\"details-datasheet-list-item\"},[_c('div',[_vm._v(_vm._s(item.key))]),_c('div',[_vm._v(_vm._s(item.value))])])}),0)]):_vm._e(),(_vm.nutrients.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(_vm.$t('datasheet.nutrients', ['Næringsindhold pr 100ml'])))]),_c('div',{staticClass:\"uk-accordion-content\"},_vm._l((_vm.nutrients),function(item,index){return _c('div',{key:index,staticClass:\"details-datasheet-list-item\"},[_c('div',[_vm._v(_vm._s(item.key))]),_c('div',[_vm._v(_vm._s(item.value))])])}),0)]):_vm._e(),(_vm.manufactoringinfo.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(_vm.$t('datasheet.manufactoringinfo', ['Produktionsinformation'])))]),_c('div',{staticClass:\"uk-accordion-content\"},_vm._l((_vm.manufactoringinfo),function(item,index){return _c('div',{key:index,staticClass:\"details-datasheet-list-item\"},[_c('div',[_vm._v(_vm._s(item.key))]),_c('div',[_vm._v(_vm._s(item.value))])])}),0)]):_vm._e()])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import axios, { AxiosResponse } from 'axios';\r\n\r\nexport default class GS1DataService {\r\n private profileId: string = (window as any).CbxApiContextKey;\r\n private endpoint: string;\r\n\r\n constructor(args: any = {}) {\r\n if (args.profileId) this.profileId = args.profileId;\r\n this.endpoint = `/contextapi/${this.profileId}/v1/gs1data`;\r\n }\r\n\r\n public async getByGTIN(gtin: string): Promise {\r\n try {\r\n const res: AxiosResponse = await axios.get(`${this.endpoint}/getbygtin/${gtin}`);\r\n return res.data;\r\n } catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n}\r\n","\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { DatasheetValue } from '../../models/Product';\r\nimport GS1DataService from '../../services/GS1DataService';\r\n\r\n@Component({\r\n name: 'DetailsDatasheet'\r\n})\r\nexport default class DetailsDatasheet extends Vue {\r\n @Prop({ type: String, required: false, default: null }) private gtin: string;\r\n\r\n private service: GS1DataService = new GS1DataService();\r\n private data: any = null;\r\n\r\n get translationsReady(): boolean {\r\n return this.$root.$data.translationsLoaded === true;\r\n }\r\n\r\n get ingredientinfo(): DatasheetValue[] {\r\n return Array.isArray(this.data?.ingredientinfo) ? this.data?.ingredientinfo : [];\r\n }\r\n\r\n get ingredients(): string {\r\n return this.ingredientinfo?.find(item => item.key === 'da')?.value;\r\n }\r\n\r\n get packaging(): DatasheetValue[] {\r\n return Array.isArray(this.data?.packaging) ? this.data?.packaging : [];\r\n }\r\n\r\n get allergeninfo(): DatasheetValue[] {\r\n return Array.isArray(this.data?.allergeninfo) ? this.data?.allergeninfo : [];\r\n }\r\n\r\n get allergens(): DatasheetValue[] {\r\n return Array.isArray(this.data?.allergeninfo) ? this.data?.allergeninfo : [];\r\n }\r\n\r\n get nutrients(): DatasheetValue[] {\r\n return Array.isArray(this.data?.nutritioninfo) ? this.data?.nutritioninfo : [];\r\n }\r\n\r\n get manufactoringinfo(): DatasheetValue[] {\r\n return Array.isArray(this.data?.manufactoringinfo) ? this.data?.manufactoringinfo : [];\r\n }\r\n\r\n private async created() {\r\n if (this.gtin)\r\n this.data = await this.service.getByGTIN(this.gtin);\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!./DetailsDatasheet.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!./DetailsDatasheet.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DetailsDatasheet.vue?vue&type=template&id=33e67f1c&\"\nimport script from \"./DetailsDatasheet.vue?vue&type=script&lang=ts&\"\nexport * from \"./DetailsDatasheet.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DetailsDatasheet.vue?vue&type=style&index=0&id=33e67f1c&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