{"version":3,"sources":["webpack:///./src/views/AdminTranslation/AdminTranslation.scss?d494","webpack:///./src/views/AdminTranslation/AdminTranslation.vue?bf25","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","value","oldValue","$route","params","screening","toUpperCase","$i18n","locale","messages","obj","JSON","parse","stringify","getOjectProperties","parent","array","Object","getOwnPropertyNames","forEach","x","push","t","immediate","deep","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,KAAK,CAACJ,EAAIU,GAAGV,EAAIW,GAAGE,EAAME,iBAAgB,UAC3mBC,EAAkB,G,4GCMD,EAArB,6D,+DACS,EAAAR,aAA8B,GAC9B,EAAAC,MAAgB,GAFzB,qFAK4BQ,EAAeC,GACvCjB,KAAKO,aAAe,GACpBP,KAAKQ,MAAL,uBAA6BR,KAAKkB,OAAOC,OAAOC,UAAUC,cAA1D,cAA6ErB,KAAKsB,MAAMC,OAAOF,eAC/F,IAAMG,EAAYxB,KAAKsB,MAAME,SAEvBC,EAAMC,KAAKC,MAAMD,KAAKE,UAAUJ,EAASR,KAC/ChB,KAAK6B,mBAAmBJ,EAAK,MAXjC,yCAc6BA,EAAUK,GAAc,WAC3CC,EAAQC,OAAOC,oBAAoBR,GACzCM,EAAMG,SAAQ,SAACC,GACS,WAAlB,eAAOV,EAAIU,IACTL,EACF,EAAKD,mBAAmBJ,EAAIU,GAAIL,EAAS,IAAMK,GAE/C,EAAKN,mBAAmBJ,EAAIU,GAAIA,GAGlC,EAAK5B,aAAa6B,KAAK,CACrBvB,IAAKiB,EAAS,IAAMK,EACpBrB,QAAS,EAAKQ,MAAMe,EAAEP,EAAS,IAAMK,YA1B/C,GAA8C,QAK5C,gBADC,eAAM,eAAgB,CAAEG,WAAW,EAAMC,MAAM,K,8BAQ/C,MAZkB,EAAgB,gBADpC,QACoB,WCP4Q,I,wBCQ7RC,EAAY,eACd,EACA1C,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAyB,E","file":"js/chunk-513c48a8.js","sourcesContent":["import mod 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&\"; 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":""}