{"id":5415,"date":"2023-06-30T16:08:49","date_gmt":"2023-06-30T16:08:49","guid":{"rendered":"https:\/\/crediq.com\/sv\/?page_id=5415"},"modified":"2023-07-03T21:06:08","modified_gmt":"2023-07-03T21:06:08","slug":"precalificacion","status":"publish","type":"page","link":"https:\/\/crediq.com\/sv\/precalificacion\/","title":{"rendered":"Precalificacion"},"content":{"rendered":"\n\n  <div class=\"banner has-hover\" id=\"banner-520640418\">\n          <div class=\"banner-inner fill\">\n        <div class=\"banner-bg fill\" >\n            <img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"574\" src=\"https:\/\/crediq.com\/sv\/wp-content\/uploads\/sites\/7\/2022\/07\/Car-insurance-for-21-year-olds-1024x576.jpeg\" class=\"bg attachment-large size-large\" alt=\"\" \/>                        <div class=\"overlay\"><\/div>            \n                    <\/div>\n\t\t\n        <div class=\"banner-layers container\">\n            <div class=\"fill banner-link\"><\/div>            \n\n   <div id=\"text-box-1219624673\" class=\"text-box banner-layer x50 md-x50 lg-x50 y50 md-y50 lg-y50 res-text\">\n                                <div class=\"text-box-content text dark\">\n              \n              <div class=\"text-inner text-center\">\n                  \n\n<h3 class=\"uppercase\"><strong>Pre-apru\u00e9bate<\/strong><\/h3>\n\n              <\/div>\n           <\/div>\n                            \n<style>\n#text-box-1219624673 {\n  width: 60%;\n}\n#text-box-1219624673 .text-box-content {\n  font-size: 100%;\n}\n<\/style>\n    <\/div>\n \n\n        <\/div>\n      <\/div>\n\n            \n<style>\n#banner-520640418 {\n  padding-top: 210px;\n  background-color: rgb(0,0,0);\n}\n#banner-520640418 .overlay {\n  background-color: rgba(0,0,0,.5);\n}\n<\/style>\n  <\/div>\n\n\n<div class=\"text-center\"><div class=\"is-divider divider clearfix\" ><\/div><\/div>\n\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.2\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn\/tWtIaxVXM\" crossorigin=\"anonymous\"><\/script>\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.4.0\/css\/all.min.css\" integrity=\"sha512-iecdLmaskl7CVkqkXNQ\/ZH\/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT\/E0iPtmFIB46ZmdtAc9eNBvH0H\/ZpiBw==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" \/>\r\n<script src=\"https:\/\/code.jquery.com\/jquery-3.7.0.js\" integrity=\"sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox\/HfgiSLBj8+kM=\" crossorigin=\"anonymous\"><\/script>\r\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/sweetalert2@11\"><\/script>\r\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/inputmask@5.0.8\/dist\/jquery.inputmask.min.js\"><\/script>\r\n<script>\r\n   let segmentos = [];\r\n   let tipoDocumento = [];\r\n   let tipoPersona = [];\r\n   let tipoTransporte = [];\r\n   let tipoVehiculo = [];\r\n   let monedas = [];\r\n   let titulares = [];\r\n   var paisdesdeelqueseestanavegando = [];\r\n   let tipoTransporteElegido;\r\n   let tipoProductoElegido;\r\n   let titularTransporteElegido;\r\n   let tipoCotizacion; \r\n   \r\n    let codigoCanalEngage = undefined;\r\n    let canalOrigen; \r\n   const monedasyrangos = [{\r\n           codigo: \"USD\",\r\n           simbolo: \"$\",\r\n           valorMinimo: 1000,\r\n           valorMinimoNI: 600,\r\n           valorMinimoCR: 1000,\r\n           valorMaximo: 100000,\r\n           saltos: 100,\r\n       },\r\n       {\r\n           codigo: \"CRC\",\r\n           simbolo: \"\u20a1\",\r\n           valorMinimo: 500000,\r\n           valorMaximo: 200000000,\r\n           saltos: 20000,\r\n       },\r\n       {\r\n           codigo: \"NIO\",\r\n           simbolo: \"C$\",\r\n           valorMinimo: 20000,\r\n           valorMaximo: 4000000,\r\n           saltos: 10000,\r\n       },\r\n       {\r\n           codigo: \"GTQ\",\r\n           simbolo: \"Q\",\r\n           valorMinimo: 10000,\r\n           valorMaximo: 1000000,\r\n           saltos: 10000,\r\n       },\r\n       {\r\n           codigo: \"HNL\",\r\n           simbolo: \"L\",\r\n           valorMinimo: 10000,\r\n           valorMaximo: 1000000,\r\n           saltos: 10000,\r\n       },\r\n   ];\r\n   function textIncludes(text, search) {\r\n       text = text.toUpperCase();\r\n       text = normalizeText(text);\r\n       search = search.toUpperCase();\r\n       return text.includes(search);\r\n   }\r\n   \r\n   function reverseString(str) {\r\n       \/\/ Step 1. Use the split() method to return a new array\r\n       var splitString = str.split(\"\"); \/\/ var splitString = \"hello\".split(\"\");\r\n       \/\/ [\"h\", \"e\", \"l\", \"l\", \"o\"]\r\n   \r\n       \/\/ Step 2. Use the reverse() method to reverse the new created array\r\n       var reverseArray = splitString.reverse(); \/\/ var reverseArray = [\"h\", \"e\", \"l\", \"l\", \"o\"].reverse();\r\n       \/\/ [\"o\", \"l\", \"l\", \"e\", \"h\"]\r\n   \r\n       \/\/ Step 3. Use the join() method to join all elements of the array into a string\r\n       var joinArray = reverseArray.join(\"\"); \/\/ var joinArray = [\"o\", \"l\", \"l\", \"e\", \"h\"].join(\"\");\r\n       \/\/ \"olleh\"\r\n   \r\n       \/\/Step 4. Return the reversed string\r\n       return joinArray; \/\/ \"olleh\"\r\n   }\r\n   \r\n   function PutCommasInPlace(string) {\r\n       let LFPFormatted = \"\";\r\n       for (var i = 0; i < string.length; i++) {\r\n           if (i != 0) {\r\n               if (i % 3 != 0) {\r\n                   LFPFormatted += string[i];\r\n               } else {\r\n                   \/\/if i%3 == 0\r\n                   LFPFormatted += \",\" + string[i];\r\n               }\r\n           } else {\r\n               LFPFormatted += string[i];\r\n           }\r\n       }\r\n       return reverseString(LFPFormatted);\r\n   }\r\n   \r\n   function AddCommasToStringWithOnePoint(parameter) {\r\n       \/\/this parameter must follow the format: '1234567.89'\r\n       \/\/the input is restricted to only allow one point\r\n       let received = \"\";\r\n       let result = \"\";\r\n       let LFPFormatted = \"\";\r\n       if (typeof parameter === \"string\") {\r\n           received = parameter;\r\n       } else {\r\n           received = parameter.toString();\r\n       }\r\n       const array = received.split(\".\");\r\n       if (array.length == 2) {\r\n           let rightFromPoint = reverseString(array[0]);\r\n           let leftFromPoint = array[1];\r\n           LFPFormatted = PutCommasInPlace(rightFromPoint);\r\n           return LFPFormatted + \".\" + leftFromPoint;\r\n       } else if (array.length == 1) {\r\n           \/\/it means theres was no point to make the split\r\n           let tmp = reverseString(array[0]);\r\n           return PutCommasInPlace(tmp) + \".00\";\r\n       }\r\n   }\r\n   function redirectPost(location, args) {\r\n       showLoader();\r\n       try {\r\n         var form = '';\r\n         $.each(args, function(key, value) {\r\n           value = value != undefined && value != null ? value : \"\";\r\n           value = value.split('\"').join('\\\"')\r\n           form += '<input type=\"hidden\" name=\"' + key + '\" value=\"' + value + '\">';\r\n         });\r\n         $('<form action=\"' + location + '\" method=\"POST\">' + form + '<\/form>').appendTo($(document.body)).submit();\r\n       } catch (e) {\r\n         showErrorMessage(\"No se puedo cargar la p\u00e1gina solicitada. Intente nuevamente.\");\r\n         console.log(e);\r\n       }\r\n     }\r\n   function stringToFloat(initString) {\r\n       let strToConv = initString.split(\",\");\r\n       var newString = \"\";\r\n       var numToReturn = 0.0;\r\n       if (strToConv.length > 1) {\r\n           for (var i = 0; i < strToConv.length; i++) {\r\n               newString += strToConv[i];\r\n           }\r\n           numToReturn = parseFloat(newString);\r\n           return numToReturn;\r\n       } else {\r\n           numToReturn = parseFloat(strToConv);\r\n           return numToReturn;\r\n       }\r\n   }\r\n   const restriccionesporpaises = [\r\n       {\r\n           countryman: \"SV\",\r\n           mostrarInterruptorSeguro: \"si\",\r\n           propiedadSeguroEnPeticion: \"si\",\r\n           marcaobligatoria: \"no\",\r\n           modeloobligatorio: \"no\",\r\n           factoresDeCuotas: \"si\",\r\n           requiereUsoVehiculo: \"si\",\r\n           usarGrupoSegmentoVehiculo : \"si\",\r\n           usarGrupoSegmentoMoto: \"si\",\r\n           cotizacionMotoPorPerfil: \"no\",\r\n           leyendaMontoFinanciar: \"Monto a financiar: \",\r\n           txtReclamoPt1: \"La cuota arriba mostrada es una estimaci\u00f3n con la condiciones vigentes.\",\r\n           txtReclamoPt2: \"V\u00e1lido por 30 d\u00edas. Para ver detalle de condiciones descargar el Plan. Para un plan a la medida lo invitamos a precalificarse en el bot\u00f3n \u201cPrecalificar\u201d en pantalla de descarga.\",\r\n           disclaimerSeguro: \"*El seguro de da\u00f1os ofertado es para uso personal. Para otros usos comun\u00edcate con un ejecutivo aqu\u00ed: &nbsp;<a style='text-decoration:none' href='http:\/\/wa.me\/50375428109' target='_blank'><img src='https:\/\/cqdigital.loces.dev\/wp-content\/themes\/digitaltheme\/images\/Iconos\/Oficial\/whatsapp_outline.png' style='max-height: 45px; margin-top: -1px;'>&nbsp;<\/a>\",\r\n       },\r\n       {\r\n           countryman: \"NI\",\r\n           mostrarInterruptorSeguro: \"no\",\r\n           propiedadSeguroEnPeticion: \"no\",\r\n           marcaobligatoria: \"no\",\r\n           modeloobligatorio: \"no\",\r\n           factoresDeCuotas: \"no\",\r\n           requiereUsoVehiculo: \"no\",\r\n           usarGrupoSegmentoVehiculo: \"si\",\r\n           usarGrupoSegmentoMoto: \"no\",\r\n           cotizacionMotoPorPerfil: \"si\",\r\n           leyendaMontoFinanciar: \"Monto a financiar: \",\r\n           txtReclamoPt1: \"La cuota arriba mostrada es una estimaci\u00f3n con la condiciones vigentes.\",\r\n           txtReclamoPt2: \"V\u00e1lido por 30 d\u00edas. Para ver detalle de condiciones descargar el Plan. Para un plan a la medida lo invitamos a precalificarse en el bot\u00f3n \u201cPrecalificar\u201d en pantalla de descarga.\",\r\n           disclaimerSeguro: \"*Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\",\r\n       },\r\n       {\r\n           countryman: \"CR\",\r\n           mostrarInterruptorSeguro: \"no\",\r\n           propiedadSeguroEnPeticion: \"no\",\r\n           marcaobligatoria: \"si\",\r\n           modeloobligatorio: \"no\",\r\n           factoresDeCuotas: \"no\",\r\n           requiereUsoVehiculo: \"si\",\r\n           usarGrupoSegmentoVehiculo: \"si\",\r\n           usarGrupoSegmentoMoto: \"si\",\r\n           cotizacionMotoPorPerfil: \"si\",\r\n           leyendaMontoFinanciar: \"Monto a financiar: \",\r\n           txtReclamoPt1: \"La cuota arriba mostrada es una estimaci\u00f3n con la condiciones vigentes.\",\r\n           txtReclamoPt2: \"V\u00e1lido por 30 d\u00edas. Para ver detalle de condiciones descargar el Plan. Para un plan a la medida lo invitamos a precalificarse en el bot\u00f3n \u201cPrecalificar\u201d en pantalla de descarga.\",\r\n           disclaimerSeguro: \"*Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"\r\n       },\r\n       {\r\n           countryman: \"GT\",\r\n           mostrarInterruptorSeguro: \"no\",\r\n           propiedadSeguroEnPeticion: \"no\",\r\n           marcaobligatoria: \"si\",\r\n           modeloobligatorio: \"si\",\r\n           factoresDeCuotas: \"no\",\r\n           requiereUsoVehiculo: \"si\",\r\n           usarGrupoSegmentoVehiculo: \"si\",\r\n           usarGrupoSegmentoMoto: \"si\",\r\n           cotizacionMotoPorPerfil: \"no\",\r\n           leyendaMontoFinanciar: \"Monto a financiar: \",\r\n           txtReclamoPt1: \"La cuota arriba mostrada es una estimaci\u00f3n con la condiciones vigentes.\",\r\n           txtReclamoPt2: \"V\u00e1lido por 30 d\u00edas. Para ver detalle de condiciones descargar el Plan. Para un plan a la medida lo invitamos a precalificarse en el bot\u00f3n \u201cPrecalificar\u201d en pantalla de descarga.\",\r\n           disclaimerSeguro: \"*Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\",\r\n       },\r\n       {\r\n           countryman: \"HN\",\r\n           mostrarInterruptorSeguro: \"no\",\r\n           propiedadSeguroEnPeticion: \"no\",\r\n           marcaobligatoria: \"no\",\r\n           modeloobligatorio: \"no\",\r\n           factoresDeCuotas: \"no\",\r\n           requiereUsoVehiculo: \"si\",\r\n           usarGrupoSegmentoVehiculo: \"si\",\r\n           usarGrupoSegmentoMoto: \"si\",\r\n           cotizacionMotoPorPerfil: \"si\",\r\n           leyendaMontoFinanciar: \"Monto a financiar: \",\r\n           txtReclamoPt1: \"La cuota arriba mostrada es una estimaci\u00f3n con la condiciones vigentes.\",\r\n           txtReclamoPt2: \"V\u00e1lido por 30 d\u00edas. Para ver detalle de condiciones descargar el Plan. Para un plan a la medida lo invitamos a precalificarse en el bot\u00f3n \u201cPrecalificar\u201d en pantalla de descarga.\",\r\n           disclaimerSeguro: \"*Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\",\r\n       },\r\n   ];\r\n     var defaultDiacriticsRemovalMap = [{\r\n         'base': 'A',\r\n         'letters': \/[\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F]\/g\r\n       },\r\n       {\r\n         'base': 'AA',\r\n         'letters': \/[\\uA732]\/g\r\n       },\r\n       {\r\n         'base': 'AE',\r\n         'letters': \/[\\u00C6\\u01FC\\u01E2]\/g\r\n       },\r\n       {\r\n         'base': 'AO',\r\n         'letters': \/[\\uA734]\/g\r\n       },\r\n       {\r\n         'base': 'AU',\r\n         'letters': \/[\\uA736]\/g\r\n       },\r\n       {\r\n         'base': 'AV',\r\n         'letters': \/[\\uA738\\uA73A]\/g\r\n       },\r\n       {\r\n         'base': 'AY',\r\n         'letters': \/[\\uA73C]\/g\r\n       },\r\n       {\r\n         'base': 'B',\r\n         'letters': \/[\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181]\/g\r\n       },\r\n       {\r\n         'base': 'C',\r\n         'letters': \/[\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E]\/g\r\n       },\r\n       {\r\n         'base': 'D',\r\n         'letters': \/[\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779]\/g\r\n       },\r\n       {\r\n         'base': 'DZ',\r\n         'letters': \/[\\u01F1\\u01C4]\/g\r\n       },\r\n       {\r\n         'base': 'Dz',\r\n         'letters': \/[\\u01F2\\u01C5]\/g\r\n       },\r\n       {\r\n         'base': 'E',\r\n         'letters': \/[\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E]\/g\r\n       },\r\n       {\r\n         'base': 'F',\r\n         'letters': \/[\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B]\/g\r\n       },\r\n       {\r\n         'base': 'G',\r\n         'letters': \/[\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E]\/g\r\n       },\r\n       {\r\n         'base': 'H',\r\n         'letters': \/[\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D]\/g\r\n       },\r\n       {\r\n         'base': 'I',\r\n         'letters': \/[\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197]\/g\r\n       },\r\n       {\r\n         'base': 'J',\r\n         'letters': \/[\\u004A\\u24BF\\uFF2A\\u0134\\u0248]\/g\r\n       },\r\n       {\r\n         'base': 'K',\r\n         'letters': \/[\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2]\/g\r\n       },\r\n       {\r\n         'base': 'L',\r\n         'letters': \/[\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780]\/g\r\n       },\r\n       {\r\n         'base': 'LJ',\r\n         'letters': \/[\\u01C7]\/g\r\n       },\r\n       {\r\n         'base': 'Lj',\r\n         'letters': \/[\\u01C8]\/g\r\n       },\r\n       {\r\n         'base': 'M',\r\n         'letters': \/[\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C]\/g\r\n       },\r\n       {\r\n         'base': 'N',\r\n         'letters': \/[\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4]\/g\r\n       },\r\n       {\r\n         'base': 'NJ',\r\n         'letters': \/[\\u01CA]\/g\r\n       },\r\n       {\r\n         'base': 'Nj',\r\n         'letters': \/[\\u01CB]\/g\r\n       },\r\n       {\r\n         'base': 'O',\r\n         'letters': \/[\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C]\/g\r\n       },\r\n       {\r\n         'base': 'OI',\r\n         'letters': \/[\\u01A2]\/g\r\n       },\r\n       {\r\n         'base': 'OO',\r\n         'letters': \/[\\uA74E]\/g\r\n       },\r\n       {\r\n         'base': 'OU',\r\n         'letters': \/[\\u0222]\/g\r\n       },\r\n       {\r\n         'base': 'P',\r\n         'letters': \/[\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754]\/g\r\n       },\r\n       {\r\n         'base': 'Q',\r\n         'letters': \/[\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A]\/g\r\n       },\r\n       {\r\n         'base': 'R',\r\n         'letters': \/[\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782]\/g\r\n       },\r\n       {\r\n         'base': 'S',\r\n         'letters': \/[\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784]\/g\r\n       },\r\n       {\r\n         'base': 'T',\r\n         'letters': \/[\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786]\/g\r\n       },\r\n       {\r\n         'base': 'TZ',\r\n         'letters': \/[\\uA728]\/g\r\n       },\r\n       {\r\n         'base': 'U',\r\n         'letters': \/[\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244]\/g\r\n       },\r\n       {\r\n         'base': 'V',\r\n         'letters': \/[\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245]\/g\r\n       },\r\n       {\r\n         'base': 'VY',\r\n         'letters': \/[\\uA760]\/g\r\n       },\r\n       {\r\n         'base': 'W',\r\n         'letters': \/[\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72]\/g\r\n       },\r\n       {\r\n         'base': 'X',\r\n         'letters': \/[\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C]\/g\r\n       },\r\n       {\r\n         'base': 'Y',\r\n         'letters': \/[\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE]\/g\r\n       },\r\n       {\r\n         'base': 'Z',\r\n         'letters': \/[\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762]\/g\r\n       },\r\n       {\r\n         'base': 'a',\r\n         'letters': \/[\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250]\/g\r\n       },\r\n       {\r\n         'base': 'aa',\r\n         'letters': \/[\\uA733]\/g\r\n       },\r\n       {\r\n         'base': 'ae',\r\n         'letters': \/[\\u00E6\\u01FD\\u01E3]\/g\r\n       },\r\n       {\r\n         'base': 'ao',\r\n         'letters': \/[\\uA735]\/g\r\n       },\r\n       {\r\n         'base': 'au',\r\n         'letters': \/[\\uA737]\/g\r\n       },\r\n       {\r\n         'base': 'av',\r\n         'letters': \/[\\uA739\\uA73B]\/g\r\n       },\r\n       {\r\n         'base': 'ay',\r\n         'letters': \/[\\uA73D]\/g\r\n       },\r\n       {\r\n         'base': 'b',\r\n         'letters': \/[\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253]\/g\r\n       },\r\n       {\r\n         'base': 'c',\r\n         'letters': \/[\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184]\/g\r\n       },\r\n       {\r\n         'base': 'd',\r\n         'letters': \/[\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A]\/g\r\n       },\r\n       {\r\n         'base': 'dz',\r\n         'letters': \/[\\u01F3\\u01C6]\/g\r\n       },\r\n       {\r\n         'base': 'e',\r\n         'letters': \/[\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD]\/g\r\n       },\r\n       {\r\n         'base': 'f',\r\n         'letters': \/[\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C]\/g\r\n       },\r\n       {\r\n         'base': 'g',\r\n         'letters': \/[\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F]\/g\r\n       },\r\n       {\r\n         'base': 'h',\r\n         'letters': \/[\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265]\/g\r\n       },\r\n       {\r\n         'base': 'hv',\r\n         'letters': \/[\\u0195]\/g\r\n       },\r\n       {\r\n         'base': 'i',\r\n         'letters': \/[\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131]\/g\r\n       },\r\n       {\r\n         'base': 'j',\r\n         'letters': \/[\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249]\/g\r\n       },\r\n       {\r\n         'base': 'k',\r\n         'letters': \/[\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3]\/g\r\n       },\r\n       {\r\n         'base': 'l',\r\n         'letters': \/[\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747]\/g\r\n       },\r\n       {\r\n         'base': 'lj',\r\n         'letters': \/[\\u01C9]\/g\r\n       },\r\n       {\r\n         'base': 'm',\r\n         'letters': \/[\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F]\/g\r\n       },\r\n       {\r\n         'base': 'n',\r\n         'letters': \/[\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5]\/g\r\n       },\r\n       {\r\n         'base': 'nj',\r\n         'letters': \/[\\u01CC]\/g\r\n       },\r\n       {\r\n         'base': 'o',\r\n         'letters': \/[\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275]\/g\r\n       },\r\n       {\r\n         'base': 'oi',\r\n         'letters': \/[\\u01A3]\/g\r\n       },\r\n       {\r\n         'base': 'ou',\r\n         'letters': \/[\\u0223]\/g\r\n       },\r\n       {\r\n         'base': 'oo',\r\n         'letters': \/[\\uA74F]\/g\r\n       },\r\n       {\r\n         'base': 'p',\r\n         'letters': \/[\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755]\/g\r\n       },\r\n       {\r\n         'base': 'q',\r\n         'letters': \/[\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759]\/g\r\n       },\r\n       {\r\n         'base': 'r',\r\n         'letters': \/[\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783]\/g\r\n       },\r\n       {\r\n         'base': 's',\r\n         'letters': \/[\\u0073\\u24E2\\uFF53\\u00DF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B]\/g\r\n       },\r\n       {\r\n         'base': 't',\r\n         'letters': \/[\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787]\/g\r\n       },\r\n       {\r\n         'base': 'tz',\r\n         'letters': \/[\\uA729]\/g\r\n       },\r\n       {\r\n         'base': 'u',\r\n         'letters': \/[\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289]\/g\r\n       },\r\n       {\r\n         'base': 'v',\r\n         'letters': \/[\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C]\/g\r\n       },\r\n       {\r\n         'base': 'vy',\r\n         'letters': \/[\\uA761]\/g\r\n       },\r\n       {\r\n         'base': 'w',\r\n         'letters': \/[\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73]\/g\r\n       },\r\n       {\r\n         'base': 'x',\r\n         'letters': \/[\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D]\/g\r\n       },\r\n       {\r\n         'base': 'y',\r\n         'letters': \/[\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF]\/g\r\n       },\r\n       {\r\n         'base': 'z',\r\n         'letters': \/[\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763]\/g\r\n       }\r\n     ];\r\n   function cambiarTipoVehiculo(idSelect = \"segmento\"){\r\n       let valsegmento;\r\n       switch (tipoCotizacion) {\r\n           case \"AUTO_NUEVO\":  \r\n               valsegmento = paisdesdeelqueseestanavegando[0].usarGrupoSegmentoVehiculo == \"si\";\r\n               getSegmentos(valsegmento).then((d) => {\r\n                   let segmentoDefecto = getDefaultValue(segmentos);\r\n                   llenarSelectCatalogosGenericos(idSelect, segmentos, segmentoDefecto, \"Seleccione un segmento\");\r\n               }).catch(error => {\r\n                   console.log(error);\r\n                   return cotizadorInitFailedHandler();\r\n                 });\r\n               break;\r\n           case \"AUTO_USADO\": \r\n               valsegmento = paisdesdeelqueseestanavegando[0].usarGrupoSegmentoVehiculo == \"si\";\r\n               getSegmentos(valsegmento).then((d) => {\r\n                   let segmentoDefecto = getDefaultValue(segmentos);\r\n                   llenarSelectCatalogosGenericos(idSelect, segmentos, segmentoDefecto, \"Seleccione un segmento\");\r\n               }).catch(error => {\r\n                   console.log(error);\r\n                   return cotizadorInitFailedHandler();\r\n                 });\r\n               break;\r\n           case \"MOTO\":  \r\n               valsegmento = paisdesdeelqueseestanavegando[0].usarGrupoSegmentoMoto == \"si\";\r\n               getSegmentos(valsegmento).then((d) => {\r\n                   let segmentoDefecto = getDefaultValue(segmentos);\r\n                   llenarSelectCatalogosGenericos(idSelect, segmentos, segmentoDefecto, \"Seleccione un segmento\");\r\n               }).catch(error => {\r\n                   console.log(error);\r\n                   return cotizadorInitFailedHandler();\r\n                 });\r\n    \r\n               break;\r\n       }\r\n   }\r\n   function getDefaultValue(arreglo) {\r\n       let variableDefecto = null;\r\n       $.each(arreglo, function(i, val) {\r\n           if (\r\n               (val.Atributo1Nombre.toLocaleLowerCase().indexOf(\"defecto\") > 0 &&\r\n                   val.Atributo1Valor == \"SI\") ||\r\n               (val.Atributo2Nombre.toLocaleLowerCase().indexOf(\"defecto\") > 0 &&\r\n                   val.Atributo2Valor == \"SI\") ||\r\n               (val.Atributo3Nombre.toLocaleLowerCase().indexOf(\"defecto\") > 0 &&\r\n                   val.Atributo3Valor == \"SI\")\r\n           ) {\r\n               variableDefecto = val.CodigoElemento;\r\n           }\r\n       });\r\n       return variableDefecto;\r\n   }\r\n   \r\n   var formatosDocumentos = [{\r\n           codigoEngage: \"ZCRESV\",\r\n           pais: \"SV\",\r\n           nombre: \"Carnet de Residente\",\r\n           inputMask: \"\",\r\n       },\r\n       {\r\n           codigoEngage: \"ZDUI\",\r\n           pais: \"SV\",\r\n           nombre: \"DUI\",\r\n           inputMask: \"99999999-9\",\r\n       },\r\n       {\r\n           codigoEngage: \"ZNIT\",\r\n           pais: \"SV\",\r\n           nombre: \"NIT\",\r\n           inputMask: \"9999-999999-999-9\",\r\n       },\r\n       {\r\n           codigoEngage: \"ZPASSV\",\r\n           pais: \"SV\",\r\n           nombre: \"Pasaporte (Clientes El Salvador)\",\r\n           inputMask: \"\",\r\n       },\r\n       {\r\n           codigoEngage: \"ZREGSV\",\r\n           pais: \"SV\",\r\n           nombre: \"Registro Fiscal\",\r\n           inputMask: \"\",\r\n       },\r\n     \r\n   ];\r\n   \r\n   function doCotizadorRequest(\r\n       data,\r\n       showErrors = true,\r\n       serviceErrorHeader = \"Se ha producido un error\"\r\n   ) {\r\n       if (\r\n           codigoCanalEngage != undefined &&\r\n           codigoCanalEngage != null &&\r\n           codigoCanalEngage != \"\"\r\n       ) {\r\n           data[\"canal\"] = codigoCanalEngage;\r\n       }\r\n       return new Promise(function(resolve, reject) {\r\n           try {\r\n               $.ajax({\r\n                   url: \"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/commons\/cotizadorRequestHandler.php\",\r\n                   type: \"POST\",\r\n                   data: data,\r\n                   beforeSend: function() {\r\n                       showLoader();\r\n                   },\r\n                   success: function(response) {\r\n                       \/\/\/console.log(data);\r\n                       \/\/console.log(response);\r\n                       if (response.succeed == \"true\" || response.succeed) {\r\n                           resolve(response);\r\n                       } else {\r\n                           let error =\r\n                               response.error != undefined && response.error.message != undefined ?\r\n                               response.error.message :\r\n                               response.error != undefined ?\r\n                               response.error :\r\n                               \"Ha ocurrido un error al obtener los datos.\";\r\n                           if (showErrors) {\r\n                               \/\/showErrorMessage(error, serviceErrorHeader);\r\n                               error = \"<span style='font-size: 16px'>\" + error + \"<\/span>\";\r\n                               showErrorMessage(error, \"\");\r\n                           }\r\n                           reject(error);\r\n                       }\r\n                   },\r\n                   error: function(error) {\r\n                       if (showErrors) {\r\n                           showErrorMessage(\r\n                               \"<span style='font-size: 16px'>Ha ocurrido un error al consultar los datos.<\/span>\",\r\n                               \"\"\r\n                           );\r\n                       }\r\n                       reject(error);\r\n                   },\r\n                   complete: function(response) {\r\n                       hideLoader();\r\n                   },\r\n               });\r\n           } catch (e) {\r\n               if (showErrors) {\r\n                   showErrorMessage(\r\n                       \"<span style='font-size: 16px'>Ha ocurrido un error. Contacte con soporte.<\/span>\",\r\n                       \"\"\r\n                   );\r\n               }\r\n               reject(e);\r\n           }\r\n       });\r\n   }\r\n   function getOrigenComercial() {\r\n       checkCountry();\r\n       let codigoCatalogo = \"ORIGEN_COMERCIAL\";\r\n       let name =document.title; \r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           for(let i in d.data){\r\n               let o = d.data[i]; \r\n             \/\/  console.log(o.CodigoElemento+\": \"+o.DescripcionElemento);\r\n   \r\n   \/\/validando \r\n   var text = name.split(\"-\");\r\n   var title = text[0].trim().toLowerCase();\r\n   \r\n   if (o.DescripcionElemento.trim().toLowerCase().includes(title)){\r\n      \/\/  console.log(\"OK\");\r\n    \/\/console.log(o.CodigoElemento); \r\n    localStorage.setItem('origen',o.CodigoElemento);\r\n   } \r\n           }\r\n       });\r\n   }\r\n   \r\n    function showLoader() {\r\n       $(\"#cq-loader\").removeClass(\"hidden\");\r\n     }\r\n   \r\n     function hideLoader() {\r\n       $(\"#cq-loader\").addClass(\"hidden\");\r\n     }\r\n     function showWarningMessage(message, title = \"Atenci\u00f3n\") {\r\n       hideLoader();\r\n       Swal.fire({\r\n         icon: \"warning\",\r\n         title: title,\r\n         html: message,\r\n       });\r\n     }\r\n   \r\n     function showErrorMessage(message, title = \"Oops...\") {\r\n       hideLoader();\r\n       return Swal.fire({\r\n         icon: \"error\",\r\n         title: title,\r\n         html: message,\r\n       });\r\n     }\r\n   \r\n     function showSuccessMessage(message, title = \"\u00c9xito\") {\r\n       hideLoader();\r\n       return Swal.fire({\r\n         icon: \"success\",\r\n         title: title,\r\n         html: message,\r\n       });\r\n     }\r\n   \r\n   \r\n   \r\n       \r\n       function checkCountry(){\r\n         let path = window.location.pathname;\r\n         let countryPath = path.match(\/\\\/([^\/]+)\/)[1];\r\n   \r\n         if(countryPath == \"sv\" || countryPath == \"hn\" || countryPath == \"gt\" || countryPath == \"ni\" || countryPath == \"cr\" ){\r\n           countryPath = countryPath.toLocaleUpperCase();\r\n         }\r\n   \r\n         \/\/console.log(countryPath);\r\n         \/\/console.log(country);\r\n   \r\n         if(country != countryPath){\r\n           country = countryPath;\r\n         }\r\n       \r\n     }\r\n   \r\n    function precalificadorInitFailedHandler(){\r\n           \/\/console.log(\"init failed\");\r\n           showErrorMessage(\"<span style='font-size: 16px'>Estimado cliente, no se ha podido iniciar el servicio de cotizaci\u00f3n, por favor intente nuevamente.<\/span>\", \"\")\r\n           return false;\r\n       }\r\n       var country;\r\n       $(document).ready(function(){\r\n         country = localStorage.getItem(\"current_country\");\r\n        getOrigenComercial();\r\n         $(\"#segmento\").on(\"change\", function(e) {\r\n               actualizarDocumentosAdmitidosPorSegmento($(this).val());\r\n               $(\"#tipoDocumento\").change();\r\n           })\r\n           $(\"#precalificarBtn\").on('click', function(e){\r\n                       e.preventDefault();\r\n                       enviarDatos();\r\n           });\r\n     $(\"#cpcsa_limpiar_btn\").on(\"click\", function() {\r\n        resetForm();\r\n      });\r\n\r\n\r\n\/*SET INPUTS NOMBRE,APELLIDO,CORREO,CELULAR*\/\r\n\r\n const queryString = window.location.search;\r\n const urlParams = new URLSearchParams(queryString);\r\n let nombre= urlParams.get('nombre');\r\n let apellido= urlParams.get('apellido');\r\n let correo= urlParams.get('correo');\r\n let celular= urlParams.get('celular');\r\n\r\n  $(\"#nombrePreaprobacion\").val(nombre);\r\n  $(\"#apellidoPreaprobacion\").val(apellido);\r\n  $(\"#correoPreaprobacion\").val(correo);\r\n  $(\"#telefonoPreaprobacion\").val(celular);\r\n\r\n \r\n    getTipoPersona().then((d) => {\r\n   getDocumentos().then((d) => {\r\n   getTransportes().then((d) => {\r\n    getSegmentos().then((d) => {\r\n                               let segmentoDefecto = getDefaultValue(segmentos);\r\n                               llenarSelectCatalogosGenericos(\"segmento\", segmentos, segmentoDefecto, \"Seleccione un segmento\");\r\n    getTitulares().then((d) => {\r\n   getTipoProductos().then((d) => {\r\n   \r\n    $(\"#cot_radio1\").on(\"click\", function() {\r\n                   $(\"#label_nuevousado1\").css(\"background-color\", \"#196ab8\");\r\n                   $(\"#label_nuevousado1\").css(\"color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado2\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado2\").css(\"color\", \"#696969\");\r\n                   $(\"#label_nuevousado3\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado3\").css(\"color\", \"#696969\");\r\n                 });\r\n                 $(\"#cot_radio2\").on(\"click\", function() {\r\n                   $(\"#label_nuevousado2\").css(\"background-color\", \"#196ab8\");\r\n                   $(\"#label_nuevousado2\").css(\"color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado1\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado1\").css(\"color\", \"#696969\");\r\n                   $(\"#label_nuevousado3\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado3\").css(\"color\", \"#696969\");\r\n                 });\r\n                 $(\"#cot_radio3\").on(\"click\", function() {\r\n                   $(\"#label_nuevousado3\").css(\"background-color\", \"#196ab8\");\r\n                   $(\"#label_nuevousado3\").css(\"color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado1\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado1\").css(\"color\", \"#696969\");\r\n                   $(\"#label_nuevousado2\").css(\"background-color\", \"#ffffff\");\r\n                   $(\"#label_nuevousado2\").css(\"color\", \"#696969\");\r\n                 });\r\n                                       \/*\r\n                                       CODIGO PARA HABILITAR LOS RADIO BUTTON DE LOS TIPOS DE COTIZACION\r\n                                       *\/\r\n                                       let motos = false;\r\n                                       let vehiculos = false;\r\n                                       let titularNuevos = \"\";\r\n                                       let titularUsados = \"\";\r\n                                       let codigoTransporteMotos;\r\n                                       let codigoTransporteVehiculos;\r\n                                       for (let t of tipoTransporte) {\r\n                                           if (textIncludes(t.DescripcionElemento, \"Vehiculo\")) {\r\n                                               vehiculos = true;\r\n                                               codigoTransporteVehiculos = t.CodigoElemento;\r\n                                           }\r\n                                           if (textIncludes(t.DescripcionElemento, \"Moto\")) {\r\n                                               motos = true;\r\n                                               codigoTransporteMotos = t.CodigoElemento;\r\n                                           }\r\n                                       };\r\n                                       for (let t of titulares) {\r\n                                           if (t.CodigoElemento == \"GRUPOQ\") {\r\n                                               titularNuevos = t.CodigoElemento;\r\n                                           }\r\n                                           if (t.CodigoElemento == \"TERCEROS\") {\r\n                                               titularUsados = t.CodigoElemento;\r\n                                           }\r\n                                       };\r\n                                       for (let p of tipoProducto) {\r\n                                           if (motos) {\r\n                                               if (textIncludes(p.DescripcionElemento, \"Nuevo\") && titularNuevos != \"\") {\r\n                                                   $(\"#cot_radio3\").parent().removeClass(\"hidden\");\r\n                                                   $(\"#cot_radio3\").attr(\"data-transporte\", codigoTransporteMotos);\r\n                                                   $(\"#cot_radio3\").attr(\"data-producto\", p.CodigoElemento);\r\n                                                   $(\"#cot_radio3\").attr(\"data-titular\", titularNuevos);\r\n                                               }\r\n                                           }\r\n                                           if (vehiculos) {\r\n                                               if (textIncludes(p.DescripcionElemento, \"Nuevo\") && titularNuevos != \"\") {\r\n                                                   $(\"#cot_radio1\").parent().removeClass(\"hidden\");\r\n                                                   $(\"#cot_radio1\").attr(\"data-transporte\", codigoTransporteVehiculos);\r\n                                                   $(\"#cot_radio1\").attr(\"data-producto\", p.CodigoElemento);\r\n                                                   $(\"#cot_radio1\").attr(\"data-titular\", titularNuevos);\r\n                                               }\r\n                                               if (textIncludes(p.DescripcionElemento, \"Usado\") && titularUsados != \"\") {\r\n                                                   $(\"#cot_radio2\").parent().removeClass(\"hidden\");\r\n                                                   $(\"#cot_radio2\").attr(\"data-transporte\", codigoTransporteVehiculos);\r\n                                                   $(\"#cot_radio2\").attr(\"data-producto\", p.CodigoElemento);\r\n                                                   $(\"#cot_radio2\").attr(\"data-titular\", titularUsados);\r\n                                               }\r\n                                           }\r\n                                       };\r\n                                       $('input[name=\"cot_radio\"]').on(\"change\", function() {\r\n                                           $('input[name=\"cot_radio\"]').parent().find('label').removeClass(\"active\");\r\n                                           $(this).parent().find('label').addClass(\"active\");\r\n                                          tipoTransporteElegido = $(this).attr(\"data-transporte\");\r\n                                          tipoProductoElegido = $(this).attr(\"data-producto\");\r\n                                         titularTransporteElegido = $(this).attr(\"data-titular\");\r\n                                          tipoCotizacion = $(this).val(); \r\n                                           paisdesdeelqueseestanavegando = restriccionesporpaises.filter(pasi => pasi.countryman == country); \r\n                                           cambiarTipoVehiculo(\"segmento\");\r\n                                       });\r\n    $(\".cuadricula-nuevo-usado:not(hidden)\").first().find(\"input[name='cot_radio']\").click();\r\n    $(\"#tipoDocumento\").on(\"change\", function(e) {\r\n                                           $(\"#numeroDocumento\").val(\"\");\r\n                                           Inputmask.remove(document.getElementById(\"ndocumento\"));\r\n                                           let tipoDocumento = $(this).val();\r\n                                           let formato = formatosDocumentos.filter(f => f.codigoEngage == tipoDocumento);\r\n                                           formatoDocumento = formato.length > 0 ? formato[0] : {};\r\n                                           if (formatoDocumento != undefined && formatoDocumento != null && formatoDocumento != {}) {\r\n                                               let mask = formatoDocumento.inputMask;\r\n                                               if (mask != undefined && mask != null && mask != \"\") {\r\n                                                   Inputmask(mask).mask(document.getElementById(\"ndocumento\"));\r\n                                               }\r\n                                           }\r\n                                       });\r\n    $(\"#segmento\").change();\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n   }).catch(error => {\r\n                                       console.log(error);\r\n                                       return precalificadorInitFailedHandler();\r\n                                   });\r\n         }); \r\n   function getTitulares() {\r\n       let codigoCatalogo = \"TITULAR_VEHICULO\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           titulares = d.data;\r\n       });\r\n   }\r\n   function getMonedas() {\r\n       let codigoCatalogo = \"MONEDA\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           monedas = d.data;\r\n       });\r\n   }\r\n   \r\n   function getTipoVehiculos() {\r\n       let codigoCatalogo = \"TIPO_VEHICULO\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoVehiculo = d.data;\r\n       });\r\n   }\r\n   \r\n   function getTransportes() {\r\n       let codigoCatalogo = \"TIPO_TRANSPORTE\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoTransporte = d.data;\r\n       });\r\n   }\r\n   function getTipoProductos() {\r\n       let codigoCatalogo = \"TIPO_PRODUCTO\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoProducto = d.data;\r\n       });\r\n   }\r\n   function getDocumentos() {\r\n       let codigoCatalogo = \"TIPO_DOCUMENTO\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoDocumento = d.data.filter((doc) => doc.Atributo3Valor == \"SI\");\r\n           \/\/no trae el atributo necesario... :)\r\n           \/\/let documentoDefecto = getDefaultValue(tipoDocumento);\r\n       });\r\n   }\r\n   function getTipoProductos() {\r\n       let codigoCatalogo = \"TIPO_PRODUCTO\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoProducto = d.data;\r\n       });\r\n   }\r\n   function getTipoPersona() {\r\n       let codigoCatalogo = \"TIPO_PERSONA\";\r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           tipoPersona = d.data;\r\n       });\r\n   }\r\n   function getSegmentos(usarGrupoSegmento = true) {\r\n       let codigoCatalogo;  \r\n       codigoCatalogo = usarGrupoSegmento ? \"GRUPO_SEGMENTO\" : \"SEGMENTO\";  \r\n       let data = {\r\n           method: \"consultar_catalogo\",\r\n           pais: country,\r\n           catalogo: codigoCatalogo,\r\n       };\r\n       return doCotizadorRequest(data).then((d) => {\r\n           segmentos = d.data;\r\n       });\r\n   }  \r\n   function llenarSelectCatalogosGenericos(\r\n       identificador,\r\n       arreglo,\r\n       valorDefecto = null,\r\n       textoDefecto = \"Seleccione una opci\u00f3n\",\r\n       usarCodigoEnLugarDeDescripcion = false,\r\n       mostrarTextoDefecto = true,\r\n       nullable = false\r\n   ) {\r\n   \r\n       let html = \"\";\r\n       if(mostrarTextoDefecto){\r\n           html += \"<option selected='selected' \";  \r\n           if(!nullable){\r\n               html += \"disabled='disabled'\";\r\n           } \r\n           html += \" value=''>\"+textoDefecto+\"<\/option>\";\r\n       }\r\n       if (arreglo.length > 0) {\r\n           $.each(arreglo, function(i, val) {\r\n               let codigo = val.CodigoElemento;\r\n               let descripcion = usarCodigoEnLugarDeDescripcion ?\r\n                   codigo :\r\n                   val.DescripcionElemento;\r\n               let option =\r\n                   \"<option value='\" + codigo + \"'>\" + descripcion + \"<\/option>\";\r\n               html += option;\r\n           });\r\n       } else {\r\n           html =\r\n               \"<option selected='selected' disabled='disabled'>No hay opciones disponibles<\/option>\";\r\n       }\r\n       $(\"#\" + identificador).html(html);\r\n       if (valorDefecto != null) {\r\n           $(\"#\" + identificador).val(valorDefecto);\r\n       }\r\n   }\r\n   \r\n     function normalizeText(str) {\r\n      var changes;\r\n       if (!changes) {\r\n         changes = defaultDiacriticsRemovalMap;\r\n       }\r\n       for (var i = 0; i < changes.length; i++) {\r\n         str = str.replace(changes[i].letters, changes[i].base);\r\n       }\r\n       return str;\r\n     }\r\n     function actualizarDocumentosAdmitidosPorSegmento(codigoSegmento) {\r\n           let actualValue = $(\"#segmento\").val();\r\n           let seg = segmentos.filter((d) => {\r\n               return d.CodigoElemento == codigoSegmento\r\n           })[0];\r\n           let tp = tipoPersona.filter((t) => {\r\n               return t.CodigoElemento == seg.Atributo3Valor;\r\n           })[0]; \r\n           let tipoPersonaQueAplica = normalizeText(tp.DescripcionElemento);\/\/Natural||Juridica\r\n           let documentosAdmitidos = tipoDocumento.filter((td) => {\r\n               \/\/Atributo1Valor = persona natural\r\n               let aplicaPersonaNatural = td.Atributo1Valor == \"SI\";\r\n               \/\/Atributo2Valor = extranjeros\r\n               let aplicaExtranjeros = td.Atributo2Valor == \"SI\";\r\n               \/\/Atributo3Valor = es preaprobable\r\n               let esPreaprobable = td.Atributo3Valor == \"SI\";\r\n               \/\/Atributo4Valor = juridica\r\n               let aplicaPersonaJuridica = td.Atributo4Valor == \"SI\";\r\n               \/\/valores posibles \"SI\" o \"NO\"\r\n               \/\/return td.Atributo1Valor == tp.CodigoElemento || td.Atributo1Valor == \"\";\r\n               return esPreaprobable && \r\n               (\r\n                   (\r\n                       tipoPersonaQueAplica == \"Natural\"\r\n                       && (aplicaPersonaNatural || aplicaExtranjeros)\r\n                   )\r\n                   ||\r\n                   (\r\n                       tipoPersonaQueAplica == \"Juridica\"\r\n                       && aplicaPersonaJuridica\r\n                   )\r\n               )\r\n           });\r\n           llenarSelectCatalogosGenericos(\"tipoDocumento\", documentosAdmitidos, null, \"Documento de identificaci\u00f3n\");\r\n           $(\"#tipoDocumento\").val(actualValue);\r\n       }\r\n   \r\n   function validarDocumento() {\r\n           let value = document.getElementById(\"ndocumento\").value;\r\n           let valid = true;\r\n           if (value != \"\") {\r\n               if (formatoDocumento != undefined && formatoDocumento != null) {\r\n                   let mask = formatoDocumento.inputMask;\r\n                   if (mask != undefined && mask != null && mask != \"\") {\r\n                       valid = Inputmask(mask).isValid(value);\r\n                       value = Inputmask(mask).unmaskedvalue(value);\r\n                   }\r\n                   if (formatoDocumento.funcionValidadora != undefined && formatoDocumento.funcionValidadora != null) {\r\n                       valid = formatoDocumento.funcionValidadora(value);\r\n                   }\r\n               }\r\n           } else {\r\n               valid = false;\r\n           }\r\n           return valid;\r\n       }\r\n   function validateForm() {\r\n       let nombre = $(\"#nombrePreaprobacion\").val();\r\n       let apellido = $(\"#apellidoPreaprobacion\").val();\r\n       let correo = $(\"#correoPreaprobacion\").val();\r\n       let telefono = $(\"#telefonoPreaprobacion\").val();\r\n       let tipoVehiculo = $(\"input[name=cot_radio]\").val();\r\n       let segmento = $(\"#segmento\").val();\r\n       let tipoDocumento = $(\"#tipoDocumento\").val();\r\n       let numeroDocumento = $(\"#numeroDocumento\").val(); \r\n       let ingresos = $(\"#ingresos\").val();\r\n       let terminos = $(\"#aceptarTerminosToggle\").prop(\"checked\");\r\n       var emailReg = \/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$\/;\r\n       if (nombre == \"\") {\r\n           showErrorMessage(\"Por favor ingresa tu nombre.\");\r\n           return false;\r\n       } else if (apellido == \"\") {\r\n           showErrorMessage(\"Por favor ingresa tu apellido.\");\r\n           return false;\r\n       } else if (telefono == \"\" || telefono.length !== 8) {\r\n           showErrorMessage(\"Por favor verifica que tu n\u00famero de t\u00e9lefono posea 8 caract\u00e9res.\");\r\n           return false;\r\n       } else if (correo == \"\") {\r\n           showErrorMessage(\"Por favor ingresa tu correo.\");\r\n           return false;\r\n       } else if (!emailReg.test(correo)) {\r\n           showErrorMessage(\"Por favor, ingresa un correo electr\u00f3nico v\u00e1lido.\");\r\n           return false;\r\n       } else if (tipoVehiculo == \"\") {\r\n           showErrorMessage(\"Por favor, selecciona el tipo de vehiculo.\");\r\n           return false;\r\n       } else if (segmento == \"\") {\r\n           showErrorMessage(\"Por favor, selecciona el segmento.\");\r\n           return false;\r\n       } else if (!validarDocumento()) {\r\n           showErrorMessage(\"Por favor ingresa un n\u00famero de documento valido.\");\r\n           return false;\r\n       } else if (ingresos == \"\" || ingresos < 0) {\r\n           showErrorMessage(\"Por favor, verifica tus ingresos.\");\r\n           return false;\r\n       } else if (!terminos) {\r\n           showErrorMessage(\"Debes aceptar los terminos y condiciones.\");\r\n           return false;\r\n       }\r\n       return true;\r\n   }\r\n    \r\n     function enviarDatos(e){\r\n               if (validateForm()) {\r\n                 const queryString = window.location.search;\r\n               const urlParams = new URLSearchParams(queryString);\r\n               let campania = urlParams.get('campana');\r\n               if(campania == undefined || campania == null || campania == \"\"){\r\n                   campania = \"Z06\";\r\n               }\r\n               let referer = urlParams.get('referer');\r\n               let pais = localStorage.getItem(\"user_session_country\");\r\n               let codigo = localStorage.getItem(\"user_session_sap_code\");\r\n               let nombre = $(\"#nombrePreaprobacion\").val();\r\n               let apellido = $(\"#apellidoPreaprobacion\").val();\r\n               let correo = $(\"#correoPreaprobacion\").val();\r\n               let telefono = $(\"#telefonoPreaprobacion\").val();\r\n               let tipoVehiculoElement = $(\"input[name=cot_radio]\").filter(':checked');\r\n               let tipoVehiculo = tipoVehiculoElement.val();\r\n               let tipoTransporteElegido = tipoVehiculoElement.attr(\"data-transporte\");\r\n               let tipoProductoElegido = tipoVehiculoElement.attr(\"data-producto\");\r\n               let titularTransporteElegido = tipoVehiculoElement.attr(\"data-titular\");\r\n               let segmento = $(\"#segmento\").val();\r\n               let seg = segmentos.filter((d) => {\r\n                   return d.CodigoElemento == segmento\r\n               })[0];\r\n               let tp = tipoPersona.filter((t) => {\r\n                   return t.CodigoElemento == seg.Atributo3Valor;\r\n               })[0];\r\n               tp = tp.CodigoElemento;\r\n               let tipoDocumento = $(\"#tipoDocumento\").val();\r\n               let numeroDocumento = document.getElementById(\"ndocumento\").value;\r\n               let mask = formatoDocumento.inputMask;\r\n               if(mask != undefined && mask != null && mask != \"\"){\r\n                   numeroDocumento = Inputmask(mask).unmaskedvalue(numeroDocumento);\r\n               }\r\n               let moneda = $(\"#monedaIngresos\").val();\r\n               let ingresos = stringToFloat($(\"#ingresos\").val());\r\n               let marca = \"\";\r\n               let modelo = \"\";\r\n               let placa = \"\";\r\n   \r\n               let tipo_vehiculo = \"\";\r\n               let uso_vehiculo = \"\";\r\n               let prima = \"\";\r\n               let valor_prima = \"\";\r\n               let producto = \"\";\r\n   \r\n               if (referer == \"asesor\") {\r\n                   tipo_vehiculo = localStorage.getItem(\"adviser_type_vehicle\"),\r\n                       uso_vehiculo = localStorage.getItem(\"adviser_use_vehicle\"),\r\n                       prima = localStorage.getItem(\"adviser_bounty\"),\r\n                       valor_prima = localStorage.getItem(\"adviser_bounty_value\"),\r\n                       producto = localStorage.getItem(\"adviser_product\")\r\n                   let mainUrl = document.URL.split(\"?\")[0];\r\n                   window.history.replaceState({}, document.title, mainUrl);\r\n               }\r\n               if (codigo == undefined || codigo == null) {\r\n                   codigo = \"\";\r\n               }\r\n               if (valor_prima == undefined || valor_prima == null || valor_prima == \"\") {\r\n                   valor_prima = 0;\r\n               }\r\n               showLoader();\r\n               let dataIniciarSesion = {\r\n                   \"pais\": country,\r\n                   \"method\": \"iniciar_sesion\",\r\n                   \"nombre\": nombre + \" \" + apellido,\r\n                   \"telefono\": telefono,\r\n                   \"correo\": correo,\r\n                   \"tipoPersona\": tp,\r\n                   \"tipoDocumento\": tipoDocumento,\r\n                   \"numeroDocumento\": numeroDocumento,\r\n                   \"forzarNuevaSesion\": \"true\"\r\n               }\r\n               doCotizadorRequest(dataIniciarSesion).then(function(d) {\r\n                   let segmentoPrecalificacion = $(\"#segmento option:selected\").text();\r\n                   let tipoDocumentoPrecalificacion = $(\"#tipoDocumento option:selected\").text();\r\n                    let idAbsolutoSesion = d.data[0].IdentificadorUnicoSesion;\r\n                   let tipoSegmento;  \r\n                   if(tipoTransporteElegido == 1){\r\n                       if (paisdesdeelqueseestanavegando[0].usarGrupoSegmentoVehiculo == \"si\") {\r\n                           valsegmento = true;\r\n                           }\r\n                           else{\r\n                           valsegmento = false; \r\n                           }\r\n                   }\r\n                   else{\r\n                       if (paisdesdeelqueseestanavegando[0].usarGrupoSegmentoMoto == \"si\") {\r\n                           valsegmento = true;\r\n                           }\r\n                           else{\r\n                           valsegmento = false; \r\n                           }\r\n                   }  \r\n                   tipoSegmento = (valsegmento ? \"grupoSegmento\" : \"segmento\");  \r\n                   let dataPrecalificacion = {\r\n                       \"method\": \"precalificar_monto\",\r\n                       \"tipoTransporte\": tipoTransporteElegido,\r\n                       \"tipoProducto\": tipoProductoElegido,\r\n                       \"titularVehiculo\": titularTransporteElegido,\r\n                       \"moneda\": moneda,\r\n                       \"ingresos\": ingresos,\r\n                       \"pais\": country,\r\n                       \"segmentoPrecalificacion\": segmentoPrecalificacion,\r\n                       \"tipoDocumentoPrecalificacion\": tipoDocumentoPrecalificacion,\r\n                       \"nombre\": nombre,\r\n                       \"apellido\": apellido,\r\n                       \"telefono\": telefono,\r\n                       \"email\": correo,\r\n                       \"origen\":campania,\r\n                       \"numeroDocumento\": numeroDocumento,\r\n                      \"identificadorUnicoSesion\": idAbsolutoSesion\r\n                   };\r\n                   dataPrecalificacion[tipoSegmento] = segmento;\r\n                   doCotizadorRequest(dataPrecalificacion).then(function(d) {\r\n                        showLoader();\r\n                   \/\/console.log(d);\r\n                   let res = d.data;\r\n                   let preaprobacion = res.PreAprobacionMonto;\r\n                   let mensajeGuia = d.mensajeGuia != undefined ? d.mensajeGuia : \"\";\r\n                   let montoAprobado = 0;\r\n                   let cuotaAprobada = 0;\r\n                   let isPreaprobado = false;\r\n                   let cartaOferta = res.CartaPreAprobacionMonto;\r\n                   if (preaprobacion != undefined) {\r\n                       if (preaprobacion.ResultadoPreAprobacion == \"OK\") {\r\n                           montoAprobado = parseFloat(preaprobacion.MontoMaximoPrestamo);\r\n                           cuotaAprobada = parseFloat(preaprobacion.CuotaMaxima);\r\n                           if (montoAprobado > 0 || cuotaAprobada > 0) {\r\n                               isPreaprobado = true;\r\n                           }\r\n                       }\r\n                   }\r\n                   if (isPreaprobado) {\r\n                       if(cartaOferta != undefined){\r\n                           cartaOferta = cartaOferta.CartapreAprobacionMonto;\r\n                       }\r\n                       let monto = AddCommasToStringWithOnePoint(montoAprobado);\r\n                       let cuota = AddCommasToStringWithOnePoint(cuotaAprobada);\r\n                       let moneda = monedasyrangos.filter(m => m.codigo == $(\"#monedaIngresos\").val());\r\n                       let simbolo = moneda.length > 0 ? moneda[0].simbolo : \"\";\r\n                       cuotaAprobada = simbolo+cuota;\r\n                       montoAprobado = simbolo+monto;\r\n                       let message = \"Felicidades! CrediQ te ha preaprobado un monto m\u00e1ximo de \" + simbolo + monto + \" , y cuota m\u00e1xima de \" + simbolo + cuota + \".\";\r\n                      \r\n                   } else {\r\n                       montoAprobado = \"\";\r\n                       cuotaAprobada = \"\"; \r\n                   }\r\n                   let url = \"https:\/\/crediq.com\/sv\/gracias\";\r\n      localStorage.setItem(\"montoaprobado\",montoAprobado);\r\n      localStorage.setItem(\"cuotaaprobada\",cuotaAprobada);\r\n      localStorage.setItem(\"origen\",'preaprobador');\r\n      localStorage.setItem(\"mensajeguia\",mensajeGuia);\r\n                  \/* let params = {\r\n                       montoAprobado: montoAprobado,\r\n                       cuotaAprobada: cuotaAprobada,\r\n                       origen: 'preaprobador',\r\n                       mensajeGuia: mensajeGuia,\r\n                       pais: country\r\n                   }\r\n                   redirectPost(url, params);*\/\r\n                    window.location=url;\r\n                       \r\n                   });\r\n               });\r\n           }\r\n           } \r\n       \r\n           function resetForm(){\r\n               $(\"#nombrePreaprobacion\").val(\"\");\r\n           $(\"#apellidoPreaprobacion\").val(\"\");\r\n           $(\"#correoPreaprobacion\").val(\"\");\r\n           $(\"#telefonoPreaprobacion\").val(\"\");\r\n           $(\"#aceptarTerminosToggle\").prop(\"checked\", false);\r\n           $(\"#segmento\").val(0);\r\n           $(\"#tipoDocumento\").val(0);\r\n           $(\"#ndocumento\").val(\"\"); \r\n           $(\"#ingresos\").val('');\r\n           $(\"#ingresos\").blur();\r\n           $(\".cuadricula-nuevo-usado:not(.hidden)\").first().find(\"input[name='cot_radio']\").click();\r\n           }\r\n       function countryLookup() {\r\n           let ip = '';\r\n           \/\/testing IP\r\n           \/\/CR\r\n           \/\/ip = '131.108.36.12';\r\n           \/\/NI\r\n           \/\/ip = '138.185.28.39';\r\n           \/\/SV\r\n           \/\/ip = '138.99.180.12';\r\n           let url = 'https:\/\/geolocation-db.com\/json\/' + ip;\r\n           return jQuery.ajax({\r\n               url: url,\r\n               async: false,\r\n               method: \"POST\"\r\n           });\r\n       }\r\n   \r\n    \r\n       \r\n<\/script>\r\n\r\n<style>\r\n    @font-face {\r\n      font-family: \"Poppins-Black\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Black.ttf\");\r\n    }\r\n    @font-face {\r\n      font-family: \"Poppins-BlackItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-BlackItalic.ttf\");\r\n    }\r\n   @font-face {\r\n      font-family: \"Poppins-Bold\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Bold.ttf\");\r\n    }\r\n    @font-face {\r\n      font-family: \"Poppins-BoldItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-BoldItalic.ttf\");\r\n    }\r\n   @font-face {\r\n      font-family: \"Poppins-ExtraBold\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-ExtraBold.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-ExtraBoldItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-ExtraBoldItalic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-ExtraLight\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-ExtraLight.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-ExtraLightItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-ExtraBoldItalic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-Italic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Italic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-Light\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Light.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-LightItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-LightItalic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-Medium\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Medium.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-MediumItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-MediumItalic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Regular.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-SemiBold\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-SemiBold.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-SemiBoldItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-SemiBoldItalic.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-Thin\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-Thin.ttf\");\r\n    }@font-face {\r\n      font-family: \"Poppins-ThinItalic\";\r\n      src: url(\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/fonts\/Poppins-ThinItalic.ttf\");\r\n    }    .hidden {\r\n            display: none !important;\r\n            visibility: hidden !important;\r\n        }\r\n        .terminos-condiciones {\r\n            background-color: #ebebeb;\r\n            color: #828282;\r\n            max-height: 90px;\r\n            overflow: auto;\r\n            padding: 20px;\r\n        }\r\n        #cq-loader {\r\n      position: fixed;\r\n      top: 0;\r\n      bottom: 0;\r\n      left: 0;\r\n      right: 0;\r\n      background-color: rgb(0 0 0 \/ 45%);\r\n      z-index: 10000;\r\n      display: flex;\r\n      align-items: center;\r\n      justify-content: center;\r\n    }\r\n    #cq-loader > img {\r\n      max-width: 75px;\r\n      width: 100%;\r\n      height: auto;\r\n    }\r\n    .pretext{\r\n    display: flex;\r\n    flex-direction: row;\r\n    justify-content: flex-end;\r\n    width: calc(100%);\r\n    }\r\n    .input-color{\r\n    border-radius: 8px !important;\r\n    border: 1px solid #006cb6 !important;\r\n    height: 3rem !important;\r\n    font-size: var(--font-small) !important;\r\n    }\r\n    .select-color{\r\n    border-color: #006cb6 !important;\r\n    border-radius: 8px;\r\n    font-size: var(--font-small) !important;\r\n    color: #696969 !important;\r\n    height: 3rem;\r\n    max-width: 100%;\r\n    min-width: auto;\r\n    background: url('data:image\/svg+xml;utf-8,<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"24\" height=\"24\" fill=\"%23006cb6\"><path d=\"M7 10l5 5 5-5z\"\/><path d=\"M0 0h24v24H0z\" fill=\"none\"\/><\/svg>') 100% 50% no-repeat transparent;\r\n      background-position-x: 100%;\r\n      background-position-y: 50%;\r\n      background-repeat: no-repeat;\r\n    background-position: right;\r\n    background-repeat: no-repeat;\r\n    white-space: nowrap;\r\n    overflow: hidden;\r\n    text-overflow: ellipsis;\r\n    }\r\n    .btn-solicitud{\r\n    border-color: #006cb6 !important;\r\n    border-radius: 8px !important;\r\n    margin-right: 10px !important;\r\n    margin-left: 10px !important;\r\n    font-size: var(--font-small);\r\n    color: #696969 !important;\r\n    width: 18%;\r\n    }\r\n    .btn-limpiar{\r\n    border-color: #006cb6 !important;\r\n    border-radius: 8px !important;\r\n    margin-right: 10px !important;\r\n    margin-left: 10px !important;\r\n    font-size: var(--font-small);\r\n    color: #696969 !important;\r\n    }\r\n    #ingresosContainer {\r\n      display: flex;\r\n      flex-direction: row;\r\n      justify-content: space-between;\r\n      align-items: center;\r\n      border: 1px solid #006cb6;\r\n      border-radius: 5px;\r\n      padding: 0 !important;\r\n      margin-top: 10px;\r\n    }\r\n    #ingresos {\r\n      margin: 0 !important;\r\n      border: 0 !important;\r\n      padding-left: 5px !important;\r\n    }\r\n    .simbolomonedacaja {\r\n      padding-left: 10px;\r\n    }\r\n\r\n    .switch {\r\n      opacity: 0;\r\n      position: absolute;\r\n      z-index: 1;\r\n      width: 18px;\r\n      height: 18px;\r\n      cursor: pointer;\r\n    }\r\n    .switch + .lable {\r\n      position: relative;\r\n      display: inline-block;\r\n      margin: 0;\r\n      line-height: 20px;\r\n      min-height: 18px;\r\n      min-width: 18px;\r\n      font-weight: normal;\r\n      cursor: pointer;\r\n    }\r\n    .switch + .lable::before {\r\n      cursor: pointer;\r\n      font-family: fontAwesome;\r\n      font-weight: normal;\r\n      font-size: 12px;\r\n      color: #32a3ce;\r\n      content: \"\\a0\";\r\n      background-color: #fafafa;\r\n      border: 1px solid #c8c8c8;\r\n      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\r\n      border-radius: 0;\r\n      display: inline-block;\r\n      text-align: center;\r\n      height: 16px;\r\n      line-height: 14px;\r\n      min-width: 16px;\r\n      margin-right: 1px;\r\n      position: relative;\r\n      top: -1px;\r\n    }\r\n    .switch:checked + .lable::before {\r\n      display: inline-block;\r\n      \/*content: '\\f00c';*\/\r\n      background-color: #f5f8fc;\r\n      border-color: #adb8c0;\r\n      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),\r\n        inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05),\r\n        inset 15px 10px -12px rgba(255, 255, 255, 0.1);\r\n    }\r\n    \/* CSS3 on\/off switches *\/\r\n    .switch + .lable {\r\n      margin: 0 4px;\r\n      min-height: 24px;\r\n    }\r\n    .switch + .lable::before {\r\n      font-weight: normal;\r\n      font-size: 11px;\r\n      line-height: 17px;\r\n      height: 20px;\r\n      overflow: hidden;\r\n      border-radius: 15px;\r\n      background-color: #f5f5f5;\r\n      -webkit-box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.15);\r\n      box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.15);\r\n      border: 1px solid #ccc;\r\n      text-align: left;\r\n      float: left;\r\n      padding: 0;\r\n      width: 52px;\r\n      text-indent: -21px;\r\n      margin-right: 0;\r\n      -webkit-transition: text-indent 0.3s ease;\r\n      -o-transition: text-indent 0.3s ease;\r\n      transition: text-indent 0.3s ease;\r\n      top: auto;\r\n    }\r\n    .switch.switch-bootstrap + .lable::before {\r\n      font-family: FontAwesome;\r\n      \/*content: \"\\f00d\";*\/\r\n      box-shadow: none;\r\n      border-width: 0;\r\n      font-size: 16px;\r\n      background-color: #a9a9a9;\r\n      color: #f2f2f2;\r\n      width: 52px;\r\n      height: 27px;\r\n      line-height: 21px;\r\n      text-indent: 32px;\r\n      -webkit-transition: background 0.1s ease;\r\n      -o-transition: background 0.1s ease;\r\n      transition: background 0.1s ease;\r\n    }\r\n    .switch.switch-bootstrap + .lable::after {\r\n      content: \"\";\r\n      position: absolute;\r\n      top: 2px;\r\n      left: 3px;\r\n      border-radius: 12px;\r\n      box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\r\n      width: 22px;\r\n      height: 22px;\r\n      text-align: center;\r\n      background-color: #f2f2f2;\r\n      border: 4px solid #f2f2f2;\r\n      -webkit-transition: left 0.2s ease;\r\n      -o-transition: left 0.2s ease;\r\n      transition: left 0.2s ease;\r\n    }\r\n    .switch.switch-bootstrap:checked + .lable::before {\r\n      \/*content: \"\\f00c\";*\/\r\n      text-indent: 6px;\r\n      color: #fff;\r\n      border-color: #b7d3e5;\r\n    }\r\n    .switch-primary > .switch.switch-bootstrap:checked + .lable::before {\r\n      background-color: #337ab7;\r\n    }\r\n    .switch-success > .switch.switch-bootstrap:checked + .lable::before {\r\n      background-color: #5cb85c;\r\n    }\r\n    .switch-danger > .switch.switch-bootstrap:checked + .lable::before {\r\n      background-color: #d9534f;\r\n    }\r\n    .switch-info > .switch.switch-bootstrap:checked + .lable::before {\r\n      background-color: #5bc0de;\r\n    }\r\n    .switch-warning > .switch.switch-bootstrap:checked + .lable::before {\r\n      background-color: #f0ad4e;\r\n    }\r\n    .switch.switch-bootstrap:checked + .lable::after {\r\n      left: 27px;\r\n      background-color: #fff;\r\n      border: 4px solid #fff;\r\n      text-shadow: 0 -1px 0 rgba(0, 200, 0, 0.25);\r\n    }\r\n    \/* square *\/\r\n    .switch-square {\r\n      opacity: 0;\r\n      position: absolute;\r\n      z-index: 1;\r\n      width: 18px;\r\n      height: 18px;\r\n      cursor: pointer;\r\n    }\r\n    .switch-square + .lable {\r\n      position: relative;\r\n      display: inline-block;\r\n      margin: 0;\r\n      line-height: 20px;\r\n      min-height: 18px;\r\n      min-width: 18px;\r\n      font-weight: normal;\r\n      cursor: pointer;\r\n    }\r\n    .switch-square + .lable::before {\r\n      cursor: pointer;\r\n      font-family: fontAwesome;\r\n      font-weight: normal;\r\n      font-size: 12px;\r\n      color: #32a3ce;\r\n      content: \"\\a0\";\r\n      background-color: #fafafa;\r\n      border: 1px solid #c8c8c8;\r\n      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\r\n      border-radius: 0;\r\n      display: inline-block;\r\n      text-align: center;\r\n      height: 16px;\r\n      line-height: 14px;\r\n      min-width: 16px;\r\n      margin-right: 1px;\r\n      position: relative;\r\n      top: -1px;\r\n    }\r\n    .switch-square:checked + .lable::before {\r\n      display: inline-block;\r\n      \/*content: '\\f00c';*\/\r\n      background-color: #f5f8fc;\r\n      border-color: #adb8c0;\r\n      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),\r\n        inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05),\r\n        inset 15px 10px -12px rgba(255, 255, 255, 0.1);\r\n    }\r\n    \/* CSS3 on\/off switches *\/\r\n    .switch-square + .lable {\r\n      margin: 0 4px;\r\n      min-height: 24px;\r\n    }\r\n    .switch-square + .lable::before {\r\n      font-weight: normal;\r\n      font-size: 11px;\r\n      line-height: 17px;\r\n      height: 20px;\r\n      overflow: hidden;\r\n      border-radius: 2px;\r\n      background-color: #f5f5f5;\r\n      -webkit-box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.15);\r\n      box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.15);\r\n      border: 1px solid #ccc;\r\n      text-align: left;\r\n      float: left;\r\n      padding: 0;\r\n      width: 52px;\r\n      text-indent: -21px;\r\n      margin-right: 0;\r\n      -webkit-transition: text-indent 0.3s ease;\r\n      -o-transition: text-indent 0.3s ease;\r\n      transition: text-indent 0.3s ease;\r\n      top: auto;\r\n    }\r\n    .switch-square.switch-bootstrap + .lable::before {\r\n      font-family: FontAwesome;\r\n      \/*content: \"\\f00d\";*\/\r\n      box-shadow: none;\r\n      border-width: 0;\r\n      font-size: 16px;\r\n      background-color: #a9a9a9;\r\n      color: #f2f2f2;\r\n      width: 52px;\r\n      height: 22px;\r\n      line-height: 21px;\r\n      text-indent: 32px;\r\n      -webkit-transition: background 0.1s ease;\r\n      -o-transition: background 0.1s ease;\r\n      transition: background 0.1s ease;\r\n    }\r\n    .switch-square.switch-bootstrap + .lable::after {\r\n      content: \"\";\r\n      position: absolute;\r\n      top: 2px;\r\n      left: 3px;\r\n      border-radius: 12px;\r\n      box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\r\n      width: 18px;\r\n      height: 18px;\r\n      text-align: center;\r\n      background-color: #f2f2f2;\r\n      border: 4px solid #f2f2f2;\r\n      -webkit-transition: left 0.2s ease;\r\n      -o-transition: left 0.2s ease;\r\n      transition: left 0.2s ease;\r\n    }\r\n    .switch-square.switch-bootstrap:checked + .lable::before {\r\n      \/*content: \"\\f00c\";*\/\r\n      text-indent: 6px;\r\n      color: #fff;\r\n      border-color: #b7d3e5;\r\n    }\r\n    .switch-primary > .switch-square.switch-bootstrap:checked + .lable::before {\r\n      background-color: #337ab7;\r\n    }\r\n    .switch-success > .switch-square.switch-bootstrap:checked + .lable::before {\r\n      background-color: #5cb85c;\r\n    }\r\n    .switch-danger > .switch-square.switch-bootstrap:checked + .lable::before {\r\n      background-color: #d9534f;\r\n    }\r\n    .switch-info > .switch-square.switch-bootstrap:checked + .lable::before {\r\n      background-color: #5bc0de;\r\n    }\r\n    .switch-warning > .switch-square.switch-bootstrap:checked + .lable::before {\r\n      background-color: #f0ad4e;\r\n    }\r\n    .switch-square.switch-bootstrap:checked + .lable::after {\r\n      left: 32px;\r\n      background-color: #fff;\r\n      border: 4px solid #fff;\r\n      text-shadow: 0 -1px 0 rgba(0, 200, 0, 0.25);\r\n    }\r\n    .switch-square.switch-bootstrap + .lable::after {\r\n      border-radius: 2px;\r\n    }.switch-container {\r\n      display: flex;\r\n      flex-direction: row;\r\n      align-items: center;\r\n      font-size: 14px;\r\n      color: #828282;\r\n    }\r\n    .calculadora-radios {\r\n      display: flex;\r\n      justify-content: space-around;\r\n    }\r\n        .cuadricula-nuevo-usado {\r\n          font-family: \"Open Sans\", sans-serif !important;\r\n      display: flex;\r\n      align-items: flex-end;\r\n      width: 100% !important;\r\n      padding-left: 0 !important;\r\n    }\r\n    .btn-check {\r\n      position: absolute;\r\n      clip: rect(0,0,0,0);\r\n      pointer-events: none;\r\n    }\r\n    .btn-nuevo-usado {\r\n      font-family: 'Poppins-SemiBold';\r\n      height: 70%;\r\n      display: flex !important;\r\n      align-items: center;\r\n      justify-content: center;\r\n      width: 95%;\r\n      border-radius: 50px !important;\r\n      border-color: #196ab8 !important;\r\n      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);\r\n    }\r\n    .btn {\r\n      display: inline-block;\r\n      font-weight: 400;\r\n      line-height: 1.5;\r\n      color: #212529;\r\n      text-align: center;\r\n      text-decoration: none;\r\n      vertical-align: middle;\r\n      cursor: pointer;\r\n      -webkit-user-select: none;\r\n      -moz-user-select: none;\r\n      user-select: none;\r\n      background-color: transparent;\r\n      border: 1px solid transparent;\r\n        border-top-color: transparent;\r\n        border-right-color: transparent;\r\n        border-bottom-color: transparent;\r\n        border-left-color: transparent;\r\n      padding: .375rem .75rem;\r\n      font-size: 1rem;\r\n      border-radius: .25rem;\r\n      transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;\r\n    }\r\n.bg-loaded{\r\n  background-position-y: 26% !important;\r\n}\r\n        <\/style>\r\n<div id=\"cq-loader\" class=\"hidden\">\r\n   <img decoding=\"async\" src=\"https:\/\/digital.crediq.com\/wp-content\/themes\/digitaltheme\/images\/loading.gif\" \/>\r\n<\/div>\r\n<form action=\"\" method=\"post\">\r\n   <div class=\"row\">\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"nombre\">Nombre: <\/label>\r\n      <input type=\"text\" class=\"input-color\" id=\"nombrePreaprobacion\" placeholder=\"Nombre\">\r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"apellido\">Apellido: <\/label>\r\n      <input type=\"text\" class=\"input-color\" id=\"apellidoPreaprobacion\" placeholder=\"Apellido\">\r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"correo\">Correo: <\/label>\r\n      <input type=\"text\" class=\"input-color\" id=\"correoPreaprobacion\" placeholder=\"Correo\"> \r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"Celular\">Celular: <\/label>\r\n      <input type=\"text\" class=\"input-color\" id=\"telefonoPreaprobacion\" placeholder=\"Celular\">\r\n   <\/div>\r\n <div class=\"col medium-6 small-12 large-6\">\r\n\r\n<label>Selecciona el tipo de vehiculo:<\/label>\r\n<div id=\"\" class=\"col large-12\" style=\"display: flex; justify-content: space-evenly; margin-top: 8px; align-items: stretch;\"><!-- radio auto nuevo -->\r\n<div class=\"hidden cuadricula-nuevo-usado\"><input id=\"cot_radio1\" class=\"btn-check\" name=\"cot_radio\" type=\"radio\" value=\"AUTO_NUEVO\" \/>\r\n<label id=\"label_nuevousado1\" class=\"form-check-label cot-radios btn btn-nuevo-usado\" for=\"cot_radio1\">\r\nAuto nuevo\r\n<\/label><\/div>\r\n<!-- radio auto usado -->\r\n<div class=\"hidden cuadricula-nuevo-usado\"><input id=\"cot_radio2\" class=\"btn-check\" name=\"cot_radio\" type=\"radio\" value=\"AUTO_USADO\" \/>\r\n<label id=\"label_nuevousado2\" class=\"form-check-label cot-radios btn btn-nuevo-usado\" for=\"cot_radio2\">\r\nAuto usado\r\n<\/label><\/div>\r\n<!-- radio motocicleta -->\r\n<div class=\"hidden cuadricula-nuevo-usado\"><input id=\"cot_radio3\" class=\"btn-check\" name=\"cot_radio\" type=\"radio\" value=\"MOTO\" \/>\r\n<label id=\"label_nuevousado3\" class=\"form-check-label cot-radios btn btn-nuevo-usado\" for=\"cot_radio3\">\r\nMoto\r\n<\/label><\/div>\r\n<\/div>\r\n<\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"segmento\">Segmento: <\/label>\r\n      <select id=\"segmento\" class=\" select-color\"><\/select>\r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"tipdocumento\">Tipo de documento: <\/label>\r\n      <select id=\"tipoDocumento\" class=\" select-color\"><\/select>\r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\"> <label for=\"nombre\">N\u00famero de documento: <\/label>\r\n      <input type=\"text\" class=\"input-color\" id=\"ndocumento\" placeholder=\"Numero de documento\">\r\n   <\/div>\r\n   <div class=\"col hidden medium-6 small-12 large-6\">\r\n      <div id=\"contenedorSelectDivisa\" class=\"hidden col large-3\" style=\"margin-bottom: 20px;\">\r\n         <div class=\"form-group\">\r\n            <label for=\"monedaIngresos\">Divisa<\/label>\r\n            <select id=\"monedaIngresos\" class=\"custom-select custom-select-lg mb-3 select-default input-register\">\r\n               <option value=\"USD\">USD<\/option>\r\n            <\/select>\r\n         <\/div>\r\n      <\/div>\r\n   <\/div>\r\n   <div  class=\"col medium-6 small-12 large-6\">\r\n      <label for=\"nombre\">Monto de ingresos econ\u00f3micos: <\/label>\r\n      <div id=\"ingresosContainer\">\r\n         <span class=\"simbolomonedacaja\">$<\/span>\r\n         <input type=\"text\" value=\"\" style=\"box-shadow: none !important;\" class=\"input-color\" name=\"ingresos\" oninput=\"this.value = this.value.replace(\/[^0-9.]\/g, '').replace(\/(\\..*)\\.\/g, '$1');\" placeholder=\"Monto de tus ingresos econ\u00f3micos\" id=\"ingresos\" inputmode=\"decimal\">\r\n      <\/div>\r\n   <\/div>\r\n   <div  class=\"col medium-12 small-12 large-12\">\r\n      <div class=\"terminos-condiciones\">\r\n         <label>A trav\u00e9s de este canal, usted est\u00e1 solicitando a CrediQ, S.A. de C.V., en adelante\r\n         \u201cCREDIQ\u201d, una pre calificaci\u00f3n como sujeto de cr\u00e9dito en nuestra empresa, siendo\r\n         necesario para tal efecto compartir con CREDIQ sus datos personales que son\r\n         solicitados en la plataforma. Al incorporar los datos personales y marcar como\r\n         \u201cAceptado\u201d, usted garantiza a CREDIQ su identidad y titularidad de los datos\r\n         personales, y que los mismos son veraces y exactos.\r\n         <br><br>\r\n         Al marcar como \u201cAceptado\u201d, usted est\u00e1 confirmando haber le\u00eddo y aceptado los\r\n         t\u00e9rminos y condiciones y pol\u00edticas de privacidad de datos de la plataforma y de\r\n         CREDIQ.\r\n         <br><br>\r\n         Por lo tanto, al clicar aceptar usted est\u00e1 autorizando y otorgando su consentimiento\r\n         expreso a CREDIQ, a recoger y dar tratamiento de los datos personales incorporados,\r\n         con la finalidad exclusiva de realizar un an\u00e1lisis sobre sus caracter\u00edsticas personales y\r\n         financieras que le permita hacer una oferta de un financiamiento y realizar ofertas de\r\n         productos de financiamiento tanto de CREDIQ como de CREDIQ Leasing, S.A. de C.V.,\r\n         as\u00ed como en las condiciones determinados en las pol\u00edticas de privacidad definidas en\r\n         los t\u00e9rminos y condiciones.\r\n         <br><br>\r\n         La oferta de financiamiento solo ser\u00e1 v\u00e1lida hasta que CREDIQ compruebe su\r\n         identidad y la veracidad de la informaci\u00f3n enviada y recolectada. Por lo tanto, autoriza\r\n         a compartir sus datos personales con CREDIQ Leasing, S.A. de C.V., a efectos de\r\n         recibir promociones y ofertas de productos. CREDIQ no compartir\u00e1 sus datos\r\n         personales con ning\u00fan tercero, y ud acepta suscribir por escrito o electr\u00f3nicamente una\r\n         autorizaci\u00f3n para consultar su historial crediticio, en caso de calificar y continuar el\r\n         proceso de aprobaci\u00f3n de un financiamiento.\r\n         <\/label>\r\n      <\/div>\r\n   <\/div>\r\n   <div class=\"col medium-12 small-12 large-12 switch-container\">\r\n      <label class=\"label-switch switch-primary\">\r\n      <input type=\"checkbox\" class=\"switch switch-bootstrap status\" name=\"checkTerminos\" id=\"aceptarTerminosToggle\" value=\"0\">\r\n      <span class=\"lable\"><\/span>\r\n      <\/label>\r\n      <span>Acepto mi identidad y confirmo que he le\u00eddo los <a style=\"display:contents;\" target=\"_blank\" href=\"https:\/\/digital.crediq.com\/politica-privacidad\" rel=\"noopener\"><strong style=\"color:#505050\">T\u00e9rminos, Condiciones y Pol\u00edticas de Privacidad<\/strong><\/a><\/span>\r\n   <\/div>\r\n   <input type=\"button\" class=\"btn-solicitud\" id=\"precalificarBtn\" value=\"Enviar Solicitud\" style=\"background-color: #196ab8; color: #fff !important;\"> <input type=\"button\" id=\"cpcsa_limpiar_btn\" class=\"btn-limpiar\" value=\"Limpiar\">\r\n<\/form>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":"","_members_access_role":[],"_members_access_error":""},"class_list":["post-5415","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Precalificacion - CrediQ SV<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crediq.com\/sv\/precalificacion\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Precalificacion - CrediQ SV\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crediq.com\/sv\/precalificacion\/\" \/>\n<meta property=\"og:site_name\" content=\"CrediQ SV\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CrediQSV\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-03T21:06:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/precalificacion\\\/\",\"url\":\"https:\\\/\\\/crediq.com\\\/sv\\\/precalificacion\\\/\",\"name\":\"Precalificacion - CrediQ SV\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#website\"},\"datePublished\":\"2023-06-30T16:08:49+00:00\",\"dateModified\":\"2023-07-03T21:06:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/precalificacion\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/crediq.com\\\/sv\\\/precalificacion\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/precalificacion\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/crediq.com\\\/sv\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Precalificacion\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#website\",\"url\":\"https:\\\/\\\/crediq.com\\\/sv\\\/\",\"name\":\"CrediQ SV\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/crediq.com\\\/sv\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#organization\",\"name\":\"CrediQ El Salvador\",\"url\":\"https:\\\/\\\/crediq.com\\\/sv\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/crediq.com\\\/sv\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/2022\\\/07\\\/1111.png\",\"contentUrl\":\"https:\\\/\\\/crediq.com\\\/sv\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/2022\\\/07\\\/1111.png\",\"width\":2376,\"height\":684,\"caption\":\"CrediQ El Salvador\"},\"image\":{\"@id\":\"https:\\\/\\\/crediq.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/CrediQSV\",\"https:\\\/\\\/www.instagram.com\\\/crediq_sv\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Precalificacion - CrediQ SV","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crediq.com\/sv\/precalificacion\/","og_locale":"es_ES","og_type":"article","og_title":"Precalificacion - CrediQ SV","og_url":"https:\/\/crediq.com\/sv\/precalificacion\/","og_site_name":"CrediQ SV","article_publisher":"https:\/\/www.facebook.com\/CrediQSV","article_modified_time":"2023-07-03T21:06:08+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crediq.com\/sv\/precalificacion\/","url":"https:\/\/crediq.com\/sv\/precalificacion\/","name":"Precalificacion - CrediQ SV","isPartOf":{"@id":"https:\/\/crediq.com\/sv\/#website"},"datePublished":"2023-06-30T16:08:49+00:00","dateModified":"2023-07-03T21:06:08+00:00","breadcrumb":{"@id":"https:\/\/crediq.com\/sv\/precalificacion\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crediq.com\/sv\/precalificacion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crediq.com\/sv\/precalificacion\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crediq.com\/sv\/"},{"@type":"ListItem","position":2,"name":"Precalificacion"}]},{"@type":"WebSite","@id":"https:\/\/crediq.com\/sv\/#website","url":"https:\/\/crediq.com\/sv\/","name":"CrediQ SV","description":"","publisher":{"@id":"https:\/\/crediq.com\/sv\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crediq.com\/sv\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/crediq.com\/sv\/#organization","name":"CrediQ El Salvador","url":"https:\/\/crediq.com\/sv\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/crediq.com\/sv\/#\/schema\/logo\/image\/","url":"https:\/\/crediq.com\/sv\/wp-content\/uploads\/sites\/7\/2022\/07\/1111.png","contentUrl":"https:\/\/crediq.com\/sv\/wp-content\/uploads\/sites\/7\/2022\/07\/1111.png","width":2376,"height":684,"caption":"CrediQ El Salvador"},"image":{"@id":"https:\/\/crediq.com\/sv\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CrediQSV","https:\/\/www.instagram.com\/crediq_sv\/"]}]}},"jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/pages\/5415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/comments?post=5415"}],"version-history":[{"count":5,"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/pages\/5415\/revisions"}],"predecessor-version":[{"id":11117,"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/pages\/5415\/revisions\/11117"}],"wp:attachment":[{"href":"https:\/\/crediq.com\/sv\/wp-json\/wp\/v2\/media?parent=5415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}