{"version":3,"sources":["webpack:///./src/views/admin/DictionaryUI.vue?7e01","webpack:///src/views/admin/DictionaryUI.vue","webpack:///./src/views/admin/DictionaryUI.vue?ba09","webpack:///./src/views/admin/DictionaryUI.vue?2a1c","webpack:///./src/views/admin/DictionaryUI.vue?2d1d","webpack:///../../../src/components/VTextarea/VTextarea.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","domProps","_s","$t","languages","on","languageChanged","model","value","callback","$$v","language","expression","sections","sectionChanged","section","class","$vuetify","breakpoint","mdAndUp","$event","cancel","save","reload","editedItem","$set","loading","staticRenderFns","data","item","id","content","computed","methods","setLanguage","lang","locale","getDictionaryUISections","$store","dispatch","then","getDictionaryUI","JSON","parse","stringify","location","created","component","VBtn","VCol","VContainer","VOverlay","VProgressCircular","VRow","VSelect","VTextarea","baseMixins","name","props","autoGrow","noResize","rowHeight","type","Number","default","validator","v","isNaN","parseFloat","rows","parseInt","classes","noResizeHandle","watch","lazyValue","$nextTick","mounted","setTimeout","calculateInputHeight","input","$refs","height","minHeight","Math","genInput","onInput","onKeyDown","isFocused","e"],"mappings":"wKAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,cAAcC,MAAM,CAAC,MAAQ,KAAK,CAACH,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,YAAY,CAACH,EAAG,QAAQ,CAACE,YAAY,YAAYC,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,KAAK,CAACI,SAAS,CAAC,UAAYR,EAAIS,GAAGT,EAAIU,GAAG,4BAA4BN,EAAG,QAAQ,CAACE,YAAY,iBAAiBC,MAAM,CAAC,KAAO,KAAK,GAAK,MAAM,CAACH,EAAG,WAAW,CAACG,MAAM,CAAC,MAAQP,EAAIW,UAAU,YAAY,QAAQ,aAAa,SAAS,MAAQX,EAAIU,GAAG,+BAA+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Q,qCAAd,MAMA,OAJAA,EAAA,sBACOA,EAAA,WAAP,KACAA,EAAA,gBAA0BrF,KAA1B,KAEA,GAEF2F,QArBO,SAqBA,GACL,4CACA3F,KAAA,UAAiBA,KAAjB,wBAEF4F,UAzBO,SAyBE,GAIH5F,KAAK6F,WAAT,KAAsBC,EAAA,SACpBA,EAAA,kBAGF9F,KAAA","file":"js/dictionary-ui.f56d4da6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"white--text\",attrs:{\"fluid\":\"\"}},[_c('v-row',{attrs:{\"id\":\"content\"}},[_c('v-col',{staticClass:\"px-1 py-0\",attrs:{\"cols\":\"12\"}},[_c('h1',{domProps:{\"innerHTML\":_vm._s(_vm.$t('dictionaryUI.title'))}})]),_c('v-col',{staticClass:\"pl-2 pr-7 pb-0\",attrs:{\"cols\":\"12\",\"sm\":\"2\"}},[_c('v-select',{attrs:{\"items\":_vm.languages,\"item-text\":\"title\",\"item-value\":\"locale\",\"label\":_vm.$t('dictionaryUI.languageLabel')},on:{\"change\":_vm.languageChanged},model:{value:(_vm.language),callback:function ($$v) {_vm.language=$$v},expression:\"language\"}})],1),_c('v-col',{staticClass:\"pl-2 pr-7 pb-0\",attrs:{\"cols\":\"12\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"items\":_vm.sections,\"item-text\":\"title\",\"item-value\":\"id\",\"label\":_vm.$t('dictionaryUI.sectionLabel')},on:{\"change\":_vm.sectionChanged},model:{value:(_vm.section),callback:function ($$v) {_vm.section=$$v},expression:\"section\"}})],1),_c('v-col',{staticClass:\"pa-0 px-3 pb-0\",attrs:{\"cols\":\"12\",\"sm\":\"7\"}},[_c('v-row',[_c('v-col'),_c('v-col',{staticClass:\"px-1\",attrs:{\"cols\":\"6\",\"sm\":\"3\",\"align\":\"right\"}},[_c('v-btn',{staticClass:\"primary white--text full-width\",class:{ 'mt-3 mb-0': _vm.$vuetify.breakpoint.mdAndUp },attrs:{\"depressed\":\"\",\"tile\":\"\"},domProps:{\"innerHTML\":_vm._s(_vm.$t('dictionaryUI.cancelButton'))},on:{\"click\":function($event){return _vm.cancel()}}})],1),_c('v-col',{staticClass:\"px-1\",attrs:{\"cols\":\"6\",\"sm\":\"3\",\"align\":\"right\"}},[_c('v-btn',{staticClass:\"primary white--text full-width\",class:{ 'mt-3 mb-0': _vm.$vuetify.breakpoint.mdAndUp },attrs:{\"depressed\":\"\",\"tile\":\"\"},domProps:{\"innerHTML\":_vm._s(_vm.$t('dictionaryUI.saveButton'))},on:{\"click\":function($event){return _vm.save()}}})],1),_c('v-col',{staticClass:\"px-1\",attrs:{\"cols\":\"6\",\"sm\":\"3\",\"align\":\"right\"}},[_c('v-btn',{staticClass:\"primary white--text full-width\",class:{ 'mt-3 mb-0': _vm.$vuetify.breakpoint.mdAndUp },attrs:{\"depressed\":\"\",\"tile\":\"\"},domProps:{\"innerHTML\":_vm._s(_vm.$t('dictionaryUI.reloadButton'))},on:{\"click\":function($event){return _vm.reload()}}})],1)],1)],1),_c('v-col',{staticClass:\"px-1 pb-0\",attrs:{\"cols\":\"12\"}},[_c('v-textarea',{staticClass:\"font-small\",attrs:{\"auto-grow\":\"\",\"outlined\":\"\",\"label\":_vm.$t('dictionaryUI.contentLabel')},model:{value:(_vm.editedItem.content),callback:function ($$v) {_vm.$set(_vm.editedItem, \"content\", $$v)},expression:\"editedItem.content\"}})],1)],1),_c('v-overlay',{attrs:{\"value\":_vm.loading}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"size\":\"64\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DictionaryUI.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DictionaryUI.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DictionaryUI.vue?vue&type=template&id=68eb557e&scoped=true&\"\nimport script from \"./DictionaryUI.vue?vue&type=script&lang=js&\"\nexport * from \"./DictionaryUI.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DictionaryUI.vue?vue&type=style&index=0&id=68eb557e&lang=scss&scoped=true&\"\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 \"68eb557e\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VOverlay } from 'vuetify/lib/components/VOverlay';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\ninstallComponents(component, {VBtn,VCol,VContainer,VOverlay,VProgressCircular,VRow,VSelect,VTextarea})\n","import mod 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!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DictionaryUI.vue?vue&type=style&index=0&id=68eb557e&lang=scss&scoped=true&\"; 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!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DictionaryUI.vue?vue&type=style&index=0&id=68eb557e&lang=scss&scoped=true&\"","// Styles\nimport './VTextarea.sass'\n\n// Extensions\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport Vue from 'vue'\n\ninterface options extends Vue {\n $refs: {\n input: HTMLTextAreaElement\n }\n}\n\nconst baseMixins = mixins\n>(\n VTextField\n)\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-textarea',\n\n props: {\n autoGrow: Boolean,\n noResize: Boolean,\n rowHeight: {\n type: [Number, String],\n default: 24,\n validator: (v: any) => !isNaN(parseFloat(v)),\n },\n rows: {\n type: [Number, String],\n default: 5,\n validator: (v: any) => !isNaN(parseInt(v, 10)),\n },\n },\n\n computed: {\n classes (): object {\n return {\n 'v-textarea': true,\n 'v-textarea--auto-grow': this.autoGrow,\n 'v-textarea--no-resize': this.noResizeHandle,\n ...VTextField.options.computed.classes.call(this),\n }\n },\n noResizeHandle (): boolean {\n return this.noResize || this.autoGrow\n },\n },\n\n watch: {\n lazyValue () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n rowHeight () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n },\n\n mounted () {\n setTimeout(() => {\n this.autoGrow && this.calculateInputHeight()\n }, 0)\n },\n\n methods: {\n calculateInputHeight () {\n const input = this.$refs.input\n if (!input) return\n\n input.style.height = '0'\n const height = input.scrollHeight\n const minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight)\n // This has to be done ASAP, waiting for Vue\n // to update the DOM causes ugly layout jumping\n input.style.height = Math.max(minHeight, height) + 'px'\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.tag = 'textarea'\n delete input.data!.attrs!.type\n input.data!.attrs!.rows = this.rows\n\n return input\n },\n onInput (e: Event) {\n VTextField.options.methods.onInput.call(this, e)\n this.autoGrow && this.calculateInputHeight()\n },\n onKeyDown (e: KeyboardEvent) {\n // Prevents closing of a\n // dialog when pressing\n // enter\n if (this.isFocused && e.keyCode === 13) {\n e.stopPropagation()\n }\n\n this.$emit('keydown', e)\n },\n },\n})\n"],"sourceRoot":""}