{"version":3,"sources":["webpack:///./src/views/Login.vue?24af","webpack:///./src/components/Login/LoginSSO/LoginSSO.vue?ffb5","webpack:///./src/components/Login/LoginSSO/LoginSSO.vue?1867","webpack:///./src/views/Login.vue?df54","webpack:///./src/common/sso/ssoLoginHelpers.js","webpack:///src/components/Login/LoginSSO/LoginSSO.vue","webpack:///./src/components/Login/LoginSSO/LoginSSO.vue?74b3","webpack:///./src/components/Login/LoginSSO/useSso.js","webpack:///./src/components/Login/LoginSSO/LoginSSO.vue","webpack:///./src/components/Login/LoginSSO/index.js","webpack:///./src/components/Login/LoginSSO/LoginSSO.vue?6ee5","webpack:///./src/views/Login.vue?5da6","webpack:///src/views/Login.vue","webpack:///./src/views/Login.vue","webpack:///./src/views/Login.vue?4c03","webpack:///./src/views/Login.vue?164e"],"names":["module","exports","clientList","ssoClientName","url","match","getClientNameFromUrl","window","location","href","redirectSsoUser","replace","setup","policyText","LoginSSO","_vm","this","_h","$createElement","_c","_self","class","$style","Container","Card","staticClass","Title","_v","_s","$t","attrs","on","context","locals","name","components","SocialAuth","UiContainer","UiText","AppTooltip","PinCode","UiLoader","directives","insertCanvasText","ctx","clearRect","fillStyle","font","textAlign","fillText","binding","value","isSso","length","find","i","googleCodeLength","defaultColor","isGoogleCodeField","pinCodeAttempts","pinCodeAttemptsAvailable","data","computed","isProfileLoaded","$store","getters","locale","state","param","isAssistant","roleHelpers","watch","restoreDisabled","restoreDone","created","$router","push","$route","detailsvisionflag","methods","refreshCaptcha","captchaField","num1","num2","captchaResult","ccaptchaControl","login","loading","details","client","id","code","loginAuth","restore","restoreClicked","setPinCode","model","pinCode","Img","ImgItem","Content","$event","preventDefault","_e","Form","rules","required","callback","$$v","$set","trim","expression","passwordvisionflag","type","indexOf","_k","keyCode","key","apply","arguments","scopedSlots","_u","fn","proxy","rawName","staticStyle","captchaControl","Math","random","BtnForgot","lastRestoreDate","email","BtnBoard","BtnLogin","password","showCaptcha","socialAuthDisabled","showDetails"],"mappings":"0GAAA,W,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chB,EAAI6E,aAAuB7E,EAAqB,kBAAEI,EAAG,OAAO,CAACM,YAAY,mCAAmCoG,YAAY,CAAC,kBAAkB,QAAQ/F,MAAM,CAAC,QAAU,OAAO,KAAO,GAAG,MAAQ,GAAG,KAAO,QAAQ,eAAe,yBAAyBC,GAAG,CAAC,MAAQ,SAASsE,GAAQtF,EAAI0H,aAAe1H,EAAI0H,eAAe,CAAC1H,EAAIY,GAAG,IAAIZ,EAAIa,GAAGb,EAAIc,GAAG,gBAAgB,OAAOd,EAAIwF,MAAM,IAAI,MAAM,KACxnM,IUoBpB,GAZF,SAAuBvE,GAErBhB,KAAa,OAAK,UAAOiB,QAAU,YAYnC,WACA,MAIa,Y,8BC3BfjC,EAAOC,QAAU,CAAC,IAAM,oBAAoB,QAAU,wBAAwB,UAAY,0BAA0B,QAAU,wBAAwB,KAAO,qBAAqB,UAAY,0BAA0B,SAAW,yBAAyB,SAAW,yBAAyB,OAAS,uBAAuB,WAAa,6B,kCCD7U","file":"js/chunk-365fd435.07275ee3.js","sourcesContent":["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=62f5c562&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Container\":\"LoginSSO__Container__1AUtS\",\"Card\":\"LoginSSO__Card__3mBRd\",\"Title\":\"LoginSSO__Title__1jphI\"};","export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSSO.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSSO.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('UiContainer',{attrs:{\"size\":\"small\",\"is-center\":\"\"}},[(_vm.isSso)?_c('LoginSSO'):_c('div',{class:_vm.$style.Container},[_c('div',{class:_vm.$style.Img},[_c('img',{class:_vm.$style.ImgItem,attrs:{\"src\":'./img/LoginPage.png',\"alt\":\"Logo image\"}})]),_c('div',{class:_vm.$style.Content},[_c('UiText',{class:_vm.$style.UiText,attrs:{\"size\":\"h2\",\"text-align\":\"center\",\"no-margin\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('Welcome to EmployeeGate'))+\" \")]),(_vm.registrationAvailable)?_c('div',[_c('UiText',{attrs:{\"size\":\"caption\"}},[_vm._v(\" \"+_vm._s('Have not got an account?')+\" \"),_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();_vm.$router.push({ name: 'register' }, function () { })}}},[_vm._v(\" \"+_vm._s('Register')+\" \")])])],1):_vm._e(),(_vm.isGoogleCodeField)?_c('div',[(_vm.loading)?_c('UiLoader'):[_c('PinCode',{attrs:{\"title\":\"Enter the code from Authenticator\",\"code-length\":_vm.googleCodeLength,\"attempts\":_vm.pinCodeAttempts},on:{\"inputCode\":_vm.setPinCode}}),(!_vm.pinCodeAttemptsAvailable)?_c('div',[_vm._v(\" \"+_vm._s(_vm.$t('In case the access to authorization application on your mobile phone has been lost kindly ask your HR-desk for help.' ))+\" \")]):_vm._e()]],2):_c('VForm',{class:_vm.$style.Form},[_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-shield-account\",\"label\":_vm.$t('Login name'),\"rules\":[_vm.rules.required],\"data-test\":\"login-login\",\"outlined\":\"\",\"variant\":\"outlined\",\"autocomplete\":\"on\",\"hide-details\":\"false\",\"color\":_vm.defaultColor},model:{value:(_vm.model.login),callback:function ($$v) {_vm.$set(_vm.model, \"login\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"model.login\"}}),(false)?_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-email\",\"label\":_vm.$t('Email'),\"type\":\"text\",\"autocomplete\":\"new-password\",\"rules\":[_vm.rules.required],\"color\":_vm.defaultColor,\"hide-details\":\"false\"}}):_vm._e(),(false)?_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-email\",\"label\":_vm.$t('Email'),\"type\":\"text\",\"rules\":[_vm.rules.email],\"color\":_vm.defaultColor,\"hide-details\":\"false\"},model:{value:(_vm.model.email),callback:function ($$v) {_vm.$set(_vm.model, \"email\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"model.email\"}}):_vm._e(),_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-lock\",\"label\":_vm.$t('Password'),\"autocomplete\":\"new-password\",\"append-icon\":_vm.passwordvisionflag ? 'mdi-eye' : 'mdi-eye-off',\"type\":_vm.passwordvisionflag ? 'password' : 'text',\"rules\":[_vm.rules.required],\"color\":_vm.defaultColor,\"outlined\":\"\",\"variant\":\"outlined\",\"hide-details\":\"false\",\"data-test\":\"login-pass\"},on:{\"click:append\":function () { return (_vm.passwordvisionflag = !_vm.passwordvisionflag); },\"click:append-inner\":function () { return (_vm.passwordvisionflag = !_vm.passwordvisionflag); },\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.login.apply(null, arguments)}},model:{value:(_vm.model.password),callback:function ($$v) {_vm.$set(_vm.model, \"password\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"model.password\"}}),(_vm.showCaptcha)?_c('VTextField',{staticClass:\"xx-captcha\",attrs:{\"label\":_vm.$t('Type in result please'),\"color\":_vm.defaultColor,\"hide-details\":\"false\",\"data-test\":\"login-captcha\"},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.login.apply(null, arguments)}},scopedSlots:_vm._u([{key:\"prepend\",fn:function(){return [_c('VBtn',{attrs:{\"variant\":\"text\",\"text\":\"\",\"icon\":\"\",\"color\":\"green\"},on:{\"click\":_vm.refreshCaptcha}},[_c('VIcon',[_vm._v(\" mdi-cached \")])],1)]},proxy:true},{key:\"prepend-inner\",fn:function(){return [_c('canvas',{directives:[{name:\"insert-canvas-text\",rawName:\"v-insert-canvas-text\",value:(_vm.captchaField),expression:\"captchaField\"}],staticStyle:{\"margin-top\":\"-12px\"},attrs:{\"width\":\"80\",\"height\":\"40\"}})]},proxy:true}],null,false,2169072053),model:{value:(_vm.captchaControl),callback:function ($$v) {_vm.captchaControl=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"captchaControl\"}}):_vm._e(),(_vm.twoFactorsEnabled)?_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-security\",\"label\":_vm.$t('Two-Factor Auth code'),\"type\":\"text\",\"color\":_vm.defaultColor,\"autocomplete\":\"new-password\"},model:{value:(_vm.model.pinCode),callback:function ($$v) {_vm.$set(_vm.model, \"pinCode\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"model.pinCode\"}}):_vm._e(),(_vm.showDetails)?_c('VTextField',{attrs:{\"prepend-icon\":\"mdi-link-variant-plus\",\"label\":_vm.$t('Details'),\"name\":Math.random(),\"autocomplete\":\"new-password\",\"color\":_vm.defaultColor,\"hide-details\":\"false\"},model:{value:(_vm.details),callback:function ($$v) {_vm.details=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"details\"}}):_vm._e(),_c('div',{class:_vm.$style.AppTooltip},[_c('AppTooltip',{attrs:{\"disabled\":!!_vm.model.login,\"open-delay\":500,\"text\":\"To restore your password fill in the Login field please\"}},[_c('VBtn',{class:_vm.$style.BtnForgot,staticStyle:{\"text-decoration\":\"none\"},attrs:{\"disabled\":_vm.restoreClicked || !!_vm.lastRestoreDate || !_vm.model.email && !_vm.model.login,\"text\":\"\",\"variant\":\"text\",\"data-test\":\"login-forgot\"},on:{\"click\":function($event){return _vm.restore()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Forgot your password?'))+\" \")])],1)],1),_c('div',{class:_vm.$style.BtnBoard},[_c('VBtn',{class:_vm.$style.BtnLogin,attrs:{\"disabled\":!_vm.model.email && !_vm.model.login || !_vm.model.password || _vm.showCaptcha && _vm.captchaResult != _vm.captchaControl * 1,\"size\":\"large\",\"large\":\"\",\"color\":_vm.defaultColor,\"loading\":_vm.loading,\"data-test\":\"login-btn\"},on:{\"click\":_vm.login}},[_vm._v(\" \"+_vm._s(_vm.$t('Login'))+\" \")])],1),(!_vm.socialAuthDisabled)?_c('SocialAuth',{on:{\"on-response\":_vm.loginAuth}}):_vm._e(),(_vm.detailsvisionflag)?_c('VBtn',{staticClass:\"text-grey xx-text-transform-none\",staticStyle:{\"text-decoration\":\"none\"},attrs:{\"variant\":\"text\",\"text\":\"\",\"small\":\"\",\"size\":\"small\",\"prepend-icon\":\"mdi-link-variant-plus\"},on:{\"click\":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v(\" \"+_vm._s(_vm.$t('Add details'))+\" \")]):_vm._e()],1)],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// Список клиентов с SSO\nconst clientList = ['syngenta', 'totalenergies']\n\n// Получить имя клиента после 3 слэша\nconst getClientNameFromUrl = (url = '') => {\n const match = url?.match(/^https?:\\/\\/[^/]+\\/([^/]+)/);\n return match ? match?.[1] : '';\n}\n\n// Имя клиента по данным в url\nconst ssoClientName = getClientNameFromUrl(window?.location?.href) ?? ''\n\n// Проверка, что клиент является пользователем SSO\nexport const checkIsSsoClient = () => {\n if (!ssoClientName?.length) {\n return false\n }\n\n // Проверить, что клиент есть в списке, чтобы не проверять с portal (прод) или # (локально)\n return !!clientList?.find((i) => i === ssoClientName)\n}\n\n// Перенаправить клиента на страницу входа SSO\nexport const redirectSsoUser = () => {\n window.location.replace(`https://www.empgate.ru/api/sso/${ssoClientName}`);\n}\n\nexport const getSsoLogoutUrl = () => {\n let url = ''\n\n switch (ssoClientName) {\n case 'totalenergies':\n url = 'https://adfs.totalenergies.ru/adfs/ls/?wa=wsignout1.0'\n break;\n default:\n break;\n }\n\n return url\n}\n","\n\n\n
\n
\n
\n {{ $t('Login') }}\n
\n
\n {{ $t(policyText) }}\n
\n
\n \n {{ $t('SSO LOGIN') }}\n \n
\n
\n
\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSSO.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSSO.vue?vue&type=script&lang=js&\"","export default function useSso () {\n const policyText = 'According to your company\\'s policies you are to use single sign on for EmployeeGate authorization. You will be redirected to SSO form upon pressing SSO Log In button.'\n\n return {\n policyText,\n }\n}\n","import { render, staticRenderFns } from \"./LoginSSO.vue?vue&type=template&id=7982bcf6&\"\nimport script from \"./LoginSSO.vue?vue&type=script&lang=js&\"\nexport * from \"./LoginSSO.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LoginSSO.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\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 injectStyles,\n null,\n null\n \n)\n\nexport default component.exports","import LoginSSO from './LoginSSO.vue';\n\nexport default LoginSSO;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.Container},[_c('div',{class:_vm.$style.Card},[_c('div',{staticClass:\"primary--text\",class:_vm.$style.Title},[_vm._v(\" \"+_vm._s(_vm.$t('Login'))+\" \")]),_c('div',[_vm._v(\" \"+_vm._s(_vm.$t(_vm.policyText))+\" \")]),_c('div',[_c('VBtn',{attrs:{\"color\":\"primary\",\"data-test\":\"login-sso-button\"},on:{\"click\":_vm.redirectSsoUser}},[_vm._v(\" \"+_vm._s(_vm.$t('SSO LOGIN'))+\" \")])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../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=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../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=js&\"","\n \n \n