{"version":3,"sources":["webpack:///./src/views/AdminTranslation/AdminTranslation.scss?830d","webpack:///./node_modules/core-js/modules/es.object.get-own-property-names.js","webpack:///./src/views/AdminTranslation/AdminTranslation.vue?a07f","webpack:///./src/views/AdminTranslation/AdminTranslation.ts","webpack:///./src/views/AdminTranslation/AdminTranslation.ts?eea1","webpack:///./src/views/AdminTranslation/AdminTranslation.vue"],"names":["$","fails","nativeGetOwnPropertyNames","f","FAILS_ON_PRIMITIVES","Object","getOwnPropertyNames","target","stat","forced","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","translations","title","_v","_s","_l","entry","key","caption","staticRenderFns","value","oldValue","$route","params","screening","toUpperCase","$i18n","locale","messages","obj","JSON","parse","stringify","getOjectProperties","parent","array","forEach","x","push","t","immediate","deep","component"],"mappings":"kHAAA,yBAAwc,EAAG,G,4CCA3c,IAAIA,EAAI,EAAQ,QACZC,EAAQ,EAAQ,QAChBC,EAA4B,EAAQ,QAAuDC,EAE3FC,EAAsBH,GAAM,WAAc,OAAQI,OAAOC,oBAAoB,MAIjFN,EAAE,CAAEO,OAAQ,SAAUC,MAAM,EAAMC,OAAQL,GAAuB,CAC/DE,oBAAqBJ,K,2CCTvB,IAAIQ,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,gBAAgB,CAACF,EAAG,MAAM,CAACA,EAAG,SAAS,CAACG,YAAY,gBAAgB,CAACH,EAAG,iBAAiB,CAACE,MAAM,CAAC,KAAON,EAAIQ,aAAa,MAAQR,EAAIS,MAAM,KAAOT,EAAIS,MAAQ,SAAS,CAACT,EAAIU,GAAG,aAAa,KAAKN,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,KAAK,CAACJ,EAAIU,GAAGV,EAAIW,GAAG,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ader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./AdminTranslation.scss?vue&type=style&index=0&id=ec01e7a4&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./AdminTranslation.scss?vue&type=style&index=0&id=ec01e7a4&scoped=true&lang=scss&\"","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;\n\nvar FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n getOwnPropertyNames: nativeGetOwnPropertyNames\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"translation\"}},[_c('div',[_c('button',{staticClass:\"button-excel\"},[_c('download-excel',{attrs:{\"data\":_vm.translations,\"title\":_vm.title,\"name\":_vm.title + '.xls'}},[_vm._v(\"Export\")])],1)]),_c('div',{staticClass:\"study-table\"},[_c('table',[_c('thead',[_c('tr',[_c('th',[_vm._v(_vm._s(\"Key\"))]),_c('th',[_vm._v(_vm._s(\"Caption\"))])])]),_c('tbody',_vm._l((_vm.translations),function(entry){return _c('tr',{key:entry.key},[_c('td',[_vm._v(_vm._s(entry.key))]),_c('td',[_vm._v(_vm._s(entry.caption))])])}),0)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Watch } from 'vue-property-decorator';\r\nimport { WatchOptions } from 'vue';\r\nimport VueI18n from 'vue-i18n';\r\nimport { Translation } from '@/models/Translation';\r\n\r\n\r\n@Component\r\nexport default class AdminTranslation extends Vue {\r\n public translations: Translation[] = [];\r\n public title: string = '';\r\n\r\n @Watch('$i18n.locale', { immediate: true, deep: true } as WatchOptions)\r\n protected onLocaleChanged(value: string, oldValue: string) {\r\n this.translations = [];\r\n this.title = `Translations ${this.$route.params.screening.toUpperCase()} - ${this.$i18n.locale.toUpperCase()}`;\r\n const messages = this.$i18n.messages as VueI18n.LocaleMessages;\r\n\r\n const obj = JSON.parse(JSON.stringify(messages[value]));\r\n this.getOjectProperties(obj, '');\r\n }\r\n\r\n private getOjectProperties(obj: any, parent: string) {\r\n const array = Object.getOwnPropertyNames(obj);\r\n array.forEach((x: any) => {\r\n if (typeof obj[x] === 'object') {\r\n if (parent) {\r\n this.getOjectProperties(obj[x], parent + '.' + x);\r\n } else {\r\n this.getOjectProperties(obj[x], x);\r\n }\r\n } else {\r\n this.translations.push({\r\n key: parent + '.' + x,\r\n caption: this.$i18n.t(parent + '.' + x) as string,\r\n });\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./AdminTranslation.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./AdminTranslation.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AdminTranslation.vue?vue&type=template&id=ec01e7a4&scoped=true&\"\nimport script from \"./AdminTranslation.ts?vue&type=script&lang=ts&\"\nexport * from \"./AdminTranslation.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./AdminTranslation.scss?vue&type=style&index=0&id=ec01e7a4&scoped=true&lang=scss&\"\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 \"ec01e7a4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}