{"version":3,"sources":["webpack:///./src/components/responsibility_item.vue?0bef","webpack:///./src/components/responsibility_item.vue","webpack:///src/components/responsibility_item.vue","webpack:///./src/components/responsibility_item.vue?3cf1","webpack:///./src/components/responsibility_item.vue?1d7a","webpack:///../../../src/components/VTextarea/VTextarea.ts"],"names":["expression","item","attrs","staticClass","_v","staticStyle","_c","model","callback","_vm","on","close_dialog","is_loading","staticRenderFns","render","component","baseMixins","extend","name","props","autoGrow","Boolean","noResize","rowHeight","type","Number","String","default","validator","v","isNaN","parseFloat","rows","parseInt","computed","this","noResizeHandle","options","classes","call","watch","val","$nextTick","calculateInputHeight","$refs","input","style","removeProperty","setTimeout","methods","height","scrollHeight","minHeight","Math","max","genInput","tag","data","e","onInput","isFocused","keyCode","stopPropagation","$emit"],"mappings":"uIAAA,W,qLCA8M,W,IAACA,OAAoB,aAAC,OAAO,EAACC,OAAS,CAAmCC,MAAM,CAAC,MAAQ,QAAsB,WAAO,GAAE,eAAsBC,OAAmBD,MAAM,UAAC,SAAO,YAAmB,UAAe,GAAe,uBAA0BC,CAAY,OAAZA,OAAY,oBAAO,MAAMC,CAA4DD,MAAW,sBAAaE,UAA6B,kBAAE,YAAW,OAACF,OAA4BG,KAAQ,mBAA4EJ,YAAM,EAAC,gBAA8B,SAAa,C,YAAS,Q,CAAoB,yCAAiB,a,YAAW,YAAE,YAAC,CAACK,OAAM,U,CAA8BC,QAAS,C,YAAyBC,e,CAA6B,EAAC,+C,MAACT,CAA6B,eAAI,UAAW,GAA8BG,SAAY,GAAeG,MAAG,oBAASJ,UAAM,MAAC,QAAO,IAAIQ,MAAG,CAAC,MAAO,EAAC,iB,SAAwBD,SAAIE,GAAc,gCAAKF,WAAO,uBAAgD,QAAUA,IAAIG,SAAU,Q,YAAU,c,CAAC,UAAc,MAAC,CAAG,KAAC,I,GAA0B,CAAqC,kBAAC,2BAE3wCC,oBAAoB,oBAExB,MAASC,C,kJC8CT,GACA,YACA,6DAEA,OACA,IACA,YACA,WAEA,OAC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,UAAYe,KAAKQ,wBACrB,IAGLM,QAAS,CACP,uBACE,MAAMJ,EAAQV,KAAKS,MAAMC,MACzB,IAAKA,EAAO,OAEZA,EAAMC,MAAMI,OAAS,IACrB,MAAMA,EAASL,EAAMM,aACfC,EAAYnB,SAASE,KAAKH,KAAM,IAAMD,WAAWI,KAAKZ,WAG5DsB,EAAMC,MAAMI,OAASG,KAAKC,IAAIF,EAAWF,GAAU,MAErD,WACE,MAAML,EAAQ,OAAWR,QAAQY,QAAQM,SAAShB,KAAKJ,MAMvD,OAJAU,EAAMW,IAAM,kBACLX,EAAMY,KAAMvD,MAAOsB,KAC1BqB,EAAMY,KAAMvD,MAAO8B,KAAOG,KAAKH,KAExBa,GAET,QAASa,GACP,OAAWrB,QAAQY,QAAQU,QAAQpB,KAAKJ,KAAMuB,GAC9CvB,KAAKf,UAAYe,KAAKQ,wBAExB,UAAWe,GAILvB,KAAKyB,WAA2B,KAAdF,EAAEG,SACtBH,EAAEI,kBAGJ3B,KAAK4B,MAAM,UAAWL,Q","file":"js/chunk-69d99fc4.3bff8af9.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./responsibility_item.vue?vue&type=style&index=0&id=abde9f5c&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"40rem\",\"persistent\":\"\",\"scrollable\":\"\"},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:\"visible\"}},[(_vm.item !== null)?_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"primary white--text\",\"flat\":\"\"}},[_c('sabira_icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"responsibilities\",\"strokewidth\":3,\"fill\":\"white\"}}),_c('v-toolbar-title',{staticClass:\"ml-1\"},[_vm._v(\"\\n Odgovornost\\n \")])],1),_c('v-card-text',{staticClass:\"pa-0 ma-0\",staticStyle:{\"height\":\"30rem\"}},[_c('div',{staticClass:\"master_grid\"},[_c('div',[_c('v-list',[_c('v-list-item',[_c('v-list-item-content',[_c('v-textarea',{attrs:{\"auto-grow\":\"\",\"clearable\":\"\",\"outlined\":\"\",\"label\":\"Opis odgovornosti\",\"maxlength\":\"255\",\"counter\":\"\"},model:{value:(_vm.item.description),callback:function ($$v) {_vm.$set(_vm.item, \"description\", $$v)},expression:\"item.description\"}})],1)],1)],1)],1)])]),_c('v-card-actions',{staticClass:\"background\"},[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.close_dialog()}}},[_vm._v(\"Odustani\")]),_c('v-spacer'),_c('v-btn',{attrs:{\"loading\":_vm.is_loading,\"text\":\"\",\"depressed\":\"\"},on:{\"click\":function($event){return _vm.save_responsibility_item()}}},[_vm._v(\"Snimi\")])],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n Odgovornost\n \n \n \n \n
\n \n \n \n \n \n \n \n
\n
\n \n \n Odustani\n \n Snimi\n \n \n \n\n\n\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!./responsibility_item.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!./responsibility_item.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./responsibility_item.vue?vue&type=template&id=abde9f5c&scoped=true\"\nimport script from \"./responsibility_item.vue?vue&type=script&lang=js\"\nexport * from \"./responsibility_item.vue?vue&type=script&lang=js\"\nimport style0 from \"./responsibility_item.vue?vue&type=style&index=0&id=abde9f5c&prod&scoped=true&lang=css\"\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 \"abde9f5c\",\n null\n \n)\n\nexport default component.exports","// 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 autoGrow (val: boolean) {\n this.$nextTick(() => {\n val\n ? this.calculateInputHeight()\n : this.$refs.input?.style.removeProperty('height')\n })\n },\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":""}