{"version":3,"sources":["webpack:///./src/views/pages/indices/screening-history.vue?d704","webpack:///src/views/pages/indices/screening-history.vue","webpack:///./src/views/pages/indices/screening-history.vue?0b8d","webpack:///./src/views/pages/indices/screening-history.vue","webpack:///./src/http.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","title","_e","attrs","breadcrumbs","clearing","on","clearHistory","timelineData","years","length","_l","yearData","key","year","data","index","class","name","params","id","_f","date","screeningType","$t","staticStyle","i","indexId","indexDisplayName","staticRenderFns","components","Layout","loading","errors","props","created","load","watch","computed","methods","text","icon","showCancelButton","confirmButtonColor","cancelButtonColor","confirmButtonText","result","value","component","httpClient","axios","create","baseURL","process","headers","getAuthToken","localStorage","getItem","authInterceptor","config","interceptors","request","use","errorInterceptor","error","response","Promise","reject","status","console","message","removeItem","store","dispatch","router","push","responseInterceptor"],"mappings":"yHAAA,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,EAAW,QAAEI,EAAG,IAAI,CAACE,YAAY,+BAA+BN,EAAIU,SAASN,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,eAAe,CAACE,YAAY,MAAMK,MAAM,CAAC,MAAQX,EAAIY,gBAAgB,SAASR,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACE,YAAY,wCAAwCK,MAAM,CAAC,SAAWX,EAAIa,UAAUC,GAAG,CAA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TC,QAAS,CACL,eAAgB,sBAKlBC,EAAe,iBAAM,UAAYC,aAAaC,QAAQ,iBAEtDC,EAAkB,SAACC,GAErB,OADAA,EAAOL,QAAQ,iBAAmBC,IAC3BI,GAGXV,EAAWW,aAAaC,QAAQC,IAAIJ,GAGpC,IAAMK,EAAmB,SAAAC,GAGrB,IAAKA,EAAMC,SAET,OAAOC,QAAQC,OAAOH,GAIxB,OAAOA,EAAMC,SAASG,QAClB,KAAK,IACDC,QAAQL,MAAMA,EAAMC,SAASG,OAAQJ,EAAMM,SAE3C,MAEJ,KAAK,IAGDd,aAAae,WAAW,gBACxBC,OAAMC,SAAS,eACfC,OAAOC,KAAK,UACZ,MAEJ,QACIN,QAAQL,MAAMA,EAAMC,SAASG,OAAQJ,EAAMM,SAInD,OAAOJ,QAAQC,OAAOH,IAIpBY,EAAsB,SAAAX,GACxB,OAAOA,EAASG,QACZ,KAAK,IAED,MAEJ,SAIJ,OAAOH,GAGXhB,EAAWW,aAAaK,SAASH,IAAIc,EAAqBb,GAE3Cd","file":"js/chunk-493626e2.94428572.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.loading)?_c('i',{staticClass:\"fa fa-spin fa-spinner ml-2\"}):_vm._e()])]),_c('div',{staticClass:\"page-title-right\"},[_c('b-breadcrumb',{staticClass:\"m-0\",attrs:{\"items\":_vm.breadcrumbs}})],1)])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('button',{staticClass:\"btn btn-outline-secondary float-right\",attrs:{\"disabled\":_vm.clearing},on:{\"click\":_vm.clearHistory}},[(_vm.clearing)?_c('i',{staticClass:\"fa fa-spin fa-spinner mr-2\"}):_vm._e(),(!_vm.clearing)?_c('i',{staticClass:\"fa fa-times mr-2\"}):_vm._e(),_vm._v(\" Clear history \")])])]),(_vm.timelineData && (!_vm.timelineData.years || _vm.timelineData.years.length === 0))?_c('div',{staticClass:\"alert alert-info mt-2\"},[_vm._v(\" No records found... \")]):_vm._e(),(_vm.timelineData)?_c('div',{staticClass:\"row justify-content-center mt-2\"},[_c('div',{staticClass:\"col-xl-10\"},_vm._l((_vm.timelineData.years),function(yearData){return _c('div',{key:yearData.year,staticClass:\"timeline\",attrs:{\"dir\":\"ltr\"}},[_c('div',{staticClass:\"timeline-item timeline-left\"},[_c('div',{staticClass:\"timeline-block\"},[_c('div',{staticClass:\"time-show-btn mt-0\"},[_c('a',{staticClass:\"btn btn-danger btn-rounded w-lg\",attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(yearData.year))])])])]),_vm._l((yearData.items),function(data,index){return _c('div',{key:index,staticClass:\"timeline-item\",class:{'timeline-left':index % 2 === 0}},[_c('div',{staticClass:\"timeline-block\"},[_c('div',{staticClass:\"timeline-box card cardc8\"},[_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-body\"},[_c('span',{staticClass:\"timeline-icon\"}),_c('router-link',{staticClass:\"timeline-date\",attrs:{\"to\":{ name: 'screening', params: { id: data.id}}}},[_c('i',{staticClass:\"mdi mdi-circle-medium circle-dot\"}),_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(data.date,\"ddd, MMM Do\"))+\" \")]),_c('h5',{staticClass:\"mt-3 foont-size-15\"},[(data.screeningType === 'Correlations')?_c('span',[_vm._v(_vm._s(_vm.$t(\"pages.screeningHistory.screeningType-Correlations\")))]):_vm._e(),(data.screeningType === 'RollingCorrelations')?_c('span',[_vm._v(_vm._s(_vm.$t(\"pages.screeningHistory.screeningType-RollingCorrelations\")))]):_vm._e(),(data.screeningType === 'PerformanceStatistics')?_c('span',[_vm._v(_vm._s(_vm.$t(\"pages.screeningHistory.screeningType-PerformanceStatistics\")))]):_vm._e(),(data.screeningType === 'PerformanceData')?_c('span',[_vm._v(_vm._s(_vm.$t(\"pages.screeningHistory.screeningType-PerformanceData\")))]):_vm._e(),(data.years === 0)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screeningHistory.allData\"))+\")\")]):_vm._e(),(data.years === 10)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screeningHistory.10year\"))+\")\")]):_vm._e(),(data.years === 1)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screeningHistory.1year\"))+\")\")]):_vm._e(),(data.years === 3)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screeningHistory.3years\"))+\")\")]):_vm._e(),(data.years === 5)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\"(\"+_vm._s(_vm.$t(\"pages.screeningHistory.5years\"))+\")\")]):_vm._e()]),_c('div',{staticClass:\"text-muted\"},[_c('p',{staticClass:\"mb-0 pt-2\"},[_c('ul',{staticStyle:{\"list-style\":\"none\"}},_vm._l((data.indices),function(i){return _c('li',{key:i.indexId},[_vm._v(_vm._s(i.indexDisplayName))])}),0)])])],1)])])])])})],2)}),0)]):_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-history.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-history.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./screening-history.vue?vue&type=template&id=18e13ba0&\"\nimport script from \"./screening-history.vue?vue&type=script&lang=js&\"\nexport * from \"./screening-history.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":""}