{"version":3,"sources":["webpack:///./src/views/share/projects_resale/RecoveredProjectDetail.vue","webpack:///src/views/share/projects_resale/RecoveredProjectDetail.vue","webpack:///./src/views/share/projects_resale/RecoveredProjectDetail.vue?ea76","webpack:///./src/views/share/projects_resale/RecoveredProjectDetail.vue?39ea","webpack:///./src/views/share/projects_resale/RecoveredProjectDetail.vue?2584","webpack:///./src/components/mixins/formatHelper.js"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","_s","mainTitle","on","$event","isPopupFormActive","isMounted","_l","project","technologies","technology","indextr","key","product","brand","quantity","capacity","capacity_unit","lifespan","_e","format_price","saving_per_year","total_cost","discount","model","value","leadData","name","callback","$$v","$set","expression","email","phone","onStateChange","state_id","states","item","index","id","city_id","cities","sendForm","isPopupSuccessActive","staticRenderFns","props","mixins","data","isFirstTime","project_id","computed","methods","lead","validateForm","isEmpty","component","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","url","filename","icon","find","lt","getAmountWithNoCommissionTax","amount","processingAdministrationCommission","mexicoTaxIva","commissionWithTaxPercentage","percentage","amountNoCommision"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,YAAY,OAAOC,MAAM,CAAC,MAAQ,2B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this,_c=_vm._self._c;return _c('div',[_c('vx-card',{staticClass:\"mt-4\",attrs:{\"title\":\"Todo sobre el sistema.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-5\"},[_vm._v(\" A continuación podrás encontrar los datos más relevantes sobre el \"+_vm._s(this.mainTitle)+\" de paneles solares. Los costos podrán variar conforme a la cotización final del proyecto. \")])]),_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-button',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.isPopupFormActive = true}}},[_vm._v(\"Estoy interesad@\")])],1)])]),(_vm.isMounted)?_c('vx-card',{staticClass:\"mt-4\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vx-card',{attrs:{\"title\":\"El sistema.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"choose-fluid\"},[_c('div',{staticClass:\"modal-dialog show-more-modal fund\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-body\"},_vm._l((_vm.project.technologies),function(technology,indextr){return _c('div',{key:indextr,staticClass:\"vx-row\"},[_c('div',{staticClass:\"detail-section\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/5 w-full\"},[_vm._v(\" Marca de \"+_vm._s(technology.product)+\" \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(_vm._s(technology.brand))])]),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/5 w-full\"},[_vm._v(\" Cantidad \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(_vm._s(technology.quantity))])]),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/5 w-full\"},[_vm._v(\" Potencia \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(_vm._s(technology.capacity)+\" \"+_vm._s(technology.capacity_unit))])]),(technology.product==='Paneles')?_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/5 w-full\"},[_vm._v(\" Tiempo de vida \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(_vm._s(technology.lifespan)+\" años\")])]):_vm._e()])])])}),0)])])])])])]),_c('vx-card',{staticClass:\"mt-4\",attrs:{\"title\":\"Costos y ahorros.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"choose-fluid\"},[_c('div',{staticClass:\"modal-dialog show-more-modal fund\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"detail-section\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/4 w-full\"},[_vm._v(\" Ahorro Estimado Mensual \"),_c('div',{staticClass:\"data-pill pill-primary\"},[_vm._v(\"$\"+_vm._s(_vm.format_price(_vm.project.saving_per_year/12))+\"MXN\")])]),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/4 w-full\"},[_vm._v(\" Precio original del sistema \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(\"$\"+_vm._s(_vm.format_price(_vm.project.total_cost)))])]),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/4 w-full\"},[_vm._v(\" Descuento del sistema \"),_c('div',{staticClass:\"data-pill\"},[_vm._v(_vm._s(_vm.format_price((_vm.project.discount)*100))+\"%\")])]),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/4 w-full\"},[_vm._v(\" Nuevo precio especial \"),_c('div',{staticClass:\"data-pill pill-bg-primary\"},[_vm._v(\"$\"+_vm._s(_vm.format_price((_vm.project.total_cost-(_vm.project.total_cost*_vm.project.discount)))))])])])])])])])])])])])])],1),_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-button',{staticClass:\"mt-5\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.isPopupFormActive = true}}},[_vm._v(\"Estoy interesad@\")])],1)])]):_vm._e(),(_vm.isMounted)?_c('vs-popup',{staticClass:\"extended-popup header-primary\",attrs:{\"active\":_vm.isPopupFormActive,\"title\":_vm.mainTitle},on:{\"update:active\":function($event){_vm.isPopupFormActive=$event}}},[_c('vx-card',{attrs:{\"title\":\"Confirma los datos de contacto.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-5\"},[_vm._v(\" A continuación se muestran los datos de contacto registrados en tu cuenta. Modifica los que consideres necesarios para que la información que recibas concuerde con tus necesidades. \")])]),_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/3 w-full\"},[_c('vs-input',{staticClass:\"w-full mt-4\",attrs:{\"label\":\"Nombre *\"},model:{value:(_vm.leadData.name),callback:function ($$v) {_vm.$set(_vm.leadData, \"name\", $$v)},expression:\"leadData.name\"}})],1),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/3 w-full\"},[_c('vs-input',{staticClass:\"w-full mt-4\",attrs:{\"label\":\"Correo electrónico *\"},model:{value:(_vm.leadData.email),callback:function ($$v) {_vm.$set(_vm.leadData, \"email\", $$v)},expression:\"leadData.email\"}})],1),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/3 w-full\"},[_c('vs-input',{staticClass:\"w-full mt-4\",attrs:{\"label\":\"Teléfono *\"},model:{value:(_vm.leadData.phone),callback:function ($$v) {_vm.$set(_vm.leadData, \"phone\", $$v)},expression:\"leadData.phone\"}})],1),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/3 w-full\"},[_c('vs-select',{staticClass:\"mt-5 w-full\",attrs:{\"placeholder\":\"Seleccione\",\"label\":\"Estado *\"},on:{\"input\":_vm.onStateChange},model:{value:(_vm.leadData.state_id),callback:function ($$v) {_vm.$set(_vm.leadData, \"state_id\", $$v)},expression:\"leadData.state_id\"}},_vm._l((_vm.states),function(item,index){return _c('vs-select-item',{key:index,attrs:{\"value\":item.id,\"text\":item.name}})}),1)],1),_c('div',{staticClass:\"vx-col sm:w-1/2 lg:w-1/3 w-full\"},[_c('vs-select',{staticClass:\"mt-5 w-full\",attrs:{\"placeholder\":\"Seleccione\",\"label\":\"Ciudad *\"},model:{value:(_vm.leadData.city_id),callback:function ($$v) {_vm.$set(_vm.leadData, \"city_id\", $$v)},expression:\"leadData.city_id\"}},_vm._l((_vm.cities),function(item,index){return _c('vs-select-item',{key:index,attrs:{\"value\":item.id,\"text\":item.name}})}),1)],1)])]),_c('div',{staticClass:\"vx-col flex w-full mt-6 mb-5\"},[_c('vs-button',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.sendForm}},[_vm._v(\"Confirmar\")]),_c('vs-button',{staticClass:\"ml-2\",attrs:{\"color\":\"primary\",\"type\":\"border\"},on:{\"click\":function($event){_vm.isPopupFormActive = false}}},[_vm._v(\"Cancelar\")])],1)])])],1):_vm._e(),(_vm.isMounted)?_c('vs-popup',{staticClass:\"header-primary\",attrs:{\"active\":_vm.isPopupSuccessActive,\"title\":\"¡Listo!\"},on:{\"update:active\":function($event){_vm.isPopupSuccessActive=$event}}},[_c('vx-card',{attrs:{\"title\":\"Gracias por tu interés.\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-5\"},[_vm._v(\" En breve uno de nuestros agentes de venta se pondrá en contacto contigo para darte mayor información sobre el sistema. \")])])])])],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecoveredProjectDetail.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!./RecoveredProjectDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecoveredProjectDetail.vue?vue&type=template&id=ccb8f2dc&\"\nimport script from \"./RecoveredProjectDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./RecoveredProjectDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecoveredProjectDetail.vue?vue&type=style&index=0&id=ccb8f2dc&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!./RecoveredProjectDetail.vue?vue&type=style&index=0&id=ccb8f2dc&prod&lang=scss&\"","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":""}