{"version":3,"sources":["webpack:///./src/views/pages/indices/screening.vue?8e6a","webpack:///src/views/pages/indices/screening.vue","webpack:///./src/views/pages/indices/screening.vue?8e54","webpack:///./src/views/pages/indices/screening.vue","webpack:///./src/http.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","title","screeningData","request","calculation","status","$t","_e","_f","createdAt","attrs","breadcrumbs","hasError","errorMessage","_l","i","key","indexId","indexDisplayName","screeningType","years","column","row","result","correlations","values","rollingCorrelations","staticStyle","navOrReturn","targetVolatility","performanceStat","index","statistic","annualisedReturn","realisedVolatility","downsideVolatility","maxDrawdown","winningMonths","sharpeRatio","sortinoRatio","calmarRatio","chartOptions","performanceData","dt","date","data","staticRenderFns","components","Layout","loading","errors","props","id","type","String","beforeDestroy","destroyed","created","timeout","window","setTimeout","load","watch","computed","methods","component","httpClient","axios","create","baseURL","process","headers","getAuthToken","localStorage","getItem","authInterceptor","config","interceptors","use","errorInterceptor","error","response","Promise","reject","console","message","removeItem","store","dispatch","router","push","responseInterceptor"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,oEAAoE,CAACF,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACF,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,OAAO,KAAMT,EAAIU,eAAkE,uBAAjDV,EAAIU,cAAcC,QAAQC,YAAYC,OAAiCT,EAAG,OAAO,CAACE,YAAY,yBAAyB,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIc,GAAG,2CAA2Cd,EAAIe,KAAMf,EAAIU,eAAkE,yBAAjDV,EAAIU,cAAcC,Q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A,gBACA,QACA,0DAGA,sGAKA,WACA,+BAEA,aACA,mEACA,sEACA,yCApIA,iDCrFiX,I,YCO7WC,EAAY,eACd,EACA1E,EACAuD,GACA,EACA,KACA,KACA,MAIa,aAAAmB,E,sGCdTC,EAAaC,IAAMC,OAAO,CAC5BC,QAASC,4BACTC,QAAS,CACL,eAAgB,sBAKlBC,EAAe,iBAAM,UAAYC,aAAaC,QAAQ,iBAEtDC,EAAkB,SAACC,GAErB,OADAA,EAAOL,QAAQ,iBAAmBC,IAC3BI,GAGXV,EAAWW,aAAa1E,QAAQ2E,IAAIH,GAGpC,IAAMI,EAAmB,SAAAC,GAGrB,IAAKA,EAAMC,SAET,OAAOC,QAAQC,OAAOH,GAIxB,OAAOA,EAAMC,SAAS5E,QAClB,KAAK,IACD+E,QAAQJ,MAAMA,EAAMC,SAAS5E,OAAQ2E,EAAMK,SAE3C,MAEJ,KAAK,IAGDZ,aAAaa,WAAW,gBACxBC,OAAMC,SAAS,eACfC,OAAOC,KAAK,UACZ,MAEJ,QACIN,QAAQJ,MAAMA,EAAMC,SAAS5E,OAAQ2E,EAAMK,SAInD,OAAOH,QAAQC,OAAOH,IAIpBW,EAAsB,SAAAV,GACxB,OAAOA,EAAS5E,QACZ,KAAK,IAED,MAEJ,SAIJ,OAAO4E,GAGXf,EAAWW,aAAaI,SAASH,IAAIa,EAAqBZ,GAE3Cb","file":"js/chunk-45b1c8dc.cbaf7db0.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Layout',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"page-title-box d-flex align-items-center justify-content-between\"},[_c('h4',{staticClass:\"mb-0\"},[_c('span',{staticClass:\"title-content\"},[_vm._v(\" \"+_vm._s(_vm.title)+\" \"),(_vm.screeningData && _vm.screeningData.request.calculation.status === 'PendingCalculation')?_c('span',{staticClass:\"mr-2 badge badge-info\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.pending-calculating\")))]):_vm._e(),(_vm.screeningData && _vm.screeningData.request.calculation.status === 'CalculationInProcess')?_c('span',{staticClass:\"mr-2 badge badge-primary\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.calculation-in-process\")))]):_vm._e(),(_vm.loading)?_c('span',{staticClass:\"ml-2\"},[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})]):_vm._e(),_c('br'),(_vm.screeningData)?_c('small',{staticClass:\"mr-2\"},[_vm._v(_vm._s(_vm._f(\"moment\")(_vm.screeningData.request.createdAt,\"ddd, MMM Do YYYY\")))]):_vm._e()])]),_c('div',{staticClass:\"page-title-right d-none d-lg-block\"},[_c('b-breadcrumb',{staticClass:\"m-0\",attrs:{\"items\":_vm.breadcrumbs}})],1)])])]),(_vm.screeningData && _vm.screeningData.request && _vm.screeningData.request.calculation.hasError)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"alert alert-danger\"},[_vm._v(\" An error has occured. \"+_vm._s(_vm.screeningData.request.calculation.errorMessage)+\" \")])])]):_vm._e(),(_vm.screeningData)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('h5',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('pages.screening.indices'))+\" \")]),_c('table',{staticClass:\"table table-striped table-sm table-hover mb-4\"},[_c('tbody',_vm._l((_vm.screeningData.request.indices),function(i){return _c('tr',{key:i.indexId},[_c('td',[_vm._v(_vm._s(i.indexDisplayName))])])}),0)])])])])])]):_vm._e(),(_vm.screeningData && _vm.screeningData.request.screeningType === 'Correlations')?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('h5',{staticClass:\"card-title\"},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.screening.screeningType-Correlations')))]),(_vm.screeningData.request.years === 10)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.10years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 1)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.1year\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 3)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.3years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 5)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.5years\"))+\")\")]):_vm._e()]),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-sm mb-4\"},[_c('tbody',[_c('tr',[_c('td'),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\"},[_c('b',[_vm._v(_vm._s(column.indexDisplayName))])])})],2),_vm._l((_vm.screeningData.request.indices),function(row){return _c('tr',{key:row.indexId},[_c('td',[_c('b',[_vm._v(_vm._s(row.indexDisplayName))])]),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\"},[(_vm.screeningData.request.calculation.status !== 'CalculationIsDone')?_c('span',[_c('small',{staticClass:\"text-muted\"},[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})])]):_vm._e(),(_vm.screeningData.request.calculation.status === 'CalculationIsDone')?_c('b',[_vm._v(\" \"+_vm._s(_vm.screeningData.result.correlations.values[row.indexId + '-' + column.indexId])+\" \")]):_vm._e()])})],2)})],2)])])])])])])]):_vm._e(),(_vm.screeningData && _vm.screeningData.request.screeningType === 'RollingCorrelations')?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('h5',{staticClass:\"card-title\"},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.screening.screeningType-RollingCorrelations')))]),(_vm.screeningData.request.years === 10)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.10years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 1)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.1year\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 3)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.3years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 5)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.5years\"))+\")\")]):_vm._e()]),(!_vm.screeningData.result || !_vm.screeningData.result.rollingCorrelations)?_c('span',[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})]):_vm._e(),(_vm.screeningData.result && _vm.screeningData.result.rollingCorrelations)?_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-sm mb-4\"},[_c('tbody',[_c('tr',[_c('td',{staticStyle:{\"min-width\":\"150px\",\"max-width\":\"150px\"}}),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\",staticStyle:{\"min-width\":\"300px\",\"max-width\":\"300px\"}},[_c('b',[_vm._v(_vm._s(column.indexDisplayName))])])})],2),_vm._l((_vm.screeningData.request.indices),function(row){return _c('tr',{key:row.indexId},[_c('td',{staticStyle:{\"min-width\":\"150px\",\"max-width\":\"150px\"}},[_c('b',[_vm._v(_vm._s(row.indexDisplayName))])]),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\",staticStyle:{\"min-width\":\"300px\",\"max-width\":\"300px\",\"min-height\":\"100px\",\"max-height\":\"250px\",\"height\":\"250px\"}},[(_vm.screeningData.request.calculation.status !== 'CalculationIsDone')?_c('span',[_c('small',{staticClass:\"text-muted\"},[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})])]):_vm._e(),(_vm.screeningData.request.calculation.status === 'CalculationIsDone')?_c('div',[(_vm.screeningData.result.rollingCorrelations.values[row.indexId + '-' + column.indexId])?_c('highcharts',{attrs:{\"options\":_vm.screeningData.result.rollingCorrelations.values[row.indexId + '-' + column.indexId]}}):_vm._e()],1):_vm._e()])})],2)})],2)])]):_vm._e()])])])])]):_vm._e(),(_vm.screeningData && _vm.screeningData.request.screeningType === 'PerformanceStatistics')?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('h5',{staticClass:\"card-title\"},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.screening.screeningType-PerformanceStatistics')))]),(_vm.screeningData.request.years === 10)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.10years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 1)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.1year\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 3)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.3years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 5)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.5years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.navOrReturn === 'Navs')?_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.navOrReturn-navs\")))]):_vm._e(),(_vm.screeningData.request.navOrReturn === 'Return')?_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.navOrReturn-return\")))]):_vm._e(),(_vm.screeningData.request.targetVolatilityEnabled)?_c('span',{staticClass:\"ml-4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"pages.screening.targetVolatility\"))+\": \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.screeningData.request.targetVolatility))])]):_vm._e()]),(!_vm.screeningData.result || !_vm.screeningData.result.performanceStat)?_c('span',[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})]):_vm._e(),(_vm.screeningData.result && _vm.screeningData.result.performanceStat)?_c('div',{staticClass:\"table-responsive mb-4\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',[_c('tr',[_c('td'),_c('td',[_c('b',[_vm._v(\"Annualised Return (%)\")])]),_c('td',[_c('b',[_vm._v(\"Realised Volatility (%)\")])]),_c('td',[_c('b',[_vm._v(\"Downside Volatility (%)\")])]),_c('td',[_c('b',[_vm._v(\"Max Drawdown (%)\")])]),_c('td',[_c('b',[_vm._v(\"Winning months (%)\")])]),_c('td',[_c('b',[_vm._v(\"Sharpe Ratio\")])]),_c('td',[_c('b',[_vm._v(\"Sortino Ratio\")])]),_c('td',[_c('b',[_vm._v(\"Calmar Ratio\")])])]),_vm._l((_vm.screeningData.request.indices),function(index){return _c('tr',{key:index.indexId},[_c('td',[_c('b',[_vm._v(_vm._s(index.indexDisplayName))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId] || {}).annualisedReturn || 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).realisedVolatility|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).downsideVolatility|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).maxDrawdown|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).winningMonths|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).sharpeRatio|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).sortinoRatio|| 0))])]),_c('td',[_c('b',[_vm._v(_vm._s((_vm.screeningData.result.performanceStat.statistic[index.indexId]|| {}).calmarRatio|| 0))])])])})],2)])]):_vm._e(),_c('div',{staticClass:\"mb-2\"},[_c('i',{staticClass:\"fa fa-info mr-2\"}),_vm._v(\" \"),_c('em',{staticClass:\"text-muted \"},[_vm._v(\" Performance curves have been adjusted to equalise volatility, to give a fair comparison\")])]),(_vm.screeningData.result && _vm.screeningData.result.performanceStat)?_c('highcharts',{staticClass:\"hc\",attrs:{\"constructorType\":'stockChart',\"options\":_vm.screeningData.result.performanceStat.chartOptions}}):_vm._e()],1)])])])]):_vm._e(),(_vm.screeningData && _vm.screeningData.request.screeningType === 'PerformanceData')?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('h5',{staticClass:\"card-title\"},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.screening.screeningType-PerformanceData')))]),(_vm.screeningData.request.years === 10)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.10years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 1)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.1year\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 3)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.3years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.years === 5)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screening.5years\"))+\")\")]):_vm._e(),(_vm.screeningData.request.navOrReturn === 'Navs')?_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.navOrReturn-navs\")))]):_vm._e(),(_vm.screeningData.request.navOrReturn === 'Return')?_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(_vm.$t(\"pages.screening.navOrReturn-return\")))]):_vm._e(),(_vm.screeningData.request.targetVolatilityEnabled)?_c('span',{staticClass:\"ml-4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"pages.screening.targetVolatility\"))+\": \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.screeningData.request.targetVolatility))])]):_vm._e()]),(!_vm.screeningData.result || !_vm.screeningData.result.performanceData)?_c('span',[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})]):_vm._e(),(_vm.screeningData.result && _vm.screeningData.result.performanceData)?_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-sm mb-4\"},[_c('tbody',[_c('tr',[_c('td'),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\"},[_c('b',[_vm._v(_vm._s(column.indexDisplayName))])])})],2),_vm._l((_vm.screeningData.result.performanceData.values),function(dt){return _c('tr',{key:dt.date},[_c('td',[_c('b',[_vm._v(_vm._s(_vm._f(\"moment\")(dt.date,\"L\")))])]),_vm._l((_vm.screeningData.request.indices),function(column){return _c('td',{key:column.indexId,staticClass:\"text-center\"},[(_vm.screeningData.request.calculation.status !== 'CalculationIsDone')?_c('span',[_c('small',{staticClass:\"text-muted\"},[_c('i',{staticClass:\"fa fa-spin fa-spinner\"})])]):_vm._e(),(_vm.screeningData.request.calculation.status === 'CalculationIsDone')?_c('b',[_vm._v(\" \"+_vm._s(dt.data[column.indexId])+\" \")]):_vm._e()])})],2)})],2)])]):_vm._e()])])])])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\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!./screening.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!./screening.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./screening.vue?vue&type=template&id=39b2b211&\"\nimport script from \"./screening.vue?vue&type=script&lang=js&\"\nexport * from \"./screening.vue?vue&type=script&lang=js&\"\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 axios from 'axios';\r\nimport router from './router/index'\r\nimport store from '@/state/store'\r\n\r\nconst httpClient = axios.create({\r\n baseURL: process.env.VUE_APP_BASE_URL,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n // anything you want to add to the headers\r\n }\r\n});\r\n\r\nconst getAuthToken = () => 'Bearer ' + localStorage.getItem('access_token');\r\n\r\nconst authInterceptor = (config) => {\r\n config.headers['Authorization'] = getAuthToken();\r\n return config;\r\n}\r\n\r\nhttpClient.interceptors.request.use(authInterceptor);\r\n\r\n// interceptor to catch errors\r\nconst errorInterceptor = error => {\r\n \r\n // check if it's a server error\r\n if (!error.response) {\r\n //notify.warn('Network/Server error');\r\n return Promise.reject(error);\r\n }\r\n\r\n // all the other error responses\r\n switch(error.response.status) {\r\n case 400:\r\n console.error(error.response.status, error.message);\r\n // notify.warn('Nothing to display','Data Not Found');\r\n break;\r\n\r\n case 401: // authentication error, logout the user\r\n // debugger; // eslint-disable-line no-debugger\r\n //notify.warn( 'Please login again', 'Session Expired');\r\n localStorage.removeItem('access_token');\r\n store.dispatch('auth/logOut')\r\n router.push('/login');\r\n break;\r\n\r\n default:\r\n console.error(error.response.status, error.message);\r\n //notify.error('Server Error');\r\n\r\n }\r\n return Promise.reject(error);\r\n}\r\n\r\n// Interceptor for responses\r\nconst responseInterceptor = response => {\r\n switch(response.status) {\r\n case 200: \r\n // yay!\r\n break;\r\n // any other cases\r\n default:\r\n // default case\r\n }\r\n\r\n return response;\r\n}\r\n\r\nhttpClient.interceptors.response.use(responseInterceptor, errorInterceptor);\r\n\r\nexport default httpClient;"],"sourceRoot":""}