PageSourceSearch

https://www.vivaz.com/o/lda-webcomercial-theme/js/teLlamamosScript.min.js

js vivaz.com collected 2026-10-06 11:19:57 UTC 8,861 bytes, 16 lines download raw bytes

1'use strict';let nombreServ="C2CLandingLDA";const codIdioma="ES",tipoC2C=3;let cod2TipoPoliza="00";
2function callLlamameAPI(b,a,h,g,d,c,n,k){getIdLead({telefono:d}).then((f)=>{if(null!=f){var e=document.createElement("div");e.classList.add("d-none");e.setAttribute("id","elemDivLead");e.setAttribute("data-lead",f);document.body.appendChild(e)}f=document.getElementById("elemDivLead");e="";null!=f&&(e=f.getAttribute("data-lead"));let p=$(b).closest(".lda-hero-media-right__content");$(b).attr("data-ref-id",b.id);"S"===g&&(cod2TipoPoliza="09",nombreServ="C2CLandingSalud");if(p.find("#teLlamamosBtn").hasClass("lda-disabled"))p.find("#lda-error-tlfn").css({display:"block"});
3else{e={nombre:nombreServ,idServicio:h,indVehiculo:g,cod2TipoPoliza,tipoC2C,from:a,codIdioma,telefono:d,idLead:e};console.log("-----");console.log(e);console.log(" URL de llamada: "+n);let f='\xa1Algo\x20ha\x20salido\x20mal\x21',l='\x3cspan\x3eTus\x20datos\x20no\x20se\x20han\x20podido\x20enviar\x2e\x20Por\x20favor\x20comprueba\x20que\x20están\x20correctos\x20y\x20vuelve\x20a\x20intentarlo\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eTambién\x20puedes\x20contactar\x20en\x20el\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',m='Probar\x20de\x20nuevo';window.location.pathname.startsWith(window.urlEnglish)?(f='Something\x20has\x20gone\x20wrong\x21',l='\x3cspan\x3eYour\x20details\x20could\x20not\x20be\x20sent\x2e\x20Please\x20try\x20again\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eYou\x20can\x20also\x20call\x20us\x20on\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',
4m='Try\x20again'):window.location.pathname.startsWith(window.urlGerman)?(f='Es\x20ist\x20ein\x20Fehler\x20aufgetreten\x2e',l='\x3cspan\x3eIhre\x20Daten\x20konnten\x20nicht\x20gesendet\x20werden\x2e\x20Bitte\x20versuchen\x20Sie\x20es\x20noch\x20einmal\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eSie\x20können\x20uns\x20auch\x20unter\x20der\x20Nummer\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',m='Bitte\x20versuchen\x20Sie\x20es\x20erneut'):window.location.pathname.startsWith(window.urlCatalan)&&(f='Alguna\x20cosa\x20ha\x20sortit\x20malament\x21',l='\x3cspan\x3eNo\x20s\x27han\x20pogut\x20enviar\x20les\x20teves\x20dades\x2e\x20Si\x20us\x20plau\x2c\x20torna-ho\x20a\x20intentar\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eTambé\x20pots\x20contactar\x20al\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',m='Prova\x20de\x20nou');
5$.ajax({url:n,type:"POST",data:e,dataType:"json",crossDomain:!0,success:function(a){console.log(" La llamada ha ido bien. data.respuesta: "+a.respuesta);let d='\xa1Gracias\x21',e='\x3cspan\x3eGracias\x20por\x20tu\x20confianza\x20en\x20Línea\x20Directa\x2c\x20un\x20técnico\x20comercial\x20se\x20pondrá\x20en\x20contacto\x20contigo\x3cbr\x2f\x3e\x3cbr\x2f\x3eTambién\x20puedes\x20contactar\x20en\x20el\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',g='Volver\x20a\x20Linea\x20Directa';window.location.pathname.startsWith(window.urlEnglish)?(d='Thank\x20you\x21',e='\x3cspan\x3eThank\x20you\x20for\x20choosing\x20Línea\x20Directa\x2c\x20a\x20sales\x20technician\x20will\x20contact\x20you\x20shortly\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eYou\x20can\x20also\x20call\x20us\x20on\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',
6g='Go\x20back\x20to\x20Línea\x20Directa'):window.location.pathname.startsWith(window.urlGerman)?(d='Vielen\x20Dank\x21',e='\x3cspan\x3eVielen\x20Dank\x20für\x20Ihr\x20Vertrauen\x20in\x20Línea\x20Directa\x2e\x20Ein\x20technischer\x20Berater\x20wird\x20sich\x20mit\x20Ihnen\x20in\x20Verbindung\x20setzen\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eSie\x20können\x20uns\x20auch\x20unter\x20der\x20Nummer\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',g='Zurück\x20zu\x20Línea\x20Directa'):window.location.pathname.startsWith(window.urlCatalan)&&(d='Gràcies',e='\x3cspan\x3eGràcies\x20per\x20la\x20teva\x20confiança\x20en\x20Línea\x20Directa\x2e\x20Un\x20tècnic\x20comercial\x20es\x20posarà\x20en\x20contacte\x20amb\x20tu\x2e\x3cbr\x2f\x3e\x3cbr\x2f\x3eTambé\x20pots\x20contactar\x20al\x20\x3ca\x20class\x3d\x22lda-tel__primary\x20ml-sm-1\x20pl-4\x20lda-link\x22\x20href\x3d\x22tel\x3a',g='Torna\x20a\x20Línea\x20Directa');
7a.respuesta&&-1<a.respuesta.indexOf("CMB_OK")||a.respuesta&&-1<a.respuesta.indexOf("C2C_OK")||a.respuesta&&-1<a.respuesta.indexOf("OK")?(set_modal(d,e+k+'" title="'+k+'">'+k+"</a></span>",g,""),"salud"===c&&window.location.href.includes("/dental.html")?window.isLanding?sendEventAnalitica("Landing","Click",c,"c2c_dental"):sendEventAnalitica("Telefono","C2C",c,"c2c_dental"):"salud"===c&&window.location.href.includes("/completo.html")?window.isLanding?sendEventAnalitica("Landing","Click",c,"c2c_completo"):
8sendEventAnalitica("Telefono","C2C",c,"c2c_completo"):"salud"===c&&window.location.href.includes("/especialistas.html")?window.isLanding?sendEventAnalitica("Landing","Click",c,"c2c_especialistas"):sendEventAnalitica("Telefono","C2C",c,"c2c_especialistas"):""===c?window.isLanding?sendEventAnalitica("Landing","Click",c,"c2c"):sendEventAnalitica("Home","C2C",c,"c2c"):window.isLanding?sendEventAnalitica("Landing","Click",c,"c2c"):sendEventAnalitica("Telefono","C2C",c,"c2c"),sendEventAnalitica("HTTP",
9analiticaGetPageName(),h,"")):(a.respuesta&&-1<a.respuesta.indexOf("CMB_
9KO")||a.respuesta&&-1<a.respuesta.indexOf("C2C_KO")||a.respuesta&&-1<a.respuesta.indexOf("KO"))&&set_modal(f,l+k+'" title="'+k+'">'+k+"</a></span>",m,"hide_modal('[data-ref-id=\""+b.id+"\"]')")},error:function(a,c,d){console.log(" No se ha podido conectar");console.debug("[LDA Te llamamos Script] - No se ha podido conectar");set_modal(f,l+k+'" title="'+k+'">'+k+"</a></span>",m,"hide_modal('[data-ref-id=\""+b.id+"\"]')")}}).fail(function(){set_onclick_modal(b)});
10console.log("----")}null!=f&&f.remove()})}
11AUI().ready(function(){$("[name='nameInput']").each(function(){let b=$(this),a=b.closest(".lda-hero-media-right__content"),h=a.find(".lda-tooltip__info"),g=a.find("#teLlamamosBtn");(600>$(window).width()||0===b.length)&&g.removeClass("lda-disabled");b.on("focus",function(){h.show()});a.on("focusout",function(d){var c=d.relatedTarget;d=c===b[0];c=c&&0<$(c).closest(".lda-tooltip").length;d||c||(h.hide(),d=b.val().replace(/[^0-9]/gi,""),b.val(d),0===d.length?(b.removeClass("lda-disabled"),a.find("#lda-error-tlfn").hide()):
12validarTeLlamamos(b))})})});
13function validarTeLlamamos(b){let a=$(b).closest(".lda-hero-media-right__content"),h=a.find("#lda-error-tlfn"),g=document.querySelectorAll(".lda-container__tellamamosvivaz .form-group");h.css("display","none").text("");$(b).removeClass("lda-disabled");a.hasClass("hero-vivaz")&&g[0].classList.remove("lda-form-error");a.find(".lda-tooltip__info").hide();var d=a.find("#nameInput").val().replace(/[^0-9]/gi,"");let c='Teléfono\x20no\x20válido\x2e\x20Debe\x20tener\x209\x20dígitos\x2e';a.hasClass("hero-vivaz")&&(c='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C11.8661 15 15 11.8661 15 8C15 4.13391 11.8661 1 8 1C4.13391 1 1 4.1339 1 8C1 11.8661 4.1339 15 8 15ZM8.0066 12.6667C8.37114 12.6667 8.66667 12.3682 8.66667 12C8.66667 11.6318 8.37114 11.3333 8.0066 11.3333H7.9934C7.62885 11.3333 7.33333 11.6318 7.33333 12C7.33333 12.3682 7.62885 12.6667 7.9934 12.6667H8.0066ZM7.34653 9.33333C7.34653 9.70152 7.64206 10 8.0066 10C8.37114 10 8.66667 9.70152 8.66667 9.33333L8.66667 4C8.66667 3.63181 8.37115 3.33333 8.0066 3.33333C7.64206 3.33333 7.34654 3.63181 7.34654 4L7.34653 9.33333Z" fill="#E51919"/></svg> '+
14c);window.location.pathname.startsWith(window.urlEnglish)?c='Invalid\x20phone\x20number\x2e\x20It\x20must\x20have\x209\x20digits\x2e':window.location.pathname.startsWith(window.urlGerman)?c='Ungültige\x20Telefonnummer':window.location.pathname.startsWith(window.urlCatalan)&&(c='Telèfon\x20no\x20vàlid\x2e\x20Heu\x20de\x20tenir\x209\x20dígits\x2e');void 0!=d&&9==d.length&&validaTelefono(d)||($(b).addClass("lda-disabled"),a.hasClass("hero-vivaz")?setTimeout(function(){h.html(c);h.css("display",
15"block");g[0].classList.add("lda-form-error")},100):setTimeout(function(){h.text(c);h.css("display","block")},100))}function validaTelefono(b){var a=b.toString().substring(0,1);return""==b||isNaN(b)||9!=b.length||"666666666"==b||"6"!=a&&"7"!=a&&"9"!=a&&"8"!=a?!1:!0}function getClosestNameInput(b){b=$(b).closest(".lda-hero-media-right__content").find("[name='nameInput']");return b.length?b.val():""} async function getIdLead(b){try{let a=await DFI_client.generateLead(b);return null!=a&&null!=a.leadId?a.leadId:null}catch(a){return null}};
16

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.