{"version":3,"sources":["../assets/scripts/custom.js"],"names":["jQuery","$","owlCarousel","items","loop","autoplay","autoplayTimeout","autoplayHoverPause","smartSpeed","responsive","0","nav","dots","480","768","navText","change","e","optionValue","this","find","val","submit","click","preventDefault","title","data","ref","fadeIn","addClass","on","append","css","text-align","display","min-height","removeClass","fadeOut","html","ga","telAgence","annonce","length","window","width","elementPosition","offset","resetElement","scroll","scrollTop","top","position","bottom","right","height","z-index","background-color","padding","children","parent","left","next","slideToggle","toggleClass","remove","slideDown","slideUp","resize","location","reload","each","url","attr","toLowerCase","indexOf","Modernizr","objectfit","$container","imgUrl","prop","$containerWidth","$containerHeight","backgroundImage","displayItem","lastItem","search","pos1","pos2","pos3","pos4","substr","margin-bottom"],"mappings":"AACAA,OAAA,SAAAC,GAEAA,EAAA,qBAAAC,aACAC,MAAA,EACAC,MAAA,EACAC,UAAA,EACAC,gBAAA,IACAC,oBAAA,EACAC,WAAA,IACAC,YACAC,GACAC,KAAA,EACAC,MAAA,GAEAC,KACAD,MAAA,GAEAE,KACAH,KAAA,EACAI,SAAA,4FAAA,kGAKAd,EAAA,gBAAAC,aACAC,MAAA,EACAC,MAAA,EACAQ,MAAA,EACAP,UAAA,EACAC,gBAAA,IACAC,oBAAA,EACAC,WAAA,MAGAP,EAAA,aAAAC,aACAC,MAAA,EACAC,MAAA,EACAQ,MAAA,EACAJ,WAAA,IACAG,KAAA,EACAI,SAAA,4FAAA,gGAIAd,EAAA,gBAAAe,OAAA,SAAAC,GACA,GAAAC,GAAAjB,EAAAkB,MAAAC,KAAA,mBAAAC,KACApB,GAAA,gBAAAmB,KAAA,qBAAAC,IAAAH,GACAjB,EAAA,gBAAAqB,WAIArB,EAAA,sBAAAsB,MAAA,WAAA,OAAA,IAGAtB,EAAA,eAAAsB,MAAA,SAAAN,GACAA,EAAAO,gBACA,IAAAC,GAAAxB,EAAAkB,MAAAO,KAAA,SACAC,EAAA1B,EAAAkB,MAAAO,KAAA,MAEAzB,GAAA,kBAAA2B,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WACA,OAAA,MAMAtB,EAAA,6BAAA0D,OAAA,OAAAW,KAAA,WACArE,EAAAkB,MAAAU,SAAA,yBAGA8C,UAAAC,WACA3E,EAAA,0BAAAqE,KAAA,WACA,GAAAO,GAAA5E,EAAAkB,MACA2D,EAAAD,EAAAzD,KAAA,OAAA2D,KAAA,OACAC,EAAA/E,EAAAkB,MAAAyB,QACAqC,EAAAhF,EAAAkB,MAAAmC,QAEAwB,IACAD,EAAA7C,KACAkD,gBAAA,OAAAJ,EAAA,IACAlC,MAAAoC,EACA1B,OAAA2B,IACApD,SAAA,oBAMA5B,EAAA0C,QAAAC,SAAA,KACA3C,EAAA,sCAAA+B,IAAA,QAAA,QAIA/B,EAAA,eAAAyC,OAAA,CACA,GAMAyC,GANAC,EAAAnF,EAAA,sBAAAqC,OACA+C,EAAAD,EAAAX,cACAa,EAAAD,EAAAX,QAAA,OACAa,EAAAF,EAAAX,QAAA,QACAc,EAAAH,EAAAX,QAAA,OACAe,EAAAJ,EAAAX,QAAA,OAIAS,GADAI,GAAA,EACAH,EAAAM,OAAA,EAAAH,GAEAE,GAAA,EACAL,EAAAM,OAAA,EAAAD,GAEAH,GAAA,EACAF,EAAAM,OAAA,EAAAJ,GAEAE,GAAA,EACAJ,EAAAM,OAAA,EAAAF,GAGAJ,EAGAnF,EAAA,sBAAAqC,KAAA6C,GAIAlF,EAAA,eAAAyC,QACAzC,EAAA,UAAA6B,GAAA,gBAAA,WACA7B,EAAA,sDAAA+B,KACA2D,gBAAA","file":"custom.js","sourcesContent":["\r\njQuery(function($) {\r\n // Owl carousel\r\n $(\".frontpage-slider\").owlCarousel({\r\n items:1,\r\n loop:true,\r\n autoplay: true,\r\n autoplayTimeout: 5000,\r\n autoplayHoverPause: true,\r\n smartSpeed: 1000,\r\n responsive: {\r\n 0 : {\r\n nav: false,\r\n dots: false,\r\n },\r\n 480 : {\r\n dots: true,\r\n },\r\n 768 : {\r\n nav: true,\r\n navText: ['', ''],\r\n },\r\n },\r\n });\r\n\r\n $(\".item-slider\").owlCarousel({\r\n items:1,\r\n loop:true,\r\n dots:true,\r\n autoplay: true,\r\n autoplayTimeout: 5000,\r\n autoplayHoverPause: true,\r\n smartSpeed: 1000,\r\n });\r\n\r\n $(\".t-slider\").owlCarousel({\r\n items:1,\r\n loop:true,\r\n dots:true,\r\n smartSpeed: 1000,\r\n nav: true,\r\n navText: ['', '']\r\n });\r\n\r\n /* Tri par prix croissant ou décroissant d'une liste de biens */\r\n $('#order-price').change(function(e){\r\n var optionValue = $(this).find('option:selected').val();\r\n $('#search-form').find('input[name=order]').val(optionValue);\r\n $('#search-form').submit();\r\n });\r\n\r\n /* Empeche le click sur les pages vides */\r\n $('.disabled-link > a').click(function() { return false; });\r\n\r\n /* Modal contactez-nous */\r\n $('.contact-us').click(function(e) {\r\n e.preventDefault();\r\n var title = $(this).data('title');\r\n var ref = $(this).data('ref');\r\n\r\n $('.modal-contact').fadeIn();\r\n $('body').addClass('modal-overflow');\r\n $('textarea.message').val(\"Bonjour,\" + \"\\n\" + \"Je souhaiterais obtenir plus d\\’informations sur votre bien «\" + title + \" (Ref \" + ref + \")»\" + \"\\n\\n\" + \"Cordialement,\");\r\n\r\n $(\".wpcf7\").on('wpcf7:mailsent', function(){\r\n $('.modal-contact form > p').addClass('hidden');\r\n $('.modal-contact form').append('Retour a l\\'Accueil').css({\r\n 'text-align': 'center',\r\n 'display': 'block',\r\n 'min-height': '200px'\r\n });\r\n });\r\n });\r\n\r\n $('.btn-close').click(function(e) {\r\n e.preventDefault();\r\n $('body').removeClass('modal-overflow');\r\n $('.modal-contact').fadeOut();\r\n });\r\n\r\n /* Bouton appelez-nous */\r\n $('li.call a, button.call').click(function(e) {\r\n e.preventDefault();\r\n $(this).html(\"02.99.49.62.01\");\r\n });\r\n\r\n /* Trackers boutons appelez-nous */\r\n $('.btn-preheader.call a').click( function() {\r\n ga('send', 'event', 'clic-intention-appel', 'clic-intention-appel-header');\r\n });\r\n\r\n $('.btn-prefooter.call a').click( function() {\r\n ga('send', 'event', 'clic-intention-appel', 'clic-intention-appel-footer');\r\n });\r\n\r\n $('.btn-call').click( function() {\r\n ga('send', 'event','clic-intention-appel','clic-intention-appel-contact','clic-intention-appel-contact-bouton');\r\n });\r\n\r\n $('.btn-agency-tel').click(function(e) {\r\n e.preventDefault();\r\n\r\n var telAgence = $(this).data('tel');\r\n $(this).html(telAgence);\r\n\r\n ga('send', 'event','clic-intention-appel','clic-intention-appelagence', 'clic-intention-appel-agence-liste');\r\n });\r\n\r\n /* Formulaire de recrutement */\r\n var annonce = $('.job-title span').html();\r\n $('.titre-annonce').val(annonce);\r\n\r\n /* Position fixed du formulaire de recherche */\r\n if($('.section-search').length && $(window).width() > 978) {\r\n var elementPosition = $('.section-search').offset();\r\n var deviceWidth = $(window).width();\r\n var resetElement = true;\r\n\r\n $(window).scroll(function(){\r\n if(resetElement){\r\n elementPosition = $('.section-search').offset();\r\n resetElement = false;\r\n }\r\n\r\n if($(window).scrollTop() > elementPosition.top){\r\n $('.section-search').addClass('form-fixed');\r\n }\r\n else {\r\n $('.section-search').removeClass('form-fixed');\r\n }\r\n });\r\n }\r\n\r\n /* Empeche le click des pages \"Extensions et rénovations\" - \"Qui sommes-nous?\"\r\n ** sur le breadcrumb */\r\n if($('.parent-pageid-9').length || $('.parent-pageid-15').length) {\r\n $('#breadcrumbs span:nth-child(2) a').click(function() {\r\n return false;\r\n });\r\n }\r\n\r\n /* Ajout d'id pour les listes devenant des carousels */\r\n if($(window).width() <= 768) {\r\n $('.news-list, .last-realisation-list, .section-similar-item .possession-list').addClass('owl-carousel').owlCarousel({\r\n items:1,\r\n loop:true,\r\n dots:true,\r\n smartSpeed: 1000,\r\n });\r\n\r\n $('.last-realisation-list, .section-similar-item .possession-list').removeClass('grid-3 has-gutter-l has-gutter-xl');\r\n }\r\n\r\n /* Carte pour mobile */\r\n if($('.section-map').length && $(window).width() <= 768) {\r\n /* Ajoute le même padding qu'une section normale */\r\n $('.section-map').addClass('o-container');\r\n\r\n /* Cache la carte version pc */\r\n $('#map').addClass('hidden');\r\n\r\n /* Reset css zone de select */\r\n $('.find-agency').removeClass('flex-container-v').css({\r\n \"position\": \"inherit\",\r\n \"bottom\": \"inherit\",\r\n \"right\": \"inherit\",\r\n \"width\": \"inherit\",\r\n \"height\": \"inherit\",\r\n \"z-index\": \"inherit\",\r\n \"background-color\": \"inherit\",\r\n \"padding\": \"0\"\r\n });\r\n $('.find-agency').children('form').addClass('hidden');\r\n\r\n /* Action du bouton localiser */\r\n $('.form-map-modal').removeClass('hidden');\r\n\r\n if($('.modal-open').length) {\r\n $('.modal-map').css('display', 'block');\r\n\r\n if($(window).width() <= 480) {\r\n $('#map').removeClass('hidden').css('height', '100%').parent('div').css({\r\n 'position': 'fixed',\r\n 'top': '185px',\r\n 'left': '0',\r\n 'width' : '100vw',\r\n 'z-index': '10000',\r\n 'height': 'calc(100vh - 185px)',\r\n });\r\n }\r\n\r\n else {\r\n $('#map').removeClass('hidden').css('height', '100%').parent('div').css({\r\n 'position': 'fixed',\r\n 'top': '215px',\r\n 'left': '0',\r\n 'width' : '100vw',\r\n 'z-index': '10000',\r\n 'height': 'calc(100vh - 215px)',\r\n });\r\n }\r\n\r\n $('.btn-close').click(function(e) {\r\n e.preventDefault();\r\n $('.modal-map').fadeOut();\r\n $('.map-container').css('display', 'none');\r\n $('#map').addClass('hidden');\r\n });\r\n }\r\n }\r\n\r\n /* Menu accordéon du footer */\r\n if($(window).width() <= 768) {\r\n $('footer .menu-item-has-children').removeClass('disabled-link').children('a').click(function(e){\r\n e.preventDefault();\r\n $(this).next('ul').slideToggle().parent().toggleClass('less');\r\n });\r\n }\r\n\r\n /* Menu hamburger mobile */\r\n if($(window).width() <= 768) {\r\n $('.mobile-menu br').remove();\r\n\r\n $('.btn-mobile').click(function() {\r\n $(this).addClass('disabled-btn');\r\n $('.c-logo-container').addClass('hidden');\r\n $('.btn-close-mobile').removeClass('hidden');\r\n\r\n $('.mobile-menu').slideDown();\r\n $('.header-nav .menu-item-has-children').removeClass('disabled-link').children('a').click(function(e){\r\n e.preventDefault();\r\n $(this).next('ul').slideToggle().parent().toggleClass('less');\r\n });\r\n\r\n $('.btn-close-mobile').click(function() {\r\n $('.mobile-menu').slideUp();\r\n $(this).addClass('hidden');\r\n $('.c-logo-container').removeClass('hidden');\r\n $('.btn-mobile').removeClass('disabled-btn');\r\n });\r\n });\r\n }\r\n\r\n /* Modal formulaire de recherche d'un bien */\r\n if($(window).width() <= 768) {\r\n /* Action du bouton j'affine ma recherche */\r\n $('.btn-form-mobile').click(function() {\r\n $('.modal-search-form').fadeIn();\r\n $('body').addClass('modal-overflow');\r\n $('.section-search').addClass('display-modal-form');\r\n\r\n $('.before-search').css('display', 'none');\r\n\r\n $('.btn-close').click(function(e) {\r\n e.preventDefault();\r\n $('body').removeClass('modal-overflow');\r\n $('.modal-search-form').fadeOut();\r\n $('.section-search').removeClass('display-modal-form');\r\n });\r\n });\r\n }\r\n\r\n /* Reload la page quand on resize la page à <= 768 */\r\n $(window).resize(function() {\r\n if($(window).width() > 767 && $(window).width() <= 978) {\r\n location.reload();\r\n }\r\n });\r\n\r\n /* Plan du site */\r\n if($('.site-map').length) {\r\n /* Ajout des pages manquantes */\r\n $('.site-map > li').each(function() {\r\n var url = $('a', this).attr('href');\r\n\r\n /* Sous pages nos maisons */\r\n if ( url.toLowerCase().indexOf('nos-maisons') > 0 ) {\r\n $(this).append(\r\n '