{"version":3,"sources":["webpack:///./src/models/MiInversion/MiInversionModel.ts","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?5591","webpack:///./src/views/mi-inversion/MiInversion.vue?00e9","webpack:///./src/views/mi-inversion/MiInversion.vue","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?ca10","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?ab43","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?2f52","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue","webpack:///./src/components/Charts/BarChart.vue?26f5","webpack:///./src/components/Charts/BarChart.vue","webpack:///./src/components/Charts/BarChart.vue?ffe8","webpack:///./src/components/Charts/LineChart.vue?d6b8","webpack:///./src/components/Charts/LineChart.vue","webpack:///./src/components/Charts/LineChart.vue?89b8","webpack:///./src/components/Charts/DoughnutChart.vue?1cad","webpack:///./src/components/Charts/DoughnutChart.vue","webpack:///./src/components/Charts/DoughnutChart.vue?e842","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?4694","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?a59d","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?5506","webpack:///./src/views/mi-inversion/MiInversion.vue?ea4a","webpack:///./src/views/mi-inversion/MiInversion.vue?ab23","webpack:///./src/views/mi-inversion/MiInversion.vue?f190","webpack:///./src/models/SelectOption.ts","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?843a","webpack:///./src/models/WsdlResponses/FundType.ts"],"names":["MiInversionModel","_createClass","_classCallCheck","_defineProperty","render","_vm","this","_c","_self","_setupProxy","miInversion","staticClass","attrs","concat","image","_v","_s","title","showResult","rentAcumulated","rent","on","returnForm","isLoading","process","_e","staticRenderFns","_m","tiposDeFondos","model","value","tipoFondo","callback","$$v","expression","todaysDate","setToDate","isProcessing","returnHome","MiInversionForm","_Vue","_this","_callSuper","FundType","Date","WsdlService","$store","state","user","cedula","UmbracoApiService","_inherits","key","_mounted","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","getData","getDropdownData","stop","mounted","apply","arguments","_getDropdownData","_callee2","_this2","_context2","wsdlService","getTipoDeFondos","userId","then","response","option","Option","data","tipofondos","text","valor","disabled","push","_getData","_callee3","_context3","umbracoService","getMiInversion","sent","$emit","toDate","window","location","href","GlobalConfig","PORTAL_BASE_URL","date","partitionedDateString","split","Vue","__decorate","Prop","Component","component","items","scopedSlots","_u","fn","proxy","slot","Number","totalAportes","toFixed","toLocaleString","undefined","minimumFractionDigits","totalRentabilidad","totalBalanceF","totalRendimiento","displayChart","myStyles","dataCollection","dataCollectionLine","Lineoptions","displayDoughnut","dataCollectionDoughnut","updateUser","BarChart","_mixins","_len","length","args","Array","_key","renderChart","chartData","responsive","maintainAspectRatio","mixins","Bar","chartMixins","reactiveProp","LineChart","options","Line","DoughnutChart","tooltips","enabled","callbacks","label","tooltipItem","dataset","datasets","datasetIndex","currentValue","index","Pie","MiInversionResult","height","width","fillTable","getTotals","getBarChart","getLineChart","getAportes","labels","totalAmount","rentaAcumulada","saldototal","forEach","element","tipo","backgroundColor","doughnutOptions","plugins","tooltip","context","parsed","y","Intl","NumberFormat","style","currency","format","NaN","max","rentabilidad","anio","rendimiento","replace","includes","showLine","fill","borderColor","spanGaps","layout","padding","left","right","scales","yAxes","display","ticks","beginAtZero","balancefinal","tRendimiento","aportes","_this3","map","x","año","balance_inicial","balanceinicial","balance_final","formatRendimiento","result","rend","_this4","$router","components","MiInversion","UMBRACO_BASE_URL","getMinMaxDate","getRentData","catch","ex","Swal","fire","icon","showConfirmButton","confirmButtonText","finally","_getRentData","getRentabilidadAcumulada","getRentabilidad","_x","_x2","_getDatesVigencia","GetFechaVigencia","tipofondo","FinalDate","fecvigencia","iDate","getFormattedDate","getDatesVigencia","_x3","_getRentabilidadAcumulada","_callee4","_context4","GetRentabilidadAcumulada","codcuenta","_x4","_x5","_getRentabilidad","_callee5","_this5","_context5","GetRentabilidad","_x6","_x7","_this6","GetMinMaxValues","resp","maxfecha","_callee6","_this7","_context6","year","getFullYear","month","getMonth","toString","day","getDate","_callee7","_this8","_context7","umbracoBaseUrl"],"mappings":"4LAAqBA,EAAgBC,gBAAA,SAAAD,IAAAE,eAAA,KAAAF,GAAAG,eAAA,qBAAAA,eAAA,yB,kFCArC,W,oCCAA,W,2CCAA,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIK,YAAaH,EAAG,UAAU,CAACA,EAAG,MAAM,CAACI,YAAY,OAAO,CAACJ,EAAG,MAAM,CAACI,YAAY,OAAO,CAACJ,EAAG,MAAM,CAACI,YAAY,oBAAoBC,MAAM,CAAC,IAAK,GAAAC,OAAIR,EAAIS,OAAQ,IAAM,2BAA2BP,EAAG,MAAM,CAACI,YAAY,YAAYJ,EAAG,MAAM,CAACI,YAAY,iBAAiB,CAACJ,EAAG,IAAI,CAACF,EAAIU,GAAGV,EAAIW,GAAGX,EAAIK,YAAYO,YAAYV,EAAG,MAAM,CAACI,YAAY,gBAAgB,CAAGN,EAAIa,WAAoGX,EAAG,oBAAoB,CAACK,MAAM,CAAC,eAAiBP,EAAIc,eAAe,aAAed,EAAIe,MAAMC,GAAG,CAAC,WAAahB,EAAIiB,cAAzMf,EAAG,kBAAkB,CAACK,MAAM,CAAC,aAAeP,EAAIkB,WAAWF,GAAG,CAAC,QAAUhB,EAAImB,YAA2I,KAAKnB,EAAIoB,MAErrBC,EAAkB,G,4LCFlBtB,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACI,YAAY,iCAAiC,CAACJ,EAAG,MAAM,CAACI,YAAY,iBAAiB,CAACJ,EAAG,MAAM,CAACI,YAAY,aAAa,CAACJ,EAAG,MAAM,CAACI,YAAY,kBAAkB,CAACJ,EAAG,OAAO,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A,EAAM,IAAMH,EAAQ,IAAMF,IAClC,CAAAzN,IAAA,UAAAtB,MAAA,eAAAuD,EAAA/B,eAAAC,mBAAAC,MAED,SAAA4N,IAAA,IAAAC,EAAA,YAAA9N,mBAAAG,MAAA,SAAA4N,GAAA,eAAAA,EAAA1N,KAAA0N,EAAAzN,MAAA,cAAAyN,EAAAzN,KAAA,EACQvD,KAAKkF,eAAeC,iBAAiBd,MAAK,SAAC6L,GAC/Ca,EAAK3Q,YAAc8P,EACnBa,EAAKvQ,MAAQ,GAAHD,OAAMwQ,EAAKE,gBAAc1Q,OAAG2P,EAAK1P,UAC3C,wBAAAwQ,EAAAtN,UAAAoN,EAAA,UACH,SALKtN,IAAO,OAAAuB,EAAAnB,MAAC,KAADC,WAAA,OAAPL,EAFL,MAjH6B,CAASuC,QAApByH,GAAWxH,eAAA,CAN/BE,eAAU,CACTqH,WAAY,CACVtL,kBACAwH,yBAGiB+D,cCnBkY,MCQnZ,I,UAAY,eACd,GACA1N,EACAsB,GACA,EACA,KACA,WACA,OAIa,gB,uHCnBMoD,EAAM7E,gBAAA,SAAA6E,IAAA5E,eAAA,KAAA4E,GAAA3E,eAAA,aACR,MAAIA,eAAA,YACA,IAAEA,eAAA,iBACG,O,yDCH5B,W,4GCAqBwC,EAAQ1C,gBAAA,SAAA0C,IAAAzC,eAAA,KAAAyC,GAAAxC,eAAA,iBACD,IAAEA,eAAA,aACN,IAAEA,eAAA,iBACE,IAAEA,eAAA,oBACC,IAAEA,eAAA,qBACD,IAAEA,eAAA,iBACN,IAAEA,eAAA,mBACA,IAAEA,eAAA,oBACD,IAAEA,eAAA,uBACC,IAAEA,eAAA,uBACF,IAAEA,eAAA,eACV,IAAEA,eAAA,gBACD","file":"js/chunk-5de24b30.7086c7ad.js","sourcesContent":["export default class MiInversionModel {\n image: string;\n title: string;\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.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!./MiInversionForm.vue?vue&type=style&index=0&id=f20c60b6&prod&scoped=true&lang=css\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.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!./MiInversion.vue?vue&type=style&index=0&id=3fb100a0&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.miInversion)?_c('section',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('img',{staticClass:\"bannermiinversion\",attrs:{\"src\":`${_vm.image}`,\"alt\":\"Banner secundario\"}})])]),_c('div',{staticClass:\"bnrline\"}),_c('div',{staticClass:\"section-title\"},[_c('p',[_vm._v(_vm._s(_vm.miInversion.title))])]),_c('div',{staticClass:\"form-content\"},[(!_vm.showResult)?_c('MiInversionForm',{attrs:{\"isProcessing\":_vm.isLoading},on:{\"process\":_vm.process}}):_c('MiInversionResult',{attrs:{\"rentaAcumulada\":_vm.rentAcumulated,\"rentabilidad\":_vm.rent},on:{\"returnForm\":_vm.returnForm}})],1)]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"content-wraper main-container\"},[_c('div',{staticClass:\"container-afp\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"form_wrap form\"},[_c('form',[_c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"initial-date\"},[_vm._m(0),_c('div',{staticClass:\"select\"},[_c('b-form-select',{staticClass:\"mb-2\",attrs:{\"options\":_vm.tiposDeFondos},model:{value:(_vm.tipoFondo),callback:function ($$v) {_vm.tipoFondo=$$v},expression:\"tipoFondo\"}})],1)]),_c('div',{staticClass:\"final-date\"},[_vm._m(1),_c('div',{staticClass:\"final-date\"},[_c('b-form-datepicker',{staticClass:\"mb-2\",attrs:{\"id\":\"example-datepicker\",\"initial-date\":_vm.todaysDate,\"placeholder\":\"Seleccionar fecha final\"},on:{\"input\":_vm.setToDate}})],1)])])]),_c('div',{staticClass:\"buttons\"},[_c('button',{staticClass:\"btn\",on:{\"click\":_vm.process}},[_vm._v(\"Procesar \"),(_vm.isProcessing)?_c('b-spinner',{attrs:{\"small\":\"\",\"label\":\"Spinning\"}}):_vm._e()],1),_c('button',{on:{\"click\":_vm.returnHome}},[_vm._v(\"\\n Volver al menú\\n \")])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"label\"},[_c('h4',[_vm._v(\"Tipo de Fondo:\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"label\"},[_c('h4',[_vm._v(\"Fecha Final:\")])])\n}]\n\nexport { render, staticRenderFns }","\nimport axios, { AxiosResponse } from \"axios\";\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport GlobalConfig from \"@/GlobalConfig\";\nimport WsdlService from \"@/services/WsdlService\";\nimport Option from \"@/models/SelectOption\";\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\nimport FundType from \"@/models/WsdlResponses/FundType\";\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\n@Component({})\nexport default class MiInversionForm extends Vue {\n\t@Prop() isProcessing: boolean;\n\t\n public tiposDeFondos: Array> = [];\n public tipoFondo: FundType = new FundType();\n\tpublic todaysDate: Date = new Date();\n public wsdlService: WsdlService = new WsdlService();\n\tpublic toDate: string = \"\";\n public userId: string = this.$store.state.user.cedula;\n\n constructor() {\n super();\n }\n\n public umbracoService = new UmbracoApiService();\n public miInversion = new MiInversionModel();\n\n async mounted() {\n await this.getData();\n await this.getDropdownData();\n }\n async getDropdownData() {\n this.wsdlService\n .getTipoDeFondos(this.userId, \"\")\n .then((response: AxiosResponse) => {\n let option = new Option();\n option.value = response.data.tipofondos;\n option.text = response.data.tipofondos.valor;\n option.disabled = false;\n this.tiposDeFondos.push(option);\n this.tipoFondo = option.value;\n });\n }\n async getData() {\n this.miInversion = await this.umbracoService.getMiInversion();\n }\n public process() {\n this.$emit(\"process\", this.tipoFondo, this.toDate);\n }\n\treturnHome() {\n window.location.href = GlobalConfig.PORTAL_BASE_URL\n }\n\tpublic setToDate(date: string) {\n\t\tlet partitionedDateString = date.split('-');\n this.toDate = `${partitionedDateString[2]}/${partitionedDateString[1]}/${partitionedDateString[0]}`;\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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversionForm.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversionForm.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MiInversionForm.vue?vue&type=template&id=f20c60b6&scoped=true\"\nimport script from \"./MiInversionForm.vue?vue&type=script&lang=ts\"\nexport * from \"./MiInversionForm.vue?vue&type=script&lang=ts\"\nimport style0 from \"./MiInversionForm.vue?vue&type=style&index=0&id=f20c60b6&prod&scoped=true&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 \"f20c60b6\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"form_wrap form\"},[_c('div',[_c('b-table',{attrs:{\"bordered\":true,\"fixed\":\"\",\"hover\":\"\",\"busy\":_vm.isLoading,\"items\":_vm.items,\"head-variant\":\"light\",\"tbody-class\":\"text-right\"},scopedSlots:_vm._u([{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center my-2\"},[_c('b-spinner',{staticClass:\"align-middle\"}),_c('strong',[_vm._v(\"Cargando...\")])],1)]},proxy:true}])},[_c('template',{slot:\"bottom-row\"},[_c('b-td',{staticClass:\"text-left\",attrs:{\"variant\":\"secondary\"}},[_vm._v(\"Totales\")]),_c('b-td',{attrs:{\"variant\":\"secondary\"}}),_c('b-td',{attrs:{\"variant\":\"secondary\"}},[_vm._v(_vm._s(Number(_vm.totalAportes.toFixed(2)).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n })))]),_c('b-td',{attrs:{\"variant\":\"secondary\"}},[_vm._v(_vm._s(Number(_vm.totalRentabilidad.toFixed(2)).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n })))]),_c('b-td',{attrs:{\"variant\":\"secondary\"}},[_vm._v(_vm._s(Number(_vm.totalBalanceF.toFixed(2)).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n })))]),_c('b-td',{attrs:{\"variant\":\"secondary\"}},[_vm._v(_vm._s(Number(_vm.totalRendimiento.toFixed(2)).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n }))+\"%\")])],1)],2)],1),_c('div',[(_vm.displayChart)?_c('div',{staticClass:\"chart\"},[_c('h3',[_vm._v(\"Crecimiento de mi Inversión\")]),_c('BarChart',{attrs:{\"styles\":_vm.myStyles,\"chart-data\":_vm.dataCollection}})],1):_vm._e(),_c('div',{staticClass:\"chart\"},[_c('h3',[_vm._v(\"Rendimiento de mi inversión\")]),_c('LineChart',{attrs:{\"chart-data\":_vm.dataCollectionLine,\"styles\":_vm.myStyles,\"options\":_vm.Lineoptions}})],1),(_vm.displayDoughnut)?_c('div',{staticClass:\"chart\"},[_c('h3',[_vm._v(\"Composición de mi inversión\")]),_c('DoughnutChart',{attrs:{\"styles\":_vm.myStyles,\"chartData\":_vm.dataCollectionDoughnut}})],1):_vm._e()]),_c('div',{staticClass:\"b-row buttons chart chart-buttons\"},[_c('button',{staticClass:\"btn-procesar\",on:{\"click\":_vm.returnForm}},[_vm._v(\"\\n Volver atrás\\n \")]),_c('button',{staticClass:\"btn-menu\",on:{\"click\":_vm.returnHome}},[_vm._v(\"\\n Volver al menú\\n \")]),_c('button',{staticClass:\"btn-menu\",on:{\"click\":_vm.updateUser}},[_vm._v(\"\\n Actualiza tus datos\\n \")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Component, { mixins } from \"vue-class-component\";\nimport { Bar, mixins as chartMixins } from \"vue-chartjs\";\nimport { Prop } from \"vue-property-decorator\";\n\n@Component({\n mixins: [chartMixins.reactiveProp],\n})\nexport default class BarChart extends mixins(Bar) {\n\t@Prop() chartData: any;\n mounted() {\n this.renderChart(\n this.chartData,\n { \n\t\t\t\tresponsive: true,\n\t\t\t\tmaintainAspectRatio: false,\n\t\t\t}\n );\n }\n}\n","var render, staticRenderFns\nimport script from \"./BarChart.vue?vue&type=script&lang=ts\"\nexport * from \"./BarChart.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 null,\n null\n \n)\n\nexport default component.exports","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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=script&lang=ts\"","\nimport Component, { mixins } from \"vue-class-component\";\nimport { Line, mixins as chartMixins } from \"vue-chartjs\";\nimport { Prop } from \"vue-property-decorator\";\n\n@Component({\n mixins: [chartMixins.reactiveProp],\n})\nexport default class LineChart extends mixins(Line) {\n\t@Prop() chartData: any;\n\t@Prop() options: any;\n mounted() {\n this.renderChart(\n this.chartData,\n this.options\n );\n }\n}\n","var render, staticRenderFns\nimport script from \"./LineChart.vue?vue&type=script&lang=ts\"\nexport * from \"./LineChart.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 null,\n null\n \n)\n\nexport default component.exports","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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LineChart.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LineChart.vue?vue&type=script&lang=ts\"","\nimport Component, { mixins } from \"vue-class-component\";\nimport { Pie, mixins as chartMixins } from \"vue-chartjs\";\nimport { Prop } from \"vue-property-decorator\";\n\n@Component({\n mixins: [chartMixins.reactiveProp],\n})\nexport default class DoughnutChart extends mixins(Pie) {\n\t@Prop() chartData: any;\n mounted() {\n this.renderChart(\n this.chartData,\n { \n\t\t\t\tresponsive: true,\n\t\t\t\tmaintainAspectRatio: false,\n\t\t\t\ttooltips: {\n\t\t\t\t\tenabled: true,\n\t\t\t\t\tcallbacks: {\n\t\t\t\t\t\tlabel:function (tooltipItem, data) {\n\t\t\t\t\t\t\tlet dataset = data.datasets[tooltipItem.datasetIndex]\n\t\t\t\t\t\t\tlet currentValue = `${dataset.label[tooltipItem.index]}: ${Number(dataset.data[tooltipItem.index]).toFixed(2)}%`\n\t\t\t\t\t\t\treturn currentValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n );\n }\n}\n","var render, staticRenderFns\nimport script from \"./DoughnutChart.vue?vue&type=script&lang=ts\"\nexport * from \"./DoughnutChart.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 null,\n null\n \n)\n\nexport default component.exports","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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=ts\"","\nimport axios, { AxiosResponse } from \"axios\";\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport GlobalConfig from \"@/GlobalConfig\";\nimport WsdlService from \"@/services/WsdlService\";\nimport Option from \"@/models/SelectOption\";\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\nimport FundType from \"@/models/WsdlResponses/FundType\";\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\nimport BarChart from \"../Charts/BarChart.vue\";\nimport LineChart from \"../Charts/LineChart.vue\";\nimport DoughnutChart from \"../Charts/DoughnutChart.vue\";\n\n@Component({\n components: {\n BarChart,\n LineChart,\n DoughnutChart,\n },\n})\nexport default class MiInversionResult extends Vue {\n @Prop() rentaAcumulada: any;\n @Prop() rentabilidad: any;\n\n public tiposDeFondos: Array> = [];\n public tipoFondo: FundType = new FundType();\n public wsdlService: WsdlService = new WsdlService();\n public userId: string = this.$store.state.user.cedula;\n public isLoading: boolean = false;\n public displayChart: boolean = false;\n public displayDoughnut: boolean = false;\n public myStyles: any = {\n height: \"300px\",\n width: \"100%\",\n };\n public totalAportes: number = 0;\n public totalRentabilidad: number = 0;\n public totalBalanceF: number = 0;\n public totalRendimiento: number = 0;\n //table\n public items: any = [];\n //charts\n public dataCollection: any = {};\n public dataCollectionLine: any = {};\n public Lineoptions: any = {};\n public dataCollectionDoughnut: any = {};\n public doughnutOptions: any = {};\n\n constructor() {\n super();\n }\n\n public umbracoService = new UmbracoApiService();\n public miInversion = new MiInversionModel();\n\n async mounted() {\n await this.getData();\n await this.getDropdownData();\n this.fillTable();\n this.getTotals();\n this.getBarChart();\n this.getLineChart();\n this.getAportes();\n }\n public getAportes() {\n let labels = [];\n let data = [];\n let totalAmount = Number(this.rentaAcumulada[0].saldototal);\n this.rentaAcumulada.forEach((element) => {\n labels.push(element.tipo);\n data.push((Number(element.valor) * 100) / totalAmount);\n });\n this.dataCollectionDoughnut = {\n labels: labels,\n datasets: [\n {\n title: \"Composición de Mi Inversión\",\n label: labels,\n data: data,\n backgroundColor: [\"#F4C059\", \"#F7A93C\", \"#28346D\", \"#265DB2\"],\n },\n ],\n };\n\n this.doughnutOptions = {\n plugins: {\n tooltip: {\n callbacks: {\n label: function(context) {\n let label = context.dataset.label || \"\";\n\n if (label) {\n label += \": \";\n }\n if (context.parsed.y !== null) {\n label += new Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n }).format(context.parsed.y);\n }\n return label;\n },\n },\n },\n },\n };\n\n this.displayDoughnut = true;\n }\n public getLineChart() {\n let labels = [\"\"];\n let data = [NaN];\n let max = this.rentabilidad.length > 14 ? 14 : this.rentabilidad.length - 1;\n for (let index = 0; index < max; index++) {\n const element = this.rentabilidad[index];\n labels.push(element.anio);\n element.rendimiento.replace(\"%\", \"\");\n let rendimiento = 0;\n if (element.rendimiento.includes(\"-\")) {\n rendimiento = Number(element.rendimiento.replace(\"-\", \"0\")) * 100;\n } else {\n rendimiento = Number(\"0\" + element.rendimiento) * 100;\n }\n if (rendimiento < 1) rendimiento = NaN;\n data.push(Number(rendimiento.toFixed(2)));\n }\n data.push(NaN);\n labels.push(\"\");\n\n this.dataCollectionLine = {\n labels: labels,\n datasets: [\n {\n label: \"Rendimiento de Mi Inversión\",\n backgroundColor: \"#F7A93C\",\n data: data,\n showLine: true,\n fill: false,\n borderColor: \"#F7A93C\",\n spanGaps: true,\n },\n ],\n };\n\n this.Lineoptions = {\n responsive: true,\n maintainAspectRatio: false,\n layout: {\n padding: {\n left: 100,\n right: 100,\n },\n },\n scales: {\n yAxes: [\n {\n display: true,\n ticks: {\n beginAtZero: true,\n },\n },\n ],\n },\n };\n }\n public getBarChart() {\n let labels = [];\n let data = [];\n this.rentabilidad.forEach((element) => {\n labels.push(element.anio);\n data.push(Number(Number(element.balancefinal).toFixed(2)));\n });\n this.dataCollection = {\n labels: labels,\n datasets: [\n {\n label: \"Crecimiento de Mi Inversión\",\n backgroundColor: \"#337ab7\",\n data: data,\n },\n ],\n };\n this.displayChart = true;\n }\n public getTotals() {\n let tRendimiento = 0;\n this.rentabilidad.forEach((element) => {\n if (element.aportes.includes(\",\")) {\n this.totalAportes += Number(element.aportes.replace(\",\", \"\"));\n } else {\n this.totalAportes += Number(element.aportes);\n }\n\n if (element.aportes.includes(\",\")) {\n this.totalRentabilidad += Number(element.rentabilidad.replace(\",\", \"\"));\n } else {\n this.totalRentabilidad += Number(element.rentabilidad);\n }\n\n element.rendimiento.replace(\"%\", \"\");\n let rendimiento = 0;\n if (element.rendimiento.includes(\"-\")) {\n rendimiento = Number(element.rendimiento.replace(\"-\", \"0\"));\n if (rendimiento > 0) tRendimiento++;\n this.totalRendimiento += rendimiento;\n } else {\n rendimiento = Number(\"0\" + element.rendimiento);\n if (rendimiento > 0) tRendimiento++;\n this.totalRendimiento += rendimiento;\n }\n });\n this.totalBalanceF = Number(\n this.rentabilidad[this.rentabilidad.length - 1].balancefinal.replace(\n \",\",\n \"\"\n )\n );\n this.totalRendimiento = (this.totalRendimiento * 100) / tRendimiento;\n }\n public fillTable() {\n this.items = this.rentabilidad.map((x: any) => ({\n año: x.anio,\n balance_inicial: Number(\n Number(x.balanceinicial).toFixed(2)\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\n aportes: Number(Number(x.aportes).toFixed(2)).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n }),\n rentabilidad: Number(\n Number(x.rentabilidad).toFixed(2)\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\n balance_final: Number(\n Number(x.balancefinal).toFixed(2)\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\n rendimiento: this.formatRendimiento(x.rendimiento),\n }));\n }\n public formatRendimiento(rendimiento: string): string {\n if (!rendimiento) return \"0%\";\n if (rendimiento.includes(\"-\")) {\n let result = (Number(rendimiento.replace(\"-\", \"0\")) * 100).toFixed(2);\n return (\n Number(result).toLocaleString(undefined, { minimumFractionDigits: 2 }) +\n \"%\"\n );\n } else {\n let rend = (Number(\"0\" + rendimiento) * 100).toFixed(2);\n return (\n Number(rend).toLocaleString(undefined, { minimumFractionDigits: 2 }) +\n \"%\"\n );\n }\n }\n async getDropdownData() {\n this.wsdlService\n .getTipoDeFondos(this.userId, \"\")\n .then((response: AxiosResponse) => {\n let option = new Option();\n option.value = response.data.tipofondos;\n option.text = response.data.tipofondos.valor;\n option.disabled = false;\n this.tiposDeFondos.push(option);\n this.tipoFondo = option.value;\n });\n }\n async getData() {\n this.miInversion = await this.umbracoService.getMiInversion();\n }\n public returnForm() {\n this.$emit(\"returnForm\");\n }\n public updateUser() {\n this.$router.push(\"actualizacion-de-datos\");\n }\n returnHome() {\n window.location.href = GlobalConfig.PORTAL_BASE_URL;\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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversionResult.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversionResult.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MiInversionResult.vue?vue&type=template&id=31757f4f&scoped=true\"\nimport script from \"./MiInversionResult.vue?vue&type=script&lang=ts\"\nexport * from \"./MiInversionResult.vue?vue&type=script&lang=ts\"\nimport style0 from \"./MiInversionResult.vue?vue&type=style&index=0&id=31757f4f&prod&scoped=true&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 \"31757f4f\",\n null\n \n)\n\nexport default component.exports","\nimport axios, { AxiosResponse } from \"axios\";\nimport { Component, Vue } from \"vue-property-decorator\";\nimport GlobalConfig from \"@/GlobalConfig\";\nimport WsdlService from \"@/services/WsdlService\";\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\nimport MiInversionForm from \"@/components/Mi_Inversion/MiInversionForm.vue\";\nimport MiInversionResult from \"@/components/Mi_Inversion/MiInversionResult.vue\";\nimport Swal from \"sweetalert2\";\nimport FundType from \"@/models/WsdlResponses/FundType\";\n\n@Component({\n components: {\n MiInversionForm,\n MiInversionResult,\n },\n})\nexport default class MiInversion extends Vue {\n public tipoFondo: Array = [];\n public wsdlService: WsdlService = new WsdlService();\n public userId: string = this.$store.state.user.cedula;\n public showResult: boolean = false;\n public umbracoBaseUrl: string = GlobalConfig.UMBRACO_BASE_URL;\n public umbracoService = new UmbracoApiService();\n public isLoading: boolean = false;\n public miInversion = new MiInversionModel();\n public image: string = \"\";\n public FinalDate: string = \"\";\n public rentAcumulated: any = {};\n public rent: any = {};\n\n constructor() {\n super();\n }\n async mounted() {\n await this.getData();\n await this.getDropdownData();\n await this.getMinMaxDate();\n }\n\n public process(tipoFondo: FundType, toDate: string) {\n if (toDate) {\n this.isLoading = true;\n this.getRentData(tipoFondo, toDate)\n .then((response) => {\n this.showResult = true;\n })\n .catch((ex) => {\n Swal.fire({\n text: \"¡Lo sentimos! Ha ocurrido un error en la consulta\",\n icon: \"error\",\n showConfirmButton: true,\n confirmButtonText: \"Ok\",\n });\n })\n .finally(() => {\n this.isLoading = false;\n });\n } else {\n Swal.fire({\n text: \"Debe seleccionar una fecha final para consultar su inversión\",\n icon: \"error\",\n showConfirmButton: true,\n confirmButtonText: \"Ok\",\n });\n }\n }\n public async getRentData(tipoFondo: FundType, toDate: string) {\n // await this.getDatesVigencia(tipoFondo);\n await this.getRentabilidadAcumulada(tipoFondo, toDate);\n await this.getRentabilidad(tipoFondo, toDate);\n }\n public async getDatesVigencia(tipoFondo: FundType) {\n await this.wsdlService\n .GetFechaVigencia(tipoFondo.tipofondo, this.FinalDate)\n .then((response) => {\n if (!response.data[0].fecvigencia) return;\n let iDate = new Date(response.data[0].fecvigencia);\n this.FinalDate = this.getFormattedDate(iDate);\n });\n }\n public async getRentabilidadAcumulada(tipoFondo: FundType, toDate: string) {\n await this.wsdlService\n .GetRentabilidadAcumulada(\n this.userId,\n tipoFondo.codcuenta,\n this.FinalDate\n )\n .then((response: AxiosResponse) => {\n this.rentAcumulated = response.data;\n });\n }\n public async getRentabilidad(tipoFondo: FundType, toDate: string) {\n await this.wsdlService\n .GetRentabilidad(\n this.userId,\n tipoFondo.codcuenta,\n \"07/07/2003\",\n this.FinalDate\n )\n .then((response: AxiosResponse) => {\n this.rent = this.rent = response.data;\n });\n }\n public getMinMaxDate() {\n this.wsdlService.GetMinMaxValues(\"2\").then((resp) => {\n let iDate = new Date(resp.data[0].maxfecha);\n this.FinalDate = this.getFormattedDate(iDate);\n });\n }\n public returnForm() {\n this.showResult = false;\n }\n public async getDropdownData() {\n this.wsdlService\n .getTipoDeFondos(this.userId, \"\")\n .then((response: AxiosResponse) => {\n this.tipoFondo.push(response.data);\n });\n }\n public getFormattedDate(date: Date): string {\n let year = date.getFullYear();\n\n let month = (1 + date.getMonth()).toString();\n month = month.length > 1 ? month : \"0\" + month;\n\n let day = date.getDate().toString();\n day = day.length > 1 ? day : \"0\" + day;\n\n return day + \"/\" + month + \"/\" + year;\n }\n\n async getData() {\n await this.umbracoService.getMiInversion().then((resp) => {\n this.miInversion = resp;\n this.image = `${this.umbracoBaseUrl}${resp.image}`;\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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversion.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MiInversion.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MiInversion.vue?vue&type=template&id=3fb100a0&scoped=true\"\nimport script from \"./MiInversion.vue?vue&type=script&lang=ts\"\nexport * from \"./MiInversion.vue?vue&type=script&lang=ts\"\nimport style0 from \"./MiInversion.vue?vue&type=style&index=0&id=3fb100a0&prod&scoped=true&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 \"3fb100a0\",\n null\n \n)\n\nexport default component.exports","export default class Option{\n\tpublic value: T = null;\n\tpublic text: string = \"\";\n\tpublic disabled: boolean = false;\n}","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.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!./MiInversionResult.vue?vue&type=style&index=0&id=31757f4f&prod&scoped=true&lang=css\"","export default class FundType {\n\tpublic codcuenta: string = \"\";\n\tpublic valor: string = \"\";\n\tpublic tipofondo: string = \"\";\n\tpublic emailusuario: string = \"\";\n\tpublic emailservidor: string = \"\";\n\tpublic codmoneda: string = \"\";\n\tpublic codecelular: string = \"\";\n\tpublic balancexmail: string = \"\";\n\tpublic diabalancexmail: string = \"\";\n\tpublic balancexcelular: string = \"\";\n\tpublic celular: string = \"\";\n\tpublic tipenvio: string = \"\";\n}\n"],"sourceRoot":""}