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A,KACA,KACA,MAIF,QAAeoC,EAAiB,O,iBChBhC,IAAIC,EAAU,EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQJ,SACnB,kBAAZI,IAAsBA,EAAU,CAAC,CAAC9D,EAAOC,GAAI6D,EAAS,MAC7DA,EAAQE,SAAQhE,EAAOiE,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?1c34","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?1b99"],"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)?_c('div',{staticClass:\"details-datasheet\"},[_c('ul',{attrs:{\"uk-accordion\":\"\"}},[(_vm.ingredients)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(\"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(\"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.nutritients.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(\"Næringsindhold pr 100g\")]),_c('div',{staticClass:\"uk-accordion-content\"},_vm._l((_vm.nutritients),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.allergens.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(\"Allergener\")]),_c('div',{staticClass:\"uk-accordion-content\"},_vm._l((_vm.allergens),function(item,index){return _c('p',{key:index},[_vm._v(_vm._s(item.key)+\" \"+_vm._s(item.value))])}),0)]):_vm._e(),(_vm.manufactoringinfo.length)?_c('li',[_c('a',{staticClass:\"uk-accordion-title\",attrs:{\"href\":\"#\"}},[_vm._v(\"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 this.data?.ingredientinfo?.length ? 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 this.data?.packaging?.length ? this.data.packaging : [];\r\n }\r\n\r\n get allergeninfo(): DatasheetValue[] {\r\n return this.data?.allergeninfo?.length ? this.data.allergeninfo : [];\r\n }\r\n\r\n get allergens(): DatasheetValue[] {\r\n return this.allergeninfo ?? [];\r\n }\r\n\r\n get nutritients(): DatasheetValue[] {\r\n return this.data?.nutritioninfo?.length ? this.data.nutritioninfo : [];\r\n }\r\n\r\n get manufactoringinfo(): DatasheetValue[] {\r\n return this.data?.manufactoringinfo?.length ? 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=77ce468e&\"\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=77ce468e&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