{"version":3,"sources":["webpack:///./src/mixins/toolbar-mixin.js","webpack:///../../../src/components/VForm/VForm.ts","webpack:///./src/views/account/logout.vue?cc5b","webpack:///./src/views/account/logout.vue","webpack:///src/views/account/logout.vue","webpack:///./src/views/account/logout.vue?123c","webpack:///./src/views/account/logout.vue?bb61"],"names":["methods","addToolbarButtons","buttons","store","commit","onBack","router","go","setToolbarHeader","icon","title","toolbarHeader","mixins","BindsAttrs","RegistrableProvide","extend","name","provide","form","this","inheritAttrs","props","disabled","Boolean","lazyValidation","readonly","value","data","inputs","watchers","errorBag","watch","handler","val","errors","Object","values","includes","$emit","deep","immediate","watchInput","input","watcher","$watch","$set","_uid","valid","shouldValidate","hasOwnProperty","validate","filter","length","reset","forEach","resetErrorBag","setTimeout","resetValidation","register","push","unregister","found","find","i","unwatch","$delete","render","h","staticClass","attrs","novalidate","attrs$","on","submit","e","getSlot","_vm","$vuetify","dark","_v","logger","log","created","callback","color","cy","text","width","onLogout","apiService","logoutSuccess","logoutError","component","staticRenderFns"],"mappings":"kHAAA,4BAGe,QACbA,QAAS,CACPC,kBAAkBC,GAChBC,OAAMC,OAAO,oBAAqBF,IAGpCG,SACEC,OAAOC,IAAI,IAGbC,iBAAiBC,EAAMC,GACrB,MAAMC,EAAgB,CACpBF,KAAMA,EACNC,MAAOA,GAETP,OAAMC,OAAO,mBAAoBO,KAIrCR,e,kGCDaS,sBACbC,OACAC,eAAmB,SAEnBC,OAAO,CACPC,KAAM,SAENC,UACE,MAAO,CAAEC,KAAMC,OAGjBC,cAAc,EAEdC,MAAO,CACLC,SAAUC,QACVC,eAAgBD,QAChBE,SAAUF,QACVG,MAAOH,SAGTI,KAAMA,KAAMA,CACVC,OAAQ,GACRC,SAAU,GACVC,SAAU,KAGZC,MAAO,CACLD,SAAU,CACRE,QAASC,GACP,MAAMC,EAASC,OAAOC,OAAOH,GAAKI,UAAS,GAE3ClB,KAAKmB,MAAM,SAAUJ,IAEvBK,MAAM,EACNC,WAAW,IAIfxC,Q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Q,CACfC,YAAa,SACbC,MAAO,CACLC,YAAY,KACTnD,KAAKoD,QAEVC,GAAI,CACFC,OAASC,GAAavD,KAAKmB,MAAM,SAAUoC,KAE5CC,eAAQxD,W,kCC9If,W,+FCAqH,W,IAAK,OAAE,EAAK,EAAI,MAAC,G,OAAM,EAACyD,OAAIC,GAAQ,OAAM,CAACC,SAAO,CAA6B,MAAMC,CACzM,YAGD,GAASb,KAAM,C,0MCkBf,MAAMc,EAAS,IAAIC,EAAA,KAAI,UAER,OACfjE,sBAEAJ,uBAEAsE,UACAF,qBACA,6CACA,SACA,CACAG,qBACAC,kBACAC,iBACA5E,qBACA6E,YACAC,WAEA,CACAJ,uBACAC,eACAC,mBACA5E,kBACA6E,cACAC,YAGA,2BAGAvF,SACAK,SACA2E,oBACA1E,eAGAkF,WACAR,oBACA,oDACAS,uDAGAC,gBACAV,2BACA7E,+BAGAwF,eACAX,yBACAA,oBACA,wBACA,cACA,UACA,kBACA,QAKA1E,cACAH,cCnF8V,I,wBCQ1VyF,EAAY,eACd,EACA,EACAC,GACA,EACA,KACA,WACA,MAIa,aAAAD,E","file":"js/account-logout.e4dab508.js","sourcesContent":["import store from \"@/store\";\nimport router from \"@/router\";\n\nexport default {\n methods: {\n addToolbarButtons(buttons) {\n store.commit(\"setToolbarButtons\", buttons);\n },\n\n onBack() {\n router.go(-1);\n },\n\n setToolbarHeader(icon, title) {\n const toolbarHeader = {\n icon: icon,\n title: title,\n };\n store.commit(\"setToolbarHeader\", toolbarHeader);\n },\n },\n\n store,\n};\n","// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\nimport { getSlot } from '../../util/helpers'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, getSlot(this))\n },\n})\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./logout.vue?vue&type=style&index=0&id=4f6297fe&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-form',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('h1',{class:_vm.$vuetify.theme.dark ? 'title-dark' : 'title-light'},[_vm._v(\" Are you sure you want to logout? \")]),_c('v-spacer')],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./logout.vue?vue&type=script&lang=js\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./logout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./logout.vue?vue&type=template&id=4f6297fe&scoped=true\"\nimport script from \"./logout.vue?vue&type=script&lang=js\"\nexport * from \"./logout.vue?vue&type=script&lang=js\"\nimport style0 from \"./logout.vue?vue&type=style&index=0&id=4f6297fe&prod&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 \"4f6297fe\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}