{"version":3,"sources":["webpack:///./src/components/security/_Login.vue?1f3a","webpack:///./src/components/security/_Login.vue","webpack:///./src/components/security/_Login.vue?8c86","webpack:///./src/components/security/_Login.vue?aa24","webpack:///./src/assets/img/svg/visiosign_cloud_logo_black.svg","webpack:///./src/components/security/_Login.vue?1a64"],"names":["render","_vm","this","_h","$createElement","_c","_self","azureAdStatus","staticClass","_v","_s","$t","attrs","enabled","_e","directives","name","rawName","value","authUser","expression","class","failedLogin","domProps","on","$event","type","indexOf","_k","keyCode","key","onLogin","target","composing","$set","inputModified","legacyLoginRoute","onAzureSignIn","staticRenderFns","namespace","processingLogin","email","password","loginAction","then","response","setLocale","$router","push","catch","reason","languageCode","getCurrentUser","cultureCode","i18n","locale","azureLoginAction","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAIM,cAAoB,OAAEF,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,KAAK,CAACG,YAAY,mCAAmC,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,qBAAqBN,EAAG,MAAM,CAACG,YAAY,OAAOI,MAAM,CAAC,IAAM,EAAQ,WAAwDX,EAAIM,cAAcM,QAAg3DZ,EAAIa,KAA32DT,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,QAAQ,CAACG,YAAY,UAAUI,MAAM,CAAC,IAAM,eAAe,CAACX,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,0BAA0BN,EAAG,QAAQ,CAACU,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOjB,EAAIkB,SAAc,MAAEC,WAAW,mBAAmBZ,YAAY,oBAAoBa,MAAM,CAAE,uBAAwBpB,EAAIqB,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AzCvB,sCA6CQd,KAAKoB,aAAc,IA7C3B,kCAiDQ,IAAM6B,EAAuBjD,KAAKkD,eAAeC,YACjDC,EAAA,KAAKC,OAASJ,GAAgB,SAlDtC,sCAqDiB,WACTjD,KAAKsD,mBACAZ,MAAK,SAACC,GACH,EAAKC,YACL,EAAKC,QAAQC,KAAK,QAErBC,OAAM,SAACC,WA3DpB,GAAmC,QACO,gBAArC,eAAO,cAAe,CAAEX,e,kCACkB,gBAA1C,eAAO,mBAAoB,CAAEA,e,uCACW,gBAAxC,eAAO,iBAAkB,CAAEA,e,qCACA,gBAA3B,eAAO,qB,oCAJS,EAAK,gBADzB,QACoB,WCtE8X,I,wBCQ/YkB,EAAY,eACd,EACAzD,EACAsC,GACA,EACA,KACA,WACA,MAIa,aAAAmB,E,qDCnBfC,EAAOC,QAAU,IAA0B,+C,kCCA3C,yBAAuf,EAAG","file":"js/chunk-2d64dfb0.98f02332.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.azureAdStatus.loaded)?_c('div',{staticClass:\"login-page\"},[_c('div',{staticClass:\"login-wrap\"},[_c('div',{staticClass:\"login-box\"},[_c('h6',{staticClass:\"font-size-13 font-weight-normal\"},[_vm._v(_vm._s(_vm.$t(\"login.welcome\")))]),_c('img',{staticClass:\"logo\",attrs:{\"src\":require(\"@/assets/img/svg/visiosign_cloud_logo_black.svg\")}}),(!_vm.azureAdStatus.enabled)?_c('div',{staticClass:\"mt-7 mb-6\"},[_c('label',{staticClass:\"sr-only\",attrs:{\"for\":\"inputEmail\"}},[_vm._v(_vm._s(_vm.$t('login.emailAddress')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.authUser.email),expression:\"authUser.email\"}],staticClass:\"form-control mb-4\",class:{ 'shake-x failed-login': _vm.failedLogin },attrs:{\"autofocus\":\"\",\"id\":\"inputEmail\",\"required\":\"\",\"type\":\"email\",\"placeholder\":_vm.$t('login.emailAddress')},domProps:{\"value\":(_vm.authUser.email)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.onLogin()},\"input\":[function($event){if($event.target.composing){ return; }_vm.$set(_vm.authUser, \"email\", $event.target.value)},function($event){return _vm.inputModified()}]}}),_c('label',{staticClass:\"sr-only\",attrs:{\"for\":\"inputPassword\"}},[_vm._v(_vm._s(_vm.$t('users.password')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.authUser.password),expression:\"authUser.password\"}],staticClass:\"form-control\",class:{ 'shake-x failed-login': _vm.failedLogin },attrs:{\"id\":\"inputPassword\",\"required\":\"\",\"type\":\"password\",\"placeholder\":_vm.$t('users.password')},domProps:{\"value\":(_vm.authUser.password)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.onLogin()},\"input\":[function($event){if($event.target.composing){ return; }_vm.$set(_vm.authUser, \"password\", $event.target.value)},function($event){return _vm.inputModified()}]}}),_c('b-link',{staticClass:\"font-size-13\",attrs:{\"to\":\"/resetpassword\"}},[_vm._v(_vm._s(_vm.$t('login.forgotpassword')))]),_c('div',{staticClass:\"mt-6\"},[_c('label',[_vm._v(_vm._s(_vm.$t(\"login.legacyText\"))),_c('router-link',{attrs:{\"to\":_vm.legacyLoginRoute()}},[_vm._v(_vm._s(_vm.$t(\"login.here\")))])],1)])],1):_vm._e(),(!_vm.azureAdStatus.enabled)?_c('button',{staticClass:\"btn btn-lg btn-block btn-secondary has-icon\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onLogin()}}},[_c('span',[_vm._v(_vm._s(_vm.$t('login.signIn')))])]):_vm._e(),(_vm.azureAdStatus.enabled)?_c('button',{staticClass:\"btn btn-lg btn-block btn-secondary has-icon azureAD-btn\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onAzureSignIn()}}},[_vm._v(\" \"+_vm._s(_vm.$t('login.azureSignIn'))+\" \")]):_vm._e()]),_c('div',{staticClass:\"login-aside-graphic\"})])]):_vm._e()}\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { AzureAdStatus } from \"@/store/types\";\r\nimport { User } from \"@/store/authentication/types\";\r\nimport i18n from \"@/i18n\";\r\nimport { FALLBACK_LOCALE } from \"@/app.config\";\r\nimport { bus } from \"@/bus\";\r\nconst namespace: string = \"authentication\";\r\n\r\n@Component\r\nexport default class Login extends Vue {\r\n @Action(\"loginAction\", { namespace }) loginAction: any;\r\n @Action(\"azureLoginAction\", { namespace }) azureLoginAction: any;\r\n @Getter(\"getCurrentUser\", { namespace }) getCurrentUser: any;\r\n @Getter(\"getAzureAdStatus\") azureAdStatus!: AzureAdStatus;\r\n\r\n processingLogin = false;\r\n failedLogin = false;\r\n authUser: User = {\r\n email: \"\",\r\n password: \"\"\r\n };\r\n\r\n // azureAdStatus: AzureAdStatus = {\r\n // enabled: false,\r\n // loaded: false\r\n // };\r\n //\r\n // async mounted() {\r\n // this.azureAdStatus = this.getAzureAdStatus;\r\n // }\r\n\r\n onLogin(): void {\r\n this.processingLogin = true;\r\n this.failedLogin = false;\r\n this.loginAction(this.authUser)\r\n .then((response: any) => {\r\n this.processingLogin = false;\r\n this.failedLogin = false;\r\n this.setLocale();\r\n this.$router.push(\"/\");\r\n })\r\n .catch((reason: any) => {\r\n this.processingLogin = false;\r\n this.failedLogin = true;\r\n // TODO failed notification\r\n // alert(\"login failed\");\r\n });\r\n }\r\n\r\n legacyLoginRoute() {\r\n return { name: \"LegacyLogin\" };\r\n }\r\n\r\n inputModified(): void {\r\n this.failedLogin = false;\r\n }\r\n\r\n setLocale(): void {\r\n const languageCode: string = this.getCurrentUser.cultureCode;\r\n i18n.locale = languageCode || FALLBACK_LOCALE;\r\n }\r\n\r\n onAzureSignIn() {\r\n this.azureLoginAction()\r\n .then((response: string) => {\r\n this.setLocale();\r\n this.$router.push(\"/\");\r\n })\r\n .catch((reason: any) => {\r\n // TODO failed notification\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-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--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-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=003acf64&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=003acf64&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 \"003acf64\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/visiosign_cloud_logo_black.d71ea7cd.svg\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Login.vue?vue&type=style&index=0&id=003acf64&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/dist/cjs.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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Login.vue?vue&type=style&index=0&id=003acf64&scoped=true&lang=css&\""],"sourceRoot":""}