el Comparador de Seguros de Proyectos y Seguros <\/strong>manifiesta que ha le\u00eddo, comprende, conoce y acepta, sin reserva de ning\u00fan tipo, la totalidad de los presentes T\u00e9rminos y Condiciones de Uso, incluida la Pol\u00edtica de Privacidad en ellos embebida.<\/p>\n <\/p>\n
TCU \u2014 Versi\u00f3n: v.2.0. \u2014 Fecha de publicaci\u00f3n y entrada en vigor: 1 de septiembre de 2021<\/p>\n
<\/p>\n
\u2014FIN DEL DOCUMENTO\u2014<\/p>\n
<\/p>\n
Madrid, 25 de agosto de 2021<\/p>\n"
};
callup_popup('popup_politica_privacidad','#politica-privacidad-popup',datos);
break;
default:
}
return false;
});
jQuery('[data-llamada="llamada-enviar"]').off();
jQuery('[data-llamada="llamada-enviar"]').on('click',function(){
if(jQuery('.llamada-nombre').val().length>0 &&
jQuery('.llamada-telefono').val().length>0 &&
jQuery('.llamada-horario').val().length>0
&& jQuery('.llamada-lopd').is(':checked')
){
var args={nombre:jQuery('.llamada-nombre').val(),
telefono:jQuery('.llamada-telefono').val(),
horario:jQuery('.llamada-horario:checked').val(),
presupuesto: pys_env.data.NumPresupuesto,
ramo:pys_env.ramo_seleccionado,
};
if(typeof pys_env.data.codigo_postal !== 'undefined'){
args.codigo_postal=pys_env.data.codigo_postal;
}
if(typeof pys_env.data.contacto_email !== 'undefined'){
args.contacto_email=pys_env.data.contacto_email;
}
if(typeof pys_env.llamada_cia !== 'undefined'){
args.cia=pys_env.llamada_cia;
}
if(typeof pys_env.data !== 'undefined' && pys_env.data.accion_comercial !=='undefined'){
args.accion_comercial=pys_env.data.accion_comercial;
}
pys_env.llamada(args);
jQuery('#te-ayudamos-popup').addClass('hide');
if(alertbye===true) {
alert_message('Un agente se pondrá en contacto con usted');
}else{
jQuery('#tellamamos-landing-trigger-ok').trigger('click');
}
if(cleardata===true){
pys_env.data={};
if(typeof pys_env.customdata !== 'undefined'){
pys_env.data=pys_env.customdata;
}
jQuery('#pysw-wrapper .step [data-storevalue]').removeClass('active');
jQuery('#pysw-wrapper .step input[type="text"]').val('');
if (typeof pys_env.store.noLoadFunc !== 'undefined') {
pys_env.store.noLoadFunc();
}
reset_personal_data();
delete pys_env.ramo_seleccionado;
}
}else{
alert_message('Debe rellenar los datos correctamente y aceptar los términos legales');
}
});
jQuery('#te-ayudamos-popup').removeClass('hide');
}//success
});
}
function trigger_tarifas(target){
jQuery('.tarificador_progressbar').css('background-size' ,'100% 100%');
function updateCIAComp(index,blockid){
var ciablock= renderGarantiaCIA(index);
jQuery('.garantias-resumen [data-comparativa="'+blockid+'"]').empty().append(ciablock);
}
function customsByRamo(ramo,bucket,comparativa){
if (ramo == 'auto'||ramo == 'moto' ||ramo == 'camion' || ramo == 'vclasico'||ramo == 'vcomercial' || ramo== 'vagricola') {
bucket.tipo_vehiculo=comparativa.data('tipovehiculo');
bucket.api_method='AUTO_garantias';
} else if (ramo == 'salud') {
bucket.api_method='SALUD_garantias'
}else if (ramo == 'vida') {
bucket.api_method='VIDA_garantias'
}else if (ramo == 'dental') {
bucket.api_method='DENTAL_garantias'
}else if (ramo == 'decesos') {
bucket.api_method='DECESOS_garantias'
}else if (ramo == 'hogar') {
bucket.api_method='HOGAR_garantias'
}else if (ramo == 'mascotas') {
bucket.api_method='MASCOTAS_garantias'
}
return bucket;
}
function showBench(compidx,comparativa,block){
var customs={};
//console.log('SHOWBENCH',compidx,comparativa,block);
pys_env.tarifa_tipo_modalidad=comparativa.data('codtipomodalidad');
pys_env.tarifa_modalidad=comparativa.data('modalidad');
customs= customsByRamo(pys_env.ramo_seleccionado,customs,comparativa);
pys_env.customs_by_ramo=customs;
pys_env.returnGarantias(function(msg,html,comparativa) {
for(var i=0;i/;
var valor = myRegexp.exec(msg.SGara[i].Valor);
if (valor===null) valor=[];
var DesCobertura = '';
if(typeof msg.SGara[i].DesCobertura!== 'undefined'){
DesCobertura = msg.SGara[i].DesCobertura;
if(DesCobertura.indexOf('CDATA')>=0){
DesCobertura = myRegexp.exec(msg.SGara[i].DesCobertura);
DesCobertura=DesCobertura[1];
}
}
if(valor.length==0 || (valor[1].length<1 && DesCobertura >0)) valor[1]=DesCobertura;
if(valor[1]=='Incluido' ||valor[1]=='Gratuito'){
valor[1]='';
}
if(valor[1]=='No Incluido' || valor[1]=='Excluido'){
valor[1]='--
';
}
target.empty().append(valor[1]);
}
}
updateCIAComp(compidx,block);
}, comparativa.data('cia'),customs);
}
jQuery('[data-popup="te-llamamos-popup"]').off();
jQuery('[data-popup="te-llamamos-popup"]').on('click',function(e){
e.preventDefault();
activar_popup_llamada_generica();
return false;
});
jQuery('#comparar-con-empresa-2').off();
jQuery('#comparar-con-empresa-2').on('change', function(e) {
e.preventDefault();
var compidx=jQuery(this).val();
var comparativa=jQuery('a[data-action="auto-ver-coberturas"][data-index="'+compidx+'"]');
showBench(compidx,comparativa,2);
return false;
});
jQuery('#comparar-con-empresa-3').off();
jQuery('#comparar-con-empresa-3').on('change', function(e) {
e.preventDefault();
var compidx=jQuery(this).val();
var comparativa=jQuery('a[data-action="auto-ver-coberturas"][data-index="'+compidx+'"]');
showBench(compidx,comparativa,3);
return false;
});
var indexes=[];
var token_garantias=false;
var comparadorP= new ComparadorPolizas();
comparadorP.first=true;
comparadorP.asociarEl(target + ' .action-comparar-polizas');
jQuery(target + ' .action-te-llamamos').off();
jQuery(target + ' .action-te-llamamos').on('click', function(e) {
e.preventDefault();
jQuery("#llamada-ramo").val(pys_env.ramo_seleccionado);
jQuery("#llamadahelp").toggleClass("show");
return false;
});
jQuery(target + ' .action-llamanos').off();
jQuery(target + ' .action-llamanos').on('click', function(e) {
e.preventDefault();
jQuery("#llamanos-popup").toggleClass("show");
jQuery("#llamanos-popup").removeClass("hide");
return false;
});
jQuery(target + ' .boton-tarificador-contratar').off();
jQuery(target + ' .boton-tarificador-contratar').on('click', function(e) {
e.preventDefault();
//CONTRATAR
var target=jQuery(this).data('formid');
jQuery('#contratar-online-form-'+target).submit();
return false;
});
jQuery(document).off('comparativa-tarifa-principal-ready');
jQuery(document).on('comparativa-tarifa-principal-ready',function(e){
e.preventDefault();
var descripcion_comparativa=jQuery('.filter-results.active h4').html();
descripcion_comparativa=descripcion_comparativa.replace('
',' ');
descripcion_comparativa=descripcion_comparativa.replace('
',' ');
jQuery('.garantias-subtitle .gara-t2').empty().append(descripcion_comparativa);
var idx1=-1;
var idx2=-1;
var idx3=-1;
if(indexes.length==1){
idx1=indexes[0].data('index') ;
var candidates=jQuery('#comparar-con-empresa-2>option');
var seleccionado=false;
candidates.each(function(){
var idx2=jQuery(this).val();
if(idx2!=idx1 && parseInt(idx2) != -1 && seleccionado===false){
seleccionado=true;
jQuery('#comparar-con-empresa-2').val(idx2);
jQuery('#comparar-con-empresa-2').trigger('change');
}
});
candidates=jQuery('#comparar-con-empresa-3>option');
seleccionado=false;
candidates.each(function(){
var idx2=jQuery('#comparar-con-empresa-2').val();
var idx3=jQuery(this).val();
if(idx3!=idx1 && idx2!=idx3 && parseInt(idx3) != -1 && seleccionado===false){
jQuery('#comparar-con-empresa-3').val(idx3);
jQuery('#comparar-con-empresa-3').trigger('change');
seleccionado=true;
}
});
}else if(indexes.length==2){
idx1=indexes[0].data('index');
idx2=indexes[1].data('index');
jQuery('#comparar-con-empresa-2').val(idx2);
jQuery('#comparar-con-empresa-2').trigger('change');
var candidates=jQuery('#comparar-con-empresa-3>option');
seleccionado=false;
candidates.each(function(){
var idx3=jQuery(this).val();
if(idx3!=idx1 && idx2!=idx3 && parseInt(idx3) != -1 && seleccionado===false){
jQuery('#comparar-con-empresa-3').val(idx3);
jQuery('#comparar-con-empresa-3').trigger('change');
seleccionado=true;
}
});
}else if(indexes.length==3){
idx1=indexes[0].data('index');
idx2=indexes[1].data('index');
idx3=indexes[2].data('index');
jQuery('#comparar-con-empresa-2').val(idx2);
jQuery('#comparar-con-empresa-2').trigger('change');
jQuery('#comparar-con-empresa-3').val(idx3);
jQuery('#comparar-con-empresa-3').trigger('change');
}
return false;
});
jQuery('[data-action="auto-ver-coberturas-1"]').off();
jQuery('[data-action="auto-ver-coberturas-1"]').on('click', function(e) {
e.preventDefault();
pys_env.tarifa_tipo_modalidad=jQuery(this).data('codtipomodalidad');
pys_env.tarifa_modalidad= jQuery(this).data('modalidad');
pys_env.tarifa_index=jQuery(this).data('index');
var customs={};
customs= customsByRamo(pys_env.ramo_seleccionado,customs,jQuery(this));
jQuery('.parrilla-detalles-detalle-container').empty();
pys_env.returnGarantias(function(msg,html,comparativa) {
jQuery('.popup-area-coberturas-detalles').empty().append(html);
jQuery('#comparar-con-empresa-2').empty().append(comparativa);
jQuery('#comparar-con-empresa-3').empty().append(comparativa);
jQuery('#garantias-popup').removeClass('hide');
var hw=jQuery('.gpopup-window').height();
var hh=jQuery('.gpopup-window .popup-body .popup-area-coberturas-listado').height();
jQuery('.popup-area-coberturas-detalles').height(parseInt(hw)-(parseInt(hh)+140));
jQuery(document).trigger('comparativa-tarifa-principal-ready');
jQuery('.superblock-trigger').on('click',function(e){
e.preventDefault();
var target=jQuery(this).data('superblock');
if(jQuery(this).hasClass('open')){
jQuery(this).removeClass('open');
jQuery('[data-gid="'+target+'"]').addClass('hidden');
}else{
jQuery(this).addClass('open');
jQuery('[data-gid="'+target+'"]').removeClass('hidden');
}
return false;
});
}, jQuery(this).data('cia'),customs);
return false;
});
jQuery('[data-action="popup-te-ayudamos"]').off();
jQuery('[data-action="popup-te-ayudamos"]').on('click', function(e) {
e.preventDefault();
if (jQuery(this).data('cia') !== 'undefined'){
pys_env.llamada_cia=jQuery(this).data('cia');
}
var precio=jQuery(this).data('mensualidad');
if(typeof pys_env.webcalls[pys_env.ramo_seleccionado] !== 'undefined' &&
typeof pys_env.webcalls[pys_env.ramo_seleccionado][pys_env.llamada_cia] !== 'undefined'){
pys_env.webcalls[pys_env.ramo_seleccionado][pys_env.llamada_cia](jQuery(this).data('refcia'),jQuery(this).data('presupuesto'),jQuery(this).data('modalidad'),false);
}else{
callup_teayudamos(precio,
jQuery(this).data('logotipo'),
jQuery(this).data('presupuesto')
);
}
return false;
});
jQuery('[data-action="popup-pordias-condiciones-especificas"]').off();
jQuery('[data-action="popup-pordias-condiciones-especificas"]').on('click', function(e) {
e.preventDefault();
var tpl='https://widget.proyectosyseguros.com:9080/widget/wp-content/themes/pys-meelowlab/templates/pysblue/js/templates/popup_pordias_condiciones_especificas.mustache';
if(typeof jQuery(this).data('popup') !== 'undefined' && jQuery(this).data('popup')=='asistencia-viaje'){
tpl='https://widget.proyectosyseguros.com:9080/widget/wp-content/themes/pys-meelowlab/templates/pysblue/js/templates/popup_pordias_asistencia_viaje.mustache';
}else{
if(typeof pys_env.data.pordias_tipo !== 'undefined'){
switch(parseInt(pys_env.data.pordias_tipo)){
case 11:
tpl='https://widget.proyectosyseguros.com:9080/widget/wp-content/themes/pys-meelowlab/templates/pysblue/js/templates/popup_pordias_condiciones_especificas_embarcaciones.mustache';
break;
case 7: case 8: case 9: case 15: case 14:
tpl='https://widget.proyectosyseguros.com:9080/widget/wp-content/themes/pys-meelowlab/templates/pysblue/js/templates/popup_pordias_condiciones_especificas_tipo_camion.mustache';
break;
case 4: case 10: case 6: case 5: case 23:
tpl='https://widget.proyectosyseguros.com:9080/widget/wp-content/themes/pys-meelowlab/templates/pysblue/js/templates/popup_pordias_condiciones_especificas_tipo_coche_clasico.mustache';
break;
}
}
}
var boton=this;
jQuery.ajax({
type: 'GET',
url: tpl,
crossDomain: true,
cache: false,
beforeSend: function(xhr){
xhr.withCredentials = true;
},
success: function(template, textStatus, request){
var tplvar={
precio:jQuery(boton).data('mensualidad'),
logo:jQuery(boton).data('logotipo'),
presupuesto:jQuery(boton).data('presupuesto'),
widget_theme:pys_env.widget_theme,
theme_assets:pys_env.theme_assets
};
var tplout = Mustache.render(template,tplvar);
jQuery('#pordias-condiciones-especificas-popup').remove();
jQuery('body').append(tplout);
jQuery('[data-action="popup-pordias-condiciones-especificas-close"]').off();
jQuery('[data-action="popup-pordias-condiciones-especificas-close"]').on('click', function(e) {
e.preventDefault();
jQuery('#pordias-condiciones-especificas-popup').addClass('hide');
return false;
});
jQuery('#pordias-condiciones-especificas-popup').removeClass('hide');
}//success
});
return false;
});
jQuery('[data-action="auto-ver-coberturas"]').off();
jQuery('[data-action="auto-ver-coberturas"]').on('click', function(e) {
e.preventDefault();
if(token_garantias===false){
indexes=[];
indexes.push(jQuery(this));
}else {
token_garantias++;
if (token_garantias >=3){
token_garantias=false;
}
}
pys_env.tarifa_tipo_modalidad=jQuery(this).data('codtipomodalidad');
pys_env.tarifa_modalidad= jQuery(this).data('modalidad');
pys_env.tarifa_index=jQuery(this).data('index');
jQuery('.parrilla-detalles-logo')[0].src=jQuery(this).data('logotipo');
let docuIpid = jQuery(this).data('ipid');
let docuNota = jQuery(this).data('nota');
let docuContent='';
if(typeof docuNota !== 'undefined' && docuNota !== false ){
docuContent=`
Documentación:
`
}
if(typeof docuIpid !== 'undefined' && docuIpid !== false ){
if(docuContent.length == 0) docuContent=`
Documentación:
`;
docuContent=`${docuContent}
`;
}
if(docuContent.length > 0) docuContent=`${docuContent}
`;
let isRecomendado = jQuery(this).data('isrecomendado');
if(typeof isRecomendado !== 'undefined' && isRecomendado == 'is-recomendado' ){
jQuery('.parrilla-detalles').addClass('is-recomendado');
}else{
jQuery('.parrilla-detalles').removeClass('is-recomendado');
}
// jQuery('.parrilla-detalles--documentacion').empty().append(docuContent);
// jQuery('.coberturas-detalles-price').empty().append(jQuery(this).data('mensualidad'));
var desc_ramo='';
switch(pys_env.ramo_seleccionado){
case 'auto': desc_ramo=' Seguro para 1 vehículo'; break;
case 'moto': desc_ramo=' Seguro para 1 moto'; break;
case 'vclasico': desc_ramo=' Seguro para 1 vehículo'; break;
case 'vcomercial': desc_ramo=' Seguro para 1 vehículo'; break;
case 'vida': case 'vida': desc_ramo=' para el seguro de Vida solicitado'; break;
case 'salud': desc_ramo=' para el seguro de Salud solicitado'; break;
case 'decesos': desc_ramo=' para el seguro de Decesos solicitado'; break;
case 'mascotas': desc_ramo=' para el seguro de Mascotas solicitado'; break;
case 'hogar': desc_ramo=' para el seguro de Hogar solicitado'; break;
case 'dental': desc_ramo=' para el seguro Dental solicitado'; break;
}
jQuery('.detalle-nombre-compa').empty().append(jQuery(this).data('mensualidad') +'
'+desc_ramo+'');
jQuery('.parrilla-detalles-referencia').empty().append(pys_env.presupuesto);
//jQuery(this).data('desmodalidad')+'
Precio mensual'+desc_ramo+'');
var customs={};
customs= customsByRamo(pys_env.ramo_seleccionado,customs,jQuery(this));
p