(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[911],{69631:(e,r,t)=>{"use strict";t.d(r,{SectionAnimationRenderer:()=>c});var o=t(95155),i=t(12115),n=t(79268);let s=null,a=null;function l(){return s?Promise.resolve(s):a||(a=new Promise(e=>{let r=()=>{Promise.all([Promise.all([t.e(5592),t.e(7605)]).then(t.bind(t,47605)),t.e(5580).then(t.bind(t,55580))]).then(([{gsap:r},{ScrollTrigger:t}])=>{r.registerPlugin(t),e(s={gsap:r,ScrollTrigger:t})})};"undefined"!=typeof requestIdleCallback?requestIdleCallback(r,{timeout:2e3}):setTimeout(r,300)}))}function c({sectionId:e,animation:r,children:t,className:s}){let[a,c]=(0,i.useState)(r);(0,i.useEffect)(()=>{c(r)},[r]);let u=(0,i.useRef)(null),p=(0,i.useRef)(null),{globalDisabled:g,respectReducedMotion:f,defaultDuration:m,defaultEasing:v}=(0,n.s)();(0,i.useEffect)(()=>{let r,t,o,i=u.current,n=p.current;if(!i||!n||g||!a)return;let s=!!(a.entrance&&"none"!==a.entrance.preset),c=!!a.scrollEffect,h=!!a.parallax?.length,y=!!a.timeline?.tracks?.length;if(!s&&!c&&!h&&!y||f&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let b=!1;return l().then(({gsap:i,ScrollTrigger:n})=>{if(b||!u.current||!p.current)return;let l=u.current,g=p.current;r=i.context(()=>{c&&function(e,r,t,o){let i=o.intensity??1,n=o.scrub??.5,s="reverse"===o.direction?-1:1,a={trigger:t,start:"top bottom",end:"bottom top",scrub:n};switch(o.preset){case"parallax-slow":{let r=80*i*s;e.fromTo(t,{y:r},{y:-r,ease:"none",scrollTrigger:a});break}case"parallax-medium":{let r=140*i*s;e.fromTo(t,{y:r},{y:-r,ease:"none",scrollTrigger:a});break}case"parallax-fast":{let r=220*i*s;e.fromTo(t,{y:r},{y:-r,ease:"none",scrollTrigger:a});break}case"zoom-scroll":e.fromTo(t,{scale:1-.12*i,opacity:.6},{scale:1,opacity:1,ease:"none",scrollTrigger:{...a,start:"top 90%",end:"center center"}});break;case"zoom-out-scroll":e.fromTo(t,{scale:1},{scale:1+.1*i,ease:"none",scrollTrigger:a});break;case"fade-scroll":e.timeline({scrollTrigger:{...a,start:"top 80%",end:"bottom 20%"}}).fromTo(t,{opacity:0},{opacity:1,ease:"none",duration:.5}).to(t,{opacity:0,ease:"none",duration:.5});break;case"tilt-scroll":{let r=6*i*s;e.fromTo(t,{rotationX:r,transformPerspective:900,transformOrigin:"center top"},{rotationX:-r,ease:"none",scrollTrigger:a});break}case"horizontal-drift":{let r=120*i*s;e.fromTo(t,{x:r},{x:-r,ease:"none",scrollTrigger:a});break}case"pin-reveal":{let r=Array.from(t.children);if(0===r.length)break;e.set(r,{opacity:0,y:40});let o=e.timeline({scrollTrigger:{trigger:t,start:"top top",end:`+=${300*r.length*i}`,scrub:n,pin:!0,pinSpacing:!0}});r.forEach((e,r)=>{o.to(e,{opacity:1,y:0,duration:.3},.3*r)});break}case"clip-reveal":e.fromTo(t,{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0% 0 0)",ease:"none",scrollTrigger:{...a,start:"top 80%",end:"top 20%"}})}}(i,0,l,a.scrollEffect),h&&a.parallax.forEach(e=>(function(e,r,t,o){let i=t.querySelector(o.selector);if(!i)return;let n={trigger:t,start:o.scrollStart??"top bottom",end:o.scrollEnd??"bottom top",scrub:o.scrub??!0};if(void 0!==o.scaleFrom&&void 0!==o.scaleTo)return void e.fromTo(i,{scale:o.scaleFrom},{scale:o.scaleTo,scrollTrigger:n});if(void 0!==o.opacityFrom&&void 0!==o.opacityTo)return void e.fromTo(i,{opacity:o.opacityFrom},{opacity:o.opacityTo,scrollTrigger:n});if(void 0!==o.rotationFrom&&void 0!==o.rotationTo)return void e.fromTo(i,{rotation:o.rotationFrom},{rotation:o.rotationTo,scrollTrigger:n});let s={scrollTrigger:n};void 0!==o.speed&&(s.y=`${100*o.speed}%`),void 0!==o.horizontalSpeed&&(s.x=`${100*o.horizontalSpeed}%`),e.to(i,s)})(i,0,l,e)),y&&function(e,r,t,o,i){let n=o.scrollTrigger,s=e.timeline({id:i?`timeline-${i}`:void 0,scrollTrigger:n?{trigger:t,start:n.start??"top center",end:n.end??"bottom top",scrub:n.scrub??!0,pin:n.pin??!1,pinSpacing:n.pinSpacing??!0}:void 0});o.tracks.forEach(e=>{let r=t.querySelectorAll(e.selector);if(!r.length)return;let o=[.