{"version":3,"sources":["webpack:///./src/components/mixins/inputHelper.js","webpack:///./src/views/applicant/References.vue","webpack:///src/views/applicant/References.vue","webpack:///./src/views/applicant/References.vue?713d","webpack:///./src/views/applicant/References.vue?5bf9","webpack:///./src/components/mixins/formHelper.js","webpack:///./src/components/applicant/ApplicantReferencesControl.vue","webpack:///src/components/applicant/ApplicantReferencesControl.vue","webpack:///./src/components/applicant/ApplicantReferencesControl.vue?5a82","webpack:///./src/components/applicant/ApplicantReferencesControl.vue?c501","webpack:///./src/components/mixins/formatHelper.js"],"names":["methods","reg","value","caps","trim","this","upper","trimSpaces","cleanTildes","toUpperCase","s","r","toLowerCase","replace","RegExp","uppercase","render","_vm","_c","_self","attrs","_v","staticClass","ApplicantId","staticRenderFns","components","ApplicantReferencesControl","data","beneficiaries","loaded","component","addressId","address","zipCodeVariable","statesArray","citiesArray","neighborhoodsArray","result","publicApiGet","zipcode","collections","state","city","neighborhoods","state_id","city_id","neighborhood_id","payload","addressName","axios","get","verifyPayloadZipCode","clearPayloadAddressFields","mexicoCountryId","zipCode","length","verifyZipCodeTimer","clearTimeout","setTimeout","getPayloadAddressByZipCode","isNaN","warningNotif","setPayloadZipCodeAddressValues","id","e","warn","failed","verifyZipCode","undefined","clearAddressFields","country_id","getAddressByZipCode","isAutoFormField","f","special_definition","doc_id","field_type","isAutoFormFieldPublic","bo_private","isDocumentNotPrivate","notDocumentNorPrivate","isAutoFieldToSave","is_readonly","formFieldSetter","parent","useNested","fname","db_field","max_chars","min_chars","extras","JSON","parse","parsed_extras","on_change","on_change_method","on_mounted","special_validation","method","section_id","hard_validation","show_only_if","show_conditioned","condition","exact_value","disabled","is_computed","external_computed","placeholder","disabled_from_today","disabled_if","disabled_conditioned","disabled_condition","alias","nested","div_class","textarea_extended","input_group","source","findDocSetsForField","formField","section","documents","find","nestedFieldValue","main","field","val","getNestedObject","arrayFromFieldName","nestedObj","pathArr","reduce","obj","key","setDeepObject","target","path","level","setDeepObjectWithIds","nestedPath","push","setNestedObjectWithIds","forEach","nidObj","nid","join","copyKeysToObject","recipient","origin","k","split","objectIsEmpty","Object","keys","unpackNested","base","prop","pr","packNested","includes","v","curp","personal_id","p","current_personal_profile_id","publicApiPost","error","clabe","banks","g","slice","clabe_code","rfc","validation","post","n","p2","r2","business_id","just_uniqueness","current_business_profile_id","email","applicantUserId","relationData","isEqual","projectId","evaluateConditionBase","ss","container","evaluator","validator","inc","rules","is_required","verify","valid","array","callback","index","missingFieldsNotif","flow","console","log","isDisabled","_e","on","$event","addLocationTestimony","testimonies","scopedSlots","_u","fn","_l","tr","indextr","name","_s","phone_id","phone","country_calling_code","phoneFormat","relation_type","nameForRelationType","stopPropagation","removeItemRequest","slot","showFormPrompt","onError","errorMssg","onSuccess","successMssg","formPromptIndication","_g","directives","rawName","expression","hasError","errorText","isSuccess","model","$$v","input","preferredCountries","onSelect","getOptionsForSelect","text","completeForm","$isLoading","saveTestimony","closeFormPrompt","indicationDef","errorMssgDef","successMssgDef","mixins","props","applicant_id","type","required","default","dialCode","relationTypes","selectedTestimony","mounted","computed","options","color","title","acceptText","cancelText","accept","project_related_profile_id","resetForm","validate","format_price","decimales","toFixed","toString","costFormat","costFormatNoCents","prcgFormat","decimalsFormat","explicitMoneyFormat","mxnFormat","parseInt","moneyFormat","decimalPercentFormat","roundedFormat","c","cd","Math","round","substr","phoneFormatV2","visibleLastNChars","chars","valueString","phoneLength","firstChars","repeat","last4Digits","visibleOnlyLastNChars","capitalizeFirstLetter","arr","i","charAt","isValidRfcFormat","patternPM","patternPF","match","isValidRfcFormatByPersonType","isMoral","pattern","genericRFC1","genericRFC2","isValidCurpFormat","isValid","diccionario","lngSuma","lngDigito","indexOf","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","url","filename","icon","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"kHAAe,QACbA,QAAS,CACPC,IAAIC,E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IACrB,IAAIC,EAA8BF,EAAmCC,EACjEE,EAAc,EAAEH,EAAmCE,EACnDE,EAAoBL,EAAOI,EAC/B,OAAOC","file":"js/chunk-1f9e8216.902fd7e2.js","sourcesContent":["export default {\n methods: {\n reg(value, caps = false, trim = false){\n if(value == null || value == ''){\n return \"\";\n }\n\n if(caps){\n return this.upper(value, trim);\n }\n else if(trim) {\n return this.trimSpaces(value);\n }\n else {\n return value;\n }\n },\n upper(value, trim = false) {\n if (value == null || value == '') {\n return \"\";\n }\n return this.cleanTildes(value, trim).toUpperCase();\n },\n cleanTildes(s, trim = false){\n var r = s.toLowerCase();\n r = r.replace(new RegExp(\"[àáâãäå]\", 'g'),\"a\");\n r = r.replace(new RegExp(\"æ\", 'g'),\"ae\");\n r = r.replace(new RegExp(\"ç\", 'g'),\"c\");\n r = r.replace(new RegExp(\"[èéêë]\", 'g'),\"e\");\n r = r.replace(new RegExp(\"[ìíîï]\", 'g'),\"i\");\n //r = r.replace(new RegExp(\"ñ\", 'g'),\"n\"); \n r = r.replace(new RegExp(\"[òóôõö]\", 'g'),\"o\");\n r = r.replace(new RegExp(\"œ\", 'g'),\"oe\");\n //r = r.replace(new RegExp(\"[ùúûü]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ùúû]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ýÿ]\", 'g'),\"y\");\n \n if(trim){\n r = r.replace(/\\s/g,'');\n }\n\n return r;\n },\n trimSpaces(s){\n return s.replace(/\\s/g,'');\n },\n uppercase(value){\n if (value == null || value == '') {\n return \"\";\n }\n return value.toUpperCase();\n }\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"solicitante\"}},[_c('big-title',[_vm._v(\" Mis \"),_c('span',[_vm._v(\"Referencias\")]),_vm._v(\". \"),_c('p',{staticClass:\"text-subtitle mt-4\"},[_vm._v(\" En este apartado podrás registrar tus referencias que serán usadas posteriormente para la solicitud de créditos. \")])]),_c('vx-card',[_c('applicant-references-control',{attrs:{\"applicant_id\":_vm.ApplicantId}})],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!./References.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!./References.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./References.vue?vue&type=template&id=5f75a2e4&\"\nimport script from \"./References.vue?vue&type=script&lang=js&\"\nexport * from \"./References.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 async setZipCodeAddressValues(addressId, address, {zipCodeVariable, statesArray, citiesArray, neighborhoodsArray}) {\n if(!addressId)\n { \n this[zipCodeVariable] = '';\n return;\n }\n let result = await this.publicApiGet(`api/getAddressById/${addressId}`);\n if(result) {\n result = result.data;\n this[zipCodeVariable] = result.address.zipcode;\n if(result.address.zipcode != null) {\n this.collections[statesArray] = [result.state];\n this.collections[citiesArray] = [result.city];\n this.collections[neighborhoodsArray] = result.neighborhoods;\n \n address.state_id = result.neighborhoods[0].city.state_id;\n address.city_id = result.neighborhoods[0].city_id;\n address.neighborhood_id = result.address.neighborhood_id;\n }\n }\n },\n async setPayloadZipCodeAddressValues(addressId, payload, {addressName, statesArray, citiesArray, neighborhoodsArray}) {\n if(!addressId)\n { \n this[addressName] = '';\n return;\n }\n let result = await axios.get(`api/getAddressById/${addressId}`);\n if(result) {\n result = result.data;\n if(result.address.zipcode != null) {\n this[addressName] = result.address.zipcode;\n this.collections[statesArray] = [result.state];\n this.collections[citiesArray] = [result.city];\n this.collections[neighborhoodsArray] = result.neighborhoods;\n \n payload[`${addressName}$state_id`] = result.neighborhoods[0].city.state_id;\n payload[`${addressName}$city_id`] = result.neighborhoods[0].city_id;\n payload[`${addressName}$neighborhood_id`] = result.address.neighborhood_id;\n }\n }\n },\n\n\t\tverifyPayloadZipCode(payload, {addressName, statesArray, citiesArray, neighborhoodsArray, addressId}) {\n\t\t\tif(this[addressName] == payload[`${addressName}$zipcode`])\n\t\t\t\treturn;\n\t\t\tthis.clearPayloadAddressFields({payload, addressName, statesArray, citiesArray, neighborhoodsArray});\n\t\t\tif(payload[`${addressName}$country_id`] == this.mexicoCountryId) // México\n {\n let zipCode = payload[`${addressName}$zipcode`];\n if(zipCode && zipCode.length >= 5) {\n if(this.verifyZipCodeTimer != null) \n clearTimeout(this.verifyZipCodeTimer);\n this.verifyZipCodeTimer = setTimeout(() => this.getPayloadAddressByZipCode({payload, addressName, statesArray, citiesArray, neighborhoodsArray, addressId}), 1000);\n }\n }\n\t\t},\n\t\tasync getPayloadAddressByZipCode({payload, addressName, statesArray, citiesArray, neighborhoodsArray, addressId}) {\n try {\n if(isNaN(payload[`${addressName}$zipcode`])) {\n\t\t\t\t\tthis.warningNotif('Código postal', 'El código postal ingresado no es válido');\n return;\n }\n\n if(addressId && !this[addressName] && payload[`${addressName}$neighborhood_id`] != null) {\n this.setPayloadZipCodeAddressValues(addressId, payload, {\n addressName,\n statesArray, \n citiesArray, \n neighborhoodsArray\n });\n return;\n }\n \n let result = await axios.get(`api/getAddressByZipCode/${payload[`${addressName}$zipcode`]}`);\n if(result) {\n result = result.data;\n if(result.neighborhoods.length > 0) {\n this[addressName] = payload[`${addressName}$zipcode`];\n this.collections[statesArray] = [result.state];\n this.collections[citiesArray] = [result.city];\n this.collections[neighborhoodsArray] = result.neighborhoods;\n payload[`${addressName}$state_id`] = result.state.id;\n payload[`${addressName}$city_id`] = result.city.id;\n payload[`${addressName}$neighborhood_id`] = null;\n return;\n }\n this.warningNotif('Código postal', 'El código postal no tuvo resultados');\n }\n } \n catch (e) {\n this.warn(e);\n this.failed = true;\n }\t\n },\n\t\tclearPayloadAddressFields({payload, addressName, statesArray, citiesArray, neighborhoodsArray}) {\n\t\t\tpayload[`${addressName}$state_id`] = null;\n\t\t\tpayload[`${addressName}$city_id`] = null;\n\t\t\tpayload[`${addressName}$neighborhood_id`] = null;\n \n this.collections[statesArray] = [];\n\t\t\tthis.collections[citiesArray] = [];\n\t\t\tthis.collections[neighborhoodsArray] = [];\n },\n\n verifyZipCode(address, {zipCodeVariable, statesArray, citiesArray, neighborhoodsArray}) {\n if(this[zipCodeVariable] === undefined || this[zipCodeVariable] == address.zipcode)\n return;\n this.clearAddressFields({address, statesArray, citiesArray, neighborhoodsArray});\n if(address.zipcode)\n this[zipCodeVariable] = address.zipcode;\n if(address.country_id == this.mexicoCountryId) // México\n {\n let zipCode = address.zipcode;\n if(zipCode && zipCode.length >= 5) {\n if(this.verifyZipCodeTimer != null) \n clearTimeout(this.verifyZipCodeTimer);\n this.verifyZipCodeTimer = setTimeout(() => this.getAddressByZipCode({address, statesArray, citiesArray, neighborhoodsArray}), 1000);\n }\n }\n\t},\t\t\t\n async getAddressByZipCode({address, statesArray, citiesArray, neighborhoodsArray}) {\n try {\n if(isNaN(address.zipcode)) {\n this.warningNotif('Código postal', 'El código postal ingresado no es válido');\n return;\n }\n \n let result = await this.publicApiGet(`api/getAddressByZipCode/${address.zipcode}`);\n if(result) {\n result = result.data;\n if(result.neighborhoods.length > 0) {\n this.collections[statesArray] = [result.state];\n this.collections[citiesArray] = [result.city];\n this.collections[neighborhoodsArray] = result.neighborhoods;\n address.state_id = result.state.id;\n address.city_id = result.city.id;\n address.neighborhood_id = null;\n return;\n }\n this.warningNotif('Código postal', 'El código postal no tuvo resultados');\n }\n } \n catch (e) {\n this.warn(e);\n this.failed = true;\n }\t\n },\n clearAddressFields({address, statesArray, citiesArray, neighborhoodsArray}) {\n address.state_id = null;\n address.city_id = null;\n address.neighborhood_id = null;\n \n this.collections[statesArray] = [];\n\t\t\tthis.collections[citiesArray] = [];\n\t\t\tthis.collections[neighborhoodsArray] = [];\n },\n isAutoFormField(f){\n return f.special_definition == 0 && f.doc_id == null && f.field_type != 'document';\n },\n isAutoFormFieldPublic(f){\n return f.special_definition == 0 && f.doc_id == null && f.field_type != 'document' && f.bo_private != 1;\n },\n isDocumentNotPrivate(f){\n return f.bo_private == 0 && (f.doc_id != null && f.field_type == 'document');\n },\n notDocumentNorPrivate(f){\n return f.bo_private == 0 && \n (f.doc_id == null && f.field_type != 'document');\n },\n isAutoFieldToSave(f){\n return this.isAutoFormField(f) && !f.is_readonly;\n },\n formFieldSetter(f, parent, useNested = false){\n f.fname = f.db_field;\n\n if(f.max_chars > 0 || f.min_chars > 0){\n // definir que se requiere trim\n f.trim = true;\n }\n\n if(f.extras == null) return;\n let extras = JSON.parse(f.extras);\n f.parsed_extras = extras;\n\n // check if need to be aware of change\n if(extras.on_change != null){\n f.on_change_method = extras.on_change;\n\n if(!(extras.on_change in parent)){\n this.warn(`METHOD IMPLEMENTATION MISSING [${f.fname}]: ${extras.on_change}`);\n }\n }\n\n // check if need to be aware of change\n if(extras.on_mounted != null){\n f.on_mounted = extras.on_mounted;\n\n if(!(extras.on_mounted in parent)){\n this.warn(`METHOD IMPLEMENTATION MISSING [${f.fname}]: ${extras.on_mounted}`);\n }\n }\n\n // check if need to be aware of change\n if(extras.special_validation != null){\n f.special_validation = extras.special_validation;\n if(!(f.special_validation.method in parent)){\n this.warn(`SPECIAL VALIDATION IMPLEMENTATION MISSING [${f.fname}][${f.section_id}]: ${f.special_validation.method}`);\n }\n }\n\n if(extras.hard_validation != null){\n f.hard_validation = extras.hard_validation;\n if(!(f.hard_validation.method in parent)){\n this.warn(`HARD VALIDATION IMPLEMENTATION MISSING [${f.fname}][${f.section_id}]: ${f.hard_validation.method}`);\n }\n }\n\n // check if need to be show_conditioned\n if(extras.show_only_if != null){\n f.show_conditioned = true;\n f.condition = extras.show_only_if;\n\n if(!(extras.show_only_if in parent)){\n this.warn(`CONDITION IMPLEMENTATION MISSING [${f.fname}]: ${extras.show_only_if}`);\n }\n }\n\n // check if need to be a specific value\n if(extras.exact_value != null){\n f.exact_value = extras.exact_value;\n //f.disabled = true;\n }\n\n // check if need to be a specific value\n if(extras.is_readonly != null){\n f.is_readonly = extras.is_readonly;\n f.disabled = true;\n }\n\n if(extras.is_computed != null){\n f.is_computed = extras.is_computed;\n }\n\n if(extras.external_computed != null){\n f.external_computed = extras.external_computed;\n }\n\n if(extras.disabled != null){\n f.disabled = extras.disabled;\n }\n\n if(extras.placeholder != null){\n f.placeholder = extras.placeholder;\n }\n if(extras.disabled_from_today != null){\n f.disabled_from_today = extras.disabled_from_today;\n }\n\n // check if edition need to be conditioned\n if(extras.disabled_if != null){\n f.disabled_conditioned = true;\n f.disabled_condition = extras.disabled_if;\n\n if(!(extras.disabled_if in parent)){\n this.warn(`CONDITION IMPLEMENTATION MISSING [${f.fname}]: ${extras.disabled_if}`);\n }\n }\n\n // check for alias\n if(extras.alias != null){\n f.fname = extras.alias;\n }\n\n // check prefix for nested values\n if(extras.nested != null && useNested){\n f.fname = extras.nested + \"$\" + f.fname;\n }\n\n // check prefix for div_class key\n if(extras.div_class != null){\n f.div_class = extras.div_class;\n }\n\n // check for extended textarea\n if(extras.textarea_extended != null){\n f.textarea_extended = extras.textarea_extended;\n }\n\n // check if should use input group\n if(extras.input_group != null){\n f.input_group = extras.input_group;\n if(!(f.input_group.source in parent)){\n this.warn(`INPUT GROUP SOURCE IMPLEMENTATION MISSING [${f.fname}]: ${f.input_group.source}`);\n }\n }\n },\n findDocSetsForField(formField, section){\n return section.documents.find(f => f.id == formField.doc_id);\n },\n nestedFieldValue(main, field){\n if(field == null){\n return null;\n }\n else if(field == \"base\"){\n return main;\n }\n else {\n let val = this.getNestedObject(main, this.arrayFromFieldName(field) );\n return val;\n }\n },\n getNestedObject(nestedObj, pathArr) {\n if(pathArr.length == 0){ return nestedObj}\n return pathArr.reduce((obj, key) =>\n (obj && obj[key] !== 'undefined') ? obj[key] : undefined, nestedObj);\n },\n setDeepObject(target, path, value) {\n let pathArr = this.arrayFromFieldName(path);\n pathArr.reduce((obj, key, level) => {\n if(level == pathArr.length -1){\n obj[key] = value;\n return value;\n }\n if(obj[key] == undefined){\n obj[key] = {};\n return obj[key];\n }\n return obj[key];\n }, target);\n },\n setDeepObjectWithIds(target, source, path, value){\n let pathArr = this.arrayFromFieldName(path);\n let nestedPath = [];\n pathArr.reduce((obj, key, level) => { \n if(level == pathArr.length -1){\n obj[key] = value;\n obj.id = this.getNestedObject(source, nestedPath).id;\n return value;\n }\n if(obj[key] == undefined){\n obj[key] = {};\n obj.id = this.getNestedObject(source, nestedPath).id;\n nestedPath.push(key);\n return obj[key];\n }\n nestedPath.push(key);\n return obj[key];\n }, target);\n },\n setNestedObjectWithIds(target, source, path, value){\n let pathArr = this.arrayFromFieldName(path);\n let nestedPath = [];\n let parent = target;\n pathArr.forEach(key => {\n if(pathArr.length > 1){\n parent = this.getNestedObject(target, nestedPath);\n }\n nestedPath.push(key);\n let obj = this.getNestedObject(target, nestedPath);\n let nidObj = this.getNestedObject(source, nestedPath);\n let nid = null;\n if(nidObj){\n nid = nidObj.id;\n }\n if(nestedPath.join(\".\") == path){\n if(!obj){\n obj = value;\n obj.id = nid;\n }\n else {\n this.copyKeysToObject(obj, value);\n obj.id = nid;\n }\n }\n else{\n if(!obj){\n obj = {id: nid};\n }\n else {\n obj.id = nid;\n }\n }\n parent[key] = obj;\n });\n },\n copyKeysToObject(recipient, origin){\n let k;\n for (k in origin) {\n recipient[k] = origin[k];\n }\n },\n arrayFromFieldName(fname){\n return fname.split('.');\n },\n objectIsEmpty(obj) {\n return Object.keys(obj).length === 0;\n },\n unpackNested(data){\n let base = {};\n for(var prop in data){\n if(typeof data[prop] == \"object\"){\n for (var pr in data[prop]) {\n base[prop + \"$\" + pr] = data[prop][pr];\n }\n }\n else {\n base[prop] = data[prop];\n }\n }\n return base;\n },\n packNested(base){\n let data = {};\n for(var prop in base){\n if(prop.includes(\"$\")){\n let r = prop.split(\"$\");\n let k = r[0];\n let v = r[1];\n if(data[k] == null){\n data[k] = {};\n }\n data[k][v]= base[prop];\n }\n else {\n data[prop] = base[prop];\n }\n }\n return data;\n },\n async validate_unique_curp(curp, personal_id){\n try {\n let p = {curp: curp, current_personal_profile_id: personal_id};\n let r = await this.publicApiPost('api/v1/personal/verify_unique_curp', p);\n return r.data == \"valid\";\n }\n catch (error) {\n return false;\n }\n },\n async validate_clabe(clabe, banks){\n if(clabe.length >= 3){\n let g = clabe.slice(0, 3);\n if(banks.find(f => f.clabe_code == g)){\n return true;\n }\n }\n return false;\n },\n async validate_unique_personal_rfc(rfc, personal_id){\n try {\n let validation = [];\n\n let p = {rfc: rfc, current_personal_profile_id: personal_id};\n let r = await axios.post('api/v1/personal/verify_unique_rfc', p);\n if (r.data !== \"valid\") {\n validation.push({n: \"RFC ya registrado\", e: \"Ya tenemos un registro con el mismo RFC, te pedimos de favor nos contactes a través del Chat para revisar el caso.\"});\n }\n\n let p2 = {rfc: rfc};\n let r2 = await axios.post('api/v1/personal/validate_rfc_format', p2);\n if (r2.data !== \"valid\") {\n validation.push({n: \"RFC Formato Incorrecto\", e: \"El formato de RFC no coincide con el formato para una Persona Física.\"});\n }\n\n return validation;\n }\n catch (error) {\n return false;\n }\n },\n async validate_unique_business_rfc(rfc, business_id, just_uniqueness = false){\n try {\n let validation = [];\n let p = {rfc: rfc, current_business_profile_id: business_id};\n let r = await axios.post('api/v1/business/verify_unique_rfc', p);\n if (r.data !== \"valid\") {\n if(just_uniqueness) {\n return false;\n }\n validation.push({n: \"RFC ya registrado\", e: \"Ya tenemos un registro con el mismo RFC, te pedimos de favor nos contactes a través del Chat para revisar el caso.\"});\n }\n\n let p2 = {rfc: rfc};\n let r2 = await axios.post('api/v1/business/validate_rfc_format', p2);\n if (r2.data !== \"valid\") {\n validation.push({n: \"RFC Formato Incorrecto\", e: \"El formato de RFC no coincide con el formato para una Persona Moral.\"});\n }\n\n return validation;\n }\n catch (error) {\n return false;\n }\n },\n async isEmailEqualToApplicants(email, applicantUserId, relationData) {\n try {\n const {data} = await axios.post(`api/v1/email-equal-to-applicants/${applicantUserId}`, { email, relationData });\n return data.isEqual;\n }\n catch (error) {\n return false;\n }\n },\n async isEmailDuplicatedInProject(email, projectId, relationData) {\n try {\n const {data} = await axios.post(`api/v1/email-duplicated-in-project/${projectId}`, { email, relationData });\n return data.isEqual;\n }\n catch (error) {\n return false;\n }\n },\n evaluateConditionBase(parent, condition){\n if(condition != null && condition in parent){\n let ss = parent[condition];\n // console.log(\"evaluateCondition => \" + condition + \", \" + ss);\n return ss;\n }\n else if(condition != null) {\n this.warn(\"Missing evaluator condition: \" + condition);\n }\n },\n async evaluateFieldCompletition(f, container, evaluator, validator){\n if(container != null){\n let val = container[f.fname];\n if(f.show_conditioned){\n let inc = evaluator(f.condition);\n if(!inc){\n return null;\n }\n }\n if(f.field_type == \"checkbox\") { return null}\n let rules = \"\";\n if(f.is_required){ rules = \"required\";}\n let r = await validator.verify(val, rules); \n return r.valid; \n }\n return false;\n },\n async asyncForEach(array, callback){\n for (let index = 0; index < array.length; index++) {\n await callback(array[index], index, array);\n }\n },\n /**\n * Envía una notificación a slack cuando el curp/rfc es duplicado\n * @param {\n * user_id: number,\n * loan_id: number,\n * flow: string,\n * role: string,\n * id: string\n * } data \n */\n async sendIdentifiersNotification(data)\n {\n this.missingFieldsNotif(null, `Ya existe un perfil asociado a este ${data.flow}. Te contactaremos por WhatsApp o correo electrónico en no más de 1 día hábil para brindarte apoyo.`);\n try {\n await this.publicApiPost('api/v1/profile/identifiers-notification', data);\n } catch (error) {\n console.log(error);\n }\n }\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-col w-full mb-5\"},[(!_vm.isDisabled)?_c('vs-button',{staticClass:\"mb-4\",attrs:{\"color\":\"primary\",\"type\":\"border\",\"icon-pack\":\"feather\"},on:{\"click\":function($event){return _vm.addLocationTestimony()}}},[_vm._v(\"Agregar referencia\")]):_vm._e(),_c('vs-table',{attrs:{\"stripe\":\"\",\"noDataText\":\"No se han generado registros\",\"data\":_vm.testimonies},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr},[_c('vs-td',{attrs:{\"data\":data[indextr].name}},[_vm._v(\" \"+_vm._s(data[indextr].name)+\" \")]),_c('vs-td',{attrs:{\"data\":data[indextr].email}},[_vm._v(\" \"+_vm._s(data[indextr].email)+\" \")]),_c('vs-td',{attrs:{\"data\":data[indextr].phone_id}},[_vm._v(\" \"+_vm._s(data[indextr].phone_id ? `${data[indextr].phone.country_calling_code} ${_vm.phoneFormat(data[indextr].phone.phone)}` : _vm.phoneFormat(data[indextr].phone))+\" \")]),_c('vs-td',{staticClass:\"table-wrap\",attrs:{\"data\":data[indextr].relation_type}},[_vm._v(\" \"+_vm._s(_vm.nameForRelationType(data[indextr].relation_type))+\" \")]),_c('vs-td',{attrs:{\"data\":data[indextr].id}},[(!_vm.isDisabled)?_c('feather-icon',{staticClass:\"ml-6\",attrs:{\"icon\":\"TrashIcon\",\"svgClasses\":\"w-5 h-5 hover:text-danger stroke-current cursor-pointer\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.removeItemRequest(data[indextr])}}}):_c('p',[_vm._v(\"Sin acciones disponibles\")])],1)],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"NOMBRE\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"CORREO\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"TELÉFONO\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"TIPO DE RELACIÓN\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"ACCIONES\")])],1)],2),_c('vs-popup',{attrs:{\"title\":\"Agregar referencia\",\"active\":_vm.showFormPrompt},on:{\"update:active\":function($event){_vm.showFormPrompt=$event}}},[_c('div',{staticClass:\"con-exemple-prompt\"},[(_vm.onError)?_c('vs-alert',{staticClass:\"h-full mb-5\",attrs:{\"color\":\"danger\"}},[_c('span',[_vm._v(_vm._s(_vm.errorMssg))])]):_vm._e(),(_vm.onSuccess)?_c('vs-alert',{staticClass:\"h-full mb-5\",attrs:{\"color\":\"success\"}},[_c('span',[_vm._v(_vm._s(_vm.successMssg))])]):_vm._e(),_c('p',{staticClass:\"mb-5 bold\"},[_vm._v(_vm._s(_vm.formPromptIndication))]),_c('vs-input',_vm._g({directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full mb-4\",attrs:{\"label\":\"Nombre completo\",\"placeholder\":\"Requerido\",\"data-vv-name\":\"name\",\"danger\":_vm.hasError('name'),\"danger-text\":_vm.errorText('name'),\"success\":_vm.isSuccess('name')},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}},{input: e => {_vm.name = _vm.toUpperCase(e) }})),_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|email'),expression:\"'required|email'\"}],staticClass:\"w-full mb-4\",attrs:{\"label\":\"Correo\",\"placeholder\":\"Requerido\",\"data-vv-name\":\"email\",\"danger\":_vm.hasError('email'),\"danger-text\":_vm.errorText('email'),\"success\":_vm.isSuccess('email')},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('div',{staticClass:\"flex\"},[_c('vue-country-code',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"vs-custom dial-code\",attrs:{\"name\":\"dialCode\",\"data-vv-name\":\"dialCode\",\"enableSearchField\":true,\"searchPlaceholderText\":\"Buscar código de país\",\"enabledCountryCode\":true,\"defaultCountry\":_vm.preferredCountries,\"preferredCountries\":['MX'],\"danger\":_vm.hasError('dialCode'),\"danger-text\":_vm.errorText('dialCode'),\"success\":_vm.isSuccess('dialCode')},on:{\"onSelect\":_vm.onSelect}}),_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|digits:10'),expression:\"'required|digits:10'\"}],staticClass:\"w-full mb-4\",attrs:{\"label\":\"Celular a 10 dígitos\",\"placeholder\":\"Requerido\",\"type\":\"tel\",\"data-vv-name\":\"phone\",\"icon-pack\":\"feather\",\"icon\":\"icon-phone\",\"danger\":_vm.hasError('phone'),\"danger-text\":_vm.errorText('phone'),\"success\":_vm.isSuccess('phone')},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}})],1),_c('label',{staticClass:\"vs-input--label\",attrs:{\"for\":\"\"}},[_vm._v(\"Tipo de Relación\")]),_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"vs-custom w-full mb-5\",attrs:{\"label\":\"text\",\"name\":\"relation_type\",\"options\":_vm.getOptionsForSelect,\"reduce\":text => text.value,\"clearable\":false,\"searchable\":false,\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.relation_type),callback:function ($$v) {_vm.relation_type=$$v},expression:\"relation_type\"}}),(_vm.hasError('relation_type'))?_c('v-error',{attrs:{\"error\":_vm.errorText('relation_type'),\"success\":_vm.isSuccess('relation_type')}}):_vm._e(),_c('vs-button',{staticClass:\"mr-5 mt-2\",attrs:{\"disabled\":!_vm.completeForm || _vm.$isLoading,\"color\":\"primary\"},on:{\"click\":_vm.saveTestimony}},[_vm._v(\"Agregar\")]),_c('vs-button',{attrs:{\"disabled\":_vm.$isLoading,\"type\":\"flat\",\"color\":\"primary\"},on:{\"click\":_vm.closeFormPrompt}},[_vm._v(\"Cerrar\")])],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!./ApplicantReferencesControl.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!./ApplicantReferencesControl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ApplicantReferencesControl.vue?vue&type=template&id=506a3d24&\"\nimport script from \"./ApplicantReferencesControl.vue?vue&type=script&lang=js&\"\nexport * from \"./ApplicantReferencesControl.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":""}