{"version":3,"sources":["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/views/investor/profile/InvestorTaxProfile.vue","webpack:///src/views/investor/profile/InvestorTaxProfile.vue","webpack:///./src/views/investor/profile/InvestorTaxProfile.vue?5bd0","webpack:///./src/views/investor/profile/InvestorTaxProfile.vue?3fa6","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","isEdit","staticClass","class","colClass","directives","name","rawName","requiredRules","expression","attrs","hasError","errorText","isSuccess","requiredPlaceholder","on","val","rfc","model","callback","$$v","isMoral","_e","$sanitizeUrl","rfcUrl","_v","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","staticRenderFns","mixins","props","type","required","default","data","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","component","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","satUrl","components","UserTaxProfile","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":"mIAAe,QACbA,QAAS,CACPC,IAAIC,EAAOC,GAAO,EAAOC,GAAO,GAC9B,OAAY,MAATF,GAA0B,IAATA,EACX,GAGNC,EACME,KAAKC,MAAMJ,EAAOE,GAEnBA,EACCC,KAAKE,WAAWL,GAGhBA,GAGXI,MAAMJ,EAAOE,GAAO,GAClB,OAAa,MAATF,GAA0B,IAATA,EACZ,GAEFG,KAAKG,YAAYN,EAAOE,GAAMK,eAEvCD,YAAYE,EAAGN,GAAO,GACpB,IAAIO,EAAID,EAAEE,cAiBV,OAhBAD,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,WAAY,KAAK,KAC1CH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,MACnCH,EAAI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,EAAIwK,MAAME,IAAa1K,GAAO2K,GAAe3K,GAAO4K,EAE3D,OAAO,GAIXC,kBAAkBC,GAChB,GAAGA,EAAM,CACP,MAAMJ,EAAU,oMAChB,IAAI5E,EAAUgF,EAAKN,MAAME,GACzB,IAAK5E,EACH,OAAO,EAET,IAAIiF,EAAc,wCACdC,EAAU,EACVC,EAAY,EAChB,IAAK,IAAIf,EAAI,EAAGA,EAAI,GAAIA,IACtBc,GAAoBD,EAAYG,QAAQpF,EAAQ,GAAGqE,OAAOD,KAAO,GAAKA,GAExEe,EAAY,GAAKD,EAAU,GAC3B,IAAIG,EAA8B,IAAbF,EAAmBA,EAAY,EACpD,OAAOnF,EAAQ,IAAMqF,EAErB,OAAO,GAGXC,qBAAqBtN,GACnB,MAAc,KAAVA,EAAqBA,EAEhBA,EAAMW,QAAQ,iBAAkB,aAG3C4M,gBAAgBvN,GACd,OAAgB,GAATA,EAAa,SAAW,SAGjCwN,gBAAgBC,GACd,MAAMC,EAAgB,CACpB,CACE9J,GAAI,EACJ+J,IAAK,mEACLC,SAAU,iBAEZ,CACEhK,GAAI,EACJ+J,IAAK,kEACLC,SAAU,gBAEZ,CACEhK,GAAI,EACJ+J,IAAK,kEACLC,SAAU,oBAEZ,CACEhK,GAAI,EACJ+J,IAAK,kEACLC,SAAU,uBAId,GAAgB,OAAZH,EACF,OAAOC,EACF,CACL,IAAIG,EAAOH,EAAcI,KAAKC,GAAMA,EAAGnK,KAAO6J,GAC1CE,EAAM,mEAIV,OAHIE,IACFF,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-3f1a6af4.07805efe.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',[(_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&\"","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!./InvestorTaxProfile.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!./InvestorTaxProfile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InvestorTaxProfile.vue?vue&type=template&id=658c9118&\"\nimport script from \"./InvestorTaxProfile.vue?vue&type=script&lang=js&\"\nexport * from \"./InvestorTaxProfile.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":""}