{"version":3,"sources":["webpack:///./src/models/MiInversion/MiInversionModel.ts","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?d6bf","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?0f6a","webpack:///./src/views/mi-inversion/MiInversion.vue?0696","webpack:///./src/views/mi-inversion/MiInversion.vue?1d84","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?fdd5","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?4c4b","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?bb84","webpack:///./src/components/Mi_Inversion/MiInversionForm.vue?2f52","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?d007","webpack:///./src/components/Charts/BarChart.vue?6bd9","webpack:///./src/components/Charts/BarChart.vue","webpack:///./src/components/Charts/BarChart.vue?48c2","webpack:///./src/components/Charts/LineChart.vue?38cd","webpack:///./src/components/Charts/LineChart.vue","webpack:///./src/components/Charts/LineChart.vue?0b2c","webpack:///./src/components/Charts/DoughnutChart.vue?419f","webpack:///./src/components/Charts/DoughnutChart.vue","webpack:///./src/components/Charts/DoughnutChart.vue?5cce","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?1e53","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?ebd1","webpack:///./src/components/Mi_Inversion/MiInversionResult.vue?5506","webpack:///./src/views/mi-inversion/MiInversion.vue?1686","webpack:///./src/views/mi-inversion/MiInversion.vue?83f1","webpack:///./src/views/mi-inversion/MiInversion.vue?f190","webpack:///./src/services/UmbracoApiService.ts","webpack:///./src/models/SelectOption.ts","webpack:///./src/models/WsdlResponses/FundType.ts"],"names":["MiInversionModel","render","_vm","this","_h","$createElement","_c","_self","staticClass","style","image","_v","_s","miInversion","title","showResult","attrs","rentAcumulated","rent","on","returnForm","isLoading","process","_e","staticRenderFns","_m","tiposDeFondos","model","value","callback","$$v","tipoFondo","expression","todaysDate","setToDate","returnHome","FundType","Date","wsdlService","WsdlService","toDate","userId","$store","state","user","cedula","umbracoService","UmbracoApiService","getData","getDropdownData","getTipoDeFondos","then","response","option","data","tipofondos","text","valor","disabled","push","getMiInversion","$emit","window","location","href","GlobalConfig","PORTAL_BASE_URL","date","partitionedDateString","split","component","items","scopedSlots","_u","key","fn","proxy","slot","Number","totalAportes","toFixed","toLocaleString","undefined","minimumFractionDigits","totalRentabilidad","totalBalanceF","totalRendimiento","myStyles","dataCollection","dataCollectionLine","Lineoptions","dataCollectionDoughnut","updateUser","renderChart","chartData","responsive","maintainAspectRatio","mixins","reactiveProp","options","tooltips","enabled","callbacks","label","tooltipItem","dataset","datasets","datasetIndex","currentValue","index","displayChart","displayDoughnut","height","width","doughnutOptions","fillTable","getTotals","getBarChart","getLineChart","getAportes","labels","totalAmount","rentaAcumulada","saldototal","forEach","element","tipo","backgroundColor","plugins","tooltip","context","parsed","y","Intl","NumberFormat","currency","format","NaN","max","rentabilidad","length","anio","rendimiento","replace","includes","showLine","fill","borderColor","spanGaps","layout","padding","left","right","scales","yAxes","display","ticks","beginAtZero","balancefinal","tRendimiento","aportes","map","x","año","balance_inicial","balanceinicial","balance_final","formatRendimiento","result","rend","$router","components","BarChart","LineChart","DoughnutChart","umbracoBaseUrl","UMBRACO_BASE_URL","FinalDate","getMinMaxDate","getRentData","catch","ex","fire","icon","showConfirmButton","confirmButtonText","finally","getRentabilidadAcumulada","getRentabilidad","GetFechaVigencia","tipofondo","fecvigencia","iDate","getFormattedDate","GetRentabilidadAcumulada","codcuenta","GetRentabilidad","GetMinMaxValues","resp","maxfecha","year","getFullYear","month","getMonth","toString","day","getDate","MiInversionForm","MiInversionResult","apiUrl","UMBRACO_API_URL","controller","headers","get","API_URL","Option","emailusuario","emailservidor","codmoneda","codecelular","balancexmail","diabalancexmail","balancexcelular","celular","tipenvio"],"mappings":"oKAAqBA,E,4HCArB,W,oCCAA,W,2DCAA,W,2CCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,E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L,MAAW,KACX,KAAA4B,KAAe,GACf,KAAAE,UAAoB,I,oFCHPtB,EAArB,oCACQ,KAAA+J,UAAoB,GACpB,KAAA1I,MAAgB,GAChB,KAAAqI,UAAoB,GACpB,KAAA0B,aAAuB,GACvB,KAAAC,cAAwB,GACxB,KAAAC,UAAoB,GACpB,KAAAC,YAAsB,GACtB,KAAAC,aAAuB,GACvB,KAAAC,gBAA0B,GAC1B,KAAAC,gBAA0B,GAC1B,KAAAC,QAAkB,GAClB,KAAAC,SAAmB","file":"js/chunk-0b6da658.9d07d481.js","sourcesContent":["export default class MiInversionModel {\r\n image: string;\r\n title: string;\r\n}\r\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&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!./MiInversionForm.vue?vue&type=style&index=0&id=6cdc9954&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=f760a97c&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.miInversion)?_c('section',[_c('div',{staticClass:\"bannersecundario manos\",style:({ 'background-image': (\"url(\" + _vm.image + \")\") })}),_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()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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 \")])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"label\"},[_c('h4',[_vm._v(\"Tipo de Fondo:\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"label\"},[_c('h4',[_vm._v(\"Fecha Final:\")])])}]\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\r\nimport axios, { AxiosResponse } from \"axios\";\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport GlobalConfig from \"@/GlobalConfig\";\r\nimport WsdlService from \"@/services/WsdlService\";\r\nimport Option from \"@/models/SelectOption\";\r\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\r\nimport FundType from \"@/models/WsdlResponses/FundType\";\r\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\r\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\r\n@Component({})\r\nexport default class MiInversionForm extends Vue {\r\n\t@Prop() isProcessing: boolean;\r\n\t\r\n public tiposDeFondos: Array> = [];\r\n public tipoFondo: FundType = new FundType();\r\n\tpublic todaysDate: Date = new Date();\r\n public wsdlService: WsdlService = new WsdlService();\r\n\tpublic toDate: string = \"\";\r\n public userId: string = this.$store.state.user.cedula;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n public umbracoService = new UmbracoApiService();\r\n public miInversion = new MiInversionModel();\r\n\r\n async mounted() {\r\n await this.getData();\r\n await this.getDropdownData();\r\n }\r\n async getDropdownData() {\r\n this.wsdlService\r\n .getTipoDeFondos(this.userId, \"\")\r\n .then((response: AxiosResponse) => {\r\n let option = new Option();\r\n option.value = response.data.tipofondos;\r\n option.text = response.data.tipofondos.valor;\r\n option.disabled = false;\r\n this.tiposDeFondos.push(option);\r\n this.tipoFondo = option.value;\r\n });\r\n }\r\n async getData() {\r\n this.miInversion = await this.umbracoService.getMiInversion();\r\n }\r\n public process() {\r\n this.$emit(\"process\", this.tipoFondo, this.toDate);\r\n }\r\n\treturnHome() {\r\n window.location.href = GlobalConfig.PORTAL_BASE_URL\r\n }\r\n\tpublic setToDate(date: string) {\r\n\t\tlet partitionedDateString = date.split('-');\r\n this.toDate = `${partitionedDateString[2]}/${partitionedDateString[1]}/${partitionedDateString[0]}`;\r\n }\r\n}\r\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=6cdc9954&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=6cdc9954&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 \"6cdc9954\",\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',{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 \")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport Component, { mixins } from \"vue-class-component\";\r\nimport { Bar, mixins as chartMixins } from \"vue-chartjs\";\r\nimport { Prop } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n mixins: [chartMixins.reactiveProp],\r\n})\r\nexport default class BarChart extends mixins(Bar) {\r\n\t@Prop() chartData: any;\r\n mounted() {\r\n this.renderChart(\r\n this.chartData,\r\n { \r\n\t\t\t\tresponsive: true,\r\n\t\t\t\tmaintainAspectRatio: false,\r\n\t\t\t}\r\n );\r\n }\r\n}\r\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&\"","\r\nimport Component, { mixins } from \"vue-class-component\";\r\nimport { Line, mixins as chartMixins } from \"vue-chartjs\";\r\nimport { Prop } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n mixins: [chartMixins.reactiveProp],\r\n})\r\nexport default class LineChart extends mixins(Line) {\r\n\t@Prop() chartData: any;\r\n\t@Prop() options: any;\r\n mounted() {\r\n this.renderChart(\r\n this.chartData,\r\n this.options\r\n );\r\n }\r\n}\r\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&\"","\r\nimport Component, { mixins } from \"vue-class-component\";\r\nimport { Pie, mixins as chartMixins } from \"vue-chartjs\";\r\nimport { Prop } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n mixins: [chartMixins.reactiveProp],\r\n})\r\nexport default class DoughnutChart extends mixins(Pie) {\r\n\t@Prop() chartData: any;\r\n mounted() {\r\n this.renderChart(\r\n this.chartData,\r\n { \r\n\t\t\t\tresponsive: true,\r\n\t\t\t\tmaintainAspectRatio: false,\r\n\t\t\t\ttooltips: {\r\n\t\t\t\t\tenabled: true,\r\n\t\t\t\t\tcallbacks: {\r\n\t\t\t\t\t\tlabel:function (tooltipItem, data) {\r\n\t\t\t\t\t\t\tlet dataset = data.datasets[tooltipItem.datasetIndex]\r\n\t\t\t\t\t\t\tlet currentValue = `${dataset.label[tooltipItem.index]}: ${Number(dataset.data[tooltipItem.index]).toFixed(2)}%`\r\n\t\t\t\t\t\t\treturn currentValue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n );\r\n }\r\n}\r\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&\"","\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\n\n\n\n\n\n\n\n\n\n\r\nimport axios, { AxiosResponse } from \"axios\";\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport GlobalConfig from \"@/GlobalConfig\";\r\nimport WsdlService from \"@/services/WsdlService\";\r\nimport Option from \"@/models/SelectOption\";\r\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\r\nimport FundType from \"@/models/WsdlResponses/FundType\";\r\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\r\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\r\nimport BarChart from \"../Charts/BarChart.vue\";\r\nimport LineChart from \"../Charts/LineChart.vue\";\r\nimport DoughnutChart from \"../Charts/DoughnutChart.vue\";\r\n\r\n@Component({\r\n components: {\r\n BarChart,\r\n LineChart,\r\n DoughnutChart,\r\n },\r\n})\r\nexport default class MiInversionResult extends Vue {\r\n @Prop() rentaAcumulada: any;\r\n @Prop() rentabilidad: any;\r\n\r\n public tiposDeFondos: Array> = [];\r\n public tipoFondo: FundType = new FundType();\r\n public wsdlService: WsdlService = new WsdlService();\r\n public userId: string = this.$store.state.user.cedula;\r\n public isLoading: boolean = false;\r\n public displayChart: boolean = false;\r\n public displayDoughnut: boolean = false;\r\n public myStyles: any = {\r\n height: \"300px\",\r\n width: \"100%\",\r\n };\r\n public totalAportes: number = 0;\r\n public totalRentabilidad: number = 0;\r\n public totalBalanceF: number = 0;\r\n public totalRendimiento: number = 0;\r\n //table\r\n public items: any = [];\r\n //charts\r\n public dataCollection: any = {};\r\n public dataCollectionLine: any = {};\r\n public Lineoptions: any = {};\r\n public dataCollectionDoughnut: any = {};\r\n public doughnutOptions: any = {};\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n public umbracoService = new UmbracoApiService();\r\n public miInversion = new MiInversionModel();\r\n\r\n async mounted() {\r\n await this.getData();\r\n await this.getDropdownData();\r\n this.fillTable();\r\n this.getTotals();\r\n this.getBarChart();\r\n this.getLineChart();\r\n this.getAportes();\r\n }\r\n public getAportes() {\r\n let labels = [];\r\n let data = [];\r\n let totalAmount = Number(this.rentaAcumulada[0].saldototal);\r\n this.rentaAcumulada.forEach((element) => {\r\n labels.push(element.tipo);\r\n data.push((Number(element.valor) * 100) / totalAmount);\r\n });\r\n this.dataCollectionDoughnut = {\r\n labels: labels,\r\n datasets: [\r\n {\r\n title: \"Composición de Mi Inversión\",\r\n label: labels,\r\n data: data,\r\n backgroundColor: [\"#F4C059\", \"#F7A93C\", \"#28346D\", \"#265DB2\"],\r\n },\r\n ],\r\n };\r\n\r\n this.doughnutOptions = {\r\n plugins: {\r\n tooltip: {\r\n callbacks: {\r\n label: function(context) {\r\n let label = context.dataset.label || \"\";\r\n\r\n if (label) {\r\n label += \": \";\r\n }\r\n if (context.parsed.y !== null) {\r\n label += new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n }).format(context.parsed.y);\r\n }\r\n return label;\r\n },\r\n },\r\n },\r\n },\r\n };\r\n\r\n this.displayDoughnut = true;\r\n }\r\n public getLineChart() {\r\n let labels = [\"\"];\r\n let data = [NaN];\r\n let max = this.rentabilidad.length > 14 ? 14 : this.rentabilidad.length - 1;\r\n for (let index = 0; index < max; index++) {\r\n const element = this.rentabilidad[index];\r\n labels.push(element.anio);\r\n element.rendimiento.replace(\"%\", \"\");\r\n let rendimiento = 0;\r\n if (element.rendimiento.includes(\"-\")) {\r\n rendimiento = Number(element.rendimiento.replace(\"-\", \"0\")) * 100;\r\n } else {\r\n rendimiento = Number(\"0\" + element.rendimiento) * 100;\r\n }\r\n if (rendimiento < 1) rendimiento = NaN;\r\n data.push(Number(rendimiento.toFixed(2)));\r\n }\r\n data.push(NaN);\r\n labels.push(\"\");\r\n\r\n this.dataCollectionLine = {\r\n labels: labels,\r\n datasets: [\r\n {\r\n label: \"Rendimiento de Mi Inversión\",\r\n backgroundColor: \"#F7A93C\",\r\n data: data,\r\n showLine: true,\r\n fill: false,\r\n borderColor: \"#F7A93C\",\r\n spanGaps: true,\r\n },\r\n ],\r\n };\r\n\r\n this.Lineoptions = {\r\n responsive: true,\r\n maintainAspectRatio: false,\r\n layout: {\r\n padding: {\r\n left: 100,\r\n right: 100,\r\n },\r\n },\r\n scales: {\r\n yAxes: [\r\n {\r\n display: true,\r\n ticks: {\r\n beginAtZero: true,\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n }\r\n public getBarChart() {\r\n let labels = [];\r\n let data = [];\r\n this.rentabilidad.forEach((element) => {\r\n labels.push(element.anio);\r\n data.push(Number(Number(element.balancefinal).toFixed(2)));\r\n });\r\n this.dataCollection = {\r\n labels: labels,\r\n datasets: [\r\n {\r\n label: \"Crecimiento de Mi Inversión\",\r\n backgroundColor: \"#337ab7\",\r\n data: data,\r\n },\r\n ],\r\n };\r\n this.displayChart = true;\r\n }\r\n public getTotals() {\r\n let tRendimiento = 0;\r\n this.rentabilidad.forEach((element) => {\r\n if (element.aportes.includes(\",\")) {\r\n this.totalAportes += Number(element.aportes.replace(\",\", \"\"));\r\n } else {\r\n this.totalAportes += Number(element.aportes);\r\n }\r\n\r\n if (element.aportes.includes(\",\")) {\r\n this.totalRentabilidad += Number(element.rentabilidad.replace(\",\", \"\"));\r\n } else {\r\n this.totalRentabilidad += Number(element.rentabilidad);\r\n }\r\n\r\n element.rendimiento.replace(\"%\", \"\");\r\n let rendimiento = 0;\r\n if (element.rendimiento.includes(\"-\")) {\r\n rendimiento = Number(element.rendimiento.replace(\"-\", \"0\"));\r\n if (rendimiento > 0) tRendimiento++;\r\n this.totalRendimiento += rendimiento;\r\n } else {\r\n rendimiento = Number(\"0\" + element.rendimiento);\r\n if (rendimiento > 0) tRendimiento++;\r\n this.totalRendimiento += rendimiento;\r\n }\r\n });\r\n this.totalBalanceF = Number(\r\n this.rentabilidad[this.rentabilidad.length - 1].balancefinal.replace(\r\n \",\",\r\n \"\"\r\n )\r\n );\r\n this.totalRendimiento = (this.totalRendimiento * 100) / tRendimiento;\r\n }\r\n public fillTable() {\r\n this.items = this.rentabilidad.map((x: any) => ({\r\n año: x.anio,\r\n balance_inicial: Number(\r\n Number(x.balanceinicial).toFixed(2)\r\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\r\n aportes: Number(Number(x.aportes).toFixed(2)).toLocaleString(undefined, {\r\n minimumFractionDigits: 2,\r\n }),\r\n rentabilidad: Number(\r\n Number(x.rentabilidad).toFixed(2)\r\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\r\n balance_final: Number(\r\n Number(x.balancefinal).toFixed(2)\r\n ).toLocaleString(undefined, { minimumFractionDigits: 2 }),\r\n rendimiento: this.formatRendimiento(x.rendimiento),\r\n }));\r\n }\r\n public formatRendimiento(rendimiento: string): string {\r\n if (!rendimiento) return \"0%\";\r\n if (rendimiento.includes(\"-\")) {\r\n let result = (Number(rendimiento.replace(\"-\", \"0\")) * 100).toFixed(2);\r\n return (\r\n Number(result).toLocaleString(undefined, { minimumFractionDigits: 2 }) +\r\n \"%\"\r\n );\r\n } else {\r\n let rend = (Number(\"0\" + rendimiento) * 100).toFixed(2);\r\n return (\r\n Number(rend).toLocaleString(undefined, { minimumFractionDigits: 2 }) +\r\n \"%\"\r\n );\r\n }\r\n }\r\n async getDropdownData() {\r\n this.wsdlService\r\n .getTipoDeFondos(this.userId, \"\")\r\n .then((response: AxiosResponse) => {\r\n let option = new Option();\r\n option.value = response.data.tipofondos;\r\n option.text = response.data.tipofondos.valor;\r\n option.disabled = false;\r\n this.tiposDeFondos.push(option);\r\n this.tipoFondo = option.value;\r\n });\r\n }\r\n async getData() {\r\n this.miInversion = await this.umbracoService.getMiInversion();\r\n }\r\n public returnForm() {\r\n this.$emit(\"returnForm\");\r\n }\r\n public updateUser() {\r\n this.$router.push(\"actualizacion-de-datos\");\r\n }\r\n returnHome() {\r\n window.location.href = GlobalConfig.PORTAL_BASE_URL;\r\n }\r\n}\r\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&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","\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\r\nimport axios, { AxiosResponse } from \"axios\";\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport GlobalConfig from \"@/GlobalConfig\";\r\nimport WsdlService from \"@/services/WsdlService\";\r\nimport FundTypeObj from \"@/models/WsdlResponses/FundTypeObj\";\r\nimport UmbracoApiService from \"@/services/UmbracoApiService\";\r\nimport MiInversionModel from \"@/models/MiInversion/MiInversionModel\";\r\nimport MiInversionForm from \"@/components/Mi_Inversion/MiInversionForm.vue\";\r\nimport MiInversionResult from \"@/components/Mi_Inversion/MiInversionResult.vue\";\r\nimport Swal from \"sweetalert2\";\r\nimport FundType from \"@/models/WsdlResponses/FundType\";\r\n\r\n@Component({\r\n components: {\r\n MiInversionForm,\r\n MiInversionResult,\r\n },\r\n})\r\nexport default class MiInversion extends Vue {\r\n public tipoFondo: Array = [];\r\n public wsdlService: WsdlService = new WsdlService();\r\n public userId: string = this.$store.state.user.cedula;\r\n public showResult: boolean = false;\r\n public umbracoBaseUrl: string = GlobalConfig.UMBRACO_BASE_URL;\r\n public umbracoService = new UmbracoApiService();\r\n public isLoading: boolean = false;\r\n public miInversion = new MiInversionModel();\r\n public image: string = \"\";\r\n public FinalDate: string = \"\";\r\n public rentAcumulated: any = {};\r\n public rent: any = {};\r\n\r\n constructor() {\r\n super();\r\n }\r\n async mounted() {\r\n await this.getData();\r\n await this.getDropdownData();\r\n await this.getMinMaxDate();\r\n }\r\n\r\n public process(tipoFondo: FundType, toDate: string) {\r\n if (toDate) {\r\n this.isLoading = true;\r\n this.getRentData(tipoFondo, toDate)\r\n .then((response) => {\r\n this.showResult = true;\r\n })\r\n .catch((ex) => {\r\n Swal.fire({\r\n text: \"¡Lo sentimos! Ha ocurrido un error en la consulta\",\r\n icon: \"error\",\r\n showConfirmButton: true,\r\n confirmButtonText: \"Ok\",\r\n });\r\n })\r\n .finally(() => {\r\n this.isLoading = false;\r\n });\r\n } else {\r\n Swal.fire({\r\n text: \"Debe seleccionar una fecha final para consultar su inversión\",\r\n icon: \"error\",\r\n showConfirmButton: true,\r\n confirmButtonText: \"Ok\",\r\n });\r\n }\r\n }\r\n public async getRentData(tipoFondo: FundType, toDate: string) {\r\n // await this.getDatesVigencia(tipoFondo);\r\n await this.getRentabilidadAcumulada(tipoFondo, toDate);\r\n await this.getRentabilidad(tipoFondo, toDate);\r\n }\r\n public async getDatesVigencia(tipoFondo: FundType) {\r\n await this.wsdlService\r\n .GetFechaVigencia(tipoFondo.tipofondo, this.FinalDate)\r\n .then((response) => {\r\n if (!response.data[0].fecvigencia) return;\r\n let iDate = new Date(response.data[0].fecvigencia);\r\n this.FinalDate = this.getFormattedDate(iDate);\r\n });\r\n }\r\n public async getRentabilidadAcumulada(tipoFondo: FundType, toDate: string) {\r\n await this.wsdlService\r\n .GetRentabilidadAcumulada(\r\n this.userId,\r\n tipoFondo.codcuenta,\r\n this.FinalDate\r\n )\r\n .then((response: AxiosResponse) => {\r\n this.rentAcumulated = response.data;\r\n });\r\n }\r\n public async getRentabilidad(tipoFondo: FundType, toDate: string) {\r\n await this.wsdlService\r\n .GetRentabilidad(\r\n this.userId,\r\n tipoFondo.codcuenta,\r\n \"07/07/2003\",\r\n this.FinalDate\r\n )\r\n .then((response: AxiosResponse) => {\r\n this.rent = this.rent = response.data;\r\n });\r\n }\r\n public getMinMaxDate() {\r\n this.wsdlService.GetMinMaxValues(\"2\").then((resp) => {\r\n let iDate = new Date(resp.data[0].maxfecha);\r\n this.FinalDate = this.getFormattedDate(iDate);\r\n });\r\n }\r\n public returnForm() {\r\n this.showResult = false;\r\n }\r\n public async getDropdownData() {\r\n this.wsdlService\r\n .getTipoDeFondos(this.userId, \"\")\r\n .then((response: AxiosResponse) => {\r\n this.tipoFondo.push(response.data);\r\n });\r\n }\r\n public getFormattedDate(date: Date): string {\r\n let year = date.getFullYear();\r\n\r\n let month = (1 + date.getMonth()).toString();\r\n month = month.length > 1 ? month : \"0\" + month;\r\n\r\n let day = date.getDate().toString();\r\n day = day.length > 1 ? day : \"0\" + day;\r\n\r\n return day + \"/\" + month + \"/\" + year;\r\n }\r\n\r\n async getData() {\r\n await this.umbracoService.getMiInversion().then((resp) => {\r\n this.miInversion = resp;\r\n this.image = `${this.umbracoBaseUrl}${resp.image}`;\r\n });\r\n }\r\n}\r\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=f760a97c&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=f760a97c&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 \"f760a97c\",\n null\n \n)\n\nexport default component.exports","import Axios, { AxiosResponse } from 'axios';\r\nimport GlobalConfig from \"@/GlobalConfig\";\r\nimport ActualizacionDatosModel from '@/models/ActualizacionDatos/ActualizacionDatosModel';\r\nimport EstadoDeCuentaModelModel from '@/models/TuEstadoCuenta/TuEstadoCuentaModel';\r\nimport EstadoDeCuentaModel from '@/models/TuEstadoCuenta/TuEstadoCuentaModel';\r\nimport MiInversionModel from '@/models/MiInversion/MiInversionModel';\r\nimport TipoEnvioEstadoCuentaModel from '@/models/TipoEnvioEstadoCuenta/TipoEnvioEstadoCuentaModel';\r\nimport ServicioNotificacionBalanceModel, { UserBalanceModel } from '@/models/ServicioNotificacionBalance/ServicioNotificacionBalanceModel';\r\nimport ConsultaReclamacionesModel from '@/models/ConsultaReclamaciones/ConsultaReclamacionesModel';\r\nimport SolicitudReclamacionesModel from '@/models/SolicitudReclamaciones/SolicitudReclamacionesModel';\r\nimport SolicitudNotificacionBalanceModel from '@/models/SolicitudNotificacionBalance/SolicitudNotificacionBalanceModel';\r\nimport CertificadoBeneficiosModel from '@/models/CertificadoBeneficios/CertificadoBeneficiosModel';\r\nimport TourVirtualUmbracoResponse from '@/models/TourVirtual/TourVirtualUmbracoResponse';\r\n \r\n\r\nexport default class UmbracoApiService {\r\n\r\n\tpublic apiUrl: string;\r\n\r\n\tpublic constructor() {\r\n\t\tthis.apiUrl = GlobalConfig.UMBRACO_API_URL;\r\n\t}\r\n\tpublic async get(controller: string): Promise> {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\t\treturn Axios.get(this.apiUrl + controller, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t}\r\n\r\n\tpublic async getSolicitud(): Promise {\r\n\t\tlet controller = \"Afiliado/SolvexSolicitud\"\r\n\r\n\t\tlet result = await Axios.get(`${GlobalConfig.API_URL}${controller}`)\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\r\n\r\n\tpublic async getActualizacionDatos(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoPersonalDataUpdate/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getEstadoDeCuenta(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoAccountStatus/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getMiInversion(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoMyInverstement/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getTipoEnvioEstadoCuenta(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoShippingType/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getServicioNotificacionAportes(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoRequestForNotificationOfContributions/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getConsultaReclamaciones(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoClaimsConsultation/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getSolicitudReclamaciones(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoClaims/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getSolicitudNotificacionBalance(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoBalanceNotificationRequest/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getCertificadoBeneficios(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoCertification/0\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\r\n\tpublic async getTourVirtualUrl(): Promise {\r\n\t\tlet headers = {\r\n\t\t\t'Content-Type': 'application/json'\r\n\t\t};\r\n\r\n\t\tlet controller = \"Benefit/_umbracoVirtualTour\"\r\n\r\n\t\tlet result = await Axios.get(`${this.apiUrl}${controller}`, {\r\n\t\t\theaders: headers\r\n\t\t})\r\n\t\treturn result.data;\r\n\t}\r\n\t\r\n\r\n}","export default class Option{\r\n\tpublic value: T = null;\r\n\tpublic text: string = \"\";\r\n\tpublic disabled: boolean = false;\r\n}","export default class FundType {\r\n\tpublic codcuenta: string = \"\";\r\n\tpublic valor: string = \"\";\r\n\tpublic tipofondo: string = \"\";\r\n\tpublic emailusuario: string = \"\";\r\n\tpublic emailservidor: string = \"\";\r\n\tpublic codmoneda: string = \"\";\r\n\tpublic codecelular: string = \"\";\r\n\tpublic balancexmail: string = \"\";\r\n\tpublic diabalancexmail: string = \"\";\r\n\tpublic balancexcelular: string = \"\";\r\n\tpublic celular: string = \"\";\r\n\tpublic tipenvio: string = \"\";\r\n}\r\n"],"sourceRoot":""}