{"version":3,"sources":["webpack:///./src/components/mixins/formatHelper.js","webpack:///./src/views/investor/RedferidosPage.vue","webpack:///src/views/investor/RedferidosPage.vue","webpack:///./src/views/investor/RedferidosPage.vue?a760","webpack:///./src/views/investor/RedferidosPage.vue?4429"],"names":["methods","format_price","value","decimales","val","toFixed","replace","toString","costFormat","this","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","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision","render","_vm","_c","_self","_v","attrs","staticClass","_s","taker_bonus_prcg","editing","hasCode","currentCode","on","$event","stopPropagation","copyToClipboard","apply","arguments","setEditMode","_e","errorMssg","slot","model","newCode","callback","$$v","expression","saveNewCode","cancelEditMode","referedCount","generatedBonusFormat","usedBonusFormat","availableBonusFormat","bonusValidity","refered","ref","scopedSlots","_u","key","fn","data","_l","tr","indextr","name","registered","invested","bonus_generated","bonus_used","myBonuses","created_at_f","amount_f","valid","bonus_expired","used_amount_f","staticStyle","bonusCreationDays","staticRenderFns","mixins","isMounted","generatedBonus","usedBonus","availableBonus","maker_bonus_prcg","computed","code","el","document","component"],"mappings":"gHAAe,QACbA,QAAS,CACPC,aAAaC,EAAOC,EAAY,GAC9B,IAAIC,GAAOF,EAAQ,GAAGG,QAAQF,GAAWG,QAAQ,IAAK,KACtD,OAA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AmB,oCAAoCtD,EAAG,KAAK,CAACD,EAAIG,GAAG,oCAAoCH,EAAIM,GAAGN,EAAIgC,eAAe,YAAY/B,EAAG,KAAK,CAACD,EAAIG,GAAG,uGAAuGF,EAAG,KAAK,CAACD,EAAIG,GAAG,sMAAsMF,EAAG,KAAK,CAACD,EAAIG,GAAG,kMAAkMH,EAAIkB,MAAM,IAE7+PsC,EAAkB,G,YCwLP,GACfC,gBACAlB,OACA,OACAmB,aACAjD,WACAC,iBACAY,aACAd,WACAoB,eACA+B,iBACAC,YACAC,iBACA7B,gBACAuB,oBACApC,eACAc,WACAe,aACAzC,mBACAuD,qBAGA,oBACA,wBACA,yBACA,mBAEAC,UACAlC,uBACA,4BAGAC,kBACA,uBAGAC,uBACA,6BAIA/G,SACA,0BACA,oBACA,IACA,wDACA,kBAEA,gBACA,kBAGA,oCACA,gBACA,2CACA,2CACA,iCACA,wCACA,yCACA,kDACA,4BACA,+BAEA,wDACA,yDAGA,SACA,gBACA,sCAEA,oBAEAiG,cACA,8BACA,iBAEA,oBAGA,GAFA,gBACA,oBACA,gCAIA,IACA,0DACA/B,eACA8E,oBAGA,eACA,UACA,sGACA,iBAEA,WACA,gBACA,gBACA,oCACA,yBACA,gEAGA,SACA,oEACA,kBAGAlD,kBACA,2CACAmD,iDACAA,8BACAA,4BACAA,uBACAC,6BACAD,WACAC,6BACAA,6BACA,mDAEAvC,iBACA,mBCnTuW,I,YCOnWwC,EAAY,eACd,EACApE,EACAyD,GACA,EACA,KACA,KACA,MAIa,aAAAW,E","file":"js/chunk-a1ef7c2e.6a1368c1.js","sourcesContent":["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}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('big-title',[_vm._v(\" Re\"),_c('span',[_vm._v(\"d\")]),_vm._v(\"feridos. \")]),_c('vx-card',{attrs:{\"title\":\"Si la Red crece, ¡tú también!\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('p',[_vm._v(\" En RedGirasol queremos que nuestra comunidad sea cada vez más grande y para lograrlo queremos que tú crezcas junto con nosotros. \"),_c('br'),_c('br'),_vm._v(\" Gracias a nuestro programa de \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"Re(d)feridos\")]),_vm._v(\", tú y las personas que invites a la Red podrán obtener un bono del \"),_c('span',{staticClass:\"bold\"},[_vm._v(_vm._s(_vm.taker_bonus_prcg)+\"%\")]),_vm._v(\" sobre todas las inversiones que realicen durante un mes, así que invita a tus amigos, conocidos, familiares o a quien tu quieras a participar en la transición energética de México. ¡Para todos brilla el sol! \")])])])]),_c('vx-card',{staticClass:\"mt-5\",attrs:{\"title\":\"¿Cómo obtengo los beneficios?\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('p',[_vm._v(\" Para que puedas obtener los beneficios del programa de \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"Re(d)feridos\")]),_vm._v(\" deberás compartir la liga que se presenta a continuación y asegurarte que tus invitados se registren con ella, ya que de lo contrario las bonificaciones no se aplicarán en tus inversiones. \")])])]),_c('div',{staticClass:\"vx-row mt-5\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h6',[_vm._v(\"¡Copia la liga y compártela!\")])])]),(!_vm.editing && _vm.hasCode)?_c('div',{staticClass:\"vx-row mt-5\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"vx-col w-full flex\"},[_c('div',{staticClass:\"redferido-section-container\"},[_c('span',{staticClass:\"sm:mx-8 mx-4 bold\"},[_vm._v(\"redgirasol.com/r/\"+_vm._s(_vm.currentCode))])]),_c('vs-button',{staticClass:\"ml-2 pt-3 pb-2 px-3\",attrs:{\"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),_c('vs-button',{staticClass:\"ml-6 px-4\",attrs:{\"type\":\"border\"},on:{\"click\":_vm.setEditMode}},[_vm._v(\"Personalizar\")])],1)]),_c('div',{staticClass:\"vx-col w-full mt-4\"},[_c('p',{staticClass:\"italic\"},[_vm._v(\"Podrás personalizarla en cualquier momento si así lo deseas.\")])])]):_vm._e(),(_vm.editing)?_c('div',{staticClass:\"vx-row mt-5 mb-3\"},[_c('div',{staticClass:\"vx-col lg:w-1/2 w-full\"},[(_vm.errorMssg)?_c('vs-alert',{staticClass:\"mt-4 mb-2\",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:\"flex flex-wrap items-center data-list-btn-container\"},[_c('vx-input-group',{staticClass:\"mt-2\"},[_c('template',{slot:\"prepend\"},[_c('div',{staticClass:\"prepend-text bg-primary\"},[_c('span',{staticClass:\"bold\"},[_vm._v(\"redgirasol.com/r/\")])])]),_c('vs-input',{attrs:{\"placeholder\":\"Ingresa el código\",\"maxlength\":\"15\",\"type\":\"text\"},model:{value:(_vm.newCode),callback:function ($$v) {_vm.newCode=$$v},expression:\"newCode\"}})],2),_c('vs-button',{staticClass:\"ml-4 mt-2\",attrs:{\"type\":\"border\"},on:{\"click\":_vm.saveNewCode}},[_vm._v(\"Guardar\")]),(_vm.hasCode)?_c('vs-button',{staticClass:\"ml-4 mt-2\",attrs:{\"type\":\"border\"},on:{\"click\":_vm.cancelEditMode}},[_vm._v(\"Cancelar\")]):_vm._e()],1)],1)]):_vm._e()]),_c('div',{staticClass:\"vx-row mb-8 mt-3\"},[_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-1/2 w-1/2 mt-5\"},[_c('vx-card',[_c('h1',[_vm._v(_vm._s(_vm.referedCount))]),_c('p',{staticClass:\"mt-1 text-lg\"},[_vm._v(\"No. de Redferidos\")])])],1),_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-1/2 w-1/2 mt-5\"},[_c('vx-card',[_c('h1',[_vm._v(\"$\"+_vm._s(_vm.generatedBonusFormat))]),_c('p',{staticClass:\"mt-1 text-lg\"},[_vm._v(\"Bonos Generados\")])])],1),_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-1/2 w-1/2 mt-5\"},[_c('vx-card',[_c('h1',[_vm._v(\"$\"+_vm._s(_vm.usedBonusFormat))]),_c('p',{staticClass:\"mt-1 text-lg\"},[_vm._v(\"Bonos Utilizados\")])])],1),_c('div',{staticClass:\"vx-col lg:w-1/4 md:w-1/2 sm:w-1/2 w-1/2 mt-5\"},[_c('vx-card',{attrs:{\"card-background\":\"primary\"}},[_c('h1',{staticClass:\"text-white\"},[_vm._v(\"$\"+_vm._s(_vm.availableBonusFormat))]),_c('p',{staticClass:\"text-white mt-1 text-lg\"},[_vm._v(\"Bonos Disponibles\")])])],1)]),(_vm.hasCode)?_c('vx-card',{staticClass:\"mt-5\",attrs:{\"title\":\"¿A cuántos has re(d)ferido?\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col xxl:w-3/4 w-full\"},[_c('p',[_vm._v(\" Consulta la lista de las personas que has re(d)feridos y que juntos están limpiando al planeta. \"),_c('br'),_c('br'),_vm._v(\" Recuerda que todos los bonos tienen \"+_vm._s(_vm.bonusValidity)+\" días de vigencia. Para utilizar tus bonos sólo selecciona los proyectos en los que quieras invertir y se tomarán los bonos que tienes disponibles. \")])])]),(_vm.refered.length > 0)?_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h6',[_vm._v(\"Bonus generados por mis Redferidos\")]),_c('vs-table',{ref:\"table\",staticClass:\"mt-2\",attrs:{\"stripe\":\"\",\"noDataText\":\"No hay datos disponibles\",\"data\":_vm.refered},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',[_vm._v(_vm._s(tr.name))]),_c('vs-td',[_vm._v(_vm._s(tr.registered))]),_c('vs-td',[_vm._v(_vm._s(_vm.explicitMoneyFormat(tr.invested)))]),_c('vs-td',[_vm._v(_vm._s(_vm.explicitMoneyFormat(tr.bonus_generated)))]),_c('vs-td',[_vm._v(_vm._s(_vm.explicitMoneyFormat(tr.bonus_used)))])],1)})}}],null,false,1506590244)},[_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Nombre\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Fecha registro\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Monto invertido\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Bonos generados\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Bonos utilizados\")])],1)],2)],1)]):_vm._e(),(_vm.myBonuses.length > 0)?_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h6',[_vm._v(\"Bonus generados por mis inversiones\")]),_c('vs-table',{ref:\"table\",staticClass:\"mt-2\",attrs:{\"stripe\":\"\",\"noDataText\":\"No hay datos disponibles\",\"data\":_vm.myBonuses},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',[_vm._v(_vm._s(tr.created_at_f))]),_c('vs-td',[_vm._v(_vm._s(_vm.explicitMoneyFormat(tr.amount_f)))]),_c('vs-td',[_vm._v(_vm._s(tr.valid)+\" \"+_vm._s(tr.bonus_expired ? ' (Vencido)' : ''))]),_c('vs-td',[_vm._v(_vm._s(_vm.explicitMoneyFormat(tr.used_amount_f)))])],1)})}}],null,false,3913425558)},[_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Fecha de creación\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Bono generado\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Vigencia\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"Bono utilizado\")])],1)],2)],1)]):_vm._e(),_c('div',{staticClass:\"vx-row mt-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mt-1 bold\"},[_vm._v(\"Condiciones del Programa Redferidos:\")]),_c('ul',{staticClass:\"mt-2 ml-6\",staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_vm._v(\"Tus referidos pueden generar bonos durante los primeros \"+_vm._s(_vm.bonusCreationDays)+\" días a partir de su registro.\")]),_c('li',[_vm._v(\"Los bonos tienen una vigencia de \"+_vm._s(_vm.bonusValidity)+\" días.\")]),_c('li',[_vm._v(\"Los bonos sólo se pueden usar para invertir en proyectos, no se suman al saldo del Inversionista.\")]),_c('li',[_vm._v(\"Este programa no tiene una vigencia definida, pero RedGirasol se reserva el derecho de terminarlo sin previo aviso. Los bonos continuan con su vigencia posterior a la terminación del programa.\")]),_c('li',[_vm._v(\"No se permite que una misma persona tenga más de una cuenta y aproveche el programa más de una vez. En caso de que RedGirasol detecte esto, se ajustará del saldo según corresponda.\")])])])])]):_vm._e()],1)\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!./RedferidosPage.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!./RedferidosPage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RedferidosPage.vue?vue&type=template&id=1edb00f9&\"\nimport script from \"./RedferidosPage.vue?vue&type=script&lang=js&\"\nexport * from \"./RedferidosPage.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"],"sourceRoot":""}