{"version":3,"sources":["webpack:///./src/components/stp/StpAccountInfo.vue?2260","webpack:///./src/views/investor/funds/PayFunds.vue","webpack:///src/views/investor/funds/PayFunds.vue","webpack:///./src/views/investor/funds/PayFunds.vue?f0cd","webpack:///./src/views/investor/funds/PayFunds.vue?a1e1","webpack:///./src/views/investor/funds/PayFunds.vue?82a0","webpack:///./src/components/mixins/stpHelper.js","webpack:///./src/components/mixins/formatHelper.js","webpack:///./src/helpers/investorInfoHelper.js","webpack:///./src/views/investor/funds/PayFunds.vue?eeff","webpack:///./src/components/stp/StpAccountInfo.vue","webpack:///src/components/stp/StpAccountInfo.vue","webpack:///./src/components/stp/StpAccountInfo.vue?9407","webpack:///./src/components/stp/StpAccountInfo.vue?64f0"],"names":["render","_vm","this","_c","_self","_v","staticClass","on","loadedRequirements","mainComplianceRequirements","shouldProcessWithStp","isMounted","contractLevel","attrs","user_id","stpClabe","_s","currentLimitOperationAmount","nextLimitOperationAmount","nativeOn","$event","goToIncrementLevel","apply","arguments","_e","contractLevelData","monthly_limit_1","monthly_limit_2","account_limit_1","staticRenderFns","mixins","formatHelper","currencyHelper","stpHelper","userComplianceHelper","userIdentityHelper","investorInfoHelper","directives","money","components","StpAccountInfo","ComplianceBanner","ContractLevelsInfo","InvestorContractLevelBanner","data","aliasCurrency","amount","decimal","thousands","prefix","suffix","precision","masked","user_person_type","requirements","panel","transfer","stg","cards","cardSelected","getting","add","got_cards","brand","name_card","card_number","cvv","month","year","card_id","device","new_balance","voucherCompleted","paymentProcessor","type","fund","allowed","computed","isMexicanPM","isMexicanPF","isForeign","isForeignPF","isForeignPM","isFinancialEntity","shouldDisplayStpHoldMessage","watch","methods","parseValue","formatPrice","name","component","investor_id","g","getInvestorAccount","account","undefined","nacc","createInvestorAccount","status","stp_clabe","url","response","axios","get","error","post","sleepPromise","ms","Promise","resolve","setTimeout","supplier_id","getSupplierAccount","applicantId","console","log","format_price","value","decimales","val","toFixed","replace","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","toUpperCase","join","isValidRfcFormat","rfc","patternPM","patternPF","match","isValidRfcFormatByPersonType","isMoral","pattern","genericRFC1","genericRFC2","isValidCurpFormat","curp","isValid","diccionario","lngSuma","lngDigito","indexOf","verifierDigit","anonymousFormatPhone","genderTranslate","getLoanTypeIcon","loanType","loanTypeIcons","id","filename","icon","find","lt","getAmountWithNoCommissionTax","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision","iid","requiredObjects","params","e","warn","moralTypeValue","moralForeignTypeValue","moralFinancialTypeValue","personalTypeValue","personalForeignTypeValue","userIsMoral","person_type","userIsForeign","getInvestorType","base","user","hasError","reload","isSupplier","_m","hasStpAccount","stopPropagation","copyToClipboard","copied","props","SuccessAlert","loaded","window","el","document"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,YAAY,CAACF,EAAII,GAAG,YAAYF,EAAG,OAAO,CAACF,EAAII,GAAG,YAAYJ,EAAII,GAAG,QAAQF,EAAG,oBAAoB,CAACG,YAAY,OAAOC,GAAG,CAAC,mBAAqBN,EAAIO,sBAAuBP,EAAIQ,4BAA8B,EAAGN,EAAG,MAAM,CAAEF,EAAIS,sBAAwBT,EAAIU,UAAW,CAACR,EAAG,UAAU,CAACA,EAAG,mCAAmC,GAAyB,GAArBF,EAAIW,eAA2C,GAArBX,EAAIW,cAAoB,CAACT,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,MAAM,CAACG,YAAY,mCAAmC,CAACH,EAAG,UAAU,CAACG,YAAY,QAAQ,CAACH,EA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/chunk-31d8ad9e.4a331559.js","sourcesContent":["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!./StpAccountInfo.vue?vue&type=style&index=0&id=30bbec6a&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('big-title',[_vm._v(\" Abonar \"),_c('span',[_vm._v(\"fondos\")]),_vm._v(\". \")]),_c('compliance-banner',{staticClass:\"mb-4\",on:{\"loadedRequirements\":_vm.loadedRequirements}}),(_vm.mainComplianceRequirements <= 0)?_c('div',[(_vm.shouldProcessWithStp && _vm.isMounted)?[_c('vx-card',[_c('investor-contract-level-banner')],1),(_vm.contractLevel == 1 || _vm.contractLevel == 2)?[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full md:w-2/3 xl:w-3/4\"},[_c('vx-card',{staticClass:\"mt-4\"},[_c('stp-account-info',{attrs:{\"user_id\":_vm.user_id,\"stpClabe\":_vm.stpClabe}})],1)],1),_c('div',{staticClass:\"vx-col w-full md:w-1/3 xl:w-1/4\"},[_c('vx-card',{staticClass:\"mt-4 border-primary text-center\"},[_c('div',{staticClass:\"vx-row mt-5\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h3',[_vm._v(\" ¡Aumenta tu límite de operación mensual! \")])])]),_c('div',{staticClass:\"vx-row mt-base\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h4',{staticClass:\"regular\"},[_vm._v(\" Tu límite actual es de \"),_c('strong',[_vm._v(_vm._s(_vm.currentLimitOperationAmount))])])])]),_c('div',{staticClass:\"vx-row mt-base\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h5',{staticClass:\"mb-5 regular\"},[_vm._v(\" Para aumentar tu límite \"+_vm._s(_vm.nextLimitOperationAmount)+\" solo tienes que \"),(_vm.contractLevel == 1)?[_vm._v(\" ingresar tu domicilio e identificación oficial. \")]:[_vm._v(\" realizar un abono desde una cuenta bancaria a tu nombre para validarla. \")]],2)])]),(_vm.contractLevel == 1)?_c('div',{staticClass:\"vx-row mt-base\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-button',{attrs:{\"id\":\"raise_limit_btn\",\"color\":\"success\",\"type\":\"filled\"},nativeOn:{\"click\":function($event){return _vm.goToIncrementLevel.apply(null, arguments)}}},[_vm._v(\"Aumentar límite\")])],1)]):_vm._e(),_c('div',{staticClass:\"vx-row mt-3\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('contract-levels-info',{attrs:{\"current-level\":_vm.contractLevel,\"monthly-limit-amount-one\":_vm.contractLevelData.monthly_limit_1,\"monthly-limit-amount-two\":_vm.contractLevelData.monthly_limit_2,\"account-limit-one\":_vm.contractLevelData.account_limit_1}})],1)])])],1)])]:_c('vx-card',{staticClass:\"mt-4\"},[_c('stp-account-info',{attrs:{\"user_id\":_vm.user_id,\"stpClabe\":_vm.stpClabe}})],1)]:(_vm.isMounted)?_c('vx-card',{staticClass:\"mt-4\",attrs:{\"title\":\"Ya falta muy poco para que puedas abonar fondos.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',[_vm._v(\" Pronto podrás realizar ¡tu primera inversión de impacto en RedGirasol! Te pedimos estar atento a tu correo electrónico para recibir la confirmación de que tu cuenta ya está lista para operar. Este proceso puede tomar aproximadamente entre 5 y 10 minutos, y en algunos casos hasta un día hábil. Si tienes alguna duda sobre el proceso de verificación estamos para apoyarte a través del chat de la plataforma o en cualquiera de nuestras redes sociales. \")])])])]):_vm._e()],2):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n   <div>\n      <big-title>\n         Abonar <span>fondos</span>.\n      </big-title>\n     <!-- PANEL DE CUMPLIMIENTO -->\n     <compliance-banner class=\"mb-4\" @loadedRequirements=\"loadedRequirements\"/>\n     <div v-if=\"mainComplianceRequirements <= 0\">\n      <template v-if=\"shouldProcessWithStp && isMounted\">\n        <vx-card>\n          <investor-contract-level-banner/>\n        </vx-card>\n        <template v-if=\"contractLevel == 1 || contractLevel == 2\">\n          <div class=\"vx-row\">\n            <div class=\"vx-col w-full md:w-2/3 xl:w-3/4\">\n              <vx-card class=\"mt-4\">\n                  <!-- PROCESAMIENTO CON STP -->\n                  <stp-account-info :user_id=\"user_id\" :stpClabe=\"stpClabe\" />\n                  <!-- FIN PROCESAMIENTO CON STP -->\n              </vx-card>\n            </div>\n            <div class=\"vx-col w-full md:w-1/3 xl:w-1/4\">\n              <vx-card class=\"mt-4 border-primary text-center\">\n                <div class=\"vx-row mt-5\">\n                  <div class=\"vx-col w-full\">\n                    <h3>\n                      ¡Aumenta tu límite de operación mensual! \n                    </h3>\n                  </div>\n                </div>\n                <div class=\"vx-row mt-base\">\n                  <div class=\"vx-col w-full\">\n                    <h4 class=\"regular\">\n                      Tu límite actual es de <strong>{{currentLimitOperationAmount}}</strong> \n                    </h4>\n                  </div>\n                </div>\n                <div class=\"vx-row mt-base\">\n                  <div class=\"vx-col w-full\">\n                    <h5 class=\"mb-5 regular\">\n                      Para aumentar tu límite {{nextLimitOperationAmount}} solo tienes que\n                      <template v-if=\"contractLevel == 1\">\n                        ingresar tu domicilio e identificación oficial.\n                      </template>\n                      <template v-else>\n                        realizar un abono desde una cuenta bancaria a tu nombre para validarla.\n                      </template>                      \n                    </h5>\n                  </div>\n                </div>\n                <div v-if=\"contractLevel == 1\" class=\"vx-row mt-base\">\n                  <div class=\"vx-col w-full\">\n                    <vs-button\n                    id=\"raise_limit_btn\"\n                    color=\"success\"\n                    type=\"filled\"\n                    @click.native=\"goToIncrementLevel\"\n                    >Aumentar límite</vs-button>\n                  </div>\n                </div>\n                <div class=\"vx-row mt-3\">\n                  <div class=\"vx-col w-full\">\n                    <contract-levels-info \n                      :current-level=\"contractLevel\" \n                      :monthly-limit-amount-one=\"contractLevelData.monthly_limit_1\"\n                      :monthly-limit-amount-two=\"contractLevelData.monthly_limit_2\"\n                      :account-limit-one=\"contractLevelData.account_limit_1\"\n                       />\n                  </div>\n                </div>\n              </vx-card>\n            </div>\n          </div>\n        </template>\n        <vx-card v-else class=\"mt-4\">\n            <!-- PROCESAMIENTO CON STP -->\n            <stp-account-info :user_id=\"user_id\" :stpClabe=\"stpClabe\" />\n            <!-- FIN PROCESAMIENTO CON STP -->\n        </vx-card>\n      </template>\n      <vx-card v-else-if=\"isMounted\" class=\"mt-4\" title=\"Ya falta muy poco para que puedas abonar fondos.\">\n          <div class=\"vx-row\">\n            <div class=\"vx-col w-full\">\n              <p>\n                Pronto podrás realizar ¡tu primera inversión de impacto en RedGirasol! Te pedimos estar atento a tu correo electrónico para recibir \n                la confirmación de que tu cuenta ya está lista para operar. Este proceso puede tomar aproximadamente entre 5 y 10 minutos, y en algunos \n                casos hasta un día hábil. Si tienes alguna duda sobre el proceso de verificación estamos para apoyarte a través del chat de la plataforma \n                o en cualquiera de nuestras redes sociales.\n              </p>\n            </div>\n          </div>\n      </vx-card>\n     </div>\n   </div>\n</template>\n\n<script>\nimport formatHelper from '@mixins/formatHelper';\nimport currencyHelper from '@mixins/currencyHelper';\nimport {VMoney} from 'v-money'\nimport ComplianceBanner from \"@components/compliance/ComplianceBanner\";\nimport StpAccountInfo from \"@components/stp/StpAccountInfo\";\nimport stpHelper from \"@mixins/stpHelper\";\nimport {formatPrice, parseValue} from \"@/filters\";\nimport {mapActions, mapState} from \"vuex\";\nimport userComplianceHelper from \"@/helpers/userComplianceHelper\";\nimport userIdentityHelper from \"@/helpers/userIdentityHelper\";\nimport investorInfoHelper from \"@/helpers/investorInfoHelper\";\nimport ContractLevelsInfo from \"@components/investor/contract-levels/ContractLevelsInfo\";\nimport InvestorContractLevelBanner from \"@components/investor/plans/InvestorContractLevelBanner\";\n\nexport default {\n   mixins: [\n     formatHelper, \n     currencyHelper, \n     stpHelper, \n    //  cardsHelper, \n     userComplianceHelper, userIdentityHelper, investorInfoHelper],\n   directives: {money: VMoney},\n  components: {StpAccountInfo,ComplianceBanner,ContractLevelsInfo, InvestorContractLevelBanner},\n   data(){\n      return {\n        isMounted: false,\n         aliasCurrency: 0,\n         amount: 0,\n         money: {\n            decimal: '.',\n            thousands: ',',\n            prefix: '',\n            suffix: '',\n            precision: 0,\n            masked: false\n         },\n\n        user_person_type: null,\n        user_id: null,\n        requirements: null,\n        panel: true,\n\n        transfer: '',\n        stg: false,\n        cards:[],\n        cardSelected: '',\n        getting: false,\n        add:false,\n        got_cards: false,\n        brand: '',\n        name_card: '',\n        card_number: '',\n        cvv: '',\n        month: '',\n        year: '',\n        card_id: '',\n        device: '',\n        new_balance: '',\n        voucherCompleted: false,\n        paymentProcessor: null,\n        contractLevelData: null,\n        stpClabe: null,\n        type: 0,\n        fund: '',\n        allowed: true,\n        mainComplianceRequirements: 0,\n      }\n   },\n  computed: {\n    ...mapState(\"auth\", [\"roleGeneralData\"]),\n    isMexicanPM(){\n      return this.user_person_type === 0;\n    },\n    isMexicanPF(){\n      return this.user_person_type === 1;\n    },\n    isForeign(){\n      return this.user_person_type === 2 || this.user_person_type === 3;\n    },\n    isForeignPF(){\n      return this.user_person_type === 2;\n    },\n    isForeignPM(){\n      return this.user_person_type === 3;\n    },\n    isFinancialEntity(){\n      return this.user_person_type === 4;\n    },\n    shouldProcessWithStp(){\n      return this.paymentProcessor === 'stp' && this.stpClabe !== null;\n    },\n    shouldDisplayStpHoldMessage(){\n      return this.paymentProcessor === 'stp' && this.stpClabe === null;\n    },\n    contractLevel(){\n      return this.contractLevelData.contract_level;\n    },\n    currentLimitOperationAmount(){\n      if (this.contractLevelData.monthly_operation_limit_amount == -1) {\n        return \"Ilimitado\";\n      }else {\n        return this.explicitMoneyFormat(this.contractLevelData.monthly_operation_limit_amount);\n      }\n    },\n    nextLimitOperationAmount(){\n      if (this.contractLevelData.next_monthly_operation_limit_amount == -1) {\n        return \"de forma ilimitada\";\n      }else {\n        return \"hasta \"+this.explicitMoneyFormat(this.contractLevelData.next_monthly_operation_limit_amount);\n      }\n    }\n  },\n  async beforeMount(){\n    this.showLoading(true)\n    this.isMounted = false\n    this.user_person_type = parseInt(this.UserPersonType);\n    this.user_id = parseInt(this.UserId);\n    await this.onUserInfoUpdated();\n    await this.getInvestorPaymentProcessor();\n    await this.checkForStpInfo();\n    await this.getInvestorGeneralData(this.InvestorId);\n    await this.getInvestorContractLevelData(this.InvestorId);\n    this.isMounted = true\n    this.showLoading(false)\n  },\n  watch: {\n    aliasCurrency: function(nval, oldval){\n      this.amount = this.unCurrencyFormat(nval);\n    },\n  },\n  methods: {\n    ...mapActions('auth', ['getInvestorGeneralData']),\n    parseValue,\n    formatPrice,\n\n    async checkForStpInfo(){\n      // solicitar informacion de stp solo si corresponde\n      // panel completo y persona fisica mexicana\n      if(this.InvestorStatus > 2){\n        this.stpClabe = await this.checkOrCreateInvestorAccount(this.InvestorId);\n      }\n      else {\n        if(this.isMexicanPF || this.isMexicanPM){\n          this.stpClabe = await this.getInvestorAccountStpClabe(this.InvestorId);\n        }\n      }\n    },\n    async getInvestorPaymentProcessor(){\n      try {\n        let res = await axios.get('/api/inversionista/getPaymentProcessor');\n        this.paymentProcessor = res.data.payment_processor;\n      } catch (error) {\n      }\n    },\n    async getInvestorContractLevelData(){\n      try {\n        let res = await axios.get('/api/v2/investor/' + this.InvestorId + '/getContractLevelData');\n        this.contractLevelData = res.data;\n      } catch (error) {\n      }\n    },\n    loadedRequirements(count) {\n      this.mainComplianceRequirements = count;\n    },\n    async goToIncrementLevel(){\n      await this.$router.replace({name: 'incrementInvestorContractLevel'});\n    },\n  }\n}\n</script>\n\n<style lang=\"css\">\n  .voucher-box {\n    border: 2px solid rgba(var(--vs-rgblack),1);\n    border-radius: 6px;\n    padding: .68rem 0.75rem;\n  }\n\n  .vs-progress--background{\n    background-color: #92B9B0 !important;\n  }\n\n  .regular {\n      font-family: \"gilroyregular\" !important;\n      font-weight: normal;\n      line-height: 1.2;\n      color: #2c2c2c;\n  }\n\n  .vx-card.border-primary{\n      border-style: solid;\n      border-width: 2px;\n  }\n</style>\n\n<style lang=\"scss\">\n#data-list-card-view-funds {\n  .vs-con-table {\n\n    .vs-table--header {\n      display: flex;\n      flex-wrap: wrap-reverse;\n      margin-left: 1.5rem;\n      margin-right: 1.5rem;\n      > span {\n        display: flex;\n        flex-grow: 1;\n      }\n\n      .vs-table--search{\n        padding-top: 0;\n\n        .vs-table--search-input {\n          padding: 0.9rem 2.5rem;\n          font-size: 1rem;\n\n          &+i {\n            left: 1rem;\n          }\n\n          &:focus+i {\n            left: 1rem;\n          }\n        }\n      }\n    }\n\n    .vs-table {\n      border-collapse: separate;\n      border-spacing: 0 1.3rem;\n      padding: 0 1rem;\n\n      tr{\n        box-shadow: 0 4px 20px 0 rgba(0,0,0,.05);\n        td{\n          padding: 10px;\n          &:first-child{\n            border-top-left-radius: .5rem;\n            border-bottom-left-radius: .5rem;\n          }\n          &:last-child{\n            border-top-right-radius: .5rem;\n            border-bottom-right-radius: .5rem;\n          }\n          &.img-container {\n\n            span {\n              display: flex;\n              justify-content: flex-start;\n            }\n          }\n        }\n        td.td-check{\n          padding: 20px !important;\n        }\n      }\n    }\n\n    .vs-table--thead{\n      th {\n        padding-top: 0;\n        padding-bottom: 0;\n\n        .vs-table-text{\n          text-transform: uppercase;\n          font-weight: 600;\n        }\n      }\n      th.td-check{\n        padding: 0 15px !important;\n      }\n      tr{\n        background: none;\n        box-shadow: none;\n      }\n    }\n\n    .vs-table--pagination {\n      justify-content: center;\n    }\n  }\n}\n</style>\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!./PayFunds.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!./PayFunds.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PayFunds.vue?vue&type=template&id=1d60da85&\"\nimport script from \"./PayFunds.vue?vue&type=script&lang=js&\"\nexport * from \"./PayFunds.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PayFunds.vue?vue&type=style&index=0&id=1d60da85&prod&lang=css&\"\nimport style1 from \"./PayFunds.vue?vue&type=style&index=1&id=1d60da85&prod&lang=scss&\"\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--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayFunds.vue?vue&type=style&index=1&id=1d60da85&prod&lang=scss&\"","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    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}","export default {\n  methods: {\n    async getInvestorData(iid, requiredObjects){\n      try{\n        // ?filter[status]=3 // ejemplo de filtro\n        let params = \"with[]=\" + requiredObjects.join(\"&with[]=\");\n        let response = await axios.get(`/api/v2/investor/${iid}?${params}`);\n        return response.data;\n      }\n      catch(e){\n        this.warn(e);\n        return null;\n      }\n    },\n    moralTypeValue(){\n      return 0;\n    },\n    moralForeignTypeValue(){\n      return 3;\n    },\n    moralFinancialTypeValue(){\n      return 4;\n    },\n    personalTypeValue(){\n      return 1;\n    },\n    personalForeignTypeValue(){\n      return 2;\n    },\n    userIsMoral(person_type){\n      return (person_type === this.moralTypeValue() || person_type === this.moralForeignTypeValue() || person_type === this.moralFinancialTypeValue());\n    },\n    userIsForeign(person_type){\n      return (person_type === this.moralForeignTypeValue() || person_type === this.personalForeignTypeValue());\n    },\n    getInvestorType(base){\n      return base.user.person_type;\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!./PayFunds.vue?vue&type=style&index=0&id=1d60da85&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.hasError)?_c('div',{staticClass:\"vx-row\"},[_c('span',{staticClass:\"error_text\"},[_vm._v(\"Ha ocurrido un error mientras se obtenían los datos. Lamentamos el inconveniente. \"),_c('a',{staticClass:\"underline bold black\",attrs:{\"href\":\"#\"},on:{\"click\":_vm.reload}},[_vm._v(\"Intente recargando la página.\")])])]):_vm._e(),(!_vm.isSupplier && !_vm.hasError)?[_vm._m(0),_c('div',{staticClass:\"vx-row mt-5 mb-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.hasStpAccount)?_c('div',{staticClass:\"vx-col w-full flex\"},[_c('div',{staticClass:\"stp-section-container\"},[_c('span',{staticClass:\"sm:mx-8 mx-4 bold\"},[_vm._v(_vm._s(_vm.stpClabe))])]),_c('vs-button',{staticClass:\"ml-2 pt-3 pb-2 px-3\",attrs:{\"id\":\"copy_accounts_btn\",\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.copyToClipboard.apply(null, arguments)}}},[_c('feather-icon',{attrs:{\"icon\":\"FileTextIcon\",\"svg-classes\":\"h-9 w-9\"}})],1)],1):_c('span',{staticClass:\"sm:mx-8 mx-4 bold\"},[_vm._v(\"Contáctanos a través del chat para generar tu cuenta STP y puedas realizar este proceso.\")])]),_vm._m(1)]),(_vm.copied)?_c('div',{staticClass:\"vx-row mt-3 mb-6\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('vs-alert',{attrs:{\"active\":_vm.copied,\"color\":\"success\",\"closable\":\"\"},on:{\"update:active\":function($event){_vm.copied=$event}}},[_vm._v(\"CLABE copiada al portapapeles.\\\"\")])],1)]):_vm._e(),_vm._m(2),_c('div',{staticClass:\"vx-row mt-3\"},[_c('div',{staticClass:\"vx-col w-full\"},[_vm._m(3),_vm._m(4),_c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"3\")]),_vm._v(\" Ingresa la cuenta CLABE personalizada: \"),_c('span',{staticClass:\"bold-inline\"},[_vm._v(_vm._s(_vm.stpClabe))]),_vm._v(\".\")]),_vm._m(5),_vm._m(6)])]),_vm._m(7)]:[_vm._m(8),(_vm.hasStpAccount)?_c('div',{staticClass:\"vx-row mt-5 mb-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.hasStpAccount)?_c('div',{staticClass:\"vx-col w-full flex\"},[_c('div',{staticClass:\"stp-section-container\"},[_c('span',{staticClass:\"sm:mx-8 mx-4 bold\"},[_vm._v(_vm._s(_vm.stpClabe))])]),_c('vs-button',{staticClass:\"ml-2 pt-3 pb-2 px-3\",attrs:{\"id\":\"copy_accounts_btn\",\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.copyToClipboard.apply(null, arguments)}}},[_c('feather-icon',{attrs:{\"icon\":\"FileTextIcon\",\"svg-classes\":\"h-9 w-9\"}})],1)],1):_c('span',{staticClass:\"sm:mx-8 mx-4 bold\"},[_vm._v(\"Contáctanos a través del chat para generar tu cuenta STP y puedas realizar este proceso.\")])]),_vm._m(9)]):_c('div',{staticClass:\"vx-row mb-6\"},[_vm._m(10)]),(_vm.copied)?_c('div',{staticClass:\"vx-row mt-3 mb-6\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('vs-alert',{attrs:{\"active\":_vm.copied,\"color\":\"success\",\"closable\":\"\"},on:{\"update:active\":function($event){_vm.copied=$event}}},[_vm._v(\"CLABE copiada al portapapeles.\\\"\")])],1)]):_vm._e(),_vm._m(11),_c('div',{staticClass:\"vx-row mt-3\"},[_c('div',{staticClass:\"vx-col w-full\"},[_vm._m(12),_vm._m(13),_c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"3\")]),_vm._v(\" Ingresa la cuenta CLABE personalizada: \"),_c('span',{staticClass:\"bold-inline\"},[_vm._v(_vm._s(_vm.hasStpAccount ? _vm.stpClabe : 'En caso de no contar con una cuenta CLABE STP, puedes solicitarla a través del chat.'))]),_vm._v(\".\")]),_vm._m(14),_vm._m(15)])]),_vm._m(16)]],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h4',[_vm._v(\"¡Abonar fondos a tu cuenta es muy fácil!\")]),_c('p',{staticClass:\"mt-3\"},[_vm._v(\" Envía un SPEI o transferencia electrónica desde tu banca por internet seleccionando el listado de bancos STP (Sistema de Transferencias y Pagos) a la siguiente cuenta CLABE. Esta cuenta CLABE no cambiará, es tuya y se generó ¡sólo para ti! \")]),_c('p',{staticClass:\"mt-3 bold\"},[_vm._v(\" Considera que deberás ser titular de las cuentas desde donde envíes fondos, ya que de lo contrario, tendremos que reembolsar tu abono. \")]),_c('p',{staticClass:\"mt-3\"},[_vm._v(\" Todas las cuentas con las que abones serán registradas para el momento en el que decidas retirar tus fondos. Consúltalas en el apartado de “Banco” dentro de “Mi perfil”. \")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-col w-full mt-4\"},[_c('p',{staticClass:\"italic\"},[_vm._v(\"Puedes copiar tu CLABE personalizada al portapapeles al dar clic en el icono junto a la misma. \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('h4',[_vm._v(\"¿No sabes cuáles son los pasos a seguir? ¡Te los explicamos!\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"1\")]),_vm._v(\" Una vez que entres al portal de tu banca en línea o tu app de banca móvil, selecciona la opción enviar un SPEI.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"2\")]),_vm._v(\" En el listado de bancos destino, selecciona \"),_c('span',{staticClass:\"bold-inline\"},[_vm._v(\"STP (Sistema de Transferencias y Pagos).\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"4\")]),_vm._v(\" En el campo “referencia” o “concepto” podrás escribir lo que tú consideres.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"5\")]),_vm._v(\" En el campo “beneficiario”, escribe tu nombre completo.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('p',[_c('br'),_c('em',[_vm._v(\" Ya que hayas realizado el proceso, verás reflejado el monto en tu saldo disponible en un plazo máximo de 2 horas. Si tienes dudas, estamos para ayudarte a través del chat de la plataforma. \")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h4',[_vm._v(\"¡Verificar tu cuenta es muy fácil!\")]),_c('p',{staticClass:\"mt-3\"},[_vm._v(\" Envía un SPEI o transferencia electrónica con valor de \"),_c('strong',[_vm._v(\"$1.00 MXN (un peso)\")]),_vm._v(\" desde tu banca por internet seleccionando el listado de bancos STP (Sistema de Transferencias y Pagos) a la siguiente cuenta CLABE. Esta cuenta CLABE no cambiará, es tuya y se generó ¡sólo para ti! \")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-col w-full mt-4\"},[_c('p',{staticClass:\"italic\"},[_vm._v(\"Puedes copiar tu CLABE personalizada al portapapeles al dar clic en el icono junto a la misma. \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-col w-full mt-4\"},[_c('p',{staticClass:\"bold italic\"},[_vm._v(\"En caso de no contar con una cuenta CLABE STP, puedes solicitarla a través del chat. \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('h4',[_vm._v(\"¿No sabes cuáles son los pasos a seguir? ¡Te los explicamos!\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"1\")]),_vm._v(\" Una vez que entres al portal de tu banca en línea o tu app de banca móvil, selecciona la opción enviar un SPEI.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"2\")]),_vm._v(\" En el listado de bancos destino, selecciona \"),_c('span',{staticClass:\"bold-inline\"},[_vm._v(\"STP (Sistema de Transferencias y Pagos).\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"4\")]),_vm._v(\" En el campo “referencia” o “concepto” podrás escribir lo que tú consideres.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mbot\"},[_c('span',{staticClass:\"list-number\"},[_vm._v(\"5\")]),_vm._v(\" En el campo “beneficiario”, escribe tu nombre completo.\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 md:w-10/12 w-full\"},[_c('p',[_c('br'),_c('em',[_vm._v(\" Ya que hayas realizado el proceso, tu cuenta estará en proceso de verificación para que podamos trabajar con ella. Si tienes dudas, estamos para ayudarte a través del chat de la plataforma. \")])])])])\n}]\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <div class=\"vx-row\" v-if=\"hasError\">\n      <span class=\"error_text\">Ha ocurrido un error mientras se obtenían los datos. Lamentamos el inconveniente.\n        <a href=\"#\" class=\"underline bold black\" @click=\"reload\">Intente recargando la página.</a></span>\n    </div>\n\n    <template v-if=\"!isSupplier && !hasError\">\n\n      <div class=\"vx-row\">\n        <div class=\"vx-col w-full\">\n          <h4>¡Abonar fondos a tu cuenta es muy fácil!</h4>\n          <p class=\"mt-3\">\n            Envía un SPEI o transferencia electrónica desde tu banca por internet seleccionando el listado de bancos STP\n            (Sistema de Transferencias y Pagos)\n            a la siguiente cuenta CLABE. Esta cuenta CLABE no cambiará, es tuya y se generó ¡sólo para ti!\n          </p>\n          <p class=\"mt-3 bold\">\n            Considera que deberás ser titular de las cuentas desde donde envíes fondos, ya que de lo contrario, tendremos\n            que reembolsar tu abono.\n          </p>\n          <p class=\"mt-3\">\n            Todas las cuentas con las que abones serán registradas para el momento en el que decidas retirar tus fondos.\n            Consúltalas en el apartado de “Banco” dentro de “Mi perfil”.\n          </p>\n        </div>\n      </div>\n\n      <div class=\"vx-row mt-5 mb-6\">\n        <div class=\"vx-col w-full\">\n          <div v-if=\"hasStpAccount\" class=\"vx-col w-full flex\">\n            <div class=\"stp-section-container\">\n              <span class=\"sm:mx-8 mx-4 bold\">{{ stpClabe }}</span>\n            </div>\n            <vs-button id=\"copy_accounts_btn\" class=\"ml-2 pt-3 pb-2 px-3\" color=\"primary\" @click.stop=\"copyToClipboard\">\n              <feather-icon icon=\"FileTextIcon\" svg-classes=\"h-9 w-9\" />\n            </vs-button>\n          </div>\n          <span v-else class=\"sm:mx-8 mx-4 bold\">Contáctanos a través del chat para generar tu cuenta STP y puedas\n            realizar este proceso.</span>\n        </div>\n\n        <div class=\"vx-col w-full mt-4\">\n          <p class=\"italic\">Puedes copiar tu CLABE personalizada al portapapeles al dar clic en el icono junto a la misma.\n          </p>\n        </div>\n      </div>\n\n      <div class=\"vx-row mt-3 mb-6\" v-if=\"copied\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <vs-alert :active.sync=\"copied\" color=\"success\" closable>CLABE copiada al portapapeles.\"</vs-alert>\n        </div>\n      </div>\n\n\n      <div class=\"vx-row\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <h4>¿No sabes cuáles son los pasos a seguir? ¡Te los explicamos!</h4>\n        </div>\n      </div>\n\n      <div class=\"vx-row mt-3\">\n        <div class=\"vx-col w-full\">\n          <p class=\"mbot\"><span class=\"list-number\">1</span> Una vez que entres al portal de tu banca en línea o tu app\n            de banca móvil, selecciona la opción enviar un SPEI.</p>\n          <p class=\"mbot\"><span class=\"list-number\">2</span> En el listado de bancos destino, selecciona <span\n              class=\"bold-inline\">STP (Sistema de Transferencias y Pagos).</span></p>\n          <p class=\"mbot\"><span class=\"list-number\">3</span> Ingresa la cuenta CLABE personalizada: <span\n              class=\"bold-inline\">{{ stpClabe }}</span>.</p>\n          <p class=\"mbot\"><span class=\"list-number\">4</span> En el campo “referencia” o “concepto” podrás escribir lo que\n            tú consideres.</p>\n          <p class=\"mbot\"><span class=\"list-number\">5</span> En el campo “beneficiario”, escribe tu nombre completo.</p>\n        </div>\n      </div>\n\n      <div class=\"vx-row\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <p>\n            <br>\n            <em>\n              Ya que hayas realizado el proceso, verás reflejado el monto en tu saldo disponible en un plazo máximo de 2\n              horas.\n              Si tienes dudas, estamos para ayudarte a través del chat de la plataforma.\n            </em>\n          </p>\n        </div>\n      </div>\n    </template>\n\n    <template v-else>\n      <div class=\"vx-row\">\n        <div class=\"vx-col w-full\">\n          <h4>¡Verificar tu cuenta es muy fácil!</h4>\n          <p class=\"mt-3\">\n            Envía un SPEI o transferencia electrónica con valor de <strong>$1.00 MXN (un peso)</strong> desde tu banca por internet seleccionando el listado de bancos STP\n            (Sistema de Transferencias y Pagos)\n            a la siguiente cuenta CLABE. Esta cuenta CLABE no cambiará, es tuya y se generó ¡sólo para ti! \n          </p>\n        </div>\n      </div>\n\n      <div v-if=\"hasStpAccount\" class=\"vx-row mt-5 mb-6\">\n        <div class=\"vx-col w-full\">\n          <div v-if=\"hasStpAccount\" class=\"vx-col w-full flex\">\n            <div class=\"stp-section-container\">\n              <span class=\"sm:mx-8 mx-4 bold\">{{ stpClabe }}</span>\n            </div>\n            <vs-button id=\"copy_accounts_btn\" class=\"ml-2 pt-3 pb-2 px-3\" color=\"primary\" @click.stop=\"copyToClipboard\">\n              <feather-icon icon=\"FileTextIcon\" svg-classes=\"h-9 w-9\" />\n            </vs-button>\n          </div>\n          <span v-else class=\"sm:mx-8 mx-4 bold\">Contáctanos a través del chat para generar tu cuenta STP y puedas\n            realizar este proceso.</span>\n        </div>\n\n        <div class=\"vx-col w-full mt-4\">\n          <p class=\"italic\">Puedes copiar tu CLABE personalizada al portapapeles al dar clic en el icono junto a la misma.\n          </p>\n        </div>\n      </div>\n\n      <div v-else class=\"vx-row mb-6\">\n        <div class=\"vx-col w-full mt-4\">\n          <p class=\"bold italic\">En caso de no contar con una cuenta CLABE STP, puedes solicitarla a través del chat.\n          </p>\n        </div>\n      </div>\n\n      <div class=\"vx-row mt-3 mb-6\" v-if=\"copied\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <vs-alert :active.sync=\"copied\" color=\"success\" closable>CLABE copiada al portapapeles.\"</vs-alert>\n        </div>\n      </div>\n\n\n      <div class=\"vx-row\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <h4>¿No sabes cuáles son los pasos a seguir? ¡Te los explicamos!</h4>\n        </div>\n      </div>\n\n      <div class=\"vx-row mt-3\">\n        <div class=\"vx-col w-full\">\n          <p class=\"mbot\"><span class=\"list-number\">1</span> Una vez que entres al portal de tu banca en línea o tu app\n            de banca móvil, selecciona la opción enviar un SPEI.</p>\n          <p class=\"mbot\"><span class=\"list-number\">2</span> En el listado de bancos destino, selecciona <span\n              class=\"bold-inline\">STP (Sistema de Transferencias y Pagos).</span></p>\n          <p class=\"mbot\"><span class=\"list-number\">3</span> Ingresa la cuenta CLABE personalizada: <span\n              class=\"bold-inline\">{{ hasStpAccount ? stpClabe : 'En caso de no contar con una cuenta CLABE STP, puedes solicitarla a través del chat.' }}</span>.</p>\n          <p class=\"mbot\"><span class=\"list-number\">4</span> En el campo “referencia” o “concepto” podrás escribir lo que\n            tú consideres.</p>\n          <p class=\"mbot\"><span class=\"list-number\">5</span> En el campo “beneficiario”, escribe tu nombre completo.</p>\n        </div>\n      </div>\n\n      <div class=\"vx-row\">\n        <div class=\"vx-col lg:w-1/2 md:w-10/12 w-full\">\n          <p>\n            <br>\n            <em>\n              Ya que hayas realizado el proceso, tu cuenta estará en proceso de verificación para que podamos trabajar con ella.\n              Si tienes dudas, estamos para ayudarte a través del chat de la plataforma.\n            </em>\n          </p>\n        </div>\n      </div>\n    </template>\n  </div>\n</template>\n\n<script>\nimport SuccessAlert from \"@components/supplier/misc/SuccessAlert\";\nexport default {\n  props: ['user_id', 'stpClabe', 'isSupplier'],\n  components: { SuccessAlert },\n  data() {\n    return {\n      hasError: false,\n      loaded: false,\n      copied: null,\n    }\n  },\n  computed: {\n    hasStpAccount() {\n      if (this.isSupplier) {\n        return this.stpClabe != null;\n      } else {\n        return true;\n      }\n    }\n  },\n  methods: {\n    reload() {\n      window.location.reload();\n    },\n\n    async copyToClipboard() {\n      const el = document.createElement('textarea');\n      el.value = this.stpClabe;\n      el.setAttribute('readonly', '');\n      el.style.position = 'absolute';\n      el.style.left = '-9999px';\n      document.body.appendChild(el);\n      el.select();\n      document.execCommand('copy');\n      document.body.removeChild(el);\n      this.copied = true;\n    }\n  }\n}\n</script>\n\n<style lang=\"css\">\n.rounded-space {\n  border: 2px solid black;\n  padding: 14px;\n  font-family: 'gilroybold', 'sans-serif';\n  font-size: 22px;\n  margin-right: 15px;\n  border-radius: 10px;\n}\n\n.rounded-icon img {\n  height: 70px;\n  padding: 8px;\n  border: 2px solid black;\n  border-radius: 10px;\n  cursor: pointer;\n}\n\n.rounded-icon img:hover {\n  background-color: #eaeaea;\n}\n\n.list-number {\n  font-size: 16px;\n  background-color: #28DE18;\n  color: white;\n  font-family: 'gilroybold';\n  padding: 2px 11px;\n  border-radius: 50%;\n  height: 30px;\n  width: 30px;\n  display: inline-block;\n  margin-right: 5px;\n}\n\n.bold-inline {\n  font-family: 'gilroybold';\n}\n\n.mbot {\n  margin-bottom: 15px;\n}\n\n.medium-bold-inline {\n  font-family: 'gilroymedium';\n}</style>\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!./StpAccountInfo.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!./StpAccountInfo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StpAccountInfo.vue?vue&type=template&id=30bbec6a&\"\nimport script from \"./StpAccountInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./StpAccountInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StpAccountInfo.vue?vue&type=style&index=0&id=30bbec6a&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"],"sourceRoot":""}