{"version":3,"sources":["webpack:///./src/views/applicant/csds/CsdsPage.vue","webpack:///./src/views/applicant/csds/UploadCsds.vue","webpack:///./src/components/upload/VsButtonFile.vue","webpack:///src/components/upload/VsButtonFile.vue","webpack:///./src/components/upload/VsButtonFile.vue?dc34","webpack:///./src/components/upload/VsButtonFile.vue?d1fe","webpack:///src/views/applicant/csds/UploadCsds.vue","webpack:///./src/views/applicant/csds/UploadCsds.vue?e7eb","webpack:///./src/views/applicant/csds/UploadCsds.vue?eb78","webpack:///./src/views/applicant/csds/CsdsList.vue","webpack:///src/views/applicant/csds/CsdsList.vue","webpack:///./src/views/applicant/csds/CsdsList.vue?db9b","webpack:///./src/views/applicant/csds/CsdsList.vue?6504","webpack:///src/views/applicant/csds/CsdsPage.vue","webpack:///./src/views/applicant/csds/CsdsPage.vue?98aa","webpack:///./src/views/applicant/csds/CsdsPage.vue?6bfa","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/profile_shared/UserTaxProfile.vue?dc4d","webpack:///./src/views/applicant/csds/UploadCsds.vue?f82f","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","applicant","csds","editMode","attrs","csdForDelete","id","on","$event","onUploadedSuccessHandler","deleteCsdHandler","staticClass","_v","$sanitizeUrl","satUrl","_e","staticRenderFns","model","value","csdsForm","rfc","callback","$$v","$set","expression","readFile","privateKeyPassword","uploadCsds","openFileDialogHandler","_s","label","fileName","staticStyle","ref","acceptFileTypes","setFile","name","data","file","props","type","required","default","methods","component","components","VsButtonFile","VxUpload","certificate","privateKey","csdId","mounted","form","scopedSlots","_u","key","fn","_f","valid_from_date","expiry_date","isExpired","class","status","status_description","deleteCsd","slot","filters","toStr","formatDate","CsdsList","UploadCsds","UserTaxProfile","computed","reg","caps","trim","upper","trimSpaces","cleanTildes","toUpperCase","s","r","toLowerCase","replace","RegExp","uppercase","isEdit","colClass","directives","rawName","requiredRules","hasError","errorText","isSuccess","requiredPlaceholder","val","isMoral","rfcUrl","taxName","taxZipCode","setCfdis","taxRegimeId","_l","collections","taxRegimesFiltered","item","index","cfdiId","cfdisFiltered","capitalRegimeId","allBusinessCapitalRegimes","defaultRFC","efirmaRequired","efirmaNumber","efirmaUrl","errorMssg","showButton","saveBtnId","saveDataForm","taxRegimeNamed","cfdiNamed","getCapitalRegime","mixins","userPersonTypePF","userPersonTypePM","allTaxRegimes","allCfdis","businessCapitalRegimes","userPersonType","fiscalValidationTimestamp","taxRegimesForPersonType","taxRegime","setTimeout","cfdi_id","tax_regime_id","tax_zipcode","tax_name","capital_regime_id","efirma_required","efirma_number","complete","console","getCfdis","format_price","decimales","toFixed","toString","costFormat","costFormatNoCents","prcgFormat","decimalsFormat","explicitMoneyFormat","mxnFormat","parseInt","moneyFormat","decimalPercentFormat","roundedFormat","c","cd","Math","round","phoneFormat","substr","phoneFormatV2","visibleLastNChars","chars","valueString","length","phoneLength","firstChars","repeat","last4Digits","slice","visibleOnlyLastNChars","capitalizeFirstLetter","arr","split","i","charAt","join","isValidRfcFormat","patternPM","patternPF","match","isValidRfcFormatByPersonType","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","isValid","diccionario","lngSuma","lngDigito","indexOf","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,UAAWF,EAAG,MAAM,CAAyB,OAAvBF,EAAII,UAAUC,MAAiBL,EAAIM,SAAUJ,EAAG,cAAc,CAACK,MAAM,CAAC,UAA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,SACA,kCACA,4CACA,4DACA,WACA,2CACAuF,sBACAC,iBAEA,6CACAD,sBACAC,oBAGAD,cACA,0CACAhH,WACAY,uCAGA,YAEA,8BACA,IACA,qEACA,uCACA,oBACA,6BACA,mCACA,sCACA,kEAGA,eACA,8CACA,wCAGA,mEACA,8BAEA,sBACA,gBACA,2BAEA,SACA,oFAGA,qBAEA,GADA,2BACA,oBACA,OAEA,sCACA,MAGA,OAFA,mEACAsG,wCAGA,gDACA,IACA,OACAhH,aACAiH,oBACAC,+BACAC,4BACAC,sBACAC,uCACAC,oCACAC,iCAYA,SATA,2DACA,qBACA,8BACA,gBACA,wBAEA,uHAEA,8BACA,gBACA,SAEA,SACA,uDACA,qBACA,uDAGA,qBACA,kGAIA,qBACA,oBACA,SAqBA,OApBA,+BACA,sGACA,sDACA,aACA,6BACAC,MACA,sEACAA,OAIAA,MAIA,IACA,kDACAR,yCAEAS,eACA,GAEAzC,WACA,iBACA,sEACA,oBACA,IAGA,kCACA,sCACA,oCACA,qCACAlF,WACAY,yCAQAgH,WACA,IACA,oBACA,yBACA,wEACA,uDACA,oCACA,qBAEA,OADA,mDACA,IAGA,SACAD,iBAGApB,oBACA,IACA,wFACA,YACA,SACAoB,iBAGAlD,YACA,2BAEAC,aACA,6BAEAC,aACA,qBACA,iCCrYuW,I,wBCQnWjD,EAAY,eACd,EACAhD,EACAoB,GACA,EACA,KACA,KACA,MAIa,OAAA4B,E,2CCnBf,W,2DCAA,W,kCCAe,QACbD,QAAS,CACPoG,aAAa7H,EAAO8H,EAAY,GAC9B,IAAIjD,GAAO7E,EAAQ,GAAG+H,QAAQD,GAAW7D,QAAQ,IAAK,KACtD,OAAOY,EAAImD,WAAW/D,QAAQ,wBAAyB,MAEzDgE,WAAWjI,GACT,OAAKA,EACQ,aAATA,EAA+BA,EAE1B,IAAMpB,KAAKiJ,aAAa7H,EAAO,GAHnB,MAMvBkI,kBAAkBlI,GAChB,OAAKA,EACS,cAAVA,EAAgCA,EACxB,IAAMp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,EAA8B,IAAbF,EAAmBA,EAAY,EACpD,OAAOH,EAAQ,IAAMK,EAErB,OAAO,GAGXC,qBAAqBlL,GACnB,MAAc,KAAVA,EAAqBA,EAEhBA,EAAMiE,QAAQ,iBAAkB,aAG3CkH,gBAAgBnL,GACd,OAAgB,GAATA,EAAa,SAAW,SAGjCoL,gBAAgBC,GACd,MAAMC,EAAgB,CACpB,CACElM,GAAI,EACJmM,IAAK,mEACLC,SAAU,iBAEZ,CACEpM,GAAI,EACJmM,IAAK,kEACLC,SAAU,gBAEZ,CACEpM,GAAI,EACJmM,IAAK,kEACLC,SAAU,oBAEZ,CACEpM,GAAI,EACJmM,IAAK,kEACLC,SAAU,uBAId,GAAgB,OAAZH,EACF,OAAOC,EACF,CACL,IAAIG,EAAOH,EAAcI,KAAKC,GAAMA,EAAGvM,KAAOiM,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-7302659d.1b4a4151.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.applicant)?_c('div',[(_vm.applicant.csds === null || _vm.editMode)?_c('upload-csds',{attrs:{\"applicant\":_vm.applicant,\"editMode\":_vm.editMode,\"csd-id\":_vm.csdForDelete.id},on:{\"update:editMode\":function($event){_vm.editMode=$event},\"update:edit-mode\":function($event){_vm.editMode=$event},\"onUploadedSuccess\":_vm.onUploadedSuccessHandler}}):_c('csds-list',{attrs:{\"csds\":_vm.applicant.csds},on:{\"onDelete\":_vm.deleteCsdHandler}}),_c('vx-card',{staticClass:\"mt-6 mb-6\",attrs:{\"title\":\"Perfil fiscal.\",\"card-background\":\"dark\",\"title-color\":\"white\",\"content-color\":\"white\"}},[_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)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',{attrs:{\"title\":\"Carga de Csd\"}},[_c('form',{attrs:{\"method\":\"POST\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-full w-full\"},[_c('vs-input',{staticClass:\"w-full mb-3\",attrs:{\"label\":\"RFC\",\"type\":\"text\",\"name\":\"rfc\",\"disabled\":\"\"},model:{value:(_vm.csdsForm.rfc),callback:function ($$v) {_vm.$set(_vm.csdsForm, \"rfc\", $$v)},expression:\"csdsForm.rfc\"}}),_c('vs-button-file',{staticClass:\"w-full mb-3\",attrs:{\"accept-file-types\":'application/x-x509-ca-cert',\"label\":\"Seleccionar certificado\"},on:{\"onChange\":function($event){return _vm.readFile($event, 'certificate')}}})],1),_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-full w-full\"},[_c('vs-input',{staticClass:\"w-full mb-3\",attrs:{\"label\":\"Contraseña de llave privada\",\"type\":\"password\",\"name\":\"private_key_password\"},model:{value:(_vm.csdsForm.privateKeyPassword),callback:function ($$v) {_vm.$set(_vm.csdsForm, \"privateKeyPassword\", $$v)},expression:\"csdsForm.privateKeyPassword\"}}),_c('vs-button-file',{staticClass:\"w-full mb-3\",attrs:{\"accept-file-types\":'.key',\"label\":\"Seleccionar llave privada\"},on:{\"onChange\":function($event){return _vm.readFile($event, 'privateKey')}}})],1)]),_c('div',{staticClass:\"vx-row mt-2\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-4 text-justify\"},[_vm._v(\" El usuario se atiene a los \"),_c('a',{attrs:{\"href\":\"https://app.facturama.mx/Content/docs/facturama-terminos-y-condiciones-del-servicio.pdf\"}},[_vm._v(\"términos y condiciones\")]),_vm._v(\" de EXPRESIÓN EN SOFTWARE, S.A.P.I. DE C.V. (conocida comercialmente como FACTURAMA). Red Girasol, S.A.P.I. de C.V. no asume responsabilidad alguna por los servicios prestados por terceros, incluyendo Facturama, ni por el manejo de los datos proporcionados a dichos terceros. El usuario reconoce que Red Girasol, S.A.P.I. de C.V. no está autorizado por el Servicio de Administración Tributaria para actuar como Proveedor Autorizado de Certificación (PAC), ni tampoco presta asesoría legal ni fiscal. Cada usuario deberá consultar a sus asesores respecto a la manera correcta de emitir comprobantes fiscales digitales por Internet que, en su caso, correspondan a las actividades realizadas o ingresos percibidos por cada contribuyente. \")])])]),_c('vs-button',{on:{\"click\":_vm.uploadCsds}},[_vm._v(\" Subir \")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vs-button',{staticClass:\"w-full\",on:{\"click\":function($event){return _vm.openFileDialogHandler()}}},[_c('feather-icon',{attrs:{\"icon\":\"UploadCloudIcon\",\"svgClasses\":\"h-5 w-5 stroke-current\"}}),_vm._v(\" \"+_vm._s(_vm.label)+\" \")],1),(_vm.fileName)?_c('div',{staticClass:\"ml-2\",staticStyle:{\"width\":\"400px\"}},[_vm._v(_vm._s(_vm.fileName))]):_vm._e(),_c('input',{ref:\"fileInput\",staticStyle:{\"display\":\"none\"},attrs:{\"accept\":_vm.acceptFileTypes,\"type\":\"file\",\"name\":\"private_key\"},on:{\"change\":_vm.setFile}})],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!./VsButtonFile.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!./VsButtonFile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VsButtonFile.vue?vue&type=template&id=39f7fc76&scoped=true&\"\nimport script from \"./VsButtonFile.vue?vue&type=script&lang=js&\"\nexport * from \"./VsButtonFile.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 \"39f7fc76\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadCsds.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!./UploadCsds.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UploadCsds.vue?vue&type=template&id=a087be20&scoped=true&\"\nimport script from \"./UploadCsds.vue?vue&type=script&lang=js&\"\nexport * from \"./UploadCsds.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UploadCsds.vue?vue&type=style&index=0&id=a087be20&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a087be20\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',{attrs:{\"title\":\"Certificados CsDs.\"}},[_c('vs-table',{attrs:{\"data\":[{}]},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return [_c('vs-tr',[_c('vs-td',[_vm._v(_vm._s(_vm.csds.rfc))]),_c('vs-td',[_vm._v(_vm._s(_vm._f(\"formatDate\")(_vm.csds.valid_from_date)))]),_c('vs-td',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"formatDate\")(_vm.csds.expiry_date))+\" \"),(_vm.isExpired(_vm.csds.expiry_date))?[_c('br'),_c('small',{staticClass:\"text-danger\"},[_vm._v(\" Certificado vencido \")])]:_vm._e()],2)]),_c('vs-td',[_c('span',{class:{\n 'text-warning': _vm.csds.status === 'pending_validation',\n 'text-success': _vm.csds.status === 'validated',\n 'text-danger': _vm.csds.status === 'error',\n }},[_vm._v(_vm._s(_vm._f(\"toStr\")(_vm.csds.status)))])]),_c('vs-td',[_vm._v(_vm._s(_vm.csds.status_description === null ? 'Sin comentarios' : _vm.csds.status_description))]),_c('vs-td',[_c('vs-button',{attrs:{\"disabled\":_vm.csds.status === 'validated' && !_vm.isExpired(_vm.csds.expiry_date)},on:{\"click\":function($event){return _vm.deleteCsd(_vm.csds)}}},[_vm._v(\" Editar \")])],1)],1)]}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',[_vm._v(\"RFC\")]),_c('vs-th',[_vm._v(\"FECHA DE GENERACIÓN\")]),_c('vs-th',[_vm._v(\"FECHA DE EXPIRACIÓN\")]),_c('vs-th',[_vm._v(\"ESTADO\")]),_c('vs-th',[_vm._v(\"COMENTARIOS\")]),_c('vs-th',[_vm._v(\"ACCIONES\")])],1)],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsdsList.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!./CsdsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CsdsList.vue?vue&type=template&id=d9f5472c&scoped=true&\"\nimport script from \"./CsdsList.vue?vue&type=script&lang=js&\"\nexport * from \"./CsdsList.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 \"d9f5472c\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsdsPage.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!./CsdsPage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CsdsPage.vue?vue&type=template&id=beb45aea&scoped=true&\"\nimport script from \"./CsdsPage.vue?vue&type=script&lang=js&\"\nexport * from \"./CsdsPage.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 \"beb45aea\",\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","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 * 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!./UploadCsds.vue?vue&type=style&index=0&id=a087be20&prod&scoped=true&lang=css&\"","export default {\n methods: {\n format_price(value, decimales = 0) {\n let val = (value / 1).toFixed(decimales).replace(\",\", \".\");\n return val.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n },\n costFormat(value) {\n if (!value) { return \"$0\"; }\n if (value == \"Pendiente\") { return value; }\n else {\n return \"$\" + this.format_price(value, 2);\n }\n },\n costFormatNoCents(value) {\n if (!value) { return \"$0\"; }\n if (value === \"Pendiente\") { return value; }\n else return \"$\" + this.format_price(value);\n },\n prcgFormat(value, decimales = 0) {\n if (!value) { return \"0%\"; }\n if (value == \"Pendiente\") { return value; }\n else { return value.toFixed(decimales) + \"%\"; }\n },\n decimalsFormat(value, decimales = 0) {\n if (!value) { return 0; }\n if (value == \"Pendiente\") { return 0; }\n else { return value.toFixed(decimales); }\n },\n explicitMoneyFormat(value, decimales = 2) {\n if (value == null) return \"\";\n else {\n return \"$\" + this.format_price(value, decimales);\n }\n },\n mxnFormat(value, decimales = 0) {\n if (!value) { return \"$0MXN\"; }\n else {\n return \"$\" + this.format_price(parseInt(value), decimales) + \" MXN\";\n }\n },\n moneyFormat(value) {\n if (!value) { return \"$0\"; }\n else {\n return \"$\" + this.format_price(parseInt(value), 0);\n }\n },\n decimalPercentFormat(value, decimales = 2) {\n if (!value) return \"0%\";\n else {\n return (value * 100).toFixed(decimales) + \"%\";\n }\n },\n roundedFormat(value, decimales = 2) {\n if (!value) { return 0; }\n else {\n let c = value.toFixed(decimales);\n let cd = Math.round(c);\n return cd.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n }\n },\n phoneFormat(value) {\n if (!value) return value\n else {\n return '(' + value.substr(0, 2) + ') ' + value.substr(2, 4) + '-' + value.substr(6, 4)\n }\n },\n phoneFormatV2(value) {\n if (!value) return value\n else {\n return '(' + value.substr(0, 3) + ') ' + value.substr(2, 3) + ' ' + value.substr(6, 4)\n }\n },\n visibleLastNChars(value, chars = 4) {\n if (!value) return value\n else {\n let valueString = value.toString();\n if (chars > valueString.length || chars < 0) return value\n else {\n let phoneLength = valueString.length;\n const firstChars = \"*\".repeat(phoneLength - chars);\n const last4Digits = valueString.slice(firstChars.length);\n return firstChars + last4Digits;\n }\n }\n },\n visibleOnlyLastNChars(value, chars = 4) {\n if (!value) return value\n else {\n let valueString = value.toString();\n if (chars > valueString.length || chars < 0) return value\n else {\n return valueString.slice(-4);\n }\n }\n },\n capitalizeFirstLetter(value) {\n if (!value) return value\n else {\n const arr = value.split(\" \");\n for (let i = 0; i < arr.length; i++) {\n arr[i] = arr[i].charAt(0).toUpperCase() + arr[i].slice(1);\n\n }\n\n return arr.join(\" \");\n }\n },\n //Función para validar un RFC\n isValidRfcFormat(rfc) {\n if(rfc) {\n const patternPM = \"^(([A-ZÑ&]{3})([0-9]{2})([0][13578]|[1][02])(([0][1-9]|[12][\\\\d])|[3][01])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([0-9]{2})([0][13456789]|[1][012])(([0][1-9]|[12][\\\\d])|[3][0])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([02468][048]|[13579][26])[0][2]([0][1-9]|[12][\\\\d])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{3})([0-9]{2})[0][2]([0][1-9]|[1][0-9]|[2][0-8])([A-Z0-9]{3}))$\";\n const patternPF = \"^(([A-ZÑ&]{4})([0-9]{2})([0][13578]|[1][02])(([0][1-9]|[12][\\\\d])|[3][01])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([0-9]{2})([0][13456789]|[1][012])(([0][1-9]|[12][\\\\d])|[3][0])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([02468][048]|[13579][26])[0][2]([0][1-9]|[12][\\\\d])([A-Z0-9]{3}))|\" +\n \"(([A-ZÑ&]{4})([0-9]{2})[0][2]([0][1-9]|[1][0-9]|[2][0-8])([A-Z0-9]{3}))$\";\n return rfc.match(patternPM) || rfc.match(patternPF);\n } else {\n return false;\n }\n },\n //Función para validar un RFC por tipo de persona\n isValidRfcFormatByPersonType(rfc, isMoral) {\n if(rfc) {\n // Formato para PF\n let pattern = /^[A-Z]{4}(\\d{2})((0[13578]|1[02])([0-2]\\d|3[01])|(0[469]|11)([0-2]\\d|30)|(02)([0-2]\\d))([A-Z0-9]{3})$/;\n let genericRFC1 = \"XAXX010101000\";\n let genericRFC2 = \"XEXX010101000\";\n if(isMoral) {\n // Formato para PM\n pattern = /^[A-Z]{3}(\\d{2})((0[13578]|1[02])([0-2]\\d|3[01])|(0[469]|11)([0-2]\\d|30)|(02)([0-2]\\d))([A-Z0-9]{3})$/;\n }\n\n return rfc.match(pattern) && rfc != genericRFC1 && rfc != genericRFC2;\n } else {\n return false;\n }\n },\n //Función para validar una CURP\n isValidCurpFormat(curp) {\n if(curp) {\n const pattern = /^([A-Z][AEIOUX][A-Z]{2}\\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\\d])(\\d)$/;\n let isValid = curp.match(pattern);\n if (!isValid) //Coincide con el formato general?\n return false;\n //Fuente https://consultas.curp.gob.mx/CurpSP/\n let diccionario = \"0123456789ABCDEFGHIJKLMNÑOPQRSTUVWXYZ\";\n let lngSuma = 0.0;\n let lngDigito = 0.0;\n for (let i = 0; i < 17; i++) {\n lngSuma = lngSuma + diccionario.indexOf(isValid[1].charAt(i)) * (18 - i);\n }\n lngDigito = 10 - lngSuma % 10;\n let verifierDigit = (lngDigito != 10) ? lngDigito : 0;\n return isValid[2] == verifierDigit;\n } else {\n return false;\n }\n },\n anonymousFormatPhone(value){\n if (value === \"\") return value\n else {\n return value.replace(/^(?:\\D*\\d){8}/g, \"********\");\n }\n },\n genderTranslate(value) {\n return value == 1 ? \"Hombre\" : \"Mujer\";\n },\n //Función para obtener el icono del tipo de proyecto o todos con el param 'all'\n getLoanTypeIcon(loanType) {\n const loanTypeIcons = [\n {\n id: 1,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-solar.png\",\n filename: \"Crédito Solar\"\n },\n {\n id: 4,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-pyme.png\",\n filename: \"Crédito PyME\"\n },\n {\n id: 5,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-pers.png\",\n filename: \"Crédito Personal\"\n },\n {\n id: 6,\n url: \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-auto.png\",\n filename: \"Crédito Automotriz\"\n }\n ];\n\n if (loanType == \"all\") {\n return loanTypeIcons;\n } else {\n let icon = loanTypeIcons.find(lt => lt.id === loanType);\n let url = \"https://cdn.redgirasol.com/nuevo_portal/icons/icon-inv-solar.png\";\n if (icon) {\n url = icon.url;\n }\n return url;\n }\n },\n getAmountWithNoCommissionTax(amount){\n if (amount <= 0) {\n return 0;\n }\n const processingAdministrationCommission = .02;\n const mexicoTaxIva = .16;\n let commissionWithTaxPercentage = processingAdministrationCommission*mexicoTaxIva;\n let percentage = (1+processingAdministrationCommission+commissionWithTaxPercentage);\n let amountNoCommision = amount/percentage;\n return amountNoCommision;\n }\n }\n}"],"sourceRoot":""}