{"version":3,"sources":["webpack:///./src/views/applicant/NewBeneficiaryPage.vue?c5d8","webpack:///./src/components/profile_shared/BeneficiaryForm.vue","webpack:///src/components/profile_shared/BeneficiaryForm.vue","webpack:///./src/components/profile_shared/BeneficiaryForm.vue?3adc","webpack:///./src/components/profile_shared/BeneficiaryForm.vue?a6a9","webpack:///./src/views/applicant/NewBeneficiaryPage.vue","webpack:///src/views/applicant/NewBeneficiaryPage.vue","webpack:///./src/views/applicant/NewBeneficiaryPage.vue?4741","webpack:///./src/views/applicant/NewBeneficiaryPage.vue?198a","webpack:///./src/components/profile_shared/BeneficiaryForm.vue?9d8f","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","isMounted","totalPercentageAvailable","staticClass","attrs","_v","_e","_s","prcgFormat","failed","_l","allSections","section","key","id","public_name","public_description","fields","f","isAutoFormField","ref","refInFor","getDataContainer","collections","countries","onFieldChange","evaluateCondition","on","$event","saveBeneficiaryData","goBackScreen","staticRenderFns","name","props","newRecord","beneficiaryId","role","type","required","mixins","data","errorCode","onError","loading","isRefreshing","errorMssg","successMssg","documentsStates","beneficiary","address","city_id","cities","states_beneficiary_address","cities_beneficiary_address","neighborhoods_beneficiary_address","validatedFields","mexicoCountryId","components","FormField","watch","computed","is_mexico_selected","is_mexico_not_selected","methods","s","formField","documentSet","target_id","ff","allValid","ok","docTargetEvaluator","processError","validate_user_birthdate","result","verify_zip_code_beneficiary_address","zipCodeVariable","statesArray","citiesArray","neighborhoodsArray","set_zip_code_values_beneficiary_address","component","BeneficiaryForm","mounted","format_price","value","decimales","val","toFixed","replace","toString","costFormat","costFormatNoCents","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","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"kHAAA,W,oCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEF,EAAII,WAAaJ,EAAIK,0BAA4B,EAAGH,EAAG,WAAW,CAACI,YAAY,cAAcC,MAAM,CAAC,YAAY,UAAU,KAAO,sBAAsB,MAAQ,WAAW,CAACL,EAAG,OAAO,CAACI,YAAY,gBAAgB,CAACN,EAAIQ,GAAG,sDAAsDN,EAAG,SAAS,CAACF,EAAIQ,GAAG,iCAAiCR,EAAIQ,GAAG,wEAAwER,EAAIS,KAAMT,EAAII,WAAaJ,EAAIK,yBAA2B,EAAGH,EAAG,WAAW,CAACI,YAAY,cAAcC,MAAM,CAAC,YAAY,UAAU,KAAO,aAAa,MAAQ,YAAY,CAACL,EAAG,OAAO,CAACI,YAAY,gBAAgB,CAACN,EAAIQ,GAAG,oDAAoDN,EAAG,SAAS,CAACF,EAAIQ,GAAGR,EAAIU,GAAGV,EAAIW,WAAwC,IAA7BX,EAAIK,yBAA8B,OAAOL,EAAIQ,GAAG,SAASR,EAAIS,KAAMT,EAAII,YAAcJ,EAAIY,OAAQV,EAAG,MAAM,CAACF,EAAIa,GAAIb,EAAIc,aAAa,SAASC,GAAS,OAAOb,EAAG,UAAU,CAACc,IAAID,EAAQE,GAAGX,YAAY,OAAOC,MAAM,CAAC,MAAQQ,EAAQG,cAAc,CAAgC,MAA9BH,EAAQI,mBAA4BjB,EAAG,IAAI,CAACI,YAAY,QAAQ,CAACN,EAAIQ,GAAGR,E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AiB,UACAC,qBACA,sDAEAC,yBACA,uDAGAC,SACA,oBACA,UACA,8BACA,8BACA,wBAEA,6BACAC,oBACAA,qBAIA,GAHA,gCAGA,gBACA,OAAAC,YAAAC,iBAAAC,gBACA,+CACA,IACAC,uEACAA,iBAEAJ,8BAKA,SACA,aACA,iBAGA,wBACA,IACA,2DACA,sCAEA,SACA,aACA,iBAGA,uBACA,IACA,wDACA,kCAEA,8CACA,+BAEA,wGACA,qCAEA,SACA,aACA,iBAGA,2BACA,IACA,kFACA,gBACA,wBACA,qFACA,oFACA,4CACA,8BACA,SACA,8BAIA,+BACA,IACA,4BACA,6CACA,+BACA,gEACA,SACA,eAGA,2BACA,yBAOA,4BACA,kCACA,KAGA,CACA,qBACA,gCACA,qBACA,MACA,8BAEA,wBAGA,oDAZA,2BAgBA,uBAEA,sCACA,MACA,SAGA,0CACA,WAMA,2BACA,SACA,wBACA,IACA,EADA,4BAEA,gBACA9C,OACA,mCACA,cACAmD,UAEA,eACA,4BACA,YACA,6BACA,iBACA,OACAA,KACAnD,oBACA,+BACA,UAGA,8BAGA,UAGA,qBACA,SACA,IACA,sCACA,oFACA,wCAEA,uCACA,qBAEA,iFAGA,oEAEAoD,KAEA,SACA,sBACAA,KACA,0DAEA,UAGA7C,iBACA,oBACA,WAGAC,qBACA,sBACA,gBAKA6C,wBACA,mBACA,SAEA,mEACA,OAGAC,gBACA,gBACA,kBAIAC,0BACA,6DACA,cAEA,wCACA,kDACA,+EACA,KAeA,OAdA,YAKA,sDAIA,OARAC,MAaA,GAGApD,oBACA,oBACA,iBACA,MACA,kBADA,GAIAqD,sCACA,iCACAC,+CACAC,yCACAC,yCACAC,0DAGAC,0CACA,uEACAJ,+CACAC,yCACAC,yCACAC,4DCzXwW,I,wBCQpWE,EAAY,eACd,EACArF,EACAmC,GACA,EACA,KACA,WACA,MAIa,OAAAkD,E,kDCnBf,IAAIrF,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAA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,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,M","file":"js/chunk-0a9df09a.6deff5d3.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!./NewBeneficiaryPage.vue?vue&type=style&index=0&id=63cae0ec&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.isMounted && _vm.totalPercentageAvailable <= 0)?_c('vs-alert',{staticClass:\"h-full mt-4\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-alert-triangle\",\"color\":\"danger\"}},[_c('span',{staticClass:\"font-regular\"},[_vm._v(\"No puedes agregar más beneficiarios porque no hay \"),_c('strong',[_vm._v(\"porcentaje de participación\")]),_vm._v(\" disponible. Elimina o reasigna los porcentajes ya establecidos.\")])]):_vm._e(),(_vm.isMounted && _vm.totalPercentageAvailable > 0)?_c('vs-alert',{staticClass:\"h-full mt-4\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-check\",\"color\":\"success\"}},[_c('span',{staticClass:\"font-regular\"},[_vm._v(\"El porcentaje de participación disponible es de \"),_c('strong',[_vm._v(_vm._s(_vm.prcgFormat(_vm.totalPercentageAvailable*100, 2)))]),_vm._v(\".\")])]):_vm._e(),(_vm.isMounted && !_vm.failed)?_c('div',[_vm._l((_vm.allSections),function(section){return _c('vx-card',{key:section.id,staticClass:\"mb-5\",attrs:{\"title\":section.public_name}},[(section.public_description != null)?_c('p',{staticClass:\"mb-4\"},[_vm._v(_vm._s(section.public_description))]):_vm._e(),_c('div',{staticClass:\"vx-row\"},[_vm._l((section.fields),function(f){return [(_vm.isAutoFormField(f))?_c('form-field',{key:f.id,ref:\"allSections\",refInFor:true,attrs:{\"f\":f,\"dataContainer\":_vm.getDataContainer(section.id),\"collectionsRoot\":_vm.collections,\"countriesList\":_vm.collections.countries,\"onChangeReceptor\":_vm.onFieldChange,\"evaluator\":_vm.evaluateCondition}}):_vm._e()]})],2)])}),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex flex-wrap items-center justify-end\"},[_c('vs-button',{on:{\"click\":function($event){return _vm.saveBeneficiaryData()}}},[_vm._v(\"Guardar cambios\")]),_c('vs-button',{staticClass:\"ml-4\",attrs:{\"type\":\"border\"},on:{\"click\":function($event){return _vm.goBackScreen()}}},[_vm._v(\"Cancelar\")])],1)])])],2):_vm._e(),(_vm.failed)?_c('load-error'):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n \n No puedes agregar más beneficiarios porque no hay porcentaje de participación disponible.\n Elimina o reasigna los porcentajes ya establecidos.\n \n 0\" icon-pack=\"feather\" icon=\"icon-check\" class=\"h-full mt-4\" color=\"success\">\n El porcentaje de participación disponible es de {{prcgFormat(totalPercentageAvailable*100, 2)}}.\n \n \n
\n \n
{{section.public_description}}
\n
\n \n \n \n \n
\n \n \n
\n
\n
\n Guardar cambios\n Cancelar\n
\n
\n
\n
\n \n
\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BeneficiaryForm.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!./BeneficiaryForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BeneficiaryForm.vue?vue&type=template&id=2cb118f4&scoped=true&\"\nimport script from \"./BeneficiaryForm.vue?vue&type=script&lang=js&\"\nexport * from \"./BeneficiaryForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BeneficiaryForm.vue?vue&type=style&index=0&id=2cb118f4&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 \"2cb118f4\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.isMounted)?_c('big-title',[_vm._v(\" Nuevo \"),_c('span',[_vm._v(\"Beneficiario\")]),_vm._v(\". \"),_c('p',{staticClass:\"text-subtitle mt-6\"},[_vm._v(\"Agrega la información necesaria para registrar al Beneficiario.\")])]):_vm._e(),_c('beneficiary-form',{attrs:{\"new-record\":_vm.newRecord,\"role\":\"client\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n \n Nuevo Beneficiario.\n
Agrega la información necesaria para registrar al Beneficiario.
\n \n \n
\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewBeneficiaryPage.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!./NewBeneficiaryPage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NewBeneficiaryPage.vue?vue&type=template&id=63cae0ec&scoped=true&\"\nimport script from \"./NewBeneficiaryPage.vue?vue&type=script&lang=js&\"\nexport * from \"./NewBeneficiaryPage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NewBeneficiaryPage.vue?vue&type=style&index=0&id=63cae0ec&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 \"63cae0ec\",\n null\n \n)\n\nexport default component.exports","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!./BeneficiaryForm.vue?vue&type=style&index=0&id=2cb118f4&prod&scoped=true&lang=css&\"","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":""}