(function(aggregator) {    aggregator.component("indispo", { template: "

Oups ! Nous travaillons actuellement à l'amélioration de la page que vous demandez.
Toutes nos excuses pour cette gêne temporaire.
Le service sera de nouveau accessible à partir de 03H00.

Voici les solutions que nous vous proposons :

Joindre l'un de nos conseillers par téléphone

\"3015

du lundi au vendredi de 8h30 à 20h
et le samedi de 8h30 à 17h

Service et appel gratuits
du lundi au vendredi de 8h30 à 20h
et le samedi de 8h30 à 17h

Prendre rendez-vous dans votre agence MAAF

Choisissez l'agence MAAF la plus proche de chez vous et convenez d'une date de rendez-vous.

Trouver mon agence MAAF
", });}(aggregator));(function(aggregator) { aggregator.replaceTo("", "indispo");}(aggregator));(function(aggregator, $) {    aggregator.component("adminchecker", { template: "
", controller: function(elt) { var href = document.location.href, pos = href.indexOf("?default="), prop, obj, deleteList = function(obj) { for (prop in obj) { if (obj.hasOwnProperty(prop)) { delete obj[prop]; } } }; if(!$(elt).attr("admin-checked")) { if (pos > -1) { /* dans le cas où on demande d'utiliser l'url "default" */ /* reinitialisation des listes selector ou composant d'origine */ obj = window.aggregator.debug().listSelector; for (prop in obj) { if (obj.hasOwnProperty(prop)) { $(prop).removeAttr("aggregator-name"); } } deleteList(window.aggregator.debug().listComposants); deleteList(window.aggregator.debug().listSelector); /* ensuite on charge le module complet d'administration */ $(elt).attr("aggregator-name", "admin"); } }} });}(aggregator, jQuery));(function(aggregator) { aggregator.replaceTo("link[rel='aggregator']", "adminchecker");}(aggregator));(function(aggregator) {    aggregator.component("footer", { template: "
", controller: function(elt) { function whenAvailable(name, callback) { var interval = 10; window.setTimeout(function() { if (window[name]) { callback(window[name]); } else { whenAvailable(name, callback); } }, interval); } whenAvailable("init_agg_menu_footer", function(t) { init_agg_menu_footer(); });} });}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-portal-footer", "footer");}(aggregator));(function(aggregator) {    aggregator.component("header", { template: "
", controller: function(elt) { /** * Lit les paramètres d'appel dans le data-context * @param str l'objet json contenant les paramètres :'{"param1":"valeur1","param2":"valeur2"}' */ function setParamsDataContext(str) { if(str != null && str != '') { paramsDataContext = JSON.parse(str); jsonContextBase = paramsDataContext; } } /** * Met en surbrillance l'onglet et le lien courants dans la barre de navigation en aggrégation * @param str l'objet json indiquant le nom de l'onglet et du lien ex :'{"onglet":"mes-sinistres","lien":"declarer-un-sinistre-habitation"}' */ function changeCurrentTabAgg() { if(paramsDataContext != null && paramsDataContext != '') { /*suppression de la class is-current sur tous les onglets*/ var $onglets = $("body").find('.mars-menu__link'); if ($onglets != undefined && $onglets != null) { $onglets.removeClass('is-current'); } if(jsonContextBase.onglet != null && jsonContextBase.onglet != '' && jsonContextBase.onglet != 'null') { /*ajout de la class is-current sur l'onglet dont le nom correspond au paramétre*/ var $onglet = $('body').find('.mars-menu__link[data-nav-name="' + jsonContextBase.onglet + '"]'); if ($onglet != undefined && $onglet != null) { $onglet.addClass('is-current'); /* $('body').find(".mars-navigation__name").html(($onglet.html()).trim());*/ } } /*suppression de la class is-current sur tous les liens de la barre de navigation*/ var $liens = $('body').find('.mars-megamenu__link'); if ($liens != undefined && $liens != null) { $liens.removeClass('is-current'); } if(jsonContextBase.lien != null && jsonContextBase.lien != '' && jsonContextBase.lien != 'null') { /*ajout de la class is-current sur le lien dont le nom correspond au paramètre*/ var $lien = $('body').find('.mars-megamenu__link[data-nav-name="' + jsonContextBase.lien + '"]'); if ($lien != undefined && $lien != null) { $lien.addClass('is-current'); } } } } /** * récupère le pie en cours (générique ou spécifique au département précisé dans le data-context et visible espace client) et l'insère dans la div "zone_pie" */ function getPie() { if(paramsDataContext != null && paramsDataContext != '') { if(jsonContextBase.affichePie == 'true') { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == XMLHttpRequest.DONE) { if (xmlhttp.status == 200) { var texteAjax = xmlhttp.responseText; $('#zone_pie').html(texteAjax); } else if (xmlhttp.status == 400) { console.log('PIE - There was an error 400'); } else { console.log('PIE - something else other than 200 was returned :'+xmlhttp.status); } } }; var dataJson = encodeURIComponent(JSON.stringify(paramsDataContext)); xmlhttp.open("GET", "https://www.maaf.fr/fr/sites/maaf/home.hidden.pieEC.html.ajax?dataContext=" + dataJson, true); xmlhttp.send(); }else{ $('#zone_pie').html(""); } } } /* Script inbenta */ var inbenta = 'https://maafv2.inbenta.com/assets/js/inbenta-autocomplete-new-v3.js'; if(typeof define === "function" && define.amd) { require([inbenta]); } else { $.getScript(inbenta); } /* A l'init du header : */ var paramsDataContext = null; var jsonContextBase = null; setParamsDataContext(elt.attr('data-context')); changeCurrentTabAgg(); getPie(); /* Puis on place un écouteur pour intercepter les changements*/ /* Select the node that will be observed for mutations */ var targetNode = document.getElementById('agg-portal-header'); /* Options for the observer (which mutations to observe) */ var config = { attributes: true }; /* Callback function to execute when mutations are observed */ var callback = function(mutationsList) { var i; for (i in mutationsList) { if(mutationsList[i].type === 'attributes') { if (mutationsList[i].attributeName === 'data-context') { /*changeCurrentTabAgg(elt.attr('data-context'));*/ paramsDataContext = null; jsonContextBase = null; setParamsDataContext(elt.attr('data-context')); changeCurrentTabAgg(); getPie(); } } } }; if(targetNode!=null && targetNode!="undefined") { /* Create an observer instance linked to the callback function */ var observer = new MutationObserver(callback); /* Start observing the target node for configured mutations */ observer.observe(targetNode, config); } else { console.log('targetNode is null ou undefined'); } function whenAvailable(name, callback) { var interval = 10; window.setTimeout(function() { if (window[name]) { callback(window[name]); } else { whenAvailable(name, callback); } }, interval); } /* init header et footer agg */ whenAvailable("init_agg", function(t) { init_agg(); });} });}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-portal-header", "header");}(aggregator));(function(aggregator) {    aggregator.component("gabarit-contact", { template: "

Télécharger l'appli MAAF et Moi sur votre mobile ou rendez-vous sur maaf.fr avec un ordinateur ou une tablette
Télécharger MAAF et Moi
Etre appelé par un conseiller au moment de votre choix

C'est comme ça vous arrange : demandez à être appelé par un conseiller immédiatement ou plus tard.

Etre appelé Etre appelé
Joindre l'un de nos conseillers par téléphone :

du lundi au vendredi de 8h30 à 20h
et le samedi de 8h30 à 17h

Contacter l'un de nos conseillers par téléphone

Service et appel gratuits du lundi au vendredi de 8h30 à 20h et le samedi de 8h30 à 17h

", controller: function(elt) { /** * Permet d'afficher le gabarit page contact en fonction des éléments passés en paramètre dans la div agg * @param urlService * @param elt */ function initGabaritContact(urlService, elt) { $('#divGabaritPageContact').hide(); var contextBase = elt.attr('data-context'); if (contextBase) { $.ajax({ url:urlService, type:'POST', data: contextBase, contentType: 'application/json', dataType:'json', success: function(param) { if(null != param) { $('#titrePageContactPC').find('h2').html(param.titre); if(param.titreMobile == null || param.titreMobile == '') { $('#titrePageContactMobile').find('h2').html(param.titre); } else{ $('#titrePageContactMobile').find('h2').html(param.titreMobile); } if(!param.blocMaafEtMoi){ /*$('#divBlocMaafEtMoi').addClass('hidden-xs');*/ $('#divBlocMaafEtMoi').remove(); } } } }); var jsonContextBase = JSON.parse(contextBase); var cp = ""; var tel = ""; if (null != jsonContextBase.cp && "" != jsonContextBase.cp) { cp = "&code_postal="+jsonContextBase.cp; } if (null != jsonContextBase.tel && "" != jsonContextBase.tel) { tel = "&telephone="+jsonContextBase.tel; } if("pri" == jsonContextBase.usage) { var href = $('#callBackPRI').attr("href"); href = href + cp + tel; $('#callBackPRI').attr("href" , href ); $('#callBackPRO').remove(); } if("pro" == jsonContextBase.usage) { var href = $('#callBackPRO').attr("href"); href = href + cp + tel; $('#callBackPRO').attr("href" , href ); $('#callBackPRI').remove(); } } $('#divGabaritPageContact').show(); } /* A l'init du gabarit */ initGabaritContact('https://www.maaf.fr/fr/servicerest/pagecontact/param',elt); /* Puis on place un écouteur pour intercepter les changements*/ /* Select the node that will be observed for mutations */ var targetNode = document.getElementById('agg-gabarit-contact'); /* Options for the observer (which mutations to observe) */ var config = { attributes: true }; /* Callback function to execute when mutations are observed */ var callback = function(mutationsList) { var i; for (i in mutationsList) { if(mutationsList[i].type === 'attributes') { if (mutationsList[i].attributeName === 'data-context') { initGabaritContact('https://www.maaf.fr/fr/servicerest/pagecontact/param',elt); } } } }; if(targetNode!=null && targetNode!="undefined") { /* Create an observer instance linked to the callback function */ var observer = new MutationObserver(callback); /* Start observing the target node for configured mutations */ observer.observe(targetNode, config); }} });}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-gabarit-contact", "gabarit-contact");}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-info-client", "reference-vers-un-composant-aggregable-covea");}(aggregator));(function(aggregator) {    aggregator.component("header-1", { template: "
", });}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-devis-prospect-header", "header-1");}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-carrousel-rebonds", "regroupez-tous-vos-contrats-chez-maaf");}(aggregator));(function(aggregator) { aggregator.replaceTo(".agg-portal-footer-lightMM", "footer-light");}(aggregator));