1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{6541:function(e,t,r){"use strict";var n=r(5893),o=r(7294),l=r(3967),s=r.n(l),a=r(1438),c=r(6743),i=r(9883);let u="img, a, button";function d(e){let{count:t,current:r,setCurrent:o}=e,l=[...Array(t)];return(0,n.jsx)("div",{className:"carousel__dots",children:l.map((e,t)=>{let l=s()("carousel__dot",{"carousel__dot--current":t===r});return(0,n.jsx)("button",{className:l,onClick:e=>{e.stopPropagation(),o(t)},"aria-label":t},t)})})}function f(e){let{carouselRef:t,current:r,setCurrent:l,sections:a}=e,[c,i]=o.useState([]);return(o.useEffect(()=>{t.current&&a.length&&i(Array.from(a).reduce((e,t)=>{let r=t.querySelector("img");return(null==r?void 0:r.src)?[...e,r.src]:e},[]))},[t,a]),c.length)?(0,n.jsx)("div",{className:"carousel__thumbnails",children:c.map((e,t)=>{let o=s()("carousel__thumbnail",{"carousel__thumbnail--current":t===r});return(0,n.jsx)("input",{type:"image",className:o,src:e,onClick:e=>{e.stopPropagation(),l(t)}},t)})}):null}function v(e,t){let r=e%t;
1return r<0?t<0?r-t:r+t:r}function h(e){e.setAttribute("draggable",!1)}function m(e){e.removeAttribute("draggable")}function b(e){["opacity","pointer-events","touch-action"].forEach(t=>e.style.removeProperty(t))}t.Z=o.memo(function(e){let{delay:t=4e3,fade:r=!1,controls:l,dots:p,thumbnails:y,alwaysShowControls:E,allowDragOnDesktop:g,children:_,onChange:x,currentSlide:L}=e,A=o.useRef(),{cmsMode:C,lang:w,path:j}=(0,a.useUbloContext)(),[k,S]=o.useState([]),[N,M]=o.useState(null!=L?L:0),[P,q]=o.useState(),[X,Z]=o.useState(0),D="editing"===C,I=!D&&g,R=k.length,T=N<R-1,O=0!==N,W=o.useCallback(e=>{null==e||e.stopPropagation(),M(v(N+1,R))},[N,R]),z=o.useCallback(e=>{null==e||e.stopPropagation(),M(v(N-1,R))},[N,R]),U=e=>{var t;if(r)return;let{type:n}=e,o="mousedown"===n;if(!I&&o||P||!o&&!(null===(t=e.targetTouches)||void 0===t?void 0:t.length)){let e=A.current.firstElementChild;e.style.transform="translateX(".concat(-(100*N),"%)"),e.style.removeProperty("transition"),Z(void 0),q(void 0);return}let{clientX:l,clientY:s}=o?e:e.targetTouches[0];q({startX:l,startY:s})},Y=e=>{var t;if(r)return;let{type:n}=e,o="mousemove"===n;if(!P||!I&&o||!o&&!(null===(t=e.targetTouches)||void 0===t?void 0:t.length)){q(void 0);return}let{startX:l}=P,{clientX:s}=o?e:e.targetTouches[0],a=l-s,c=a>0?"-":"+",i=A.current.firstElementChild,u="translateX(calc(".concat(-(100*N),"% ").concat(c," ").concat(Math.abs(a),"px))");Object.assign(i.style,{transform:u,transition:"none"}),Z(a)},F=e=>{var t;if(r)return;let{type:n}=e,o="mouseup"===n;Z(void 0);let l=A.current.firstElementChild;if(!P||!I&&o||!o&&!(null===(t=e.changedTouches)||void 0===t?void 0:t.length)){l.style.transform="translateX(".concat(-(100*N),"%)"),l.style.removeProperty("transition"),q(void 0);return}l.style.transform="translateX(".concat(-(100*N),"%)"),l.style.removeProperty("transition");let{startX:s,startY:a}=P,{clientX:c,clientY:i}=o?e:e.changedTouches[0],u=Math.abs(s-c);if(u<80&&u<Math.abs(a-i)){l.style.transform="translateX(".concat(-(100*N),"%)"),l.style.removeProperty("transition"),q(void 0);return}s<c&&N>0&&z(),s>c&&N<R-1&&W(),q(void 0)},B=o.useCallback(()=>Array.from(A.current.querySelectorAll("section[data-class]")).filter(e=>"none"!==window.getComputedStyle(e).display),[]),H=o.useCallback(()=>{S(B())},[B]);o.useEffect(()=>{t||void 0===L||M(L)},[L,t]),o.useEffect(()=>{var e;let t=null===(e=A.current)||void 0===e?void 0:e.querySelector(".cms");if(t)return t.addEventListener("ublo-section-created",H),t.addEventListener("ublo-section-pasted",H),t.addEventListener("ublo-section-removed",H),()=>{t.removeEventListener("ublo-section-removed",H),t.removeEventListener("ublo-section-pasted",H),t.removeEventListener("ublo-section-created",H)}},[H]),o.useEffect(()=>{let e=A.current,t=e.firstElementChild,n=B(),o=Array.from(e.querySelectorAll(u));S(n),D||(n.forEach((e,t)=>{Array.from(e.querySelectorAll("a")).forEach(e=>{e.setAttribute("tabindex",N===t?"0":"-1")})}),o.forEach(h)),!r||D?(n.forEach((e,t)=>{b(e),D||N!==t?e.removeAttribute("data-current"):e.setAttribute("data-current","")}),t.style.transform="translateX(".concat(-(100*N),"%)"),t.style.removeProperty("transition")):(o.forEach(m),n.forEach((e,t)=>{N===t?(b(e),e.setAttribute("data-current","")):(e.removeAttribute("data-current"),Object.assign(e.style,{opacity:0,pointerEvents:"none",touchAction:"none"}))}),r&&t.style.removeProperty("transform"))},[N,D,r,B,w,j]);let K=o.useCallback(e=>{e.preventDefault(),e.stopPropagation()},[]);o.useEffect(()=>{"function"==typeof x&&x(N)},[N,x]),o.useEffect(()=>{let e=Array.from(A.current.firstElementChild.querySelectorAll(u));X?e.forEach(e=>e.addEventListener("click",K)):e.forEach(e=>setTimeout(()=>e.removeEventListener("click",K),100))},[X,K]),function(e,t,r,n){let l=o.useRef();o.useEffect(()=>{l.current=e},[e]),o.useEffect(()=>{if(!n&&null!==t&&0!==t){let e=setInterval(function(){l.current()},t);return()=>clearInterval(e)}},[r,t,n])}(()=>{D||W()},t,N,X);let G=s()("carousel",{carousel__fade:r&&!D,carousel__editing:D});return(0,n.jsxs)("div",{ref:A,className:G,onMouseDown:U,onTouchStart:U,onMouseMove:Y,onTouchMove:Y,onMouseUp:F,onTouchEnd:F,onMouseLeave:F,children:[_,(D||l&&O||E)&&(0,n.jsx)("button",{className:"carousel--prev",onClick:z,disabled:E&&!O,"aria-label":"Pr\xe9cedent / Previous",children:(0,n.jsx)(i.Z,{className:"carousel--icon"})}),(D||l&&T||E)&&(0,n.jsx)("button",{className:"carousel--next",onClick:W,disabled:E&&!T,"aria-label":"Suivant / Next",children:(0,n.jsx)(c.Z,{className:"carousel--icon"})}),p&&(0,n.jsx)(d,{count:R,current:N,setCurrent:M,sections:k}),y&&R>1&&(0,n.jsx)(f,{carouselRef:A,count:R,current:N,setCurrent:M,sections:k})]})})},9010:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});
1var n=r(5893),o=r(7294),l=r(3967),s=r.n(l),a=r(1438),c=r(9669),i=r(9421),u=r(5158);let d={width:void 0,height:void 0};var f=r(1931),v=r.n(f),h=function(e){let{className:t,children:r}=e,{cmsMode:l}=(0,a.useUbloContext)(),f=o.useRef(null),h=o.useRef(null),[m,b]=o.useState(!1),[p,y]=o.useState({prevDisabled:!1,nextDisabled:!1}),{width:E}=function(){let[e,t]=o.useState(d),r=()=>{t({width:window.innerWidth,height:window.innerHeight})};return o.useEffect(()=>{if(r(),!("undefined"!=typeof ResizeObserver))return window.addEventListener("resize",r,{passive:!0}),()=>{window.removeEventListener("resize",r)};{let e=new ResizeObserver(r);return e.observe(document.body),()=>{e.unobserve(document.body)}}},[]),e}(),g=()=>{let e=f.current;e&&(e.scrollLeft=0)},_=e=>()=>{let t=h.current,r=f.current;if(t&&r){let n=t.querySelector("section:not([data-hidden], [hidden], [style*='display: none'])");if(n){let t=n.clientWidth;0===e&&(r.scrollLeft-=t),1===e&&(r.scrollLeft+=t)}}},x=o.useCallback(()=>{let e=h.current,t=f.current;e&&t&&(b(t.clientWidth<e.clientWidth),y({prevDisabled:0===Math.floor(t.scrollLeft),nextDisabled:Math.floor(t.scrollLeft)===Math.floor(t.scrollWidth)-Math.floor(t.clientWidth)}))},[]);o.useEffect(()=>{let e=h.current;if(!l&&e){let t=new MutationObserver(g);return t.observe(e,{attributes:!0,childList:!0,subtree:!0}),()=>{t&&t.disconnect()}}},[l]),o.useEffect(()=>{x()},[l,x,E]),o.useEffect(()=>{g()},[E]);let L=s()(v().carousel,t);return(0,n.jsxs)("div",{className:L,children:[m&&(0,n.jsxs)("div",{className:v().controls,"data-controls":"",children:[(0,n.jsx)(c.Z,{className:v().control,variant:"link",onClick:_(0),disabled:p.prevDisabled,"data-control":"prev",children:(0,n.jsx)(i.Z,{className:v().controlIcon})}),(0,n.jsx)(c.Z,{className:v().control,variant:"link",onClick:_(1),disabled:p.nextDisabled,"data-control":"next",children:(0,n.jsx)(u.Z,{className:v().controlIcon})})]}),(0,n.jsx)("div",{className:v().inner,ref:f,onScroll:x,"data-inner":"",children:o.cloneElement(r,{ref:h})})]})}},6856:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(7294),o=r(1438);let l={rootMargin:"0px",threshold:Array.from({length:101}).map((e,t)=>t/100)},s="data-in-view";function a(e,t,r){let a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.2,u=arguments.length>5?arguments[5]:void 0,{lang:d,path:f}=(0,o.useUbloContext)(),[v,h]=n.useState(!1),m=n.useCallback(e=>{e.forEach(e=>{let{intersectionRatio:t,target:r}=e,n=(null==r?void 0:r.classList.length)>0;if(!r||!n)return;let o=c(r.classList[0]);0!==t&&(a?t<=i?(r.classList.remove(o),r.removeAttribute(s)):(r.classList.add(o),r.setAttribute(s,"")):t>=i&&(r.classList.add(o),r.setAttribute(s,"")))})},[i,a]);n.useEffect(()=>{h("undefined"!=typeof IntersectionObserver);let n=e.current,o=void 0!==r?Array.from(n.querySelectorAll(r)):[n];if(n&&!t){if(v){o.forEach(e=>{let t=e.classList[0];if(t){let r=c(t);e.classList.remove(r)}e.removeAttribute(s)});let e=new IntersectionObserver(m,l),t=()=>o.forEach(t=>{if(!t)return;let r=t.classList[0];if(r){let e=c(r);t.classList.remove(e)}t.removeAttribute(s),e.disconnect()});return o.forEach(t=>null==e?void 0:e.observe(t)),()=>{t()}}o.forEach(e=>{let t=e.classList[0];if(t){let r=c(t);e.classList.add(r)}e.setAttribute(s,"")})}},[m,t,v,d,f,e,r,u])}function c(e){return"".concat(e,"--in-view")}},1931:function(e){e.exports={carousel:"scrolling-carousel_carousel__Rj6dF",controls:"scrolling-carousel_controls__2YdBz",control:"scrolling-carousel_control__2qTKW",controlIcon:"scrolling-carousel_controlIcon__Fh_0w",inner:"scrolling-carousel_inner__NS4M8"}}}]);
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.