{"version":3,"sources":["webpack:///./src/views/applicant/profile/ApplicantTaxProfile.vue","webpack:///src/views/applicant/profile/ApplicantTaxProfile.vue","webpack:///./src/views/applicant/profile/ApplicantTaxProfile.vue?1e2a","webpack:///./src/views/applicant/profile/ApplicantTaxProfile.vue?fa17","webpack:///./src/components/mixins/inputHelper.js","webpack:///./src/components/profile_shared/UserTaxProfile.vue","webpack:///src/components/profile_shared/UserTaxProfile.vue","webpack:///./src/components/profile_shared/UserTaxProfile.vue?4ca0","webpack:///./src/components/profile_shared/UserTaxProfile.vue?b7a9","webpack:///./src/components/mixins/dateHelper.js","webpack:///./src/components/profile_shared/UserTaxProfile.vue?dc4d","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","_v","staticClass","attrs","$sanitizeUrl","satUrl","staticRenderFns","name","components","UserTaxProfile","data","methods","component","reg","value","caps","trim","upper","trimSpaces","cleanTildes","toUpperCase","s","r","toLowerCase","replace","RegExp","uppercase","isEdit","class","colClass","directives","rawName","requiredRules","expression","hasError","errorText","isSuccess","requiredPlaceholder","on","val","rfc","model","callback","$$v","isMoral","_e","rfcUrl","taxName","taxZipCode","$event","setCfdis","taxRegimeId","_l","collections","taxRegimesFiltered","item","index","key","label","cfdiId","cfdisFiltered","capitalRegimeId","allBusinessCapitalRegimes","defaultRFC","id","efirmaRequired","efirmaNumber","efirmaUrl","errorMssg","_s","showButton","saveBtnId","saveDataForm","taxRegimeNamed","cfdiNamed","getCapitalRegime","mixins","props","type","required","default","userPersonTypePF","userPersonTypePM","allTaxRegimes","allCfdis","businessCapitalRegimes","userPersonType","fiscalValidationTimestamp","computed","taxRegimesForPersonType","taxRegime","setTimeout","cfdi_id","tax_regime_id","tax_zipcode","tax_name","capital_regime_id","efirma_required","efirma_number","complete","console","getCfdis","constitutionDateFormat","moment","String","locale","format","constitutionPaymentDateFormat","explicitDateFormat","sessionFormat","regularDateFormat","yearDateFormat","midDateFormat","humanDateFormat","dateTimeFormat","dateTime12Format","compactDateFormat","logDateFormat","timeAgoFormat","fromNow","calculateAgeFromDate","diff","minDateForValidAge","years","subtract","calculateDaysDiff","m","n","validatedDate","isValid","getDateFromInputs","yy","mm","dd","yint","parseInt","mint","year","month","day","nextAccreditationDate","add","setDateToEndOfDay","d","endOf","end","setDateToStartOfDay","startOf","start","signatureFormatDate","signatureValidityDate","incomeSpecial","timeStampFormat","formatDatepicker","isAfter","date","maxDate","limit","getPreviousMonth","step","getDay","format_price","decimales","toFixed","toString","costFormat","costFormatNoCents","prcgFormat","decimalsFormat","explicitMoneyFormat","mxnFormat","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","join","isValidRfcFormat","patternPM","patternPF","match","isValidRfcFormatByPersonType","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","diccionario","lngSuma","lngDigito","indexOf","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,YAAY,CAACF,EAAII,GAAG,WAAWF,EAAG,OAAO,CAACF,EAAII,GAAG,YAAYJ,EAAII,GAAG,QAAQF,EAAG,UAAU,CAACG,YAAY,OAAOC,MAAM,CAAC,MAAQ,uCAAuC,CAACJ,EAAG,MAAM,CAACG,YAAY,2BAA2B,CAACH,EAAG,IAAI,CAACF,EAAII,GAAG,qEAAqEF,EAAG,IAAI,CAACF,EAAII,GAAG,YAAYJ,EAAII,GAAG,8EAA8EF,EAAG,IAAI,CAACF,EAAII,GAAG,oCAAoCJ,EAAII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L,EAAOI,EAC/B,OAAOC","file":"js/chunk-fc7d1c40.85739d31.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('big-title',[_vm._v(\"Perfil \"),_c('span',[_vm._v(\"Fiscal\")]),_vm._v(\". \")]),_c('vx-card',{staticClass:\"mb-6\",attrs:{\"title\":\"Mantén actualizada tu información.\"}},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('p',[_vm._v(\" Debido a la Reforma Fiscal 2022, para la emisión de comprobante \"),_c('b',[_vm._v(\"(CFDI)\")]),_vm._v(\" es importante que registres tus datos fiscales tal y como aparecen en tu \"),_c('b',[_vm._v(\"Constancia de Situación Fiscal\")]),_vm._v(\" la cual puedes consultar en el \"),_c('a',{staticClass:\"inline-link-primary bold\",attrs:{\"target\":\"_blank\",\"rel\":\"noopener\",\"href\":_vm.$sanitizeUrl(_vm.satUrl)}},[_vm._v(\"SAT\")]),_vm._v(\". \")])])]),_c('vx-card',[_c('user-tax-profile')],1),_c('vx-card',{staticClass:\"mt-6\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('li',{staticClass:\"bold\"},[_vm._v(\" Confirmo que los datos que proporciono son veraces y corresponden a mi persona, los cuales servirán para emitir los comprobantes fiscales (CFDI). \")]),_c('li',{staticClass:\"bold\"},[_vm._v(\" Acepto que, si esta información no concuerda con la que cuenta el SAT, RedGirasol emita los comprobantes sin efectos fiscales. \")])])])],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!./ApplicantTaxProfile.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!./ApplicantTaxProfile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ApplicantTaxProfile.vue?vue&type=template&id=1d23f5f8&\"\nimport script from \"./ApplicantTaxProfile.vue?vue&type=script&lang=js&\"\nexport * from \"./ApplicantTaxProfile.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 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',[(_vm.isEdit)?_c('div',[_c('div',{staticClass:\"vx-row\"},[_c('div',{class:_vm.colClass},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"label\":\"RFC *\",\"name\":\"rfc\",\"danger\":_vm.hasError('rfc'),\"danger-text\":_vm.errorText('rfc'),\"success\":_vm.isSuccess('rfc'),\"icon-pack\":\"feather\",\"placeholder\":_vm.requiredPlaceholder},on:{\"input\":(val) => (_vm.rfc = _vm.rfc.toUpperCase())},model:{value:(_vm.rfc),callback:function ($$v) {_vm.rfc=$$v},expression:\"rfc\"}}),(!_vm.isMoral)?_c('a',{staticClass:\"inline-link-primary\",attrs:{\"target\":\"_blank\",\"rel\":\"noopener\",\"href\":_vm.$sanitizeUrl(_vm.rfcUrl)}},[_vm._v(\"Consultar mi RFC\")]):_vm._e()],1),_c('div',{class:_vm.colClass},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"label\":\"Nombre fiscal *\",\"name\":\"taxName\",\"danger\":_vm.hasError('taxName'),\"danger-text\":_vm.errorText('taxName'),\"success\":_vm.isSuccess('taxName'),\"icon-pack\":\"feather\",\"placeholder\":_vm.requiredPlaceholder},on:{\"input\":(val) => (_vm.taxName = _vm.taxName.toUpperCase())},model:{value:(_vm.taxName),callback:function ($$v) {_vm.taxName=$$v},expression:\"taxName\"}})],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{class:_vm.colClass},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],staticClass:\"w-full\",attrs:{\"label\":\"Código postal fiscal *\",\"name\":\"taxZipCode\",\"danger\":_vm.hasError('taxZipCode'),\"danger-text\":_vm.errorText('taxZipCode'),\"success\":_vm.isSuccess('taxZipCode'),\"icon-pack\":\"feather\",\"placeholder\":_vm.requiredPlaceholder},model:{value:(_vm.taxZipCode),callback:function ($$v) {_vm.taxZipCode=$$v},expression:\"taxZipCode\"}})],1),_c('div',{class:_vm.colClass},[_c('vs-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"placeholder\":\"Selecciona una opción\",\"label\":\"Régimen Fiscal *\",\"name\":\"taxRegimeId\",\"danger\":_vm.hasError('taxRegimeId'),\"danger-text\":_vm.errorText('taxRegimeId'),\"success\":_vm.isSuccess('taxRegimeId')},on:{\"input\":function($event){return _vm.setCfdis()}},model:{value:(_vm.taxRegimeId),callback:function ($$v) {_vm.taxRegimeId=$$v},expression:\"taxRegimeId\"}},_vm._l((_vm.collections.taxRegimesFiltered),function(item,index){return _c('vs-select-item',{key:index,attrs:{\"value\":item.value,\"text\":item.label}})}),1)],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{class:_vm.colClass},[_c('vs-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"placeholder\":\"Selecciona una opción\",\"label\":\"Uso de CFDI *\",\"name\":\"cfdiId\",\"danger\":_vm.hasError('cfdiId'),\"danger-text\":_vm.errorText('cfdiId'),\"success\":_vm.isSuccess('cfdiId')},model:{value:(_vm.cfdiId),callback:function ($$v) {_vm.cfdiId=$$v},expression:\"cfdiId\"}},_vm._l((_vm.collections.cfdisFiltered),function(item,index){return _c('vs-select-item',{key:index,attrs:{\"value\":item.value,\"text\":item.label}})}),1)],1),(_vm.isMoral)?_c('div',{class:_vm.colClass},[_c('vs-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"searchable\":true,\"placeholder\":\"Selecciona una opción\",\"label\":\"Régimen Capital *\",\"name\":\"capitalRegimeId\",\"danger\":_vm.hasError('capitalRegimeId'),\"danger-text\":_vm.errorText('capitalRegimeId'),\"success\":_vm.isSuccess('capitalRegimeId')},model:{value:(_vm.capitalRegimeId),callback:function ($$v) {_vm.capitalRegimeId=$$v},expression:\"capitalRegimeId\"}},[_c('vs-select-item',{attrs:{\"value\":\"0\",\"text\":\"Sin régimen capital\"}}),_vm._l((_vm.collections.allBusinessCapitalRegimes),function(item,index){return (_vm.rfc != _vm.defaultRFC)?_c('vs-select-item',{key:index,attrs:{\"value\":item.id,\"text\":`${item.name}`}}):_vm._e()})],2)],1):_vm._e(),(_vm.isMoral && _vm.efirmaRequired)?_c('div',{class:_vm.colClass},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.requiredRules),expression:\"requiredRules\"}],staticClass:\"w-full\",attrs:{\"label\":\"Número de serie de la Firma Electrónica Avanzada *\",\"name\":\"efirmaNumber\",\"danger\":_vm.hasError('efirmaNumber'),\"danger-text\":_vm.errorText('efirmaNumber'),\"success\":_vm.isSuccess('efirmaNumber'),\"icon-pack\":\"feather\",\"placeholder\":_vm.requiredPlaceholder},on:{\"input\":(val) => (_vm.efirmaNumber = _vm.efirmaNumber.toUpperCase())},model:{value:(_vm.efirmaNumber),callback:function ($$v) {_vm.efirmaNumber=$$v},expression:\"efirmaNumber\"}}),_c('a',{staticClass:\"inline-link-primary\",attrs:{\"target\":\"_blank\",\"rel\":\"noopener\",\"href\":_vm.$sanitizeUrl(_vm.efirmaUrl)}},[_vm._v(\"Consultar efirma\")])],1):_vm._e()]),(_vm.errorMssg)?_c('vs-alert',{staticClass:\"mb-5\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-alert-triangle\",\"color\":\"danger\"}},[_c('span',{staticClass:\"font-regular\"},[_vm._v(_vm._s(_vm.errorMssg))])]):_vm._e(),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.showButton)?_c('vs-button',{attrs:{\"id\":_vm.saveBtnId},on:{\"click\":_vm.saveDataForm}},[_vm._v(\"Guardar cambios\")]):_vm._e()],1)])],1):_c('div',{staticClass:\"list-info\"},[_c('div',{staticClass:\"vx-row mb-4\"},[_c('div',{staticClass:\"vx-col w-ful\"},[_c('ul',{staticClass:\"tax-profile-list\"},[_c('li',[_c('strong',[_vm._v(\"RFC:\")]),_vm._v(\" \"+_vm._s(_vm.rfc)+\" \")]),_c('li',[_c('strong',[_vm._v(\"Nombre fiscal:\")]),_vm._v(\" \"+_vm._s(_vm.taxName.toUpperCase())+\" \")]),_c('li',[_c('strong',[_vm._v(\"Código postal fiscal:\")]),_vm._v(\" \"+_vm._s(_vm.taxZipCode)+\" \")]),_c('li',[_c('strong',[_vm._v(\"Régimen fiscal:\")]),_vm._v(\" \"+_vm._s(_vm.taxRegimeNamed)+\" \")]),_c('li',[_c('strong',[_vm._v(\"Uso de CFDI:\")]),_vm._v(\" \"+_vm._s(_vm.cfdiNamed)+\" \")]),(_vm.isMoral)?_c('li',[_c('strong',[_vm._v(\"Regimen capital:\")]),_vm._v(\" \"+_vm._s(_vm.getCapitalRegime(\"name\"))+\" \")]):_vm._e(),(_vm.isMoral && _vm.efirmaRequired)?_c('li',[_c('strong',[_vm._v(\"Número de serie de la Firma Electrónica Avanzada:\")]),_vm._v(\" \"+_vm._s(_vm.efirmaNumber)+\" \")]):_vm._e()])])]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.showButton)?_c('vs-button',{staticClass:\"mt-5\",attrs:{\"id\":_vm.saveBtnId},on:{\"click\":_vm.saveDataForm}},[_vm._v(\"Guardar\")]):_vm._e()],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./UserTaxProfile.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!./UserTaxProfile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserTaxProfile.vue?vue&type=template&id=6b81a6d3&\"\nimport script from \"./UserTaxProfile.vue?vue&type=script&lang=js&\"\nexport * from \"./UserTaxProfile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UserTaxProfile.vue?vue&type=style&index=0&id=6b81a6d3&prod&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 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 * 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!./UserTaxProfile.vue?vue&type=style&index=0&id=6b81a6d3&prod&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":""}