1"use strict";(self.webpackChunklegacy=self.webpackChunklegacy||[]).push([[804],{8298:function(e,t,n){var o=n(5671),i=n(3144),a=(n(1539),n(4747),n(4678),n(2222),n(9494),n(9653),n(8674),n(2732)),c=n.n(a),r=n(5440),l=n.n(r),s=n(6358),d=n(9092),u=n(8252),v=n(2442),h=n.n(v),p=n(1955),f=n(1248),m=n.n(f),g=Math.pow,y=document.querySelector("html");s.ZP.registerPlugin(d.i);var w=function(){function e(){(0,o.Z)(this,e),this.lazyload=new(c())({unobserve_entered:!0,elements_selector:".js-lazy",threshold:.8*window.innerHeight,callback_enter:function(e){if(e.classList.contains("js-lazy-error-placeholder"))e.lazyLoadPlaceholder=e.src;else if(null==e.dataset.src){var t=e.closest("figure");t&&t.classList.add("img-is-loaded")}},callback_loaded:function(e){var t=e.closest("figure");t&&(t.classList.add("img-is-loaded"),t.dispatchEvent(new Event("media-loaded")))},callback_error:function(e){e.lazyLoadPlaceholder&&(e.src=e.lazyLoadPlaceholder)}});var t=document.querySelectorAll(".toggle-menu");t&&(t.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),y.classList.toggle("open-menu")}))})),window.addEventListener("click",(function(e){!y.classList.contains("open-menu")||e.target.classList.contains("main-header")||e.target.closest(".main-header")||y.classList.remove("open-menu")})));var n=document.querySelector(".main-header");if(n){window.addEventListener("scroll",(function(){window.scrollY>.7*n.offsetHeight?y.classList.add("scrollup"):y.classList.remove("scrollup"),window.scrollY}));var i=document.querySelectorAll("section.text-white, section.text-pink-500"),a={};window.addEventListener("scroll",(function(){if(i)try{i.forEach((function(e){var t=e.getBoundingClientRect();if(t.y-n.offsetHeight/2<=0&&t.bottom-n.offsetHeight/2>0)throw y.classList.remove("header-black"),a;y.classList.add("header-black")}))}catch(e){if(e!==a)throw e}})),window.dispatchEvent(new Event("scroll"))}u.KR.bind("[data-fancybox]",{hideScrollbar:!1,Hash:!1,toggleZoom:!1,height:.75*window.innerHeight,wheel:!1,Thumbs:!1,Toolbar:{display:{left:[],middle:["prev","next"],right:["close"]}},Images:{zoom:!1}});var r=document.querySelector(".popup-home");r&&r.dataset.openDuration&&parseFloat(r.dataset.openDuration)>0&&setTimeout((function(){r.classList.remove("is-open"),p.Z.set("popup-open","true",{expires:1})}),1e3*parseFloat(r.dataset.openDuration)),this.gifAnimation(),this.hoverGifAnimation(),this.gridImgs(),this.scrollEnum(),this.marqueeTxt(),this.gallery(),this.carousel(),this.magnetism(),this.accordion(),this.hoverCoverVideo(),this.hoverVideo(),this.textareaResize(),this.bodymovin(),this.pub(),this.inViewport()}return(0,i.Z)(e,[{key:"pub",value:function(){function e(e,t){var n=t.querySelector("img"),o=n?" // Partenaire : ".concat(n.alt):"";console.log("Tracking ".concat(e," pour: ").concat(t.id," ").concat(o," // event :"),e),"function"==typeof gtag&>ag("event",e,{ad_id:t.id,event_category:"Ads",event_label:"Publicité ".concat(e," ").concat(o," (").concat(t.id,")"),value:1})}var t=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&!t.target.dataset.tracked&&(e("ad_view",t.target),t.target.dataset.tracked="true")}))}),{threshold:.5}),n=document.querySelectorAll(".pub-item");n&&n.forEach((function(n){if("menu"==n.id){var o=document.querySelector(".toggle-menu");o&&o.addEventListener("click",(function t(i){e("ad_view",n),o.removeEventListener("click",t)}))}else t.observe(n);var i=n.querySelector("a");i&&i.addEventListener("click",(function(){return e("ad_click",n)}))}))}},{key:"scrollEnum",value:function(){var e=document.querySelectorAll(".scroll-enum");e&&e.forEach((function(e){var t=e.querySelector(".grid-left");t&&d.i.create({trigger:e,pin:t,start:"top top",end:"bottom bottom",scrub:1});var n=e.querySelectorAll(".words a"),o=e.querySelectorAll(".imgs-square .img");n&&o&&n.forEach((function(e,t){e.addEventListener("mouseenter",(function(){o[t]&&s.ZP.set(o[t],{autoAlpha:1})})),e.addEventListener("mouseleave",(function(){o[t]&&s.ZP.set(o[t],{autoAlpha:0})}))}))}))}},{key:"hoverCoverVideo",value:function(){var e=document.querySelectorAll(".cover"),t=this;e&&e.forEach((function(e){var n=e.querySelector(".content-logo"),o=e.querySelector(".video-fs"),i=e.querySelector(".video-link"),a=e.querySelector(".base");if(o&&a){var c=function(){u=a.parentElement.getBoundingClientRect(),v=a.getBoundingClientRect(),h=v.x,p=v.y+window.scrollY,f=v.x+v.width,m=v.y+window.scrollY+v.height},r=function(e){if(!t.isTouchscreen()){c();var n=e.clientX,a=e.clientY,r=1*v.width,l=n-r/2,d=a-r/2+window.scrollY,h=n+r/2,p=a+r/2+window.scrollY;
1s.ZP.to(o,{clipPath:"polygon(\n ".concat(l,"px ").concat(d,"px, \n ").concat(h,"px ").concat(d,"px, \n ").concat(h,"px ").concat(p,"px, \n ").concat(l,"px ").concat(p,"px\n )"),duration:.2});var f=1*u.width,m=1*u.height,g=u.x>0?u.x+f/2:u.x+f,y=u.y>0?u.y+m/2:u.y+m;s.ZP.to(i,{x:"".concat(n-g,"px"),y:"".concat(a-y,"px"),width:"".concat(f,"px"),height:"".concat(m,"px"),duration:.2})}},l=function(e){t.isTouchscreen()||(s.ZP.to(i,{x:"0%",y:"0%",width:"".concat(u.width,"px"),height:"".concat(u.height,"px"),duration:.3}),s.ZP.to(o,{clipPath:o.dataset.clipPath,duration:.3}))},d=function(){c(),o.dataset.clipPath="polygon(".concat(h,"px ").concat(p,"px, ").concat(f,"px ").concat(p,"px, ").concat(f,"px ").concat(m,"px, ").concat(v.x,"px ").concat(m,"px)"),y.classList.contains("video-fullscreen")?s.ZP.set(o,{clipPath:"polygon(0px 0px, ".concat(window.innerWidth,"px 0px, ").concat(window.innerWidth,"px ").concat(window.innerHeight,"px, 0px ").concat(window.innerHeight,"px)")}):s.ZP.set(o,{clipPath:o.dataset.clipPath}),s.ZP.set(i,{width:"".concat(u.width,"px"),height:"".concat(u.height,"px")})},u=a.parentElement.getBoundingClientRect(),v=a.getBoundingClientRect(),h=v.x,p=v.y+window.scrollY,f=v.x+v.width,m=v.y+window.scrollY+v.height;o.addEventListener("media-loaded",(function(){s.ZP.to(n,{autoAlpha:1,y:"0",delay:.1,duration:.9,ease:"expo.out",onComplete:function(){window.addEventListener("scroll",(function t(){c(),o.dataset.clipPath="pol
1ygon(".concat(h,"px ").concat(p,"px, ").concat(f,"px ").concat(p,"px, ").concat(f,"px ").concat(m,"px, ").concat(v.x,"px ").concat(m,"px)"),s.ZP.fromTo(o,{clipPath:"polygon(0px 0px, ".concat(window.innerWidth," 0px, ").concat(window.innerWidth," ").concat(window.innerHeight,", 0px ").concat(window.innerHeight,")")},{clipPath:o.dataset.clipPath,duration:.5,ease:"circ.inOut",onComplete:function(){s.ZP.set([i,o],{zIndex:2}),window.addEventListener("resize",d),e.addEventListener("mousemove",r),e.addEventListener("mouseleave",l),window.innerWidth>992&&i.addEventListener("click",(function t(n){e.removeEventListener("mousemove",r),e.removeEventListener("mouseleave",l),i.removeEventListener("click",t),y.classList.add("video-fullscreen"),n.preventDefault(),s.ZP.to(o,{clipPath:"polygon(0px 0px, ".concat(window.innerWidth,"px 0px, ").concat(window.innerWidth,"px ").concat(window.innerHeight,"px, 0px ").concat(window.innerHeight,"px)"),duration:.5,ease:"circ.inOut",onComplete:function(){function n(){c(),o.dataset.clipPath="polygon(".concat(h,"px ").concat(p,"px, ").concat(f,"px ").concat(p,"px, ").concat(f,"px ").concat(m,"px, ").concat(v.x,"px ").concat(m,"px)"),s.ZP.to(o,{clipPath:o.dataset.clipPath,duration:.5,ease:"circ.inOut",onComplete:function(){y.classList.remove("video-fullscreen"),e.addEventListener("mousemove",r),e.addEventListener("mouseleave",l)}}),s.ZP.set(i,{x:"0%",y:"0%",width:"".concat(u.width,"px"),height:"".concat(u.height,"px")}),window.removeEventListener("scroll",n),e.removeEventListener("click",n),i.addEventListener("click",t)}window.addEventListener("scroll",n),e.addEventListener("click",n)}})}))}}),window.removeEventListener("scroll",t)}))}})}))}}))}},{key:"magnetism",value:function(){var e=this,t=document.querySelectorAll("[data-magnetism]");t&&t.forEach((function(t){var n=parseFloat(t.dataset.magnetism)+.5*t.offsetWidth;document.addEventListener("mousemove",(function(o){if(!e.isTouchscreen()){var i=o.clientX,a=o.clientY,c=t.getBoundingClientRect(),r=i-(c.left+c.width/2),l=a-(c.top+c.height/2),d=Math.sqrt(g(r,2)+g(l,2));if(d<n){var u=(n-d)/n,v=r*u,h=l*u;s.ZP.to(t,{duration:.2,x:"".concat(v,"px"),y:"".concat(h,"px")})}else s.ZP.to(t,{duration:.15,y:0,x:0})}}))}))}},{key:"hoverVideo",value:function(){var e=this,t=document.querySelectorAll("[data-hover-video]");t&&t.forEach((function(t){t.querySelector("svg");var n=t.querySelector(".video");document.addEventListener("mousemove",(function(t){if(!e.isTouchscreen()){var o=t.clientX,i=t.clientY,a=n.getBoundingClientRect(),c=o-(a.left+a.width/2),r=i-(a.top+a.height/2),l=Math.sqrt(g(c,2)+g(r,2));if(l<230){var d=(230-l)/230,u=c*d,v=r*d;n.style.transform="translate(".concat(u,"px, ").concat(v,"px)")}else s.ZP.to(n,{duration:.15,y:0,x:0})}}))}))}},{key:"gifAnimation",value:function(){var e=document.querySelectorAll(".gif-animation");e&&e.forEach((function(e,t){var n=e.querySelectorAll(".img"),o=0,i=s.ZP.timeline({repeat:-1,repeatDelay:0,delay:.07*t,paused:!0}).add((function(){n.forEach((function(e,t){var n=e.querySelector("img");e.style.visibility=t!==o||!n.classList.contains("loaded")&&0!=t?"hidden":"visible"})),o=(o+1)%n.length}),0).to({},{duration:.3});e.addEventListener("mouseenter",(function(){i.pause()})),e.addEventListener("mouseleave",(function(){i.play()})),e.addEventListener("inview",(function(){i.play()})),e.addEventListener("outview",(function(){i.pause()}))}))}},{key:"hoverGifAnimation",value:function(){var e=document.querySelectorAll("[data-hover-gif]");e&&e.forEach((function(e){var t=e.dataset.hoverGif,n=e.querySelectorAll(t);if(n){n.forEach((function(e){e.dataset.index=0}));var o=0;e.addEventListener("pointermove",(function(e){var t=Date.now();t-o>200&&(n.forEach((function(e,t){var n=e.querySelectorAll(".img"),o=Number.parseInt(e.dataset.index);if(n){var i=e.dataset.index>=n.length-1?0:o+1;s.ZP.set(n[o],{autoAlpha:0}),s.ZP.set(n[i],{autoAlpha:1}),e.dataset.index=i}})),o=t)})),e.addEventListener("mouseleave",(function(){var t=e.querySelectorAll(".img");t&&s.ZP.set(t,{autoAlpha:0})}))}}))}},{key:"gridImgs",value:function(){var e=document.querySelectorAll(".grid-imgs");e&&e.forEach((function(e){return!1}))}},{key:"marqueeTxt",value:function(){var e=document.querySelectorAll(".marquee-txt");e&&e.forEach((function(e){var t=e.innerHTML,n=e.children[0],o=0;e.insertAdjacentHTML("beforeend",t),e.insertAdjacentHTML("beforeend",t),setInterval((function(){n.style.marginLeft="-".concat(o,"px"),o>n.clientWidth&&(o=0),o+=.2}),0)}))}},{key:"accordion",value:function(){var e=document.querySelectorAll(".accordion");e&&e.forEach((function(e){var t=e.querySelectorAll(".accordion-item"),n=e.querySelectorAll(".accordion-header"),o=e.querySelectorAll(".accordion-content");
1n&&t&&o&&n.forEach((function(e,n){e.addEventListener("click",(function(e){e.preventDefault(),t[n].classList.toggle("active");var i=t[n].classList.contains("active")?o[n].children[0].offsetHeight:0;s.ZP.to(o[n],{autoAlpha:t[n].classList.contains("active")?1:0,height:i,duration:.3,ease:"circ.inOut"})}))}))}))}},{key:"gallery",value:function(){var e=document.querySelectorAll(".gallery");e&&e.forEach((function(e){var t=e.querySelector(".progress .bar");new(h())(e,{pageDots:!1,cellSelector:".item",freeScroll:!0,wrapAround:!0,cellAlign:"center",on:{scroll:function(){var e=(this.x+this.slidesWidth)/this.slideableWidth;t&&s.ZP.set(t,{scaleX:1-e})}}})}))}},{key:"carousel",value:function(){var e=document.querySelectorAll(".carousel");e&&e.forEach((function(e){var t=e.querySelector(".progress .bar");new(h())(e,{pageDots:!1,cellSelector:".item",cellAlign:"left",on:{scroll:function(){var e=(this.x+this.slidesWidth)/this.slideableWidth;t&&s.ZP.set(t,{scaleX:1-e})}}})}))}},{key:"bodymovin",value:function(){var e=document.querySelectorAll("[data-bodymovin]");e&&e.forEach((function(e){e.addEventListener("inview",(function(){if(e.classList.contains("loaded"))e.lottie&&e.lottie.play();else{var t=e.dataset.bodymovin;fetch(t).then((function(n){if(200==n.status){var o=m().loadAnimation({container:e,renderer:"svg",loop:!0,autoplay:!0,path:t,onComplete:function(){}});e.classList.add("loaded"),e.lottie=o;var i=e.closest("figure");i&&i.classList.add("img-is-loaded")}}))}})),e.addEventListener("outview",(function(){e.lottie&&e.lottie.pause()}))}))}},{key:"textareaResize",value:function(){document.addEventListener("input",(function(e){"textarea"===e.target.tagName.toLowerCase()&&function(e){e.style.height="inherit";var t=window.getComputedStyle(e),n=Number.parseInt(t.getPropertyValue("border-top-width"),10)+e.scrollHeight+Number.parseInt(t.getPropertyValue("border-bottom-width"),10);e.style.height="".concat(n,"px")}(e.target)}))}},{key:"inViewport",value:function(){l().offset({bottom:.1*window.innerHeight}),l()(".js-reveal:not(.is-visible)").on("enter",(function(e){e.dispatchEvent(new Event("inview")),e.classList.add("is-visible"),e.classList.remove("not-visible");var t=e.querySelector("video");if("VIDEO"==e.tagName&&"true"==e.dataset.autoplay||t&&"true"==t.dataset.autoplay){var n=t||e,o=n.play();null!==o&&o.catch((function(){n.play()}))}})).on("exit",(function(e){var t=e.querySelector("video");("VIDEO"==e.tagName&&""!=e.dataset.autoplay||t&&""!=t.dataset.autoplay)&&(t||e).pause();e.dispatchEvent(new Event("outview")),e.classList.add("not-visible")}))}},{key:"isTouchscreen",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}}]),e}();window.addEventListener("DOMContentLoaded",(function(){new w}))}},function(e){e.O(0,[216],(function(){return t=8298,e(e.s=t);var t}));e.O()}]); 2//# sourceMappingURL=app.js.map
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.