1"use strict";(self.webpackChunktheme_customer=self.webpackChunktheme_customer||[]).push([["scripts/home.service"],{
1"./resources/assets/scripts/services/home.service.js":function(e,t,a){a.r(t),a.d(t,{default:()=>u});var s=a("./node_modules/.pnpm/@[email protected]/node_modules/@easepick/bundle/dist/index.esm.js"),i=a("./node_modules/.pnpm/[email protected]/node_modules/simple-parallax-js/dist/simpleParallax.min.js"),l=a.n(i),r=a("jquery");class n{constructor(){n.parallaxInit(),n.strateBestOfParallaxAnimation(),n.strateStayParallaxAnimation(),n.strateDiscoverParallaxAnimation()}static parallaxInit(){if(!IRISCollectionCustomer.isEcomodeActive&&window.matchMedia("(min-width: 1000.1px)").matches){let e=document.querySelectorAll("[data-parallax]");new(l())(e,{orientation:"down"});let t=document.querySelectorAll("[data-up-parallax]");new(l())(t,{orientation:"up",overflow:!0})}}static strateBestOfParallaxAnimation(){!IRISCollectionCustomer.isEcomodeActive&&window.matchMedia("(min-width: 1000.1px)").matches&&r(window).on("load resize scroll",()=>{let e=r(window).scrollTop(),t=r('[data-id-right="right-column"]'),a=r('[data-id-left="left-column"]'),s=r(".strate-bestOf"),i=r(".strate-bestOf__excerpt"),l=r('[data-cx-publication-index="1"]'),n=r('[data-cx-publication-index="3"]'),o=r('[data-cx-publication-index="5"]'),d=r(".strate-bestOf__link"),c=i.outerHeight(),p=l.outerHeight(),m=n.outerHeight(),u=o.outerHeight(),w=d.outerHeight(),h=s.offset().top,v=(e-h)/20;e>h&&e<h+(c+p+m+u+w)&&(t.css({transform:`translate3d(0, -${v}px, 0)`}),a.css({transform:`translate3d(0, ${v}px, 0)`}))})}static strateStayParallaxAnimation(){if(!IRISCollectionCustomer.isEcomodeActive&&window.matchMedia("(min-width: 1000.1px)").matches){let e=r("#strate-stay"),t=r('[data-parallax-stay-index="1"]'),a=r('[data-parallax-stay-index="2"]'),s=r('[data-parallax-stay-index="3"]'),i=r('[data-parallax-stay-index="4"]');n.animateParallax(e,t,a,s,i)}}static strateDiscoverParallaxAnimation(){if(!IRISCollectionCustomer.isEcomodeActive&&window.matchMedia("(min-width: 1000.1px)").matches){let e=r("#strate-discover"),t=r('[data-parallax-discover-index="1"]'),a=r('[data-parallax-discover-index="2"]'),s=r('[data-parallax-discover-index="3"]'),i=r('[data-parallax-discover-index="4"]');n.animateParallax(e,t,a,s,i)}}static animateParallax(e,t,a,s,i){r(window).on("load resize scroll",()=>{let l=r(window).scrollTop(),n=s.outerHeight(),o=i.outerHeight(),d=e.offset().top,c=((l+=200)-d)/20,p=(l-d)/12;l>d&&l<d+(n+o)&&(t.css({transform:`translate3d(0, ${p}px, 0)`}),a.css({transform:`translate3d(0, ${p}px, 0)`}),s.css({transform:`translate3d(0, -${c}px, 0)`}),i.css({transform:`translate3d(0, -${c}px, 0)`}))})}}class o{constructor(){o.init()}static init(){document.documentElement.classList.add("reveal-loaded");let e=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.intersectionRatio>=.1&&(e.target.classList.add("reveal"),t.unobserve(e.target))})},{root:null,rootMargin:"-100px",threshold:.1});document.querySelectorAll('[data-trigger="scroll-observer"]').forEach(t=>{e.observe(t)}),document.querySelectorAll('[data-trigger="slider-scroll-observer"]').forEach(t=>{e.observe(t)})}}var d=a("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@iris.interactive/handcook/public/scripts/libraries/swiper-11/index.js"),c=a("jquery");class p{constructor(){p.sliderStrateAgenda(),window.matchMedia("(max-width: 999px)").matches&&(p.sliderStrateStay(),p.sliderStrateBestOf())}static async sliderStrateStay(){let e=c("#strate-stay");if(e.length>0&&!e.is(":hidden")&&!IRISCollectionCustomer.isEcomodeActive){let e="stay-swiper";c(`[data-swiper="${e}"] > .customer-card`).wrapAll('<div class="swiper-wrapper"></div>').addClass("swiper-slide"),await d.Z.create(`[data-swiper="${e}"]`,{mousewheel:{forceToAxis:!0},slidesPerView:1.5,spaceBetween:10,keyboard:!0,pagination:{el:'[data-pagination="stay-pagination"]',type:"bullets",clickable:!0,bulletClass:"swiper-customer-pagination-bullet",bulletActiveClass:"swiper-customer-pagination-bullet-active"},loop:!1,passiveListeners:!1,watchSlidesVisibility:!0,breakpoints:{600:{slidesPerView:2.5,spaceBetween:20}}})}}static async sliderStrateBestOf(){c(".strate-bestOf__item").wrapAll('<div class="strate-bestOf__slider js-section-bestOf-slider" />');let e=".js-section-bestOf-slider";c(e).length&&c(`${e} > *`).wrapAll('<div class="swiper-wrapper"></div>').addClass("swiper-slide"),await d.Z.create(e,{mousewheel:{forceToAxis:!0},slidesPerView:1.2,spaceBetween:10,lazy:!0,pagination:{el:'[data-pagination="bestOf-pagination"]',type:"bullets",clickable:!0,bulletClass:"swiper-customer-pagination-bullet",bulletActiveClass:"swiper-customer-pagination-bullet-active"},breakpoints:{600:{slidesPerView:2.5,spaceBetween:20}}})}static async sliderStrateAgenda(){let e=c("#strate-agenda-highlight");if(e.length>0&&!e.is(":hidden")&&!IRISCollectionCustomer.isEcomodeActive){let e="event-swiper",t=`[data-swiper="${e}"] > .strate-agenda__highlight__content__item`,a={mousewheel:{forceToAxis:!0},slidesPerView:1.1,spaceBetween:10,loop:!1,breakpoints:{600:{slidesPerView:1.5,spaceBetween:20},1e3:{slidesPerView:1,spaceBetween:0,navigation:{nextEl:'[data-swiper-pagination="event-slider-button-next"]',prevEl:'[data-swiper-pagination="event-slider-button-prev"]'},parallax:!0,speed:1200,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-100%",0,-1]},next:{translate:["100%",0,0]}}}}};window.matchMedia("(max-width: 999px)").matches&&(a={...a,effect:"slide",pagination:{el:'[data-pagination="agenda-pagination"]',type:"bullets",clickable:!0,bulletClass:"swiper-customer-pagination-bullet",bulletActiveClass:"swiper-customer-pagination-bullet-active"}}),c(t).wrapAll('<div class="swiper-wrapper"></div>').addClass("swiper-slide"),await d.Z.create(`[data-swiper="${e}"]`,a)}}}var m=a("jquery");class u{constructor(){this.strateStayResaTypeChoice(),this.strateStayResaEasePicker(),this.agendaSearch(),IRISCollectionCustomer.isEcomodeActive||(this.removeHeaderAnimatedClass(),this.addHeaderOverlayOnScroll(),new p,new o,new n),m('[data-id="social-wall"]').length>0&&a.e("scripts/instagram-wall.action").then(a.bind(a,"./resources/assets/scripts/actions/instagram-wall.action.js")).then(e=>{let{default:t}=e;new t})}strateStayResaTypeChoice(){let e=m('[data-trigger="stay-resa"]'),t=m('[data-id="form-resa"]');e.first().addClass("is-active"),e.on("click",function(a){e.removeClass("is-active"),m(this).addClass("is-active");let s=m(this).data("url");t.attr("action",s)})}strateStayResaEasePicker(){m('[data-id="block-resa"]').length&&new s.mF.create({element:document.getElementById("wpetIntervalStartDate"),lang:"fr-FR",format:"DD MMM YYYY",css:["https://cdn.jsdelivr.net/npm/@easepick/[email protected]/dist/index.css",IRISCollectionCustomer.styleCustomerEasepick],plugins:[s.gp,s.SQ],RangePlugin:{elementEnd:document.getElementById("wpetIntervalEndDate"),tooltip:!0},LockPlugin:{minDate:new Date},setup(e){e.on("select",e=>{let t={start:e.detail.start.format("YYYY-MM-DD"),end:e.detail.end.format("YYYY-MM-DD")},a=m("#valueDateStart"),s=m("#valueDateEnd");a.attr("value",t.start),s.attr("value",t.end)})}})}removeHeaderAnimatedClass(){let e=m("body");e.hasClass("hp-header-animated")&&setTimeout(()=>{e.removeClass("hp-header-animated")},2500)}addHeaderOverlayOnScroll(){!IRISCollectionCustomer.isEcomodeActive&&window.matchMedia("(min-width: 1000.1px)").matches&&m(window).on("load scroll",function(){m('[data-id="header-banner"]');let e=m('[data-id="header-overlay"]');m('[data-id="heading-content"]');let t=m(this).scrollTop();t>=100?(m("body").addClass("banner-is-hidden"),e.css({opacity:function(){let e=m(this).height();return(1.2-(e-t)/e)*.8-.2}})):m("body").removeClass("banner-is-hidden")})}agendaSearch(){m('[data-trigger="wpet-agenda-period"]').on("click",function(e){e.preventDefault();let t=m(this).attr("data-value");m('[name="wpet_search[period][list]"]').val(t),m(this).parents("form").submit()})}}}
1}]); 2//# sourceMappingURL=home.service.f22fbbbba475badb.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.