{"version":3,"sources":["webpack:///./node_modules/vuetify/lib/components/VForm/VForm.js","webpack:///./src/views/SubmitQuestion.vue?ac2d","webpack:///src/views/SubmitQuestion.vue","webpack:///./src/views/SubmitQuestion.vue?dfb5","webpack:///./src/views/SubmitQuestion.vue","webpack:///./src/views/SubmitQuestion.vue?a146"],"names":["__webpack_require__","_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__","__webpack_exports__","name","mixins","Object","inheritAttrs","props","value","Boolean","lazyValidation","data","inputs","watchers","errorBag","watch","handler","errors","values","this","includes","$emit","deep","immediate","methods","watchInput","input","_this","watcher","$watch","val","$set","_uid","valid","undefined","shouldValidate","hasOwnProperty","validate","filter","length","reset","_this2","i","setTimeout","resetValidation","_this3","register","unwatch","push","unregister","found","find","$delete","render","h","_this4","staticClass","attrs","assign","novalidate","$attrs","on","submit","e","$slots","default","_vm","_h","$createElement","_c","_self","fluid","fill-height","align-center","justify-center","xs12","sm8","md4","dark","color","_v","$event","preventDefault","submitQuestion","cancel","goBack","id","prepend-icon","label","type","model","callback","$$v","formQuestion","expression","form","click","staticRenderFns","SubmitQuestionvue_type_script_lang_js_","_submitQuestion","asyncToGenerator","regeneratorRuntime","mark","_callee","createQuestionRequest","wrap","_context","prev","next","$toast","error","abrupt","inquiry","requests","createQuestion","success","$router","back","t0","console","stop","apply","arguments","views_SubmitQuestionvue_type_script_lang_js_","component","componentNormalizer","options","__file","installComponents_default","VBtn","VCard","VCardActions","components_VCard","VCardText","VContainer","VContent","VFlex","VForm","VLayout","VSpacer","VGrid","VTextarea","VToolbar","VToolbarTitle","components_VToolbar","_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_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vuetify_loader_lib_loader_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubmitQuestion_vue_vue_type_style_index_0_id_de4dfe24_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_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_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vuetify_loader_lib_loader_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubmitQuestion_vue_vue_type_style_index_0_id_de4dfe24_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n"],"mappings":"oKAAAA,EAAA,YAAAC,EAAAD,EAAA,QAIeE,EAAA,MACfC,KAAA,SACAC,OAAA,CAAaC,OAAAJ,EAAA,KAAAI,CAAkB,SAC/BC,cAAA,EACAC,MAAA,CACAC,MAAAC,QACAC,eAAAD,SAEAE,KAAA,WACA,OACAC,OAAA,GACAC,SAAA,GACAC,SAAA,KAIAC,MAAA,CACAD,SAAA,CACAE,QAAA,WACA,IAAAC,EAAAZ,OAAAa,OAAAC,KAAAL,UAAAM,UAAA,GACAD,KAAAE,MAAA,SAAAJ,IAGAK,MAAA,EACAC,WAAA,IAGAC,QAAA,CACAC,WAAA,SAAAC,GACA,IAAAC,EAAAR,KAEAS,EAAA,SAAAF,GACA,OAAAA,EAAAG,OAAA,oBAAAC,GACAH,EAAAI,KAAAJ,EAAAb,SAAAY,EAAAM,KAAAF,IACiB,CAAGP,WAAA,KAEpBV,EAAA,CACAmB,KAAAN,EAAAM,KACAC,WAAAC,EACAC,oBAAAD,GAaA,OAXAf,KAAAT,eAEAG,EAAAsB,eAAAT,EAAAG,OAAA,0BAAAC,GACAA,IAEAH,EAAAb,SAAAsB,eAAAV,EAAAM,QACAnB,EAAAoB,MAAAL,EAAAF,OAGAb,EAAAoB,MAAAL,EAAAF,GAEAb,GAIAwB,SAAA,WACA,IAAApB,EAAAE,KAAAP,OAAA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J,EAAAF,GAA0hBC,EAAG","file":"js/chunk-052ca179.da8fc3d5.js","sourcesContent":["// Styles\nimport '../../../src/stylus/components/_forms.styl';\nimport { provide as RegistrableProvide } from '../../mixins/registrable';\n/* @vue/component */\nexport default {\n name: 'v-form',\n mixins: [RegistrableProvide('form')],\n inheritAttrs: false,\n props: {\n value: Boolean,\n lazyValidation: Boolean\n },\n data: function data() {\n return {\n inputs: [],\n watchers: [],\n errorBag: {}\n };\n },\n\n watch: {\n errorBag: {\n handler: function handler() {\n var errors = Object.values(this.errorBag).includes(true);\n this.$emit('input', !errors);\n },\n\n deep: true,\n immediate: true\n }\n },\n methods: {\n watchInput: function watchInput(input) {\n var _this = this;\n\n var watcher = function watcher(input) {\n return input.$watch('hasError', function (val) {\n _this.$set(_this.errorBag, input._uid, val);\n }, { immediate: true });\n };\n var watchers = {\n _uid: input._uid,\n valid: undefined,\n shouldValidate: undefined\n };\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', function (val) {\n if (!val) return;\n // Only watch if we're not already doing it\n if (_this.errorBag.hasOwnProperty(input._uid)) return;\n watchers.valid = watcher(input);\n });\n } else {\n watchers.valid = watcher(input);\n }\n return watchers;\n },\n\n /** @public */\n validate: function validate() {\n var errors = this.inputs.filter(function (input) {\n return !input.validate(true);\n }).length;\n return !errors;\n },\n\n /** @public */\n reset: function reset() {\n var _this2 = this;\n\n for (var i = this.inputs.length; i--;) {\n this.inputs[i].reset();\n }\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(function () {\n _this2.errorBag = {};\n }, 0);\n }\n },\n\n /** @public */\n resetValidation: function resetValidation() {\n var _this3 = this;\n\n for (var i = this.inputs.length; i--;) {\n this.inputs[i].resetValidation();\n }\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(function () {\n _this3.errorBag = {};\n }, 0);\n }\n },\n register: function register(input) {\n var unwatch = this.watchInput(input);\n this.inputs.push(input);\n this.watchers.push(unwatch);\n },\n unregister: function unregister(input) {\n var found = this.inputs.find(function (i) {\n return i._uid === input._uid;\n });\n if (!found) return;\n var unwatch = this.watchers.find(function (i) {\n return i._uid === found._uid;\n });\n unwatch.valid && unwatch.valid();\n unwatch.shouldValidate && unwatch.shouldValidate();\n this.watchers = this.watchers.filter(function (i) {\n return i._uid !== found._uid;\n });\n this.inputs = this.inputs.filter(function (i) {\n return i._uid !== found._uid;\n });\n this.$delete(this.errorBag, found._uid);\n }\n },\n render: function render(h) {\n var _this4 = this;\n\n return h('form', {\n staticClass: 'v-form',\n attrs: Object.assign({\n novalidate: true\n }, this.$attrs),\n on: {\n submit: function submit(e) {\n return _this4.$emit('submit', e);\n }\n }\n }, this.$slots.default);\n }\n};\n//# sourceMappingURL=VForm.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VContent',[_c('VContainer',{attrs:{\"fluid\":\"\",\"fill-height\":\"\"}},[_c('VLayout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('VFlex',{attrs:{\"xs12\":\"\",\"sm8\":\"\",\"md4\":\"\"}},[_c('VCard',{staticClass:\"elevation-12\"},[_c('VToolbar',{attrs:{\"dark\":\"\",\"color\":\"primary\"}},[_c('VToolbarTitle',[_vm._v(\"Submit a Question\")])],1),_c('VCardText',[_c('VForm',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submitQuestion($event)},\"cancel\":_vm.goBack}},[_c('VTextarea',{attrs:{\"id\":\"submit-question-form\",\"prepend-icon\":\"add_comment\",\"name\":\"question\",\"label\":\"Question\",\"type\":\"text\"},model:{value:(_vm.formQuestion),callback:function ($$v) {_vm.formQuestion=$$v},expression:\"formQuestion\"}})],1)],1),_c('VCardActions',[_c('VBtn',{attrs:{\"color\":\"secondary\",\"type\":\"cancel\",\"form\":\"submit-question-form\"},on:{\"click\":_vm.goBack}},[_vm._v(\"\\n Back\\n \")]),_c('VSpacer'),_c('VBtn',{attrs:{\"color\":\"primary\",\"type\":\"submit\",\"form\":\"submit-question-form\"},on:{\"click\":_vm.submitQuestion}},[_vm._v(\"\\n Submit Question\\n \")])],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib/index.js!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitQuestion.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib/index.js!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitQuestion.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SubmitQuestion.vue?vue&type=template&id=de4dfe24&scoped=true&\"\nimport script from \"./SubmitQuestion.vue?vue&type=script&lang=js&\"\nexport * from \"./SubmitQuestion.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SubmitQuestion.vue?vue&type=style&index=0&id=de4dfe24&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 \"de4dfe24\",\n null\n \n)\n\ncomponent.options.__file = \"SubmitQuestion.vue\"\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib'\nimport { VCard } from 'vuetify/lib'\nimport { VCardActions } from 'vuetify/lib'\nimport { VCardText } from 'vuetify/lib'\nimport { VContainer } from 'vuetify/lib'\nimport { VContent } from 'vuetify/lib'\nimport { VFlex } from 'vuetify/lib'\nimport { VForm } from 'vuetify/lib'\nimport { VLayout } from 'vuetify/lib'\nimport { VSpacer } from 'vuetify/lib'\nimport { VTextarea } from 'vuetify/lib'\nimport { VToolbar } from 'vuetify/lib'\nimport { VToolbarTitle } from 'vuetify/lib'\ninstallComponents(component, {\n VBtn,\n VCard,\n VCardActions,\n VCardText,\n VContainer,\n VContent,\n VFlex,\n VForm,\n VLayout,\n VSpacer,\n VTextarea,\n VToolbar,\n VToolbarTitle,\n})\n","import mod 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/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitQuestion.vue?vue&type=style&index=0&id=de4dfe24&scoped=true&lang=css&\"; export default mod; 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/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitQuestion.vue?vue&type=style&index=0&id=de4dfe24&scoped=true&lang=css&\""],"sourceRoot":""}