{"version":3,"sources":["webpack:///./src/views/Activate.vue?2ee0","webpack:///./src/views/Activate.vue","webpack:///./src/views/Activate.vue?f098","webpack:///./src/views/Activate.vue?50c1"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","staticStyle","_v","directives","name","rawName","value","error","expression","_s","validatedOK","cancelled","_e","staticRenderFns","newValue","oldValue","activate","LinkCode","result","Result","immediate","component","VBtn","VCol","VContainer","VRow"],"mappings":"iHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,cAAc,CAACE,YAAY,oBAAoB,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,YAAY,YAAYC,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,KAAK,CAACI,YAAY,CAAC,YAAY,QAAQ,MAAQ,QAAQ,cAAc,uEAAuE,CAACR,EAAIS,GAAG,gCAAgCL,EAAG,QAAQ,CAACM,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,QAASb,EAAIc,MAAOC,WAAW,YAAYR,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,MAAM,CAACE,YAAY,mCAAmC,CAACN,EAAIS,GAAG,IAAIT,EAAIgB,GAAGhB,EAAIc,OAAO,SAAUd,EAAIiB,cAAgBjB,EAAIkB,UAAWd,EAAG,QAAQ,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,MAAM,CAACJ,EAAIS,GAAG,6CAA6CL,EAAG,MAAM,CAACJ,EAAIS,GAAG,+DAA+DL,EAAG,MAAM,CAACJ,EAAIS,GAAG,sEAAsEL,EAAG,QAAQ,CAACG,MAAM,CAAC,MAAQ,UAAU,GAAK,WAAW,CAACP,EAAIS,GAAG,cAAc,GAAGT,EAAImB,KAAOnB,EAAIiB,aAAgBjB,EAAIkB,UAAiNlB,EAAImB,KAA1Mf,EAAG,QAAQ,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,MAAM,CAACJ,EAAIS,GAAG,gIAAyIL,EAAG,QAAQ,CAACM,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOb,EAAa,UAAEe,WAAW,cAAcT,YAAY,OAAOC,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,MAAM,CAACJ,EAAIS,GAAG,sDAAsD,IAAI,IAAI,IACn9CW,EAAkB,G,wHC6CD,EAArB,yG,0BACU,EAAAH,aAAc,EACd,EAAAC,WAAY,EAEZ,EAAAJ,MAAQ,GAJlB,0GASU,WAAeO,EAAkBC,GAAjC,2FAEFD,EAFE,iCAIFpB,KAAKa,MAAQ,GAJX,SAKmB,OAAWS,SAAS,CAAEC,SAAUH,IALnD,OAKII,EALJ,OAMFxB,KAAKgB,YAAcQ,EAAOC,OAC1BzB,KAAKiB,WAAY,EAPf,qDASFjB,KAAKa,MAAQ,aATX,0DATV,iEAAsC,QASpC,yBAFC,eAAM,wBAAyB,CAAEa,WAAW,K,uBAc5C,MArBkB,EAAQ,yBAD5B,QACoB,WC9C8W,I,iFCO/XC,EAAY,eACd,EACA7B,EACAqB,GACA,EACA,KACA,KACA,MAIa,aAAAQ,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,aAAA,KAAWC,OAAA","file":"js/activate.0a674fee.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-container',{staticClass:\"text-center pa-4\"},[_c('v-row',[_c('v-col',{staticClass:\"display-2\",attrs:{\"cols\":\"12\"}},[_c('h1',{staticStyle:{\"font-size\":\"0.9em\",\"color\":\"white\",\"text-shadow\":\"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000\"}},[_vm._v(\" Betaling og aktivering \")])]),_c('v-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.error),expression:\"!!error\"}],attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"error--text error-message title\"},[_vm._v(\" \"+_vm._s(_vm.error)+\" \")])]),(_vm.validatedOK && !_vm.cancelled)?_c('v-col',{staticClass:\"pa-4\",attrs:{\"cols\":\"12\"}},[_c('div',[_vm._v(\"Tak for din bestilling på DronePilot.dk\")]),_c('div',[_vm._v(\"Profilen er nu oprettet og du kan logge ind med det samme\")]),_c('div',[_vm._v(\"Profilen vises først på DronePilot.dk når betalingen er godkendt\")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"to\":\"/Login\"}},[_vm._v(\" Login \")])],1):_vm._e(),(!_vm.validatedOK && !_vm.cancelled)?_c('v-col',{staticClass:\"pa-4\",attrs:{\"cols\":\"12\"}},[_c('div',[_vm._v(\" Knæk...Av!...Noget gik galt...En mail er sendt til support der vil prøve at løse problemet. Prøv venligst igen senere. \")])]):_vm._e(),_c('v-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.cancelled),expression:\"cancelled\"}],staticClass:\"pa-4\",attrs:{\"cols\":\"12\"}},[_c('div',[_vm._v(\"Betaling afbrudt. Beløb ikke trukket på kort.\")])])],1)],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, Watch } from 'vue-property-decorator';\nimport * as lib from '@/scripts/apiHelper.ts';\nimport { ApiProfile } from '../scripts/apiProfile';\n\n@Component\nexport default class Activate extends Vue {\n private validatedOK = false;\n private cancelled = true;\n\n private error = '';\n\n // Watch for link code in URL\n @Watch('$route.query.linkcode', { immediate: true })\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n private async activate(newValue: string, oldValue: string): Promise {\n // Get link code from url\n if (newValue) {\n try {\n this.error = '';\n const result = await ApiProfile.activate({ LinkCode: newValue });\n this.validatedOK = result.Result;\n this.cancelled = false;\n } catch (error) {\n this.error = lib.getErrorMessage(error);\n }\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/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!./Activate.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!./Activate.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Activate.vue?vue&type=template&id=0055789a&\"\nimport script from \"./Activate.vue?vue&type=script&lang=ts&\"\nexport * from \"./Activate.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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VContainer,VRow})\n"],"sourceRoot":""}