{"version":3,"sources":["webpack:///./node_modules/vuetify/lib/components/VForm/VForm.js","webpack:///./src/views/RecoverPassword.vue?bf1c","webpack:///./src/views/RecoverPassword.vue","webpack:///./src/views/RecoverPassword.vue?08c8","webpack:///./src/views/RecoverPassword.vue?d18f"],"names":["extend","name","form","this","inheritAttrs","props","disabled","Boolean","lazyValidation","readonly","value","data","inputs","watchers","errorBag","watch","val","errors","Object","values","includes","$emit","deep","immediate","methods","input","watcher","$watch","$set","_uid","valid","shouldValidate","hasOwnProperty","filter","validate","length","forEach","reset","resetErrorBag","setTimeout","resetValidation","push","watchInput","found","find","i","unwatch","$delete","h","staticClass","attrs","novalidate","attrs$","on","submit","e","$slots","default","render","_vm","_h","$createElement","_c","_self","model","callback","$$v","show","expression","_v","hideDialog","formValid","loading","sendcomplete","_e","emailRules","userName","nativeOn","$event","send","staticRenderFns","sendRecoverPasswordMail","UserName","rules","components","component","VBtn","VCard","VContainer","VDialog","VForm","VIcon","VSpacer","VTextField","VToolbar","VToolbarTitle"],"mappings":"mHAAA,wCAMe,sBAAO,OAAY,eAAmB,SAEnDA,OAAO,CACPC,KAAM,SAEN,UACE,MAAO,CACLC,KAAMC,OAIVC,cAAc,EACdC,MAAO,CACLC,SAAUC,QACVC,eAAgBD,QAChBE,SAAUF,QACVG,MAAOH,SAETI,KAAM,KAAM,CACVC,OAAQ,GACRC,SAAU,GACVC,SAAU,KAEZC,MAAO,CACLD,SAAU,CACR,QAAQE,GACN,MAAMC,EAASC,OAAOC,OAAOH,GAAKI,UAAS,GAC3CjB,KAAKkB,MAAM,SAAUJ,IAGvBK,MAAM,EACNC,WAAW,IAGfC,QAAS,CACP,WAAWC,GACT,MAAMC,EAAUD,GACPA,EAAME,OAAO,WAAYX,IAC9Bb,KAAKyB,KAAKzB,KAAKW,SAAUW,EAAMI,KAAMb,IACpC,CACDO,WAAW,IAITV,EAAW,CACfgB,KAAMJ,EAAMI,KACZC,MAAO,OACPC,eAAgB,QAelB,OAZI5B,KAAKK,e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AAlGZ,EAAG,QAAQ,CAACe,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAAIoB,KAAKD,MAAW,CAACnB,EAAIU,GAAG,aAAsB,IAAI,IAC/uDW,EAAkB,G,oICgDD,EAArB,yG,0BACU,EAAAb,MAAO,EACP,EAAAK,SAAU,EACV,EAAAC,cAAe,EACf,EAAAxD,OAAS,GACT,EAAAsD,WAAY,EACZ,EAAAK,SAAW,GANrB,gDAQS,WACLzE,KAAKoE,WAAY,IATrB,wBAYU,WACNpE,KAAKyE,SAAW,GAChBzE,KAAKgE,MAAO,IAdhB,2EAiBU,qGACNhE,KAAKqE,SAAU,EACfrE,KAAKsE,cAAe,EAFd,kBAIE,OAAWQ,wBAAwB,CAAEC,SAAU/E,KAAKyE,WAJtD,0DAMJzE,KAAKc,OAAS,aANV,yBAQJd,KAAKqE,SAAU,EACfrE,KAAKsE,cAAe,EAThB,4EAjBV,+EA8BE,WACE,OAAOU,EAAA,WA/BX,GAA6C,QAAxB,EAAe,yBAHnC,eAAU,CACTC,WAAY,MAEO,WCjDqX,I,yJCOtYC,EAAY,eACd,EACA3B,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAK,EAAiB,QAchC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,KAAWC,UAAA,KAAQC,QAAA,KAAMC,QAAA,KAAMC,UAAA,KAAQC,aAAA,KAAWC,WAAA,KAASC,cAAA","file":"js/recoverpassword.bc18d8ad.js","sourcesContent":["// Mixins\nimport mixins from '../../util/mixins';\nimport BindsAttrs from '../../mixins/binds-attrs';\nimport { provide as RegistrableProvide } from '../../mixins/registrable';\n/* @vue/component */\n\nexport default mixins(BindsAttrs, RegistrableProvide('form')\n/* @vue/component */\n).extend({\n name: 'v-form',\n\n provide() {\n return {\n form: this\n };\n },\n\n inheritAttrs: false,\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean\n },\n data: () => ({\n inputs: [],\n watchers: [],\n errorBag: {}\n }),\n watch: {\n errorBag: {\n handler(val) {\n const errors = Object.values(val).includes(true);\n this.$emit('input', !errors);\n },\n\n deep: true,\n immediate: true\n }\n },\n methods: {\n watchInput(input) {\n const watcher = input => {\n return input.$watch('hasError', val => {\n this.$set(this.errorBag, input._uid, val);\n }, {\n immediate: true\n });\n };\n\n const 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 => {\n if (!val) return; // Only watch if we're not already doing it\n\n if (this.errorBag.hasOwnProperty(input._uid)) return;\n watchers.valid = watcher(input);\n });\n } else {\n watchers.valid = watcher(input);\n }\n\n return watchers;\n },\n\n /** @public */\n validate() {\n return this.inputs.filter(input => !input.validate(true)).length === 0;\n },\n\n /** @public */\n reset() {\n this.inputs.forEach(input => input.reset());\n this.resetErrorBag();\n },\n\n resetErrorBag() {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {};\n }, 0);\n }\n },\n\n /** @public */\n resetValidation() {\n this.inputs.forEach(input => input.resetValidation());\n this.resetErrorBag();\n },\n\n register(input) {\n this.inputs.push(input);\n this.watchers.push(this.watchInput(input));\n },\n\n unregister(input) {\n const found = this.inputs.find(i => i._uid === input._uid);\n if (!found) return;\n const unwatch = this.watchers.find(i => i._uid === found._uid);\n\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\n render(h) {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$\n },\n on: {\n submit: e => this.$emit('submit', e)\n }\n }, this.$slots.default);\n }\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('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500px\",\"min-width\":\"350\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-toolbar',{attrs:{\"dense\":\"\",\"color\":\"primary\"}},[_c('v-toolbar-title',[_vm._v(\"Glemt kodeord\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"mr-1\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.hideDialog}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1)],1),_c('v-card',{staticClass:\"ma-0 pa-2\"},[_c('v-form',{model:{value:(_vm.formValid),callback:function ($$v) {_vm.formValid=$$v},expression:\"formValid\"}},[(!_vm.loading && !_vm.sendcomplete)?_c('v-container',{staticClass:\"ma-0 pa-0\"},[_c('p',[_vm._v(\" Har du glemt din adgangskode eller har problemer med at logge ind? Indtast din e-mail-adresse, og vi sender dig et link til nulstilling af kodeordet. \")]),_c('v-text-field',{attrs:{\"prepend-icon\":\"mdi-account\",\"rules\":_vm.emailRules,\"error-messages\":_vm.errors,\"label\":\"Login brugernavn (email)\",\"required\":\"\"},model:{value:(_vm.userName),callback:function ($$v) {_vm.userName=$$v},expression:\"userName\"}})],1):_vm._e(),(!_vm.loading && _vm.sendcomplete)?_c('v-container',{staticClass:\"ma-0 pa-0\"},[_c('p',[_vm._v(\" Der er nu sendt en email til angivne adresse med information om nulstilling af kodeord. Hvis du ikke har modtaget mailen inden for 15 minutter skal du kigge i din spam folder og markere mailen som \\\"Ikke spam\\\". \")])]):_vm._e(),(_vm.loading && !_vm.sendcomplete)?_c('v-container',{staticClass:\"ma-0 pa-0\"},[_c('p',[_vm._v(\"Sender mail...\")])]):_vm._e()],1),(!_vm.loading && !_vm.sendcomplete && _vm.formValid)?_c('v-btn',{nativeOn:{\"click\":function($event){return _vm.send($event)}}},[_vm._v(\" Send \")]):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport { ApiProfile } from '@/scripts/apiProfile';\nimport * as lib from '@/scripts/apiHelper.ts';\nimport * as rules from '@/scripts/rules.ts';\n\n@Component({\n components: {}\n})\nexport default class RecoverPassword extends Vue {\n private show = true;\n private loading = false;\n private sendcomplete = false;\n private errors = '';\n private formValid = false;\n private userName = '';\n\n public created(): void {\n this.formValid = false;\n }\n\n private hideDialog(): void {\n this.userName = '';\n this.show = false;\n }\n\n private async send(): Promise {\n this.loading = true;\n this.sendcomplete = false;\n try {\n await ApiProfile.sendRecoverPasswordMail({ UserName: this.userName });\n } catch (error) {\n this.errors = lib.getErrorMessage(error);\n } finally {\n this.loading = false;\n this.sendcomplete = true;\n }\n }\n\n get emailRules(): ((v: string) => string | boolean)[] {\n return rules.emailRules();\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/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecoverPassword.vue?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!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecoverPassword.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RecoverPassword.vue?vue&type=template&id=4e2ea356&\"\nimport script from \"./RecoverPassword.vue?vue&type=script&lang=ts&\"\nexport * from \"./RecoverPassword.vue?vue&type=script&lang=ts&\"\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 null,\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VContainer,VDialog,VForm,VIcon,VSpacer,VTextField,VToolbar,VToolbarTitle})\n"],"sourceRoot":""}