{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?c650","webpack:///./src/App.vue?73e0","webpack:///./src/views/Dashboard.vue?3f23","webpack:///./src/views/Dashboard.vue","webpack:///./src/views/Dashboard.vue?aebe","webpack:///./src/views/Dashboard.vue?ab86","webpack:///./src/views/Login.vue?7662","webpack:///./src/views/Login.vue","webpack:///./src/views/Login.vue?0a24","webpack:///./src/views/Login.vue?7b2b","webpack:///./src/router/index.ts","webpack:///./src/App.vue","webpack:///./src/App.vue?0ab4","webpack:///./src/App.vue?bff9","webpack:///./src/store.ts","webpack:///./src/main.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","_m","_e","staticClass","_v","_s","error","on","$event","reload","menuItems","logoff","loading","staticRenderFns","staticStyle","component","currentUserName","isAuth","preventDefault","login","model","callback","$$v","userName","expression","password","$store","state","uName","localStorage","getItem","trim","savedName","uDomain","indexOf","nd","split","a","post","user","domain","pass","then","resp","domain_login","auth","token","role","setItem","JSON","stringify","dispatch","path","access","toUpperCase","$cookies","set","document","replace","location","catch","err","description","isAdmin","isUser","use","routes","router","label","icon","to","globAuth","headers","parse","authorization","username","portalAuth","authentication","isKey","remove","res","portal","currentRoute","finally","removeItem","Store","mutations","setAdmin","admin","setUser","setUserName","actions","context","commit","config","productionTip","interceptors","response","message","request","Promise","reject","store","render","h","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,E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"js/app.b633360a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/portal/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_vm._m(0),(_vm.loading)?_c('section',[_vm._m(1)]):_vm._e(),(_vm.error)?_c('section',[_c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-10 p-offset-1\"},[_c('Message',{attrs:{\"severity\":\"error\"}},[_vm._v(_vm._s(_vm.error))]),_c('br'),_c('Button',{attrs:{\"variant\":\"danger\",\"label\":\"Повторить\"},on:{\"click\":function($event){return _vm.reload()}}})],1)])]):_vm._e(),(_vm.isAdmin)?_c('section',[_c('Menubar',{attrs:{\"model\":_vm.menuItems}},[_c('Button',{attrs:{\"label\":\"Выйти\",\"icon\":\"pi pi-power-off\"},on:{\"click\":function($event){return _vm.logoff()}}})],1),_c('br')],1):_vm._e(),(!_vm.loading)?_c('router-view'):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"p-d-flex p-jc-center\"},[_c('div',{staticClass:\"p-mr-2 p-text-center\"},[_c('img',{staticStyle:{\"width\":\"50%\",\"height\":\"auto\"},attrs:{\"src\":\"/portal/cvizi.svg\",\"alt\":\"cvizi_logo\"}})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-12 p-text-center\"},[_vm._v(\"Загрузка данных авторизации...\")])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-12\"},[_c('div',[_vm._v(\"TODO: admin dashboard\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class Dashboard extends Vue {}\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!./Dashboard.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!./Dashboard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=94392c5e&scoped=true&\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=ts&\"\nexport * from \"./Dashboard.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 \"94392c5e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.error)?_c('section',[_c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-10 p-offset-1\"},[_c('Message',{attrs:{\"severity\":\"error\"}},[_vm._v(_vm._s(_vm.error))])],1)])]):_vm._e(),(_vm.isAuth)?_c('section',[_c('h3',[_vm._v(\"Вход выполнен\")]),_c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-12\"},[_vm._v(\"Текущий пользователь: \"+_vm._s(_vm.currentUserName))])])]):_vm._e(),(!_vm.isAuth)?_c('section',[_vm._m(0),_c('div',{staticClass:\"p-grid\",staticStyle:{\"padding-top\":\"25px\"}},[_c('div',{staticClass:\"p-col-10 p-offset-2\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.login($event)}}},[_c('div',{staticClass:\"p-grid\"},[_c('label',{staticClass:\"p-col-5\",attrs:{\"for\":\"username\"}},[_vm._v(\"Имя пользователя *\")]),_c('InputText',{staticClass:\"p-col-4\",attrs:{\"id\":\"username\",\"type\":\"text\"},model:{value:(_vm.userName),callback:function ($$v) {_vm.userName=$$v},expression:\"userName\"}})],1),_c('br'),_c('br'),_c('div',{staticClass:\"p-grid\"},[_c('label',{staticClass:\"p-col-5\",attrs:{\"for\":\"pass\"}},[_vm._v(\"Пароль\")]),_c('Password',{staticClass:\"p-col-4\",attrs:{\"id\":\"pass\",\"feedback\":false},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}})],1),_c('br'),_c('br'),_vm._m(1),_c('br'),_c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-1 p-offset-4\"},[_c('Button',{attrs:{\"type\":\"submit\",\"label\":\"Вход\"}})],1)])])])])]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-12 p-text-center\"},[_c('h3',[_vm._v(\"Вход в систему\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"p-grid\"},[_c('div',{staticClass:\"p-col-10\"},[_c('p',[_vm._v(\" * Имя пользователя может содержать Домен/Код клиента (например: CLIENT1\\\\username) \")])])])}]\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport axios from 'axios';\nimport router from '@/router';\n\n@Component({})\nexport default class Login extends Vue {\n error: string | null = null;\n userName = '';\n password = '';\n\n get isAuth(): boolean {\n return this.$store.state.isAdmin || this.$store.state.isUser;\n }\n\n get currentUserName(): string {\n return this.$store.state.userName;\n }\n\n mounted(): void {\n if (this.$store.state.userName.length < 1) {\n let uName = localStorage.getItem('loginUser');\n if (uName && uName.length > 0) {\n this.userName = uName;\n }\n }\n }\n\n login(): void {\n this.error = null;\n let uName = this.userName.trim();\n let savedName = uName;\n let uDomain = '';\n if (uName.indexOf('\\\\') >= 0) {\n const nd = uName.split('\\\\');\n uDomain = nd[0].trim();\n uName = nd[1].trim();\n }\n\n if (uName.length < 1) {\n this.error = 'Введите имя';\n return;\n }\n\n if (this.password.length < 1) {\n this.error = 'Введите пароль';\n return;\n }\n\n axios\n .post(process.env.VUE_APP_API_URL + 'auth', {\n user: uName,\n domain: uDomain,\n pass: this.password,\n })\n .then((resp) => {\n if (resp.data.domain_login) {\n // set login data\n const auth = {\n token: resp.data.token,\n name: resp.data.name,\n role: resp.data.role,\n };\n\n localStorage.setItem('loginUser', savedName);\n localStorage.setItem('portalAuth', JSON.stringify(auth));\n this.$store.dispatch('setUserName', auth.name);\n this.$store.dispatch('setAdmin', true);\n\n // go to super admin dashboard\n router.push({ path: '/portal/dashboard' });\n } else {\n // set token, set route and reload\n if (resp.data.access && resp.data.user) {\n localStorage.setItem('loginUser', savedName);\n localStorage.setItem('domain', uDomain.toUpperCase());\n localStorage.setItem('globAuth', JSON.stringify(resp.data));\n Vue.$cookies.set(\n 'authorization',\n resp.data.access,\n '2D',\n '/',\n document.domain,\n false\n );\n this.$store.dispatch('setUser', true);\n // go to client frontend\n router.replace(process.env.VUE_APP_DEF_PAGE_URL);\n location.reload(true);\n } else {\n this.error = 'Неизвестный ответ от сервера';\n }\n }\n })\n .catch((err) => {\n // console.log(err);\n this.error = 'Ошибка входа: ' + err.description;\n });\n }\n\n // OnInit\n // mounted(): void {}\n}\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=118c93d0&scoped=true&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.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 \"118c93d0\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport Dashboard from '@/views/Dashboard.vue';\nimport Login from '@/views/Login.vue';\n\nVue.use(VueRouter);\n\nconst routes = [\n {\n path: '/portal/login',\n name: 'Login',\n component: Login,\n },\n {\n path: '/portal/dashboard',\n name: 'Dashboard',\n component: Dashboard,\n },\n // {\n // path: \"/about\",\n // name: \"About\",\n // // route level code-splitting\n // // this generates a separate chunk (about.[hash].js) for this route\n // // which is lazy-loaded when the route is visited.\n // component: () =>\n // import(/* webpackChunkName: \"about\" */ \"../views/About.vue\")\n // }\n];\n\nconst router = new VueRouter({\n mode: 'history',\n // base: process.env.BASE_URL,\n routes,\n});\n\nexport default router;\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\nimport { Component, Vue } from 'vue-property-decorator';\nimport axios from 'axios';\nimport router from '@/router';\n\n@Component({})\nexport default class App extends Vue {\n loading = true;\n auth = false;\n error: string | null = null;\n domain = '';\n // isAdmin = false;\n menuItems = [\n {\n label: 'Рабочий стол',\n icon: 'pi pi-fw pi-bookmark',\n to: '/portal/dashboard',\n },\n ];\n\n get isAdmin(): boolean {\n return this.$store.state.isAdmin;\n }\n\n reload(): void {\n this.loading = true;\n this.error = null;\n const globAuth = localStorage.getItem('globAuth');\n let headers = {};\n if (globAuth) {\n const auth = JSON.parse(globAuth);\n headers = { authorization: 'Bearer ' + auth.access };\n this.$store.dispatch('setUserName', auth.user.username);\n } else {\n const portalAuth = localStorage.getItem('portalAuth');\n if (portalAuth) {\n const auth = JSON.parse(portalAuth);\n headers = { authentication: 'Bearer ' + auth.token };\n this.$store.dispatch('setUserName', auth.name);\n } else {\n this.$store.dispatch('setUserName', '');\n if (Vue.$cookies.isKey('authorization')) {\n // console.log('removing cookie!');\n Vue.$cookies.remove('authorization');\n }\n }\n }\n\n axios\n .get(process.env.VUE_APP_API_URL + 'auth', {\n headers: headers,\n })\n .then((resp) => {\n if (!resp.data.res) {\n this.error = 'Неизвестный ответ от сервера';\n return;\n }\n if (resp.data.res.user && this.$cookies.isKey('authorization')) {\n this.$store.dispatch('setUser', true);\n // domain user is active, redirect to\n // location.replace('/journals/personscur');\n router.replace(process.env.VUE_APP_DEF_PAGE_URL);\n location.reload(true);\n } else if (resp.data.res.portal) {\n // this.isAdmin = true;\n this.$store.dispatch('setAdmin', true);\n // super admin, redirect to admin dashboard\n if (router.currentRoute.path !== '/portal/dashboard') {\n router.push({ path: '/portal/dashboard' });\n }\n } else {\n this.logoff();\n }\n })\n .catch((err) => {\n this.error = 'Ошибка получения данных авторизации: ' + err.description;\n })\n .finally(() => {\n this.loading = false;\n });\n }\n\n logoff(): void {\n // login\n localStorage.removeItem('globAuth');\n localStorage.removeItem('portalAuth');\n localStorage.removeItem('domain');\n Vue.$cookies.remove('authorization');\n // this.isAdmin = false;\n this.$store.dispatch('setAdmin', false);\n this.$store.dispatch('setUser', false);\n this.$store.dispatch('setUserName', '');\n\n // show form\n if (router.currentRoute.path !== '/portal/login') {\n router.push({ path: '/portal/login' });\n }\n }\n\n // OnInit\n mounted(): void {\n this.reload();\n }\n}\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!./App.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!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=2c3dc6ae&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\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","import Vue from 'vue';\nimport Vuex from 'vuex';\n\nVue.use(Vuex);\n\nexport default new Vuex.Store({\n state: {\n userName: '',\n isAdmin: false,\n isUser: false,\n },\n\n mutations: {\n setAdmin(state, admin: boolean) {\n state.isAdmin = admin;\n if (admin) {\n state.isUser = false;\n }\n },\n setUser(state, user: boolean) {\n state.isUser = user;\n if (user) {\n state.isAdmin = false;\n }\n },\n setUserName(state, name: string) {\n state.userName = name;\n },\n },\n actions: {\n setAdmin(context, admin: boolean) {\n context.commit('setAdmin', admin);\n },\n setUser(context, user: boolean) {\n context.commit('setUser', user);\n },\n setUserName(context, name: string) {\n context.commit('setUserName', name);\n },\n },\n});\n","import Vue from 'vue';\nimport App from './App.vue';\nimport router from './router';\nimport axios from 'axios';\n\nimport 'primevue/resources/themes/nova/theme.css';\nimport 'primevue/resources/primevue.min.css';\nimport 'primeicons/primeicons.css';\nimport 'primeflex/primeflex.css';\nimport Vuex from 'vuex';\n\nimport InputText from 'primevue/inputtext';\nimport Button from 'primevue/button';\nimport Toast from 'primevue/toast';\nimport ToastService from 'primevue/toastservice';\nimport Message from 'primevue/message';\nimport Password from 'primevue/password';\nimport Menubar from 'primevue/menubar';\nimport VueCookies from 'vue-cookies';\nimport store from '@/store';\n\nVue.use(Vuex);\nVue.use(ToastService);\nVue.use(VueCookies);\n\nVue.component('Button', Button);\nVue.component('Toast', Toast);\nVue.component('InputText', InputText);\nVue.component('Password', Password);\nVue.component('Message', Message);\nVue.component('Menubar', Menubar);\n\nVue.$cookies.config('2d');\n\nVue.config.productionTip = false;\n\n// Add a response interceptor\naxios.interceptors.response.use(\n function (response) {\n // Any status code that lie within the range of 2xx cause this function to trigger\n // Do something with response data\n return response;\n },\n function (error) {\n error.description = error.message;\n\n // Any status codes that falls outside the range of 2xx cause this function to trigger\n // Do something with response error\n if (error.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n if (error.response.data && error.response.data.length > 0) {\n error.description = error.response.data;\n }\n // console.log(error.response.data);\n // console.log(error.response.status);\n // console.log(error.response.headers);\n } else if (error.request) {\n // The request was made but no response was received\n // `error.request` is an instance of XMLHttpRequest in the browser and an instance of\n // http.ClientRequest in node.js\n // console.log(error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n // console.log('Error', error.message);\n }\n\n return Promise.reject(error);\n }\n);\n\nnew Vue({\n router,\n store,\n render: (h) => h(App),\n}).$mount('#app');\n"],"sourceRoot":""}