{"version":3,"sources":["webpack:///./src/views/pages/Login.vue?0d10","webpack:///./src/views/pages/Login.vue","webpack:///src/views/pages/Login.vue","webpack:///./src/views/pages/Login.vue?e09f","webpack:///./src/views/pages/Login.vue?f68a"],"names":["render","_vm","this","_c","_self","staticClass","_m","_v","on","$event","preventDefault","onSubmit","apply","arguments","invalid","email","password","_e","limitLogin","_s","directives","name","rawName","value","form","expression","class","attrs","codeSent","domProps","target","composing","$set","passwordFieldType","Array","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","_q","showPassword","switchVisibility","code","limit2Fa","codeResend","sendCode","submitting","staticRenderFns","WAITE_TIME","data","timerCount","methods","_onSubmit","_asyncToGenerator","regeneratorRuntime","mark","_callee","_this","wrap","_context","prev","next","switchSubmitting","switchInvalidFields","api","twoFaLoginUser","then","response","$store","dispatch","token","success","$router","push","redirect","window","location","href","$route","query","origin","catch","_ref","status","description","stop","_sendCode","_callee2","_this2","_context2","setTimer","loginUser","countDownTimer","_ref2","length","undefined","_this3","setTimeout","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,oCAAoC,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,KAAK,CAACE,YAAY,cAAc,CAACJ,EAAIM,GAAG,UAAUJ,EAAG,OAAO,CAACE,YAAY,OAAOG,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBT,EAAIU,SAASC,MAAM,KAAMC,cAAc,CAAEZ,EAAIa,QAAQC,MAAQd,EAAIa,QAAQE,SAAUb,EAAG,IAAI,CAACE,YAAY,0BAA0B,CAACJ,EAAIM,GAAG,0DAA0DN,EAAIgB,KAAMhB,EAAIiB,WAAYf,EAAG,IAAI,CAACE,YAAY,0B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AV,UAAAuF,OAAA,QAAAC,IAAAxF,UAAA,KAAAA,UAAA,GACA,KAAAC,QAAAC,MAAAQ,EACA,KAAAT,QAAAE,SAAAO,EACA,KAAAT,QAAAkC,KAAAzB,GAEAwB,iBAAA,WACA,KAAAd,kBACA,kBAAAA,kBAAA,kBACA,KAAAa,cAAA,KAAAA,cAEAkD,SAAA,WACA,KAAAxC,WAAAF,EACA,KAAAJ,YAAA,GAEAgD,eAAA,eAAAI,EAAA,KACA,KAAA9C,WAAA,EACA+C,YAAA,WACAD,EAAA9C,YAAA,EACA8C,EAAAJ,mBACA,KAEA,KAAAhD,YAAA,KChO6V,I,wBCQzVsD,EAAY,eACd,EACAxG,EACAqD,GACA,EACA,KACA,KACA,MAIa,aAAAmD,E","file":"js/chunk-8ee25e36.3cbc154f.2.32.5.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/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=741aea29&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"registration wrapper auth-layout\"},[_c('div',{staticClass:\"registration-form\"},[_vm._m(0),_c('div',{staticClass:\"form-wrapper\"},[_c('h1',{staticClass:\"form-title\"},[_vm._v(\"Вхід\")]),_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[(_vm.invalid.email & _vm.invalid.password)?_c('p',{staticClass:\"form__input_error-text\"},[_vm._v(\" Адреса електронної пошти або пароль не співпадають \")]):_vm._e(),(_vm.limitLogin)?_c('p',{staticClass:\"form__input_error-text\"},[_vm._v(\" \"+_vm._s(_vm.limitLogin)+\" \")]):_vm._e(),_c('div',{staticClass:\"form-input-container\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.email),expression:\"form.email\"}],staticClass:\"form__input form__input_primary\",class:{ 'is-invalid': _vm.invalid.email },attrs:{\"disabled\":_vm.codeSent,\"placeholder\":\"Логін\",\"name\":\"login\",\"required\":\"\",\"type\":\"email\",\"autocomplete\":\"off\"},domProps:{\"value\":(_vm.form.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"email\", $event.target.value)}}})]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.codeSent),expression:\"!codeSent\"}],staticClass:\"form-input-container form-input-container__password\"},[((_vm.passwordFieldType)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.password),expression:\"form.password\"}],staticClass:\"form__input form__input_primary form__input-password\",class:{\n 'is-invalid': _vm.invalid.password,\n },attrs:{\"placeholder\":\"Пароль\",\"required\":\"\",\"autocomplete\":\"off\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.form.password)?_vm._i(_vm.form.password,null)>-1:(_vm.form.password)},on:{\"change\":function($event){var $$a=_vm.form.password,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.form, \"password\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.form, \"password\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.form, \"password\", $$c)}}}}):((_vm.passwordFieldType)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.password),expression:\"form.password\"}],staticClass:\"form__input form__input_primary form__input-password\",class:{\n 'is-invalid': _vm.invalid.password,\n },attrs:{\"placeholder\":\"Пароль\",\"required\":\"\",\"autocomplete\":\"off\",\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.form.password,null)},on:{\"change\":function($event){return _vm.$set(_vm.form, \"password\", null)}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.password),expression:\"form.password\"}],staticClass:\"form__input form__input_primary form__input-password\",class:{\n 'is-invalid': _vm.invalid.password,\n },attrs:{\"placeholder\":\"Пароль\",\"required\":\"\",\"autocomplete\":\"off\",\"type\":_vm.passwordFieldType},domProps:{\"value\":(_vm.form.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"password\", $event.target.value)}}}),_c('div',{staticClass:\"password-icon\",class:{\n 'form-input-container__password_open': _vm.showPassword,\n 'form-input-container__password_close': !_vm.showPassword,\n },attrs:{\"type\":\"password\"},on:{\"click\":_vm.switchVisibility}}),_c('p',{staticClass:\"form__input_note-text\"},[_c('b-link',{attrs:{\"to\":{ name: 'ForgotPassword' }}},[_vm._v(\" Забули пароль? \")])],1)]),_c('div',{staticClass:\"form-input-container\"},[(_vm.codeSent)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.code),expression:\"form.code\"}],staticClass:\"form__input form__input_primary\",class:{\n 'is-invalid': _vm.invalid.code,\n },attrs:{\"placeholder\":\"Код авторизації\",\"type\":\"text\",\"autocomplete\":\"off\"},domProps:{\"value\":(_vm.form.code)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"code\", $event.target.value)}}}):_vm._e()]),(_vm.invalid.code && !_vm.invalid.email && !_vm.invalid.password)?_c('p',{staticClass:\"form__input_error-text\"},[_vm._v(\" Помилка у коді авторизації \")]):_vm._e(),(_vm.limit2Fa)?_c('p',{staticClass:\"form__input_error-text\"},[_vm._v(\" \"+_vm._s(_vm.limit2Fa)+\" \")]):_vm._e(),(_vm.codeSent)?_c('button',{staticClass:\"form__button\",attrs:{\"type\":\"button\",\"disabled\":_vm.codeResend},on:{\"click\":_vm.sendCode}},[_vm._v(\" Перевислати код авторизації \")]):_vm._e(),_c('button',{staticClass:\"form__button\",attrs:{\"type\":\"submit\",\"disabled\":_vm.submitting}},[_vm._v(\" Увійти \")]),_c('div',{staticClass:\"form__link\"},[_vm._v(\" Ви ще не зареєстровані в AML.point? \"),_c('b-link',{attrs:{\"to\":{ name: 'Register' }}},[_vm._v(\" Зареєструватися \")])],1)])])]),_vm._m(1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"aml-logo\"},[_c('img',{attrs:{\"src\":\"/images/aml-logo.svg\",\"alt\":\"aml\"}})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"registration-video\"},[_c('video',{staticClass:\"aml-video\",attrs:{\"src\":\"/video/aml-register.mp4\",\"autoplay\":\"\",\"loop\":\"\"}})])\n}]\n\nexport { render, staticRenderFns }","\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.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!./Login.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=741aea29\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=741aea29&prod&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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}