{"version":3,"sources":["webpack:///./src/views/applicant/StatementsPage.vue","webpack:///src/views/applicant/StatementsPage.vue","webpack:///./src/views/applicant/StatementsPage.vue?33de","webpack:///./src/views/applicant/StatementsPage.vue?4fef","webpack:///./src/components/mixins/dateHelper.js","webpack:///./src/components/mixins/auth2faHelper.js","webpack:///./src/components/2fa/TwoFactorAuth.vue","webpack:///src/components/2fa/TwoFactorAuth.vue","webpack:///./src/components/2fa/TwoFactorAuth.vue?53a0","webpack:///./src/components/2fa/TwoFactorAuth.vue?50fe","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","attrs","scopedSlots","_u","key","fn","_v","proxy","staticClass","model","value","statementsYearSelected","callback","$$v","expression","_l","years","item","index","on","$event","getStatementsAvailable","ref","statements","itemsPerPage","data","tr","indextr","_s","project_id","month","year","start_period","end_period","stopPropagation","downloadPdf","slot","UserId","onAuth","onAuthFailed","staticRenderFns","selected","allStatements","monthNames","isMounted","currentStatement","authAction","factorEnabled","length","components","TwoFactorAuth","mixins","mounted","computed","currentPage","methods","request2faCode","id","has_xml","monthName","color","type","title","text","acceptText","cancelText","accept","downloadXml","window","name","showError","err","component","constitutionDateFormat","moment","String","locale","format","constitutionPaymentDateFormat","explicitDateFormat","sessionFormat","regularDateFormat","yearDateFormat","midDateFormat","humanDateFormat","dateTimeFormat","dateTime12Format","compactDateFormat","logDateFormat","timeAgoFormat","fromNow","calculateAgeFromDate","diff","minDateForValidAge","subtract","calculateDaysDiff","m","n","validatedDate","isValid","getDateFromInputs","yy","mm","dd","yint","parseInt","mint","day","nextAccreditationDate","add","setDateToEndOfDay","d","endOf","end","setDateToStartOfDay","startOf","start","signatureFormatDate","signatureValidityDate","incomeSpecial","toUpperCase","timeStampFormat","formatDatepicker","isAfter","date","maxDate","limit","getPreviousMonth","step","getDay","user_id","res","axios","get","error","is2FaPopupActive","validating","customIndicationMessage","_e","errorMssg","staticStyle","showInstructions","$sanitizeUrl","twoFactorCodeUrl","showExtraOptions","user","phone","visibleLastNChars","phone_country_calling_code","sendAlternativeCode","alternativeCodeSent","methodCodeSent","resendEnabled","whatsappSent","resendTimer","directives","rawName","indexOf","_k","keyCode","sendCode","apply","arguments","code","buttonId","currentProjectId","props","userId","required","default","customErrorMessage","timer","watch","set","setUpTimerConfig","initNipCounter","clearInterval","format_price","decimales","val","toFixed","replace","toString","costFormat","costFormatNoCents","prcgFormat","decimalsFormat","explicitMoneyFormat","mxnFormat","moneyFormat","decimalPercentFormat","roundedFormat","c","cd","Math","round","phoneFormat","substr","phoneFormatV2","chars","valueString","phoneLength","firstChars","repeat","last4Digits","slice","visibleOnlyLastNChars","capitalizeFirstLetter","arr","split","i","charAt","join","isValidRfcFormat","rfc","patternPM","patternPF","match","isValidRfcFormatByPersonType","isMoral","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","diccionario","lngSuma","lngDigito","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"0IAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,kBAAkB,CAACE,MAAM,CAAC,gBAAgB,QAAQC,YAAYL,EAAIM,GAAG,CAAC,CAACC,IAAI,OAAOC,GAAG,WAAW,MAAO,CAACR,EAAIS,GAAG,eAAeP,EAAG,OAAO,CAACF,EAAIS,GAAG,YAAYT,EAAIS,GAAG,OAAOC,OAAM,MAAS,CAACV,EAAIS,GAAG,QAAQP,EAAG,UAAU,CAACS,YAAY,WAAW,CAACT,EAAG,MAAM,CAACS,YAAY,eAAe,CAACT,EAAG,MAAM,CAACS,YAAY,2BAA2B,CAACT,EAAG,IAAI,CAACF,EAAIS,GAAG,wQAAwQP,EAAG,IAAI,CAACS,YAAY,uBAAuB,CAACX,EAAI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FF,EAAME,EAAKF,KAENA,IAGXK,6BAA6BC,GAC3B,GAAIA,GAAU,EACZ,OAAO,EAET,MAAMC,EAAqC,IACrCC,EAAe,IACrB,IAAIC,EAA8BF,EAAmCC,EACjEE,EAAc,EAAEH,EAAmCE,EACnDE,EAAoBL,EAAOI,EAC/B,OAAOC","file":"js/chunk-dfc619a4.a046f164.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('big-title-color',{attrs:{\"variant-class\":\"dark\"},scopedSlots:_vm._u([{key:\"text\",fn:function(){return [_vm._v(\"Estados de \"),_c('span',[_vm._v(\"cuenta\")]),_vm._v(\".\")]},proxy:true}])},[_vm._v(\". \")]),_c('vx-card',{staticClass:\"mt-base\"},[_c('div',{staticClass:\"vx-row mb-6\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('p',[_vm._v(\"Consulta y descarga los últimos estados de cuenta de RedGirasol en los que encontrarás tus movimientos, y más información relevante sobre tu participación en la Red. Ante cualquier duda o comentario estaremos para apoyarte a través del chat de la plataforma.\")]),_c('p',{staticClass:\"mt-4 bold underline\"},[_vm._v(\" Entre los días 6 y 7 de cada mes aparecerá disponible tu estado de cuenta. \")])])]),_c('vs-row',[_c('vs-col',{attrs:{\"vs-lg\":\"2\",\"vs-sm\":\"6\",\"vs-xs\":\"12\"}},[_c('vs-select',{staticClass:\"w-full mb-4\",attrs:{\"label\":\"Año\",\"name\":\"statementsYearSelected\",\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.statementsYearSelected),callback:function ($$v) {_vm.statementsYearSelected=$$v},expression:\"statementsYearSelected\"}},_vm._l((_vm.years),function(item,index){return _c('vs-select-item',{key:index,staticClass:\"w-full\",attrs:{\"value\":index,\"text\":item}})}),1)],1),_c('vs-col',{staticClass:\"ml-4\",attrs:{\"vs-lg\":\"7\",\"vs-sm\":\"12\",\"vs-xs\":\"12\"}},[_c('div',{staticClass:\"flex flex-wrap mt-6\"},[_c('vs-button',{staticClass:\"mr-5\",attrs:{\"color\":\"success\"},on:{\"click\":function($event){return _vm.getStatementsAvailable()}}},[_vm._v(\"Consultar\")])],1)])],1),_c('vs-table',{ref:\"table\",attrs:{\"data\":_vm.statements,\"pagination\":\"\",\"stripe\":\"\",\"max-items\":_vm.itemsPerPage,\"noDataText\":\"No hay datos disponibles\"},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return [_c('tbody',_vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',[_c('p',{staticClass:\"pl-3 bold\"},[_vm._v(_vm._s(tr.project_id))])]),_c('vs-td',[_c('p',{staticClass:\"pl-3 bold\"},[_vm._v(_vm._s(tr.month)+\" \"+_vm._s(tr.year))])]),_c('vs-td',[_c('p',{staticClass:\"font-medium truncate\"},[_vm._v(_vm._s(tr.start_period)+\" al \"+_vm._s(tr.end_period))])]),_c('vs-td',{staticClass:\"whitespace-no-wrap\"},[_c('vs-button',{staticClass:\"px-2 py-1\",attrs:{\"type\":\"line\",\"color\":\"dark\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.downloadPdf(tr)}}},[_vm._v(\"Descargar\")])],1)],1)}),1)]}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"month\"}},[_vm._v(\"PID\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"month\"}},[_vm._v(\"MES\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"PERIODO\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"PDF\")])],1)],2)],1),_c('two-factor-auth',{attrs:{\"user-id\":_vm.UserId,\"custom-indication-message\":\"Por favor ingresa los 6 dígitos de tu Segundo Factor de Autenticación para realizar la descarga del archivo.\"},on:{\"on-code-validated\":_vm.onAuth,\"on-code-invalid\":_vm.onAuthFailed}})],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!./StatementsPage.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!./StatementsPage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StatementsPage.vue?vue&type=template&id=4529af1c&\"\nimport script from \"./StatementsPage.vue?vue&type=script&lang=js&\"\nexport * from \"./StatementsPage.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import moment from 'moment'\nexport default {\n methods: {\n constitutionDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('LL');\n }\n },\n constitutionPaymentDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM');\n }\n },\n explicitDateFormat(value) {\n if(value){\n return moment(String(value)).format('DD/MM/YYYY [a las] hh:mm a')\n }\n },\n sessionFormat(value) {\n if(value){\n return moment(String(value)).format('DD/MM/YYYY h:mm a')\n }\n },\n regularDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY')\n }\n },\n yearDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('YYYY/MM/DD')\n }\n },\n midDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM [de] YYYY')\n }\n },\n humanDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('D MMM YYYY')\n }\n },\n dateTimeFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY HH:mm')\n }\n },\n dateTime12Format(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY h:mm a')\n }\n },\n compactDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMM [´]YY')\n }\n },\n logDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM [de] YYYY HH:mm')\n }\n },\n timeAgoFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").fromNow();\n }\n },\n calculateAgeFromDate(value){\n if(value){\n return moment().diff(value, 'years');\n }\n },\n minDateForValidAge(years){\n return moment().subtract(years, 'years').format();\n },\n calculateDaysDiff(value){\n if(value){\n let m = moment(String(value));\n let n = moment();\n return n.diff(m, 'days');\n }\n },\n validatedDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n else {\n return \"--\";\n }\n }\n },\n getDateFromInputs(yy,mm,dd){\n let yint = parseInt(yy);\n let mint = parseInt(mm);\n mint -= 1;\n if(yint <= 20){\n // suponer que el año es entre 2000 y 2010\n yint += 2000;\n }\n else {\n // suponer que el año es menor a 2000\n yint += 1900;\n }\n\n let m = moment({ year: yint, month: mint, day: dd});\n if(m.isValid()){\n return m.format('YYYY-MM-DD');\n }\n else {\n return false;\n }\n },\n nextAccreditationDate(value){\n if(value){\n let m = moment(String(value)).add(180, 'days');\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n else {\n return \"--\"\n }\n },\n setDateToEndOfDay(value){\n let m = moment(String(value)).add(1, 'days');\n let d = m.endOf('day')\n let end = d.locale(\"es\").format('YYYY-MM-DD HH:mm:ss');\n return end;\n },\n setDateToStartOfDay(value){\n let m = moment(String(value)).add(1, 'days');\n let d = m.startOf('day');\n let start = d.locale(\"es\").format('YYYY-MM-DD HH:mm:ss');\n return start;\n },\n signatureFormatDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY HH:mm:ss');\n }\n }\n return \"No establecido\";\n },\n signatureValidityDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n }\n return \"No establecido\";\n },\n incomeSpecial(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('MMMM - YYYY').toUpperCase();\n }\n }\n return \"No establecido\";\n },\n timeStampFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD-MM-YYYY-HH_mm_ss')\n }\n },\n formatDatepicker(value)\n {\n if(value){\n return moment(String(value)).locale(\"es\").format('YYYY-MM-DD')\n }\n },\n isAfter(date, maxDate, limit = 'year')\n {\n return moment(date).isAfter(maxDate, limit); \n },\n getPreviousMonth(date, format = \"MMMM\", step = 1)\n {\n return moment(date).locale(\"es\").subtract(step, 'months').format(format);\n },\n getDay(date)\n {\n return moment(date).locale(\"es\").format('DD');\n }\n }\n}","export default {\n methods: {\n async getUser2FAStatus(user_id){\n try {\n const res = await axios.get(`api/perfil/get2FAStatus/${user_id}`);\n return res.data.factorEnabled;\n }\n catch (error) {\n return false;\n }\n },\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vs-popup',{attrs:{\"active\":_vm.is2FaPopupActive,\"title\":\"Confirma que eres tú\"},on:{\"update:active\":function($event){_vm.is2FaPopupActive=$event}}},[_c('div',{staticClass:\"p-4 pt-0\"},[_c('div',[(!_vm.validating && !_vm.customIndicationMessage)?_c('h6',{staticClass:\"title-dark\"},[_vm._v(\"Por favor ingresa el código de 6 dígitos.\")]):_vm._e(),(!_vm.validating && _vm.customIndicationMessage)?_c('h6',{staticClass:\"title-dark\"},[_vm._v(_vm._s(_vm.customIndicationMessage))]):_vm._e(),(_vm.validating)?_c('h6',{staticClass:\"title-dark\"},[_vm._v(\"Validando...\")]):_vm._e(),(_vm.errorMssg)?_c('vs-alert',{staticClass:\"mt-3 mb-3\",staticStyle:{\"height\":\"auto\"},attrs:{\"color\":\"danger\"}},[_vm._v(\" \"+_vm._s(_vm.errorMssg)+\" \"),(_vm.showInstructions)?_c('div',{staticClass:\"black\"},[_c('br'),_vm._v(\"Si el problema persiste, es posible que tu app de autenticación (Autenticador de Google, Authy, etc.) no esté sincronizada.\"),_c('br'),_c('br'),_vm._v(\" Intenta \"),_c('a',{staticClass:\"underline bold black\",attrs:{\"href\":_vm.$sanitizeUrl(_vm.twoFactorCodeUrl),\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\" sincronizar tu app \")]),_vm._v(\" de autenticación o \"),_c('a',{staticClass:\"underline bold black\",attrs:{\"href\":_vm.$sanitizeUrl('perfil/seguridad/2fa'),\"rel\":\"noopener noreferrer\"}},[_vm._v(\"reestablece tu segundo factor de autenticación\")]),_vm._v(\". \")]):_vm._e()]):_vm._e(),(_vm.showExtraOptions && _vm.user.phone)?_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"mb-2\"},[_vm._v(\" También podemos enviarte un código al \"),_c('b',[_vm._v(_vm._s(_vm.visibleLastNChars(_vm.user.phone, 4)))]),_vm._v(\" por:\"),_c('br')]),(_vm.user.phone_country_calling_code != '--' && _vm.user.phone_country_calling_code != '+1')?_c('div',{staticClass:\"flex items-center mb-2\"},[_c('vs-icon',{attrs:{\"icon\":\"sms\",\"size\":\"small\",\"color\":\"primary\"}}),_c('label',{staticClass:\"clickable-img underline bold black ml-2\",on:{\"click\":function($event){return _vm.sendAlternativeCode(false)}}},[_vm._v(\"Mensaje de texto (SMS)\"),_c('br')])],1):_vm._e(),_c('div',{staticClass:\"flex items-center\"},[_c('image-from-source',{staticStyle:{\"width\":\"24px\"},attrs:{\"path\":\"/img/wp-green.png\"}}),_c('label',{staticClass:\"clickable-img underline bold black ml-2\",on:{\"click\":function($event){return _vm.sendAlternativeCode(true)}}},[_vm._v(\"WhatsApp\")])],1)]):_vm._e(),(_vm.alternativeCodeSent)?_c('div',{staticClass:\"mt-5\"},[_vm._v(\" Te enviamos un código por \"+_vm._s(_vm.methodCodeSent)+\" al \"+_vm._s(_vm.visibleLastNChars(_vm.user.phone, 4))),_c('br'),_c('br'),_vm._v(\" ¿No lo recibiste? \"),(_vm.resendEnabled)?_c('label',{staticClass:\"clickable-img underline bold black\",on:{\"click\":function($event){return _vm.sendAlternativeCode(_vm.whatsappSent)}}},[_vm._v(\"Reenviar\")]):[_vm._v(\" Reenviar en \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"00:\"+_vm._s(_vm.resendTimer)+\" \")])],_c('br'),_c('br'),_vm._v(\" O recibe tu código por:\"),_c('br'),_c('br'),(_vm.whatsappSent && _vm.user.phone_country_calling_code != '+1')?_c('div',{staticClass:\"flex items-center mb-2\"},[_c('vs-icon',{attrs:{\"icon\":\"sms\",\"size\":\"small\",\"color\":\"primary\"}}),_c('label',{staticClass:\"clickable-img underline bold black ml-2\",on:{\"click\":function($event){return _vm.sendAlternativeCode(false)}}},[_vm._v(\"Mensaje de texto (SMS)\"),_c('br')])],1):_c('div',{staticClass:\"flex items-center\"},[_c('image-from-source',{staticStyle:{\"width\":\"24px\"},attrs:{\"path\":\"/img/wp-green.png\"}}),_c('label',{staticClass:\"clickable-img underline bold black ml-2\",on:{\"click\":function($event){return _vm.sendAlternativeCode(true)}}},[_vm._v(\"WhatsApp\")])],1)],2):_vm._e(),_c('div',{staticClass:\"vx-row mt-4\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex items-center flex-grow justify-left mt-1\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"text\",\"name\":\"code\",\"maxlength\":\"6\",\"autocomplete\":\"off\",\"disabled\":_vm.validating,\"placeholder\":\"Ingresa el código\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.sendCode.apply(null, arguments)}},model:{value:(_vm.code),callback:function ($$v) {_vm.code=$$v},expression:\"code\"}}),_c('vs-button',{staticClass:\"statement-btn ml-6\",attrs:{\"id\":_vm.buttonId,\"data-projectid\":_vm.currentProjectId,\"color\":\"primary\",\"disabled\":_vm.validating},on:{\"click\":_vm.sendCode}},[_vm._v(\"Enviar\")])],1)])])],1)])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./TwoFactorAuth.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!./TwoFactorAuth.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TwoFactorAuth.vue?vue&type=template&id=631aeef1&\"\nimport script from \"./TwoFactorAuth.vue?vue&type=script&lang=js&\"\nexport * from \"./TwoFactorAuth.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","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}"],"sourceRoot":""}