{"version":3,"sources":["webpack:///./src/components/investor/widgets/AutomaticInvestmentDisclaimer.vue","webpack:///src/components/investor/widgets/AutomaticInvestmentDisclaimer.vue","webpack:///./src/components/investor/widgets/AutomaticInvestmentDisclaimer.vue?f510","webpack:///./src/components/investor/widgets/AutomaticInvestmentDisclaimer.vue?efc6","webpack:///./src/views/investor/investments/PassiveIncome.vue","webpack:///src/views/investor/investments/PassiveIncome.vue","webpack:///./src/views/investor/investments/PassiveIncome.vue?503d","webpack:///./src/views/investor/investments/PassiveIncome.vue?4d21","webpack:///./node_modules/v-money/dist/v-money.js","webpack:///./src/components/mixins/stpHelper.js","webpack:///./src/components/mixins/currencyHelper.js","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","staticRenderFns","name","data","component","isMounted","directives","rawName","value","money","expression","model","fixedInvestmentMoney","callback","$$v","isFixedInvestmentValid","staticStyle","explicitMoneyFormat","user","total_portfolio","requestedFixedInvestment","excessAmount","missingAmount","_s","stpClabe","complete_name","missingMonths","on","backToMain","$event","stopPropagation","activateInvestmentPlan","apply","arguments","_e","mixins","components","AutomaticInvestmentDisclaimer","decimal","thousands","prefix","suffix","precision","masked","computed","netYield","methods","getBaseLog","investment_plan","min_fixed_investment_portfolio","errorMssg","e","t","module","exports","r","n","i","l","call","m","c","d","o","Object","defineProperty","configurable","enumerable","get","__esModule","default","prototype","hasOwnProperty","p","s","a","u","tagName","toLocaleUpperCase","getElementsByTagName","length","oninput","selectionEnd","Math","max","b","dispatchEvent","onfocus","toFixed","indexOf","split","f","parseFloat","replace","min","pow","toString","setSelectionRange","document","activeElement","setTimeout","createEvent","initEvent","keys","map","directive","window","Vue","use","props","required","type","Number","String","Boolean","formattedValue","watch","immediate","handler","$props","change","$emit","target","concat","reduce","options","_scopeId","forEach","esModule","$createElement","domProps","investor_id","g","getInvestorAccount","account","undefined","nacc","createInvestorAccount","status","stp_clabe","url","response","axios","error","post","sleepPromise","ms","Promise","resolve","supplier_id","getSupplierAccount","applicantId","console","log","unMoneyFormat","str","val","unCurrencyFormat","currencyFormat","decimales","liveCostFormatNoCents","vv","format_price","costFormat","costFormatNoCents","prcgFormat","decimalsFormat","mxnFormat","parseInt","moneyFormat","decimalPercentFormat","roundedFormat","cd","round","phoneFormat","substr","phoneFormatV2","visibleLastNChars","chars","valueString","phoneLength","firstChars","repeat","last4Digits","slice","visibleOnlyLastNChars","capitalizeFirstLetter","arr","charAt","toUpperCase","join","isValidRfcFormat","rfc","patternPM","patternPF","match","isValidRfcFormatByPersonType","isMoral","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","isValid","diccionario","lngSuma","lngDigito","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","id","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,eAAe,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAO,WAAW,WAAa,0BAA0BH,EAAG,OAAO,CAACE,YAAY,oBAAoB,CAACJ,EAAIM,GAAG,wMAA0MJ,EAAG,MAAMF,EAAIM,GAAG,eAAeJ,EAAG,IAAI,CAACE,YAAY,iBAAiBC,MAAM,CAAC,KAAO,qIAAqI,OAAS,UAAU,CAACL,EAAIM,GAAG,cAAc,UAE7yBC,EAAkB,GCiBtB,GACAC,qCACAC,OACA,WCtBqY,I,YCOjYC,EAAY,eACd,EACAX,EACAQ,GACA,EACA,KACA,KACA,MAIa,OAAAG,E,kDClBf,IAAIX,EAAS,WAAkB,IAAIC,EAAI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-51a06375.1391c166.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',{staticClass:\"mt-5\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex\"},[_c('feather-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"InfoIcon\",\"svgClasses\":\"w-8 h-8 text-primary\"}}),_c('span',{staticClass:\"bold mt-1 italic\"},[_vm._v(\" El algoritmo que distribuye los fondos de la inversión automática busca maximizar la diversificación del portafolio, de tal manera que se alcance un punto óptimo de la relación \\\"riesgo-retorno\\\". \"),_c('br'),_vm._v(\"Conoce más \"),_c('a',{staticClass:\"underline bold\",attrs:{\"href\":\"https://soporte.redgirasol.com/support/solutions/articles/48001246946--c%C3%B3mo-funciona-el-algoritmo-de-la-inversion-automatica-\",\"target\":\"blank\"}},[_vm._v(\"aquí.\")])])],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!./AutomaticInvestmentDisclaimer.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!./AutomaticInvestmentDisclaimer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AutomaticInvestmentDisclaimer.vue?vue&type=template&id=7b287d59&\"\nimport script from \"./AutomaticInvestmentDisclaimer.vue?vue&type=script&lang=js&\"\nexport * from \"./AutomaticInvestmentDisclaimer.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","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isMounted)?_c('div',[_c('big-title',[_vm._v(\" Activar Ingreso \"),_c('span',[_vm._v(\"Pasivo\")]),_vm._v(\". \")]),_c('vx-card',{attrs:{\"title\":\"\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('h2',[_vm._v(\"Confirmar tu monto de inversión efectiva\")]),_c('p',[_vm._v(\" Determina el monto que deseas mantener como inversión efectiva, es decir, generando intereses (ingreso pasivo). \")])])]),[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full md:w-1/3 lg:w-1/4\"},[_c('div',{staticClass:\"vx-row mt-4\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"bold\"},[_vm._v(\"Inversión efectiva total\")])])]),_c('div',{staticClass:\"vx-row mt-2\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-input',{directives:[{name:\"money\",rawName:\"v-money\",value:(_vm.money),expression:\"money\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"investment-input w-full\",attrs:{\"type\":\"text\",\"name\":\"fixedInvestmentMoney\",\"min\":500,\"icon-pack\":\"feather\",\"icon\":\"icon-dollar-sign\",\"autocomplete\":\"off\",\"placeholder\":\"Monto a invertir\"},model:{value:(_vm.fixedInvestmentMoney),callback:function ($$v) {_vm.fixedInvestmentMoney=$$v},expression:\"fixedInvestmentMoney\"}})],1)])])]),(!_vm.isFixedInvestmentValid)?_c('div',{staticClass:\"vx-row mt-6 ml-1 mr-1\",staticStyle:{\"background-color\":\"#F1F1F2\"}},[_c('div',{staticClass:\"vx-col xxl:w-1/4 w-full mt-3 mb-3\"},[_c('vs-list',[_c('vs-list-header',{attrs:{\"title\":\"Inversión efectiva\"}}),_c('vs-list-item',{attrs:{\"title\":\"Actual:\",\"subtitle\":_vm.explicitMoneyFormat(this.user.total_portfolio, 0)}}),_c('vs-list-item',{attrs:{\"title\":\"Determinada:\",\"subtitle\":_vm.requestedFixedInvestment}}),_c('vs-list-item',{attrs:{\"title\":\"Faltante:\",\"subtitle\":_vm.explicitMoneyFormat(_vm.missingAmount, 0)}},[_c('feather-icon',{attrs:{\"icon\":\"AlertTriangleIcon\",\"svgClasses\":\"w-6 h-6 text-warning\"}})],1)],1)],1),_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full mt-3 mb-3\"},[_c('div',{staticClass:\"vx-row mt-5\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex\"},[_c('feather-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"AlertTriangleIcon\",\"svgClasses\":\"w-6 h-6 text-warning\"}}),_c('span',{staticClass:\"bold mt-1\"},[_vm._v(\"Existen dos maneras de alcanzar tu inversión efectiva determinada:\")])],1)])]),_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col xxl:w-1/2 w-full\"},[_c('h5',[_vm._v(\"Abona fondos\")]),_c('p',[_vm._v(\" Deposita \"+_vm._s(_vm.explicitMoneyFormat(_vm.missingAmount, 0))+\" (la diferencia) para alcanzar la inversión efectiva determinada.\"),_c('br'),_c('br'),_vm._v(\" Datos para depósito:\"),_c('br'),_vm._v(\" Banco: STP (Sistema de Transferencias y Pagos)\"),_c('br'),_vm._v(\" CLABE: \"+_vm._s(_vm.stpClabe)),_c('br'),_vm._v(\" Beneficiario: \"+_vm._s(_vm.user.complete_name)),_c('br'),_vm._v(\" Método de transferencia: SPEI\"),_c('br')])]),_c('div',{staticClass:\"vx-col xxl:w-1/2 w-full\"},[_c('h5',[_vm._v(\"Reinvierte pagos\")]),_c('p',[_vm._v(\" En caso de que ya tengas alguna inversión en tu cuenta, todos los pagos que recibas se reinvertirán automáticamente, hasta que tu inversión efectiva sea igual a la determinada. \"),_c('br'),_c('br'),_c('b',[_vm._v(\"De acuerdo con tu inversión actual, te tomaría aproximadamente \"+_vm._s(_vm.missingMonths)+\" meses alcanzar tu inversión efectiva determinada.\")])])])])])]):_c('div',{staticClass:\"vx-row mt-6 ml-1 mr-1\",staticStyle:{\"background-color\":\"#F1F1F2\"}},[_c('div',{staticClass:\"vx-col xxl:w-1/4 w-full mt-3 mb-3\"},[_c('vs-list',[_c('vs-list-header',{attrs:{\"title\":\"Inversión efectiva\"}}),_c('vs-list-item',{attrs:{\"title\":\"Actual:\",\"subtitle\":_vm.explicitMoneyFormat(this.user.total_portfolio, 0)}}),_c('vs-list-item',{attrs:{\"title\":\"Determinada:\",\"subtitle\":_vm.requestedFixedInvestment}}),_c('vs-list-item',{attrs:{\"title\":\"Excedente:\",\"subtitle\":_vm.explicitMoneyFormat(_vm.excessAmount, 0)}})],1)],1),_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full mt-3 mb-3\"},[_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col w-full mt-base text-center\"},[_c('h5',[_vm._v(\"¡Felicidades!\")]),_c('p',[_vm._v(\" Tu cuenta ya tiene la inversión efectiva requerida para comenzar a generar ingresos pasivos \")])])])])]),_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex\"},[_c('vs-button',{staticClass:\"mt-6\",attrs:{\"type\":\"border\"},on:{\"click\":_vm.backToMain}},[_vm._v(\"Atrás\")]),_c('vs-button',{staticClass:\"ml-3 mt-6\",on:{\"click\":function($event){$event.stopPropagation();return _vm.activateInvestmentPlan.apply(null, arguments)}}},[_vm._v(\"Confirmar monto\")])],1)])])]],2),_c('automatic-investment-disclaimer')],1):_vm._e()\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!./PassiveIncome.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!./PassiveIncome.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PassiveIncome.vue?vue&type=template&id=034e188f&\"\nimport script from \"./PassiveIncome.vue?vue&type=script&lang=js&\"\nexport * from \"./PassiveIncome.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","(function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.VMoney=t():e.VMoney=t()})(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\".\",t(t.s=9)}([function(e,t,n){\"use strict\";t.a={prefix:\"\",suffix:\"\",thousands:\",\",decimal:\".\",precision:2}},function(e,t,n){\"use strict\";var r=n(2),i=n(5),u=n(0);t.a=function(e,t){if(t.value){var o=n.i(i.a)(u.a,t.value);if(\"INPUT\"!==e.tagName.toLocaleUpperCase()){var a=e.getElementsByTagName(\"input\");1!==a.length||(e=a[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(r.a)(e.value,o),t=Math.max(t,o.suffix.length),t=e.value.length-t,t=Math.max(t,o.prefix.length+1),n.i(r.b)(e,t),e.dispatchEvent(n.i(r.c)(\"change\"))},e.onfocus=function(){n.i(r.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(r.c)(\"input\"))}}},function(e,t,n){\"use strict\";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.a;\"number\"==typeof e&&(e=e.toFixed(o(t.precision)));var n=e.indexOf(\"-\")>=0?\"-\":\"\",r=u(e),i=c(r,t.precision),a=d(i).split(\".\"),p=a[0],l=a[1];return p=f(p,t.thousands),t.prefix+n+s(p,l,t.decimal)+t.suffix}function i(e,t){var n=e.indexOf(\"-\")>=0?-1:1,r=u(e),i=c(r,t);return parseFloat(i)*n}function u(e){return d(e).replace(/\\D+/g,\"\")||\"0\"}function o(e){return a(0,e,20)}function a(e,t,n){return Math.max(e,Math.min(t,n))}function c(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(o(t))}function f(e,t){return e.replace(/(\\d)(?=(?:\\d{3})+\\b)/gm,\"$1\"+t)}function s(e,t,n){return t?e+n+t:e}function d(e){return e?e.toString():\"\"}function p(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function l(e){var t=document.createEvent(\"Event\");return t.initEvent(e,!0,!0),t}var m=n(0);n.d(t,\"a\",function(){return r}),n.d(t,\"d\",function(){return i}),n.d(t,\"b\",function(){return p}),n.d(t,\"c\",function(){return l})},function(e,t,n){\"use strict\";function r(e,t){t&&Object.keys(t).map(function(e){a.a[e]=t[e]}),e.directive(\"money\",o.a),e.component(\"money\",u.a)}Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(6),u=n.n(i),o=n(1),a=n(0);n.d(t,\"Money\",function(){return u.a}),n.d(t,\"VMoney\",function(){return o.a}),n.d(t,\"options\",function(){return a.a}),n.d(t,\"VERSION\",function(){return c});var c=\"0.8.1\";t.default=r,\"undefined\"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(0),u=n(2);t.default={name:\"Money\",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return i.a.precision}},decimal:{type:String,default:function(){return i.a.decimal}},thousands:{type:String,default:function(){return i.a.thousands}},prefix:{type:String,default:function(){return i.a.prefix}},suffix:{type:String,default:function(){return i.a.suffix}}},directives:{money:r.a},data:function(){return{formattedValue:\"\"}},watch:{value:{immediate:!0,handler:function(e,t){var r=n.i(u.a)(e,this.$props);r!==this.formattedValue&&(this.formattedValue=r)}}},methods:{change:function(e){this.$emit(\"input\",this.masked?e.target.value:n.i(u.d)(e.target.value,this.precision))}}}},function(e,t,n){\"use strict\";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce(function(n,r){return n[r]=void 0===t[r]?e[r]:t[r],n},{})}},function(e,t,n){var r=n(7)(n(4),n(8),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,u=e=e||{},o=typeof e.default;\"object\"!==o&&\"function\"!==o||(i=e,u=e.default);var a=\"function\"==typeof u?u.options:u;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),n&&(a._scopeId=n),r){var c=a.computed||(a.computed={});Object.keys(r).forEach(function(e){var t=r[e];c[e]=function(){return t}})}return{esModule:i,exports:u,options:a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(\"input\",{directives:[{name:\"money\",rawName:\"v-money\",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:\"{precision, decimal, thousands, prefix, suffix}\"}],staticClass:\"v-money\",attrs:{type:\"tel\"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])});","export default {\n methods: {\n async checkOrCreateInvestorAccount(investor_id){\n let g = await this.getInvestorAccount(investor_id);\n\n if(g === false){\n return null;\n }\n\n let account = null;\n\n // verificar si hay cuentas ligadas al inversionista\n if (g === undefined || g === null) {\n // no hay cuentas de STP ligadas al inversionista, se solicita la creacion\n let nacc = await this.createInvestorAccount(investor_id);\n if(nacc === false){\n return null;\n }\n else {\n account = nacc;\n }\n }\n else {\n account = g;\n }\n\n // se verifica si la cuenta esta en estatus created\n if(account.status === \"created\"){\n return account.stp_clabe;\n }\n else{\n // se retorna null para utilizar openpay\n return null;\n }\n },\n async getInvestorAccount(investor_id) {\n let url = `/api/stp/v1/account/investorId/${investor_id}`;\n try {\n let response = await axios.get(url);\n return response.data;\n } catch (error) {\n return false;\n }\n },\n async getInvestorAccountStpClabe(investor_id){\n let account = await this.getInvestorAccount(investor_id);\n if(account === false || account === undefined || account === null){\n return null;\n }\n // se verifica si la cuenta esta en estatus created\n if(account.status === \"created\"){\n return account.stp_clabe;\n }\n else{\n return null;\n }\n },\n async createInvestorAccount(investor_id) {\n let url = `/api/stp/v1/account/investorId/${investor_id}`;\n try {\n const response = await axios.post(url, {});\n const account = response.data;\n if(account.stp_clabe){\n // si la creacion de la cuenta es correcta, se hace un timeout\n // de 7 segundos para dar tiempo a la activación\n await (async() => {\n await this.sleepPromise(7000);\n })();\n\n // solicitar la informacion de la cuenta de nuevo\n // despues del timeout\n let g = await this.getInvestorAccount(investor_id);\n if(g !== false && g !== null){\n return g;\n }\n }\n // se retorna false en caso de fallo\n return false;\n } catch (error) {\n return false;\n }\n },\n sleepPromise(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n // #region supplier\n async getSupplierAccount(supplier_id) {\n let url = `/api/stp/v1/account/supplierId/${supplier_id}`;\n try {\n let response = await axios.get(url);\n return response.data;\n } catch (error) {\n return false;\n }\n },\n async getSupplierAccountStpClabe(supplier_id){\n let account = await this.getSupplierAccount(supplier_id);\n if(account === false || account === undefined || account === null){\n return null;\n }\n // se verifica si la cuenta esta en estatus created\n if(account.status === \"created\"){\n return account.stp_clabe;\n }\n else{\n return null;\n }\n },\n\n // #endregion\n\n //#region applicant \n async createStpAccount(applicantId) {\n try {\n await axios.post(`/api/stp/v1/account/applicantId/${applicantId}`, {})\n } catch (error) {\n console.log(\"Error creating STP account for applicant\");\n }\n },\n //#endregion\n }\n}\n","export default {\n methods: {\n unMoneyFormat(value) {\n if (!value) { return null }\n let str = value.toString();\n let val = str.replace(\"$\", \"\");\n return this.unCurrencyFormat(val);\n },\n unCurrencyFormat(value) {\n if (!value) return 0;\n let str = value.toString();\n let val = str.replace(\",\", \"\");\n val = val.replace(\",\", \"\");\n val = val.replace(\",\", \"\");\n val = val.replace(\",\", \"\");\n val = val.replace(\",\", \"\");\n val = val.replace(\",\", \"\");\n return parseFloat(val.toString());\n },\n currencyFormat(value, decimales = 2) {\n if (!value) return 0;\n else return parseFloat(value).toFixed(decimales);\n },\n liveCostFormatNoCents(value) {\n if (!value) { return \"0\"; }\n if (value === \"Pendiente\") { return value; }\n else {\n const vv = this.unMoneyFormat(value);\n return this.format_price(vv);\n }\n },\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 }\n}","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":""}