{"version":3,"sources":["webpack:///./src/views/Login.vue?5b34","webpack:///./src/views/Login.vue","webpack:///./src/views/Login.vue?42a3","webpack:///./src/views/Login.vue?591a","webpack:///./src/views/Login.vue?254c"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","getImagePath","_v","sunIcon","_s","greeting","on","authorize","staticRenderFns","AuthModule","getModule","Auth","store","Login","_Vue","_this","_classCallCheck","publicPath","process","showLoginForm","_inherits","_createClass","key","value","_created","_asyncToGenerator","_regeneratorRuntime","mark","_callee","response","wrap","_context","prev","next","isAuthenticated","$router","replace","$route","query","redirect","UserService","GetAuthenticationMethod","sent","status","data","stop","created","apply","arguments","path","concat","_authorize","_callee2","_context2","$mainLoader","show","GetAuthorizeUrl","hide","showAuthorizePopup","url","Utils","ShowPopup","get","Greeting","endsWith","Vue","__decorate","Component","name","component","BCol","BRow","BContainer"],"mappings":"yIAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,cAAc,CAACG,YAAY,aAAaC,MAAM,CAAC,MAAQ,KAAK,CAACJ,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACG,YAAY,WAAWC,MAAM,CAAC,GAAK,OAAO,CAACJ,EAAG,QAAQ,CAACG,YAAY,eAAeC,MAAM,CAAC,GAAK,MAAM,CAACJ,EAAG,MAAM,CAACI,MAAM,CAAC,IAAMN,EAAIO,aAAa,yBAAyB,IAAM,WAAW,OAAS,QAAQL,EAAG,OAAO,CAACG,YAAY,oBAAoB,CAACL,EAAIQ,GAAG,gBAAgBN,EAAG,OAAO,CAACG,YAAY,YAAY,CAACL,EAAIQ,GAAG,mBAAmBN,EAAG,QAAQ,CAACG,YAAY,oBAAoBC,MAAM,CAAC,GAAK,MAAM,CAACJ,EAAG,KAAK,CAACF,EAAIQ,GAAG,WAAYR,EAAIS,QAASP,EAAG,IAAI,CAACG,YAAY,eAAeH,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KAAKwB,eAAgB,GAExB,wBAAAY,EAAAc,UAAAjB,EAAA,UAEJ,SAbKkB,IAAO,OAAAtB,EAAAuB,MAAC,KAADC,WAAA,OAAPF,EAsCP,IAtCc,CAAAxB,IAAA,eAAAC,MAcb,SAAa0B,GACX,MAAO,GAAPC,OAAUvD,KAAKsB,YAAUiC,OAAGD,KAC7B,CAAA3B,IAAA,YAAAC,MAAA,eAAA4B,EAAA1B,eAAAC,iBAAAC,MACD,SAAAyB,IAAA,IAAAvB,EAAA,OAAAH,iBAAAI,MAAA,SAAAuB,GAAA,eAAAA,EAAArB,KAAAqB,EAAApB,MAAA,OAC0B,OAAxBtC,KAAK2D,YAAYC,OAAOF,EAAApB,KAAA,EACHO,OAAYgB,kBAAiB,OAA9C3B,EAAQwB,EAAAX,KACZ/C,KAAK2D,YAAYG,OAEO,MAApB5B,EAASc,QAEXhD,KAAK+D,mBAAmB7B,EAASe,MAClC,wBAAAS,EAAAR,UAAAO,EAAA,UACF,SATK7C,IAAS,OAAA4C,EAAAJ,MAAC,KAADC,WAAA,OAATzC,EADL,IACc,CAAAe,IAAA,qBAAAC,MAUf,SAAmBoC,GACjBC,OAAMC,UAAUF,EAAK,YAAa,IAAK,IAAK,SAC7C,CAAArC,IAAA,WAAAwC,IACD,WACE,OAAOF,OAAMG,UAAS,KACvB,CAAAzC,IAAA,UAAAwC,IACD,WACE,OACEnE,KAAKU,SAAS2D,SAAS,YAAcrE,KAAKU,SAAS2D,SAAS,iBAtCxC,CAASC,QAAdpD,EAAKqD,eAAA,CAHzBC,eAAU,CACTC,KAAM,WAEavD,WCb8Z,I,kFCQjbwD,EAAY,eACd,EACA5E,EACAe,GACA,EACA,KACA,WACA,MAOE,IAAkB6D,EAAW,CAACC,KAAA,OAAMC,KAAA,OAAMC,WAAA,SAG/B,aAAAH,E","file":"js/chunk-168cdb9e.2420803a.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/bootstrap-vue-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&id=2b178405&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('b-container',{staticClass:\"login-area\",attrs:{\"fluid\":\"\"}},[_c('b-row',[_c('b-col',{staticClass:\"centered\",attrs:{\"lg\":\"12\"}},[_c('b-col',{staticClass:\"mx-auto mb-4\",attrs:{\"md\":\"5\"}},[_c('img',{attrs:{\"src\":_vm.getImagePath('img/logo-vetquest.png'),\"alt\":\"VetQuest\",\"height\":\"55\"}}),_c('span',{staticClass:\"nextlogo vettext\"},[_vm._v(\"Veterinary\")]),_c('span',{staticClass:\"nextlogo\"},[_vm._v(\"Classifieds\")])]),_c('b-col',{staticClass:\"mx-auto box-login\",attrs:{\"md\":\"5\"}},[_c('h2',[_vm._v(\" Hello \"),(_vm.sunIcon)?_c('i',{staticClass:\"fas fa-sun\"}):_c('i',{staticClass:\"fas fa-moon-o\"}),_c('br'),_vm._v(\" \"+_vm._s(_vm.greeting)+\" \")]),_c('div',{staticClass:\"mt-3 mb-4 mx-2\"},[_c('button',{staticClass:\"btn btn-primary btn-block mx-auto\",on:{\"click\":_vm.authorize}},[_vm._v(\" Sign In \")])]),_c('span',[_vm._v(\" For Veterinarians, By Veterinarians \"),_c('span',{staticClass:\"registered\"},[_vm._v(\"®\")]),_c('br'),_vm._v(\" Don’t have a VIN account? \"),_c('br'),_c('a',{attrs:{\"href\":\"https://www.vin.com\",\"target\":\"_blank\"}},[_vm._v(\"Get Started\")])])])],1),_c('b-col',{staticClass:\"footerlog text-center\",attrs:{\"md\":\"12\"}},[_vm._v(\" Copyright 2019, Veterinary Information Network, Inc. \")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n import { Vue, Component } from \"vue-property-decorator\";\r\n import { getModule } from \"vuex-module-decorators\";\r\n import { Utils } from \"@/helper\";\r\n import { UserService } from \"../services\";\r\n import { Auth } from \"@/store/modules/AuthModule\";\r\n import store from \"@/store\";\r\n\r\n const AuthModule = getModule(Auth, store);\r\n\r\n @Component({\r\n name: \"Login\"\r\n })\r\n export default class Login extends Vue {\r\n publicPath: string = process.env.BASE_URL as string;\r\n showLoginForm: boolean = false;\r\n async created() {\r\n if (AuthModule.isAuthenticated) {\r\n this.$router.replace((this.$route.query as any).redirect || \"/\");\r\n } else {\r\n let response = await UserService.GetAuthenticationMethod();\r\n if (response.status === 200) {\r\n if (response.data === \"VINSec\") {\r\n this.showLoginForm = true;\r\n } else {\r\n this.showLoginForm = false;\r\n }\r\n }\r\n }\r\n }\r\n getImagePath(path: string) {\r\n return `${this.publicPath}${path}`;\r\n }\r\n async authorize() {\r\n this.$mainLoader.show();\r\n let response = await UserService.GetAuthorizeUrl();\r\n this.$mainLoader.hide();\r\n\r\n if (response.status === 200) {\r\n // window.location.replace(response.result)\r\n this.showAuthorizePopup(response.data);\r\n }\r\n }\r\n showAuthorizePopup(url: string) {\r\n Utils.ShowPopup(url, \"VIN Login\", 700, 500, \"yes\");\r\n }\r\n get greeting() {\r\n return Utils.Greeting(false);\r\n }\r\n get sunIcon() {\r\n return (\r\n this.greeting.endsWith(\"morning\") || this.greeting.endsWith(\"afternoon\")\r\n );\r\n }\r\n }\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/bootstrap-vue-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/bootstrap-vue-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=2b178405&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=ts\"\nexport * from \"./Login.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=2b178405&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 \"2b178405\",\n null\n \n)\n\n\n import installComponents from \"!F:/TFSAgents/TFS02-Build-01/_work/61/s/VetQuest.Backend/VetQuest.Web/client-app/node_modules/bootstrap-vue-loader/lib/runtime/installComponents.js\"\n import {BCol, BRow, BContainer} from 'bootstrap-vue'\n installComponents(component, {BCol, BRow, BContainer})\n \n\nexport default component.exports"],"sourceRoot":""}