{"version":3,"sources":["webpack:///./src/views/AdminTranslation/AdminTranslation.scss?d494","webpack:///./src/views/AdminTranslation/AdminTranslation.vue?9a32","webpack:///./src/views/AdminTranslation/AdminTranslation.ts","webpack:///./src/views/AdminTranslation/AdminTranslation.ts?57a6","webpack:///./src/views/AdminTranslation/AdminTranslation.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","translations","title","_v","_s","_l","entry","key","caption","staticRenderFns","AdminTranslation","_Vue","_this","_classCallCheck","_inherits","_createClass","value","oldValue","concat","$route","params","screening","toUpperCase","$i18n","locale","messages","obj","JSON","parse","stringify","getOjectProperties","parent","_this2","array","Object","getOwnPropertyNames","forEach","x","_typeof","push","t","Vue","__decorate","Watch","immediate","deep","Component","component"],"mappings":"kHAAA,yBAAqc,EAAG,G,oECAxc,IAAIA,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,UAAUP,EAAG,KAAK,CAACJ,EAAIU,GAAGV,EAAIW,GAAG,kBAAkBP,EAAG,QAAQJ,EAAIY,GAAIZ,EAAgB,cAAE,SAASa,GAAO,OAAOT,EAAG,KAAK,CAACU,IAAID,EAAMC,KAAK,CAACV,EAAG,KAAK,CAACJ,EAAIU,GAAGV,EAAIW,GAAGE,EAAMC,QAAQV,EAAG,K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ref--8-oneOf-1-0!../../../node_modules/css-loader/index.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/index.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 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--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!./AdminTranslation.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!./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":""}