{"version":3,"sources":["webpack:///./src/views/programs/kof/components/analytics/CollectionsDashboard.vue?14ed","webpack:///./src/modules/enums/CreditStatusEnum.js","webpack:///./src/components/mixins/formatHelper.js","webpack:///./src/views/programs/kof/components/analytics/CollectionsDashboard.vue","webpack:///src/views/programs/kof/components/analytics/CollectionsDashboard.vue","webpack:///./src/views/programs/kof/components/analytics/CollectionsDashboard.vue?93aa","webpack:///./src/views/programs/kof/components/analytics/CollectionsDashboard.vue?694e"],"names":["CreditStatusEnum","Object","freeze","DEFAULT_VALUE","AL_CORRIENTE","EN_PERIODO_GRACIA","RETRASADO_11_30","RETRASADO_31_60","RETRASADO_61_90","VENCIDO","methods","format_price","value","decimales","val","toFixed","replace","toString","costFormat","this","costFormatNoCents","prcgFormat","decimalsFormat","explicitMoneyFormat","mxnFormat","parseInt","moneyFormat","decimalPercentFormat","roundedFormat","c","cd","Math","round","phoneFormat","substr","phoneFormatV2","visibleLastNChars","chars","valueString","length","phoneLength","firstChars","repeat","last4Digits","slice","visibleOnlyLastNChars","capitalizeFirstLetter","arr","split","i","charAt","toUpperCase","join","isValidRfcFormat","rfc","patternPM","patternPF","match","isValidRfcFormatByPersonType","isMoral","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","isValid","diccionario","lngSuma","lngDigito","indexOf","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","id","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision","render","_vm","_c","_self","attrs","staticClass","_v","programIdSelected","on","$event","addFilter","model","zoneIdSelected","callback","$$v","expression","_l","programSelected","zones","zone","key","name","_e","zoneSelected","regions","regionIdSelected","region","stopPropagation","getGlobalPortfolio","ref","data","showProjects","scopedSlots","_u","fn","tr","indextr","_s","nombre","cantidad","monto","insoluto","cartera","carteraAsc","creditStatus","vencido","staticStyle","carteraDesc","total","statusSelected","slot","columns","col","idx","sortable","title","staticRenderFns","props","mixins","saldo","porVencer","amortizaciones","intereses","recargos","iva","filters","programs","catch","error","console","computed","watch","component"],"mappings":"kHAAA,W,6DCAA,MAAMA,EAAmBC,OAAOC,OAAO,CACnCC,cAAe,KACfC,aAAc,eACdC,kBAAmB,oBACnBC,gBAAiB,gBACjBC,gBAAiB,gBACjBC,gBAAiB,gBACjBC,QAAS,eAEET,U,kCCTA,QACbU,QAAS,CACPC,aAAaC,EAAOC,EAAY,GAC9B,IAAIC,GAAOF,EAAQ,GAAGG,QAAQF,GAAWG,QAAQ,IAAK,KACtD,OAAOF,EAAIG,WAAWD,QAAQ,wBAAyB,MAEzDE,WAAWN,GACT,OAAKA,EACQ,aAATA,EAA+BA,EAE1B,IAAMO,KAAKR,aAAaC,EAAO,GAHnB,MAMvBQ,kBAAkBR,GAChB,OAAKA,EACS,cAAVA,EAAgCA,EACxB,IAAMO,KAAKR,aAAaC,GAFf,MAIvBS,WAAWT,EAAOC,EAAY,GAC5B,OAAKD,EACQ,aAATA,EAA+BA,EACrBA,EAAMG,QAAQF,GAAa,IAFpB,MAIvBS,eAAeV,EAAOC,EAAY,GAChC,OAAKD,EACQ,aAATA,EAA+B,EACrBA,EAAMG,QAAQF,GAFP,GAIvBU,oBAAoBX,EAAOC,EAAY,GACrC,OAAa,MAATD,EAAsB,GAEjB,IAAMO,KAAKR,aAAaC,EAAOC,IAG1CW,UAAUZ,EAAOC,EAAY,GAC3B,OAAKD,EAEI,IAAMO,KAAKR,aAAac,SAASb,GAAQC,GAAa,OAF1C,SAKvBa,YAAYd,GACV,OAAKA,EAEI,IAAMO,KAAKR,aAAac,SAASb,GAAQ,GAF7B,MAKvBe,qBAAqBf,EAAOC,EAAY,GACtC,OAAKD,GAEa,IAARA,GAAaG,QAAQF,GAAa,IAFzB,MAKrBe,cAAchB,EAAOC,EAAY,GAC/B,GAAKD,EACA,CACH,IAAIiB,EAAIjB,EAAMG,QAAQF,GAClBiB,EAAKC,KAAKC,MAAMH,GACpB,OA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If,EAAIkD,SAAS,SAASC,EAAIC,GAAK,OAAOnD,EAAG,QAAQ,CAACkB,IAAIiC,EAAIhD,YAAY,OAAOD,MAAM,CAAC,WAAWgD,EAAIE,SAAWF,EAAIhC,IAAM,OAAO,CAACnB,EAAIK,GAAGL,EAAIoC,GAAGe,EAAIG,aAAY,IAAI,IAAI,IAAI,YAEviHC,EAAkB,G,wBC4FtB,MAAML,EAAU,CAChB,CAAAI,SAAAnC,YAAAkC,aACA,CAAAC,kBAAAnC,eAAAkC,aACA,CAAAC,2BAAAnC,sBAAAkC,aACA,CAAAC,uBAAAnC,0BAAAkC,aACA,CAAAC,gBAAAnC,aAAAkC,aACA,CAAAC,4BAAAnC,kBAAAkC,aACA,CAAAC,2BAAAnC,iBAAAkC,cAGe,OACfjC,uBACAoC,SACAC,uBACA,sBACA,2BACA,WAAA5B,SAAA,kCACA,iBAEAA,OACA,OACAe,uBACAM,UACArB,QACAkB,OACAT,WACAC,QACAmB,QACAC,YACAf,UACAJ,WACAoB,iBACAC,YACAC,WACAC,MACAtB,WAEAuB,WACAC,YACAtD,iBACAa,qBAGAxG,SACA,2BACA,aACA,2BACA,4IACA,iBACA,uBACAkJ,MAAAC,IACAC,eACA,wBAIA,qBACA,0BACA,gBAEA,6BAGA,mCACA,sBACA,2BAIAC,UACArD,kBAAA,MACA,6DACA,2CAEAM,eAAA,MACA,uEACA,sCAAAC,aAEAjB,oBACA,oCAGAgE,OACAzC,gBACA,mBACAkB,aACAA,UACAA,UACAA,cACAA,YACAA,aACAA,mBACAA,cACAA,aACAA,QACAA,YACA,+BACAA,uBACAA,iBACAA,iBACAA,yBACAA,qBACAA,uBACAA,mCACAA,yBACAA,uBACAA,aACAA,2BCzM0Z,I,wBCQtZwB,EAAY,eACd,EACAxE,EACAwD,GACA,EACA,KACA,WACA,MAIa,aAAAgB,E","file":"js/chunk-31353b0f.286046e6.js","sourcesContent":["export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollectionsDashboard.vue?vue&type=style&index=0&id=5ae90d42&prod&scoped=true&lang=css&\"","const CreditStatusEnum = Object.freeze({\n DEFAULT_VALUE: null,\n AL_CORRIENTE: '0_up_to_date',\n EN_PERIODO_GRACIA: '1_10_grace_period',\n RETRASADO_11_30: '11_30_delayed',\n RETRASADO_31_60: '31_60_delayed',\n RETRASADO_61_90: '61_90_delayed',\n VENCIDO: '91_or_more'\n});\nexport default CreditStatusEnum;","export default {\n methods: {\n format_price(value, decimales = 0) {\n let val = (value / 1).toFixed(decimales).replace(\",\", \".\");\n return val.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n },\n costFormat(value) {\n if (!value) { return \"$0\"; }\n if (value == \"Pendiente\") { return value; }\n else {\n return \"$\" + this.format_price(value, 2);\n }\n },\n costFormatNoCents(value) {\n if (!value) { return \"$0\"; }\n if (value === \"Pendiente\") { return value; }\n else return \"$\" + this.format_price(value);\n },\n prcgFormat(value, decimales = 0) {\n if (!value) { return \"0%\"; }\n if (value == \"Pendiente\") { return value; }\n else { return value.toFixed(decimales) + \"%\"; }\n },\n decimalsFormat(value, decimales = 0) {\n if (!value) { return 0; }\n if (value == \"Pendiente\") { return 0; }\n else { return value.toFixed(decimales); }\n },\n explicitMoneyFormat(value, decimales = 2) {\n if (value == null) return \"\";\n else {\n return \"$\" + this.format_price(value, decimales);\n }\n },\n mxnFormat(value, decimales = 0) {\n if (!value) { return \"$0MXN\"; }\n else {\n return \"$\" + this.format_price(parseInt(value), decimales) + \" MXN\";\n }\n },\n moneyFormat(value) {\n if (!value) { return \"$0\"; }\n else {\n return \"$\" + this.format_price(parseInt(value), 0);\n }\n },\n decimalPercentFormat(value, decimales = 2) {\n if (!value) return \"0%\";\n else {\n return (value * 100).toFixed(decimales) + \"%\";\n }\n },\n roundedFormat(value, decimales = 2) {\n if (!value) { return 0; }\n else {\n let c = value.toFixed(decimales);\n let cd = Math.round(c);\n return cd.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n }\n },\n phoneFormat(value) {\n if (!value) return value\n else {\n return '(' + value.substr(0, 2) + ') ' + value.substr(2, 4) + '-' + value.substr(6, 4)\n }\n },\n phoneFormatV2(value) {\n if (!value) return value\n else {\n return '(' + value.substr(0, 3) + ') ' + value.substr(2, 3) + ' ' + value.substr(6, 4)\n }\n },\n visibleLastNChars(value, chars = 4) {\n if (!value) return value\n else {\n let valueString = value.toString();\n if (chars > valueString.length || chars < 0) return value\n else {\n let phoneLength = valueString.length;\n const firstChars = \"*\".repeat(phoneLength - chars);\n const last4Digits = valueString.slice(firstChars.length);\n return firstChars + last4Digits;\n }\n }\n },\n visibleOnlyLastNChars(value, chars = 4) {\n if (!value) return value\n else {\n let valueString = value.toString();\n if (chars > valueString.length || chars < 0) return value\n else {\n return valueString.slice(-4);\n }\n }\n },\n capitalizeFirstLetter(value) {\n if (!value) return value\n else {\n const arr = value.split(\" \");\n for (let i = 0; i < arr.length; i++) {\n arr[i] = arr[i].charAt(0).toUpperCase() + arr[i].slice(1);\n\n }\n\n return arr.join(\" \");\n }\n },\n //Función para validar un RFC\n isValidRfcFormat(rfc) {\n if(rfc) {\n const patternPM = \"^(([A-ZÑ&]{3})([0-9]{2})([0][13578]|[1][02])(([0][1-9]|[12][\\\\d])|[3][01])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([0-9]{2})([0][13456789]|[1][012])(([0][1-9]|[12][\\\\d])|[3][0])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([02468][048]|[13579][26])[0][2]([0][1-9]|[12][\\\\d])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([0-9]{2})[0][2]([0][1-9]|[1][0-9]|[2][0-8])([A-Z0-9]{3}))$\";\n const patternPF = \"^(([A-ZÑ&]{4})([0-9]{2})([0][13578]|[1][02])(([0][1-9]|[12][\\\\d])|[3][01])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([0-9]{2})([0][13456789]|[1][012])(([0][1-9]|[12][\\\\d])|[3][0])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([02468][048]|[13579][26])[0][2]([0][1-9]|[12][\\\\d])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([0-9]{2})[0][2]([0][1-9]|[1][0-9]|[2][0-8])([A-Z0-9]{3}))$\";\n return rfc.match(patternPM) || rfc.match(patternPF);\n } else {\n return false;\n }\n },\n //Función para validar un RFC por tipo de persona\n isValidRfcFormatByPersonType(rfc, isMoral) {\n if(rfc) {\n // Formato para PF\n let pattern = /^[A-Z]{4}(\\d{2})((0[13578]|1[02])([0-2]\\d|3[01])|(0[469]|11)([0-2]\\d|30)|(02)([0-2]\\d))([A-Z0-9]{3})$/;\n let genericRFC1 = \"XAXX010101000\";\n let genericRFC2 = \"XEXX010101000\";\n if(isMoral) {\n // Formato para PM\n pattern = /^[A-Z]{3}(\\d{2})((0[13578]|1[02])([0-2]\\d|3[01])|(0[469]|11)([0-2]\\d|30)|(02)([0-2]\\d))([A-Z0-9]{3})$/;\n }\n\n return rfc.match(pattern) && rfc != genericRFC1 && rfc != genericRFC2;\n } else {\n return false;\n }\n },\n //Función para validar una CURP\n isValidCurpFormat(curp) {\n if(curp) {\n const pattern = /^([A-Z][AEIOUX][A-Z]{2}\\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\\d])(\\d)$/;\n let isValid = curp.match(pattern);\n if (!isValid) //Coincide con el formato general?\n return false;\n //Fuente https://consultas.curp.gob.mx/CurpSP/\n let diccionario = \"0123456789ABCDEFGHIJKLMNÑOPQRSTUVWXYZ\";\n let lngSuma = 0.0;\n let lngDigito = 0.0;\n for (let i = 0; i < 17; i++) {\n lngSuma = lngSuma + diccionario.indexOf(isValid[1].charAt(i)) * (18 - i);\n }\n lngDigito = 10 - lngSuma % 10;\n let verifierDigit = (lngDigito != 10) ? lngDigito : 0;\n return isValid[2] == verifierDigit;\n } else {\n return false;\n }\n },\n anonymousFormatPhone(value){\n if (value === \"\") return value\n else {\n return value.replace(/^(?:\\D*\\d){8}/g, \"********\");\n }\n },\n genderTranslate(value) {\n return value == 1 ? \"Hombre\" : \"Mujer\";\n },\n //Función para obtener el icono del tipo de proyecto o todos con el param 'all'\n getLoanTypeIcon(loanType) {\n const loanTypeIcons = [\n {\n id: 1,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-solar.png\",\n filename: \"Crédito Solar\"\n },\n {\n id: 4,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-pyme.png\",\n filename: \"Crédito PyME\"\n },\n {\n id: 5,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-pers.png\",\n filename: \"Crédito Personal\"\n },\n {\n id: 6,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-auto.png\",\n filename: \"Crédito Automotriz\"\n }\n ];\n\n if (loanType == \"all\") {\n return loanTypeIcons;\n } else {\n let icon = loanTypeIcons.find(lt => lt.id === loanType);\n let url = \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-solar.png\";\n if (icon) {\n url = icon.url;\n }\n return url;\n }\n },\n getAmountWithNoCommissionTax(amount){\n if (amount <= 0) {\n return 0;\n }\n const processingAdministrationCommission = .02;\n const mexicoTaxIva = .16;\n let commissionWithTaxPercentage = processingAdministrationCommission*mexicoTaxIva;\n let percentage = (1+processingAdministrationCommission+commissionWithTaxPercentage);\n let amountNoCommision = amount/percentage;\n return amountNoCommision;\n }\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"collections-dashboard\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full mb-6\"},[_c('vx-card',{staticClass:\"big-title-card-bg-black h-auto\"},[_c('h1',{staticClass:\"rg-big-title extrabold rg-title\"},[_vm._v(\" Desempeño de la \"),_c('span',[_vm._v(\"cobranza\")]),_vm._v(\". \")])])],1),_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vx-card',{attrs:{\"title\":\"Filtros.\"}},[_c('div',{staticClass:\"flex pl-2 mb-4\"},[(_vm.programIdSelected !== null)?_c('vs-select',{staticClass:\"mr-2\",attrs:{\"label\":\"Zonas\"},on:{\"change\":function($event){return _vm.addFilter('zone_id', $event)}},model:{value:(_vm.zoneIdSelected),callback:function ($$v) {_vm.zoneIdSelected=$$v},expression:\"zoneIdSelected\"}},[_c('vs-select-item',{attrs:{\"text\":\"Todas\",\"value\":\"0\"}}),_vm._l((_vm.programSelected.zones),function(zone){return _c('vs-select-item',{key:zone.id,attrs:{\"text\":zone.name,\"value\":zone.id}})})],2):_vm._e(),_c('vs-select',{attrs:{\"disabled\":_vm.zoneIdSelected === 0 && _vm.zoneSelected.regions.length < 0,\"label\":\"Regiones\"},on:{\"change\":function($event){return _vm.addFilter('region_id', $event)}},model:{value:(_vm.regionIdSelected),callback:function ($$v) {_vm.regionIdSelected=$$v},expression:\"regionIdSelected\"}},[_c('vs-select-item',{attrs:{\"text\":\"Todas\",\"value\":\"0\"}}),_vm._l((_vm.zoneSelected.regions),function(region){return _c('vs-select-item',{key:region.id,attrs:{\"text\":region.name,\"value\":region.id}})})],2),_c('vs-button',{staticClass:\"mt-6 ml-4\",attrs:{\"type\":\"filled\",\"icon\":\"search\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.getGlobalPortfolio(0)}}})],1),_c('vs-table',{ref:\"statusTable\",staticClass:\"text-right\",attrs:{\"data\":_vm.data,\"noDataText\":\"No hay datos disponibles\"},on:{\"selected\":_vm.showProjects},scopedSlots:_vm._u([{key:\"default\",fn:function({ data }){return [_vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{staticClass:\"small bold\"},[_vm._v(_vm._s(tr.nombre))]),_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(tr.cantidad))]),_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.costFormatNoCents(tr.monto)))]),_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.costFormatNoCents(tr.insoluto)))]),_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.prcgFormat(tr.cartera * 100, 2)))]),_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.prcgFormat(tr.carteraAsc * 100, 2)))]),(tr.creditStatus == _vm.vencido)?_c('vs-td',{staticClass:\"small bold\",staticStyle:{\"color\":\"red\"}},[_vm._v(_vm._s(_vm.prcgFormat(tr.carteraDesc * 100, 2)))]):_c('vs-td',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.prcgFormat(tr.carteraDesc * 100, 2)))])],1)}),_c('vs-tr',{attrs:{\"state\":\"dark\"}},[_c('vs-td',{staticClass:\"small bold\"},[_vm._v(\"Total\")]),_c('vs-td',{staticClass:\"small bold\"},[_vm._v(_vm._s(_vm.total.cantidad))]),_c('vs-td',{staticClass:\"small bold\"},[_vm._v(_vm._s(_vm.costFormatNoCents(_vm.total.monto)))]),_c('vs-td',{staticClass:\"small bold\"},[_vm._v(_vm._s(_vm.costFormatNoCents(_vm.total.insoluto)))]),_c('vs-td',{staticClass:\"small bold\"},[_vm._v(_vm._s(_vm.prcgFormat(_vm.total.cartera * 100, 2)))]),_c('vs-td'),_c('vs-td')],1)]}}]),model:{value:(_vm.statusSelected),callback:function ($$v) {_vm.statusSelected=$$v},expression:\"statusSelected\"}},[_c('template',{slot:\"thead\"},_vm._l((_vm.columns),function(col,idx){return _c('vs-th',{key:idx,staticClass:\"bold\",attrs:{\"sort-key\":col.sortable ? col.key : null}},[_vm._v(_vm._s(col.title))])}),1)],2)],1)],1)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollectionsDashboard.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollectionsDashboard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CollectionsDashboard.vue?vue&type=template&id=5ae90d42&scoped=true&\"\nimport script from \"./CollectionsDashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./CollectionsDashboard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CollectionsDashboard.vue?vue&type=style&index=0&id=5ae90d42&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 \"5ae90d42\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}