PageSourceSearch

https://www.cbconstruction.fr/wp-content/themes/vinci-filiales/js/built/app.js?2026_01_15_2

js cbconstruction.fr collected 2026-09-26 16:18:15 UTC 45,091 bytes, 2 lines download raw bytes

1define("templates/post",[],function(){return Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(depth0,helpers,partials,data){var helper;return'<br /><h2 class="post">Enjoy with '+this.escapeExpression((helper=null!=(helper=helpers.tool||(null!=depth0?depth0.tool:depth0))?helper:helpers.helperMissing,"function"==typeof helper?helper.call(depth0,{name:"tool",hash:{},data:data}):helper))+" !</h2>"},useData:!0})}),define("main",["components/settings","templates/post","module/menu","module/map","module/storeLocatorMap","module/map-form-olfa","module/slideshow","module/video-fullscreen","module/popin-contact","module/bloc-quote","module/imgliquid","module/categories","module/banner-announcement","components/carousel","components/accordion","components/search","components/cookiesLink","components/tarteaucitron","components/cookiesSettings"],function(settings,postTpl,menu,map,storeLocatorMap,mapFormOlfa,slideshow,videoFullscreen,popinContact,blocQuote,imgliquid,categories,bannerAnnouncement,carousel,accordion,search){$("#container").append(postTpl({tool:"Gulp"})),menu.init(),settings.get("$html").find("#map-olfa-wrapper").length>0&&mapFormOlfa.init(),settings.get("$html").find("#map-wrapper").length>0&&map.init(),settings.get("$html").find("#storeLocatorMap").length>0&&storeLocatorMap.init(),settings.get("$html").find(".slideshow-wrapper")&&slideshow.init(),settings.get("$html").find(".video-fullscreen")&&videoFullscreen.init(),settings.get("$html").find(".popin-contact")&&popinContact.init(),settings.get("$html").find(".bloc-quote.bloc-l").length&&blocQuote.init(),settings.get("$html").find(".categories-container").length&&categories.init(),settings.get("$html").find("#banner-announcement").length>0&&bannerAnnouncement.init(),settings.get("$html").find(".swiper-classic").length>0&&carousel.initClassic(),settings.get("$html").find(".swiper-news").length>0&&(carousel.initNews(),window.addEventListener("resize",function(){carousel.initNews()})),settings.get("$html").find(".magnify-search").length>0&&search.init(settings.get("$html").find(".magnify-search")),settings.get("$html").find(".accordion-js").length>0&&accordion.init(),imgliquid.init()}),define("components/accordion",function(){var accordion={init:function(){this.initAccordion()},initAccordion:function(){var $accordion=$(".accordion-js"),$accordionItem=$accordion.find(".accordion-item"),$accordionContent=$accordion.find(".accordion-content"),$accordionTitle=$accordion.find(".accordion-title");$accordionContent.hide(),$accordionItem.first().addClass("active"),$accordionItem.first().find(".accordion-content").show(),$accordionTitle.on("click",function(){var $this=$(this),$thisParent=$this.parent(),$thisContent=$thisParent.find(".accordion-content");$thisParent.hasClass("active")?($thisContent.slideUp(),$thisParent.removeClass("active")):($accordionItem.removeClass("active"),$accordionContent.slideUp(),$thisContent.slideDown(),$thisParent.addClass("active"))})}};return accordion}),define("components/carousel",["components/settings"],function(settings){function openPopin(popinElement,initialSlide){var popin=popinElement.cloneNode(!0),popinCarousel=document.body.appendChild(popin);popinCarousel.classList.add("show"),popinCarousel.classList.add("popinCarousel");var swiperEl=new Swiper(".popinCarousel",{loop:!0,slidesPerView:"auto",centeredSlides:!0,spaceBetween:0,initialSlide:parseInt(initialSlide),lazy:!0,keyboard:{enabled:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),removePopin=function(){swiperEl.destroy(),popinCarousel.classList.remove("show"),popinCarousel.classList.remove("popinCarousel"),popinCarousel.replaceChildren()};popinCarousel.querySelector(".close").addEventListener("click",function(){removePopin()}),document.addEventListener("keydown",function(e){"Escape"===e.key&&removePopin()})}var slideshow={initClassic:function(){new Swiper(".swiper-classic",{loop:!0,slidesPerView:"auto",centeredSlides:!0,spaceBetween:12,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},keyboard:{enabled:!0},breakpoints:{768:{spaceBetween:20}},watchOverflow:!0,on:{click:function(e){var popinId=e.el.dataset.popinId,popinCarrousel=document.getElementById(popinId),swiperSlideIndex=e.clickedSlide&&e.clickedSlide.dataset.swiperSlideIndex;popinCarrousel&&swiperSlideIndex&&openPopin(popinCarrousel,swiperSlideIndex)}}})},initNews:function(){var body=document.querySelector("body"),isEurovia=body.classList.contains("filiale-eurovia"),slidesPerViewDesktop=isEurovia?2.8:3.424,spaceBetweenDesktop=(Array.prototype.slice.call(document.getElementsByTagName("html"))[0].clientWidth,isEurovia?40:20),offsetBeforeAfterDesktop=isEurovia?40:0;new Swiper(".swiper-news",{loop:!0,centeredSlides:!0,slidesPerView:"auto",spaceBetween:24,threshold:10,keyboard:{enabled:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{768:{loop:!1,centeredSlides:!1,slidesPerView:1.8,slidesOffsetBefore:24,slidesOffsetAfter:24},945:{loop:!1,centeredSlides:!1,slidesPerView:slidesPerViewDesktop,spaceBetween:spaceBetweenDesktop,slidesOffsetBefore:offsetBeforeAfterDesktop,slidesOffsetAfter:offsetBeforeAfterDesktop}},watchOverflow:!0})}};return slideshow}
1),define("components/cookiesLink",function(){function getCookie(cname){for(var name=cname+"=",decodedCookie=decodeURIComponent(document.cookie),ca=decodedCookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(name))return c.substring(name.length,c.length);if("!"===c.indexOf(name))return c.substring(name.length,c.length)}return""}var $endList=document.querySelector("footer .end ul"),$cookiesLink=document.createElement("li");$cookiesLink&&($cookiesLink.innerHTML="<a href='#'>"+document.querySelector("#cookies-footer-link").textContent+"</a><span>|</span>",$cookiesLink.classList.add("cookiesLink"),$cookiesLink.addEventListener("click",function(){var analyticCheckSvg=document.querySelector("#cookiesAnalyticCheck svg");if(document.querySelector("#tarteaucitronRoot").style.pointerEvents="all",document.querySelector("#tarteaucitronRoot").style.display="block",document.querySelector("#tarteaucitron").style.display="block",document.querySelector("#tarteaucitron").style.opacity="1",document.querySelector("#tarteaucitronBack").style.display="block",document.querySelector("#tarteaucitronBack").style.opacity="0.7",analyticCheckSvg){var analyticIsDeny=getCookie("tarteaucitron").includes("pianoanalytics=false");analyticIsDeny?analyticCheckSvg.classList.remove("show"):analyticCheckSvg.classList.add("show")}})),$endList&&$endList.insertBefore($cookiesLink,$endList.children[2])}),define("components/cookiesSettings",function(){function getCookie(cname){for(var name=cname+"=",decodedCookie=decodeURIComponent(document.cookie),ca=decodedCookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(name))return c.substring(name.length,c.length);if("!"===c.indexOf(name))return c.substring(name.length,c.length)}return""}var crossSvg='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g fill="none" fill-rule="evenodd"> <g> <g> <g> <g><path fill="#004489" d="M0 0H20V20H0z" transform="translate(-526 -432) translate(405 161) translate(121 268) translate(0 3)"/><path stroke="#FFF" d="M3 9.433L8.222 14.677 17 5.677" transform="translate(-526 -432) translate(405 161) translate(121 268) translate(0 3)"/></g></g></g></g></g></svg>',cookiesSelector=setInterval(function(){function closeTarte(){var cookiesNotSet=getCookie("tarteaucitron").includes("pianoanalytics=wait");cookiesNotSet?tarteClose.click():(document.querySelector("#tarteaucitronAlertBig").style.opacity="0",document.querySelector("#tarteaucitronAlertBig").style.pointerEvents="none",document.querySelector("#tarteaucitronRoot").style.display="none",tarteClose.click())}var servicesPopUp=document.querySelector("#tarteaucitronServices"),tarteClose=document.querySelector("#tarteaucitronClosePanel");
1if(servicesPopUp){servicesPopUp.style.setProperty("background-color","#ffffff","important"),servicesPopUp.style.setProperty("color","#cccccc","important");var natifSaveButton=servicesPopUp.querySelector("#tarteaucitronSave");natifSaveButton&&natifSaveButton.remove();var closeButton=document.querySelector("#tarteaucitronCloseCross");if(closeButton){var closeButtonForModal=closeButton.cloneNode(!0);closeButtonForModal.setAttribute("id","tarteaucitronClosePanelCustom"),closeButtonForModal.addEventListener("click",function(){closeTarte()}),servicesPopUp.prepend(closeButtonForModal)}var cookiesHtml;document.getElementsByTagName("html")[0].getAttribute("lang");cookiesHtml="<div class='h3'>"+document.querySelector("#cookies-popin-title").textContent+"</div><p>"+document.querySelector("#cookies-popin-subtitle").textContent+"</p><p>"+document.querySelector("#cookies-popin-text").textContent+"</p><div class='cookiesCheckContainer'><div class='cookiesCheckbox'><div id='cookiesSiteCheck'>"+crossSvg+"</div> <div class='h4'>"+document.querySelector("#cookies-popin-option-1").textContent+"</div></div><p>"+document.querySelector("#cookies-popin-option-1-text").textContent+"</p></div><div class='cookiesCheckContainer'><div class='cookiesCheckbox'><div id='cookiesAnalyticCheck'>"+crossSvg+"</div> <div class='h4'>"+document.querySelector("#cookies-popin-option-2").textContent+"</div></div><p>"+document.querySelector("#cookies-popin-option-2-text").textContent+"</p></div><div class='mentionsText' > <p>"+document.querySelector("#cookies-popin-bottom-text-1").textContent+"</p><p>"+document.querySelector("#cookies-popin-bottom-text-2").textContent+"</p><p>"+document.querySelector("#cookies-popin-bottom-text-3-1").textContent+" <a href='"+document.querySelector("#cookies-banner-more-information-link").textContent+"'>"+document.querySelector("#cookies-popin-bottom-text-3-2").textContent+"</a> </p></div><div class='cookiesBtnContainer' > <div class='backCookies btnCookies'>"+document.querySelector("#cookies-popin-back").textContent+"</div> <div class='acceptCookies btnCookies'>"+document.querySelector("#cookies-banner-validation").textContent+"</div></div>";var customServiceContainer=document.createElement("div");customServiceContainer.classList.add("customServiceContainer"),customServiceContainer.innerHTML=cookiesHtml,servicesPopUp.appendChild(customServiceContainer);var customClose=document.querySelector(".backCookies"),customAccept=document.querySelector(".acceptCookies");customClose.addEventListener("click",function(){closeTarte()});var analyticIsChecked=getCookie("tarteaucitron").includes("pianoanalytics=true"),analyticIsWait=getCookie("tarteaucitron").includes("pianoanalytics=wait"),checkBoxIsChecked=analyticIsChecked||analyticIsWait,cookiesAnalyticCheck=document.querySelector("#cookiesAnalyticCheck"),analyticCheckSvg=cookiesAnalyticCheck.querySelector("svg"),btnAllow=document.querySelector("#tarteaucitronAllAllowed"),btnNotAllow=document.querySelector("#tarteaucitronAllDenied"),cookiesLinkOpen=document.querySelector(".cookiesLink");cookiesLinkOpen.addEventListener("click",function(){checkBoxIsChecked=getCookie("tarteaucitron").includes("pianoanalytics=true")}),customAccept.addEventListener("click",function(){document.querySelector("#tarteaucitronAlertBig").style.opacity="0",document.querySelector("#tarteaucitronAlertBig").style.pointerEvents="none",analyticIsChecked=getCookie("tarteaucitron").includes("pianoanalytics=true"),!analyticIsChecked&&checkBoxIsChecked&&btnAllow.click(),!analyticIsChecked&&!analyticIsWait||checkBoxIsChecked||btnNotAllow.click(),tarteClose.click()}),cookiesAnalyticCheck.addEventListener("click",function(e){checkBoxIsChecked=!checkBoxIsChecked,analyticCheckSvg.classList.toggle("show")}),clearInterval(cookiesSelector)}},1e3)}),define("components/search",["components/settings"],function(settings){var search={init:function(elements){var closeSearch=null,magnifyDesktop=document.querySelector(".magnify-desktop"),searchDesktopLayout=document.getElementById("search-desktop"),magnifyDesktopArea=document.querySelector(".magnify-desktop-area"),magnifyMobileArea=document.querySelector(".magnify-mobile-area"),searchMobileLayout=document.getElementById("search-mobile");searchMobileLayout&&(closeSearch=searchMobileLayout.querySelector(".searchCross")),magnifyMobileArea&&magnifyMobileArea.addEventListener("click",function(){searchMobileLayout.classList.toggle("open"),document.documentElement.classList.toggle("menu-mobile-active"),searchMobileLayout.querySelector("input").focus()}),closeSearch&&closeSearch.addEventListener("click",function(){document.documentElement.classList.toggle("menu-mobile-active"),searchMobileLayout.classList.toggle("open")}),magnifyDesktopArea&&magnifyDesktopArea.addEventListener("mouseover",function(){magnifyDesktop.classList.add("active"),searchDesktopLayout.classList.add("open"),searchDesktopLayout.querySelector("input").focus()}),magnifyDesktopArea&&magnifyDesktopArea.addEventListener("mouseout",function(){magnifyDesktop.classList.remove("active"),searchDesktopLayout.classList.remove("open")})}};return search}),define("components/settings",function(){function windowResize(){windowSize.width=$(window).outerWidth(),windowSize.height=$(window).outerHeight(),isSmall="visible"==$("#vinci-s").css("visibility"),isMedium="visible"==$("#vinci-m").css("visibility"),isLarge="visible"==$("#vinci-l").css("visibility"),obj.set("windowSize",windowSize),obj.set("isSmall",isSmall),obj.set("isMedium",isMedium),obj.set("isLarge",isLarge)}
1function windowScroll(){obj.set("scrollTop",$(window).scrollTop())}function detectIE(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);var trident=ua.indexOf("Trident/");if(trident>0){var rv=ua.indexOf("rv:");return parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10)}var edge=ua.indexOf("Edge/");return edge>0&&parseInt(ua.substring(edge+5,ua.indexOf(".",edge)),10)}var obj={get:function(key){return settings[key]},set:function(key,value){settings[key]=value}},windowSize={},scrollTop=0,isAndroid=null,isiOS=null,isiPhone=null;windowSize.width=$(window).outerWidth(),windowSize.height=$(window).outerHeight(),scrollTop=$(window).scrollTop(),isSmall="visible"==$("#vinci-s").css("visibility"),isMedium="visible"==$("#vinci-m").css("visibility"),isLarge="visible"==$("#vinci-l").css("visibility"),isiOS=!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),isiPhone=!!navigator.userAgent.match(/(iPhone)/g),isAndroid=!!navigator.userAgent.match(/(Android)/g),page=!!$("html.page").length,home=!!$("html.home").length,isiOS&&$("html").addClass("ios"),isSmall&&$("html").addClass("mobile"),$(window).on("resize",windowResize),$(window).on("scroll",windowScroll);var IEVersion=detectIE();IEVersion&&$("html").addClass("ie ie"+IEVersion);var settings={$actionMobile:$(".action-mobile"),$menuMobileOpened:$(".menu-opened"),$wrapperMobile:$(".wrapper-mobile-js"),$menuMobile:$(".menu-mobile"),$menuBackMobile:$(".menu-mobile .back-js"),$menuMobileLinkFirstLevel:$(".menu-mobile nav > ul.menu-1 > li > a"),$menuMobileSecondLevel:$(".menu-mobile .wrapper-submenu"),$map:document.getElementById("map-wrapper"),$storeLocatorMap:document.getElementById("storeLocatorMap"),$popinContact:$(".popin-contact"),$slideshow:$(".slideshow-wrapper-js"),$imgLiquidTarget:$(".wrap-image"),$doc:$(document),$win:$(window),$html:$("html"),$body:$("body"),$htmlbody:$("html, body"),$containerPopins:$("#container-popins"),$container:$("#container"),$nav:$("#nav"),$content:$("#content"),page:page,home:home,windowSize:windowSize,scrollTop:scrollTop,isSmall:isSmall,isMedium:isMedium,isLarge:isLarge,isiOS:isiOS,isiPhone:isiPhone,isAndroid:isAndroid};return $.fn.scrollStopped=function(callback){var that=this,$this=$(that);$this.scroll(function(ev){clearTimeout($this.data("scrollTimeout")),$this.data("scrollTimeout",setTimeout(callback.bind(that),600,ev))})},obj}),define("components/tarteaucitron",function(){function getCookie(cname){for(var name=cname+"=",decodedCookie=decodeURIComponent(document.cookie),ca=decodedCookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(name))return c.substring(name.length,c.length);if("!"===c.indexOf(name))return c.substring(name.length,c.length)}return""}var tarteaucitronRoot,$alertModal,modalSelector=setInterval(function(){tarteaucitronRoot=document.querySelector("#tarteaucitronRoot");document.getElementsByTagName("html")[0].getAttribute("lang");if(tarteaucitronRoot){$alertModal=document.querySelector("#tarteaucitronAlertBig"),"none"===$alertModal.style.display&&($alertModal.style.pointerEvents="none");var cookiesText=$alertModal.querySelector("#tarteaucitronDisclaimerAlert");cookiesText.innerText=document.querySelector("#cookies-banner-text").textContent;var wrapperCookies=document.createElement("div");wrapperCookies.classList.add("wrapperCookies"),cookiesText.parentNode.insertBefore(wrapperCookies,cookiesText),wrapperCookies.appendChild(cookiesText);var moreInfo=document.createElement("a");moreInfo.classList.add("moreInfo"),moreInfo.href=document.querySelector("#cookies-banner-more-information-link").textContent,moreInfo.innerText=document.querySelector("#cookies-banner-more-information").textContent,wrapperCookies.appendChild(moreInfo);var cookiesTextSettings=$alertModal.querySelector("#tarteaucitronCloseAlert"),cookiesValidation=$alertModal.querySelector(".tarteaucitronAllow");cookiesTextSettings.innerText=document.querySelector("#cookies-banner-settings").textContent,cookiesValidation.innerHTML=document.querySelector("#cookies-banner-validation").textContent,cookiesTextSettings.addEventListener("click",function(){var analyticCheckSvg=document.querySelector("#cookiesAnalyticCheck svg");if(analyticCheckSvg){var analyticIsDeny=getCookie("tarteaucitron").includes("pianoanalytics=false");analyticIsDeny?analyticCheckSvg.classList.remove("show"):analyticCheckSvg.classList.add("show")}}
1),cookiesValidation.addEventListener("click",function(){$alertModal.style.pointerEvents="none",document.querySelector("#tarteaucitronAlertBig").style.opacity="0",document.querySelector("#tarteaucitronAlertBig").style.pointerEvents="none",document.querySelector("#tarteaucitronRoot").style.display="none",document.querySelector("#tarteaucitronRoot").style.pointerEvents="none"});var wrapperButtons=document.createElement("div");wrapperButtons.classList.add("wrapperButtons"),cookiesTextSettings.parentNode.insertBefore(wrapperButtons,cookiesTextSettings,cookiesValidation),wrapperButtons.appendChild(cookiesTextSettings),wrapperButtons.appendChild(cookiesValidation);var closeCookiesBtn=document.createElement("button"),btnNotAllow=document.querySelector("#tarteaucitronAllDenied2"),btnDenyAll=document.querySelector("#tarteaucitronAllDenied2");btnDenyAll&&btnDenyAll.remove();var closeButton=document.querySelector("#tarteaucitronCloseCross");closeButton&&(closeButton.removeChild(closeButton.querySelector("span")),closeButton.addEventListener("click",function(){document.querySelector("#tarteaucitronAlertBig").style.opacity="0",document.querySelector("#tarteaucitronAlertBig").style.pointerEvents="none"})),closeCookiesBtn.innerText=document.querySelector("#cookies-banner-decline").textContent,closeCookiesBtn.classList.add("closeCookies"),closeCookiesBtn.classList.add("tarteaucitronCTAButton"),wrapperButtons.appendChild(closeCookiesBtn),closeCookiesBtn.addEventListener("click",function(){btnNotAllow&&btnNotAllow.click(),document.querySelector("#tarteaucitronRoot").style.display="none",document.querySelector("#tarteaucitronRoot").style.pointerEvents="none"}),setTimeout(function(){$alertModal.style.visibility="visible"},300),clearInterval(modalSelector)}},1e3)}),define("module/banner-announcement",["components/settings"],function(settings){return bannerAnnouncement={$menuMobile:settings.get("$menuMobile"),$header:settings.get("$body").find("#header"),$banner:$("#banner-announcement"),$wrapContent:$("#wrap-content"),$adminBar:$("#wpadminbar"),cookieName:"HIDE_BANNER",bannerIsVisible:!0,init:function(){var self=this,cookie=self.getCookie(self.cookieName);return new Date(cookie)>new Date?void self.$banner.remove():(self.$banner.css("display","inline-block"),window.addEventListener("resize",self.debounce(self.windowResize.bind(this),50)),void self.adaptCss())},adaptCss:function(){var margeToAdd,self=this,isAdminBar=self.$adminBar.length>0,adminBarHeight=self.$adminBar.outerHeight();margeToAdd=isAdminBar?adminBarHeight+self.$banner.outerHeight():self.$banner.outerHeight(),self.$header.css("top",margeToAdd+"px"),self.$menuMobile.css("top",margeToAdd+"px"),self.$wrapContent.css("padding-top","");var paddingTopValue=parseFloat(self.$wrapContent.css("padding-top"));isNaN(paddingTopValue)?self.$wrapContent.css("padding-top",self.$banner.outerHeight()+"px"):self.$wrapContent.css("padding-top",paddingTopValue+self.$banner.outerHeight()+"px"),self.$banner.find("span.close-banner").on("click",function(){self.$header.css("top",""),self.$menuMobile.css("top",""),isNaN(paddingTopValue)?self.$wrapContent.css("padding-top",paddingTopValue+"px"):self.$wrapContent.css("padding-top",""),self.$banner.remove(),self.bannerIsVisible=!1,self.setCookie(self.cookieName,3)})},setCookie:function(name,days){var expirationDate=new Date;expirationDate.setDate(expirationDate.getDate()+days);var cookieValue=encodeURIComponent(expirationDate.toUTCString())+"; expires="+expirationDate.toUTCString()+"; path=/";document.cookie=name+"="+cookieValue},getCookie:function(name){var cookieString=document.cookie,cookies=cookieString.split("; ");for(var index in cookies)if(cookies.hasOwnProperty(index)){var cookie=cookies[index],cookieAttribute=cookie.split("="),trimmedCookieName=cookieAttribute[0].trim();if(trimmedCookieName===name)return decodeURIComponent(cookieAttribute[1])}return null},windowResize:function(){var self=this;self.bannerIsVisible&&(self.$banner.find("span.close-banner").off("click"),self.adaptCss())},debounce:function(callback,wait){var timeout=null,callbackArgs=null,later=function(){return callback.apply(this,callbackArgs)};return function(){callbackArgs=arguments,clearTimeout(timeout),timeout=setTimeout(later,wait)}}},bannerAnnouncement}),define("module/bloc-quote",["components/settings"],function(settings){var blocQuote={$blocQuote:$("blockquote.text"),init:function(){},initblocQuote:function(){settings.get("windowSize").width>1024&&(blocQuote.$blocQuote.height(blocQuote.$blocQuote.width()/3),$(window).on("resize",function(){blocQuote.$blocQuote.height(blocQuote.$blocQuote.width()/3)}))}};return blocQuote}),define("module/categories",["components/settings"],function(settings){var categories={$categoriesSelect:document.getElementById("categories-select"),init:function(){this.initCategories()},initCategories:function(){categories.$categoriesSelect&&categories.$categoriesSelect.addEventListener("change",function(event){window.location=categories.addOrUpdateQueryStringToUrl(window.location.href,"category",event.target.value)})},addOrUpdateQueryStringToUrl:function(url,parameterName,parameterValue){var urlParts=url.split("?"),baseUrl=urlParts[0],queryString=urlParts[1],regex=/\/page\/\d+\//g;baseUrl=baseUrl.replace(regex,"/");var parameters={};if(queryString)for(var parameterPairs=queryString.split("&"),i=0;i<parameterPairs.length;i++){var pair=parameterPairs[i].split("="),name=decodeURIComponent(pair[0]);parameters[name]=decodeURIComponent(pair[1])}parameters[parameterName]=parameterValue;var newQueryString="";for(var key in parameters)""!==newQueryString&&(newQueryString+="&"),newQueryString+=encodeURIComponent(key)+"="+encodeURIComponent(parameters[key]);return"category="===newQueryString?baseUrl:baseUrl+"?"+newQueryString}};return categories}),define("module/imgliquid",["components/settings"],function(settings){var imgLiquid={$imgLiquid:settings.get("$imgLiquidTarget"),init:function(){this.initImgLiquid(),settings.get("$win").on("resize",this.initImgLiquid())},initImgLiquid:function(){settings.get("windowSize").width<1024&&imgLiquid.$imgLiquid.imgLiquid({fill:!0,verticalAlign:"center",horizontalAlign:"center"})}};return imgLiquid}),define("module/map-form-olfa",["components/settings"],function(settings){var mapFormOlfa={mapWrapper:document.getElementById("map-olfa-wrapper"),init:function(){this.initMapOlfa()},initMapOlfa:function(){var myLatLng={lat:46.8838492526349,lng:2.7732422087893833},map=new google.maps.Map(this.mapWrapper,{center:myLatLng,zoom:7,mapTypeControl:!1,fullscreenControl:!1,zoomControl:!0,scaleControl:!0,streetViewControl:!1}),geocoder=new google.maps.Geocoder,markersArray=[];google.maps.event.addListener(map,"click",function(event){function clearOverlays(){for(var i=0;i<markersArray.length;i++)markersArray[i].setMap(null);markersArray=[]}geocoder.geocode({latLng:event.latLng},function(results,status){if(status==google.maps.GeocoderStatus.OK&&results[0]){$(".address-autocomplete").addClass("on");var input=document.getElementById("field-address");input.value=results[0].formatted_address,input.style.display="unset",document.querySelector('[id="field-address"]').dispatchEvent(new Event("input",{bubbles:!0}))}}),clearOverlays();var image="/wp-content/themes/vinci-filiales/images/map-marker.png",marker=new google.maps.Marker({position:event.latLng,map:map,title:"",icon:image});markersArray.push(marker)})},getCurrentPosition:function(){}};return mapFormOlfa}),define("module/map",["components/settings"],function(settings){var Map={mapWrapper:sett
1ings.get("$map"),init:function(){this.initMap()},initMap:function(){var myLatLng={lat:$(this.mapWrapper).data("locationLat"),lng:$(this.mapWrapper).data("locationLng")},myZoom=$(this.mapWrapper).data("zoom"),map=new google.maps.Map(this.mapWrapper,{center:myLatLng,scrollwheel:!1,zoom:myZoom,mapTypeControl:!1,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.TOP_LEFT},zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_BOTTOM},scaleControl:!0,streetViewControl:!1,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_TOP}}),image="/wp-content/themes/vinci-filiales/images/map-marker.png";new google.maps.Marker({position:myLatLng,map:map,title:"",icon:image});map.addListener("click",function(){map.set("scrollwheel",!0)}),map.addListener("mouseout",function(){map.set("scrollwheel",!1)})},getCurrentPosition:function(){}};return Map}),define("module/menu",["components/settings"],function(settings){return menu={menu:settings.get("$wrapperMobile"),menuMobile:settings.get("$menuMobile"),header:settings.get("$body").find("#header"),distanceMenu:$(window).innerWidth()>320?"300px":"250px",init:function(){var self=this,navTop=settings.get("$body").find("nav > ul > li.menu-item > a");
1this.$targetMenu=settings.get("$body").find(".sub-menu"),this.timerOpenMenu=null,this.timerClose=null,this.timer=null,this.open=!1,_.bindAll(this,"windowResize","initscroll"),self.initscroll(),$(window).on("resize",function(event){event.preventDefault(),self.windowResize()}),$(navTop).on("mouseenter",function(e){settings.get("isSmall")||(clearTimeout(self.timer),e.preventDefault(),self.$targetCurrent=$(e.currentTarget),self.indexCurrent=self.$targetCurrent.parent().index(),self.timerOpenMenu&&(window.clearTimeout(self.timerOpenMenu),self.timerOpenMenu=null),self.timerOpenMenu=window.setTimeout(function(){self.timerOpenMenu=null,self.openMenuDesktop(e)},300))}),$("nav > ul > li > ul.open").on("click mouseenter",function(e){clearTimeout(self.timer),self.timerOpenMenu&&(window.clearTimeout(self.timerOpenMenu),self.timerOpenMenu=null)}),settings.get("$actionMobile").on("click",function(event){event.preventDefault(),$(this).hasClass("menu-opened")?self.closeMenu():self.openMenu()}),settings.get("$menuMobileLinkFirstLevel").on("click",function(event){void 0!==$(this).attr("href")&&"#"!=$(this).attr("href")||(event.preventDefault(),self.openSubMenuMobile(event))}),settings.get("$menuMobile").on("click",".back-js",function(event){event.preventDefault(),self.closeSubMenuMobile(event)}),$(".menu-mobile ul.menu-1 > li > ul.sub-menu").each(function(index){var name_parent=$(this).parent().find("> a").text();$(this).prepend('<li class="back-js">'+name_parent+"</li>")})},openMenuDesktop:function(e){clearTimeout(this.timerClose);var self=this;self.timerHover=!1,this.$targetMenu.removeClass("open"),self.$targetCurrent.parent().find("> ul").addClass("open"),this.open=!0,self.$targetCurrent.parent().find("> ul").on("mouseleave",function(){self.eventMouseLeave(self)}),setTimeout(function(){self.timerHover=!0},400)},closeMenuDesktop:function(){var self=this;this.open&&(clearTimeout(this.timerClose),$(".sub-menu").removeClass("open"),this.timerClose=setTimeout(function(){self.open=!1},400))},eventMouseLeave:function(self){window.clearTimeout(self.timerOpenMenu),self.timer=setTimeout(function(){self.closeMenuDesktop()},300)},initscroll:function(){var myScroll=new IScroll(".menu-mobile",{mouseWheel:!0,bounce:!1,keyBinding:!0,fadeScrollbars:!1,disableMouse:!1,preventDefault:!1,scrollbars:!0});$(".menu-mobile").data("iscroll",myScroll)},windowResize:function(){this.distanceMenu=$(window).innerWidth()>320?"300px":"250px"},openMenu:function(){$("html").addClass("new-mobile-menu-opened"),$(".action-mobile").addClass("menu-opened"),$(document).on("touchmove",function(event){event.preventDefault()})},closeMenu:function(){$("html").removeClass("new-mobile-menu-opened"),$(".action-mobile").removeClass("menu-opened"),$(document).off("touchmove"),$(".submenu-opened").removeClass("submenu-opened")},openSubMenuMobile:function(event){var currentSubMenu=$(event.currentTarget).siblings(".sub-menu");$(event.currentTarget).text();currentSubMenu.addClass("submenu-opened"),setTimeout(function(){$(".menu-mobile").data("iscroll").refresh()},600)},closeSubMenuMobile:function(event){event.preventDefault(),$(".submenu-opened").removeClass("submenu-opened")}},menu}),define("module/popin-contact",["components/settings"],function(settings){var PopinContact={popinWrapper:settings.get("$popinContact"),init:function(){this.initPopin()},initPopin:function(){var file=document.getElementById("field-file");file&&(file.addEventListener("change",function(event){var files=event.target.files;if(void 0!==files[0]){var newFileName;newFileName=files[0].name.length>35?files[0].name.substring(0,15)+"..."+files[0].name.substr(files[0].name.length-15):files[0].name;var allowedExtensions=/(\.doc|\.docx|\.pdf)$/i;(files[0].size>2e6||!allowedExtensions.exec(newFileName))&&$("span.error-file").show(),$('label[for="field-file"] #file-name').text(" - ("+newFileName+")")}}),file.addEventListener("click",function(){$('label[for="field-file"] #file-name').text(""),$("span.error-file").hide()})),$(".share.mail").on("click",function(e){return PopinContact.popinWrapper.addClass("active"),$(".overlay").show(),!1}),$(".close").on("click",function(e){PopinContact.popinWrapper.removeClass("active"),$(".overlay").hide()}),$(".share.native").on("click",function(e){return navigator.share({title:document.title,url:window.location.href}),!1}),$(".popin-contact").click(function(e){e.target==this&&(PopinContact.popinWrapper.removeClass("active"),$(".overlay").hide())}),$(".popin-contact form").on("submit",function(e){var $this=$(this);return $.ajax({type:"POST",url:$this.attr("action"),data:$this.serialize(),beforeSend:function(){$this.find("button").addClass("disabled")},success:function(html){"OK"==html?($this.find(".error").hide().html(""),$this.find(".confirmation").show()):($this.find(".error").show().html(html),$this.find("button").removeClass("disabled"))},error:function(){$this.find("button").removeClass("disabled")}}),!1})}};return PopinContact}),define("module/slideshow",["components/settings"],function(settings){var slideshow={slideshowWrapper:sett
1ings.get("$slideshow"),init:function(){var self=this;self.initSlideshow(),
2self.slideshowWrapper.on("init",function(event,slick){slick.slickGoTo(0)}),setTimeout(function(){self.slideshowWrapper.slick("setPosition")},300),_.bindAll(this,"windowResize"),settings.get("$win").on("resize",this.windowResize)},initSlideshow:function(){var self=this,$parent=self.slideshowWrapper.parent();$.each($parent,function(){$that=$(this),$slider=$that.find(".slideshow-wrapper-js"),$next=$that.find(".slideshow-arrow-next"),$prev=$that.find(".slideshow-arrow-prev"),$slider.slick({infinite:!0,slidesToShow:1,slidesToScroll:1,speed:300,centerMode:!0,variableWidth:!0,arrows:!0,prevArrow:$prev,nextArrow:$next}),$slider.on("init",function(event,slick){slick.slickGoTo(0)}),setTimeout(function(){$slider.slick("setPosition")},300)}),this.slideshowWrapper.css({width:settings.get("$win").width()+"px"})},windowResize:function(){this.slideshowWrapper.css({width:settings.get("$win").width()+"px"})}};return slideshow}),define("module/storeLocatorMap",["components/settings"],function(settings){function toggleFilters(){modal.classList.contains("active")&&toggleFiltersBtn.classList.contains("active")?(modal.classList.remove("active"),toggleFiltersBtn.classList.remove("active")):(modal.classList.add("active"),toggleFiltersBtn.classList.add("active"))}function cleanAllHighlights(){storesvgList=document.querySelectorAll(".storesvg"),storesvgList.forEach(function(store){store.classList.contains("highlight")&&store.classList.remove("highlight")})}function toggleHighlight(markerView,from){"poi"===from&&infoWindow.close(),cleanAllHighlights(),markerView.content.classList.contains("highlight")?(markerView.content.classList.remove("highlight"),markerView.zIndex=null):(markerView.content.classList.add("highlight"),markerView.zIndex=1)}function searchLocation(){var searchValue=searchStore.value,url="https://maps.googleapis.com/maps/api/geocode/json?key="+googleApiKey+"&address="+searchValue;fetch(url).then(function(response){return response.json()}).then(function(data){var lat=data.results[0].geometry.location.lat,lng=data.results[0].geometry.location.lng,location={lat:lat,lng:lng};if(mapInstance.setCenter(location),mapInstance.setZoom(10),centeredMarker.length>0){for(var i=0;i<centeredMarker.length;i++)centeredMarker[i].setMap(null);centeredMarker=[]}var searchMarker=new advancedMarkerElement({map:window.mapInstance,position:location,content:buildContent({search:!0})});centeredMarker.push(searchMarker)})}function populateStoreInfos(poi){var name=poi.name||null,address=poi.datas.address||null,contact=poi.datas.contact||null,referent=poi.datas.referent||null,referentPicture=poi.datas.referentPicture||null,time=poi.datas.time||null,activities=poi.datas.activities||null,socialLinks=poi.datas.socialLinks||null,link=poi.link||null,logo=poi.logo||null,ctaPopin=poi.ctaPopin||null,ctaPopinLabel=poi.ctaPopinLabel||null,storeInfosTemplate='<div class="datas-agency">';return logo&&(storeInfosTemplate+='<img class="eLogo" src='+logo+' alt="" />'),name&&(storeInfosTemplate+='<h2 class="eTitle">'+name+"</h2>"),storeInfosTemplate+='<div class="flexRow">',address&&(storeInfosTemplate+='<div><p class="legend">'+addressLegend+'</p><div class="datas">'+address+'</div><a class="poi" href="https://www.google.com/maps?q='+poi.lat+","+poi.lng+'" target="_blank">'+poiSVG+"</a></div>"),contact&&(storeInfosTemplate+='<div><p class="legend">'+contactLegend+'</p><div class="datas">'+contact+"</div></div>"),storeInfosTemplate+='</div><div class="flexRow">',referent&&(storeInfosTemplate+='<div class="referent"><p class="legend">'+referentLegend+'</p><div class="datas">'+referent+'</div><img src="'+referentPicture+'" alt="" class="referent" /></div>'),time&&(storeInfosTemplate+='<div><p class="legend">'+timeLegend+'</p><div class="datas">'+time+"</div></div>"),storeInfosTemplate+="</div>",activities&&(storeInfosTemplate+='<div><p class="legend">'+activitiesLegend+'</p><div class="datas">'+activities+"</div></div>"),socialLinks&&(storeInfosTemplate+=socialLinks),(link||ctaPopin&&ctaPopinLabel)&&(storeInfosTemplate+="</div>",storeInfosTemplate+='<div class="more">',link&&(storeInfosTemplate+='<a href="'+link+'" class="eurovia-cta">'+ctaLegend+"</a>"),ctaPopin&&ctaPopinLabel&&(storeInfosTemplate+='<a href="'+ctaPopin+'" class="eurovia-cta">'+ctaPopinLabel+"</a>"),storeInfosTemplate+="</div></div>"),storeInfosTemplate}function clearStoreInfos(){storeInfos.classList.remove("active"),wrapContent.classList.remove("wrapContent-storeInfosActive"),settings.get("$html").removeClass("menu-mobile-active"),storeInfosContent.innerHTML=""}function toggleStoreInfos(template,isCluster){var storeDatas;storeDatas=isCluster?poisFromDB.find(function(poi){return poi.title===template}):poisFromDB.find(function(poi){return poi.title===template.title});var store=populateStoreInfos(storeDatas);store&&(clearStoreInfos(),storeInfosContent.insertAdjacentHTML("afterbegin",store),storeInfos.classList.add("active"),wrapContent.classList.add("wrapContent-storeInfosActive"),(settings.get("isMedium")||settings.get("isSmall"))&&settings.get("$html").addClass("menu-mobile-active"))}function buildContent(el){var content=document.createElement("div");return content.classList.add("storesvg"),el&&el.count&&el.count>1?content.innerHTML="<span>
2"+el.count+'</span><svg viewBox="0 0 44 59" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.6901 10.9471L42.2084 2.09943L22.0015 55.5247L1.79729 1.93259L21.2896 10.944L21.4892 11.0363H21.7092H22.2773H22.4933L22.6901 10.9471Z" fill="white" stroke="#E20025" stroke-width="2"/></svg>':el&&el.title?content.innerHTML='<svg data-title="'+el.title+'" viewBox="0 0 44 59" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.6901 10.9471L42.2084 2.09943L22.0015 55.5247L1.79729 1.93259L21.2896 10.944L21.4892 11.0363H21.7092H22.2773H22.4933L22.6901 10.9471Z" fill="white" stroke="#E20025" stroke-width="2"/></svg>':el&&el.search&&(content.innerHTML='<svg data-title="'+el.title+'" viewBox="0 0 44 59" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.6901 10.9471L42.2084 2.09943L22.0015 55.5247L1.79729 1.93259L21.2896 10.944L21.4892 11.0363H21.7092H22.2773H22.4933L22.6901 10.9471Z" fill="white" stroke="#3041b8" stroke-width="3"/></svg>'),content}function requestGeolocation(map){navigator.geolocation.getCurrentPosition(function(position){var userPosition={lat:position.coords.latitude,lng:position.coords.longitude};map.setCenter(userPosition),map.setZoom(10)})}var mapWrapper=settings.get("$storeLocatorMap"),defaultMapPositions={lat:$(mapWrapper).data("locationLat"),lng:$(mapWrapper).data("locationLng")};if(mapWrapper){var wrapContent=document.getElementById("wrap-content"),storeInfos=document.querySelector(".storeInfos"),storeInfosContent=document.getElementById("storeInfosContent"),storeInfosCloseBtn=document.querySelector(".storeInfos .close"),toggleFiltersBtn=document.querySelector(".filters-title"),modal=document.querySelector(".modal"),storeInfosDatas=document.getElementById("storeInfosDatas"),googleApiKey=storeInfosDatas.dataset.googleapikey,addressLegend=storeInfosDatas.dataset.addresslegend,contactLegend=storeInfosDatas.dataset.contactlegend,referentLegend=storeInfosDatas.dataset.referentlegend,timeLegend=storeInfosDatas.dataset.timelegend,ctaLegend=storeInfosDatas.dataset.ctalegend,activitiesLegend=storeInfosDatas.dataset.activitieslegend,poiSVG='<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 16 24"><g fill="currentColor" clip-path="url(#a)"><path d="M4.605 17.78c.74.925 1.495 2.09 1.89 2.793.48.915.68 1.532 1.037 2.638.209.605.408.789.826.789.457 0 .666-.309.827-.79.334-1.037.592-1.826 1-2.578 1.575-2.97 4.142-5.08 5.588-7.972 0 0 .951-1.766.951-4.24 0-2.305-.938-3.907-.938-3.907L4.611 17.8l-.006-.02Z"></path><path d="M.815 12.348c.9 2.051 2.618 3.849 3.79 5.431l6.213-7.365s-.877 1.148-2.462 1.148a3.184 3.184 0 0 1-3.204-3.184c0-1.223.729-2.071.729-2.071-4.572.68-4.318 1.787-5.08 6.037l.014.004Z"></path><path d="M10.896.385c2.071.666 3.83 2.07 4.885 4.122l-4.963 5.92s.729-.852.729-2.07c0-1.816-1.532-3.185-3.185-3.185S5.9 6.307 5.9 6.307c.381-.868 4.318-5.627 5.002-5.92l-.006-.002Z"></path><path d="M1.948 2.99C3.183 1.52 5.348 0 8.337 0c1.443 0 2.54.383 2.54.383l-4.983 5.92C5.558 6.12 2.28 3.568 1.948 2.98v.008Z"></path><path d="M.815 12.348S0 10.73 0 8.4C0 6.193.864 4.26 1.954 3.01L5.9 6.33.82 12.348H.816Z"></path></g></svg>',searchStore=document.getElementById("searchStore"),searchStoreBtn=document.getElementById("searchStoreBtn"),centeredMarker=[],markersList=[];searchStore.addEventListener("keyup",function(e){""!==e.target.value?searchStore.classList.add("active"):searchStore.classList.remove("active"),"Enter"===e.key&&searchLocation()}),document.addEventListener("keyup",function(e){"Escape"===e.key&&clearStoreInfos()}),searchStoreBtn.addEventListener("click",function(){searchLocation()}),storeInfosCloseBtn.addEventListener("click",function(){clearStoreInfos()}),toggleFiltersBtn&&toggleFiltersBtn.addEventListener("click",function(){toggleFilters()});var Map={mapWrapper:mapWrapper,init:function(){this.initMap(),document.querySelectorAll(".filter-checkbox").forEach(function(checkbox){checkbox.addEventListener("change",function(){applyFilter(this,this.dataset.filter,this.checked)})})},initMap:function(){var myZoom=$(this.mapWrapper).data("zoom");Promise.all([google.maps.importLibrary("maps"),google.maps.importLibrary("marker")]).then(function(libraries){var Map=libraries[0].Map,InfoWindow=libraries[0].InfoWindow,AdvancedMarkerElement=libraries[1].AdvancedMarkerElement,infoWindow=new InfoWindow({content:"",disableAutoPan:!0});google.maps.event.addListener(infoWindow,"closeclick",function(){cleanAllHighlights()});var map=new Map(mapWrapper,{center:defaultMapPositions,zoom:myZoom,mapId:"2a9026ded415b878",streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1});requestGeolocation(map),window.mapInstance=map,window.toggleStoreInfos=toggleStoreInfos,window.advancedMarkerElement=AdvancedMarkerElement,window.infoWindow=infoWindow,poisFromDB.forEac
2h(function(poi){var marker=new AdvancedMarkerElement({map:map,position:{lat:poi.lat,lng:poi.lng},title:poi.title,content:buildContent({title:poi.title})});marker._poiData=poi,marker.addListener("click",function(){toggleStoreInfos(marker.element),toggleHighlight(marker,"poi")}),markersList.push(marker)});var customRenderer={render:function(el){var clusterPOI=new AdvancedMarkerElement({map:map,position:el.position,content:buildContent({count:el.markers.length})});return clusterPOI}};window.clustererInstance=new markerClusterer.MarkerClusterer({markers:markersList,map:map,renderer:customRenderer,onClusterClick:function(cluster,datas){map.panTo(datas.marker.position);var markersInCluster=datas.markers,infoList=markersInCluster.map(function(marker){return infoWindow.open(map,datas.marker),'<p class="infoWindow" onclick="toggleStoreInfos(\''+marker.title+"', true)\">"+marker.title+"</p>"});toggleHighlight(datas.marker),infoWindow.setContent(infoList.join(""))}}),window.activeFilters=new Set,window.applyFilter=function(el,filterValue,isChecked){var parentElement=el.parentElement;isChecked?(window.activeFilters.add(filterValue),parentElement.classList.add("active")):(window.activeFilters["delete"](filterValue),parentElement.classList.remove("active"));var filtered=0===window.activeFilters.size?markersList:markersList.filter(function(marker){var poi=marker._poiData;return!!(poi&&poi.datas&&Array.isArray(poi.materiaux))&&poi.materiaux.some(function(materia){return window.activeFilters.has(materia)})});window.clustererInstance.clearMarkers(),window.clustererInstance.addMarkers(filtered)}})["catch"](function(error){})},getCurrentPosition:function(){}};return Map}});var poisFromDB=window.poisFromDB||[];define("module/video-fullscreen",["components/settings"],function(settings){function debounce(func,wait){var timeout;return function(){clearTimeout(timeout),timeout=setTimeout(func,wait)}}var breakpoint_width=945,videoFullscreen={init:function(){var self=this;self.updateResponsiveVideos();var currentIsMobile=window.innerWidth<=breakpoint_width;$(window).on("resize",debounce(function(){var isMobile=window.innerWidth<=breakpoint_width;isMobile!==currentIsMobile&&(currentIsMobile=isMobile,self.updateResponsiveVideos())},200)),$(".video-fullscreen, .eurovia-video-fullscreen").on("click",".sound",function(){var $this=$(this),myVideo=$this.closest(".video-fullscreen, .eurovia-video-fullscreen").find("video")[0];myVideo.muted=!myVideo.muted,$this.toggleClass("muted",myVideo.muted)})},updateResponsiveVideos:function(){$(".video-fullscreen, .eurovia-video-fullscreen").each(function(index){var $this=$(this),isMobile=window.innerWidth<=breakpoint_width,myVideo=$this.find("video"),myVideoSource=myVideo.find("source"),posterSrc=isMobile?myVideo.attr("data-poster-mobile"):myVideo.attr("data-poster-desktop"),videoSrc=isMobile?myVideoSource.attr("data-src-mobile"):myVideoSource.attr("data-src-desktop");myVideo.attr("poster",posterSrc),myVideoSource.attr("src",videoSrc),myVideo.load()})}};return videoFullscreen});

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.