import{m as g}from"./lazy-video-4c5cd446.js";import"./footer-97e1ffca.js";import{a as h}from"./contact-button-6fa67b63.js";import"./quote-animation-1ac9216e.js";import{g as o}from"./index-d3879b83.js";import{S as m}from"./ScrollTrigger-facc6abe.js";import{F as y}from"./index-bbda1049.js";import{i as r}from"./globals-5a9fe6e8.js";import{a as c}from"./text-animation-1bd88849.js";o.registerPlugin(m);if(!r){const t=o.timeline({scrollTrigger:{end:"+="+window.innerHeight*2+"px",scrub:!0}});t.to("#snow-layer-1",{y:-800,duration:1}),t.to("#snow-layer-2",{y:-400,duration:1},"<")}const x=o.timeline({scrollTrigger:{trigger:"#intro-container",start:"top top+=200px",end:"+=200px",scrub:1}});h(x);const i=document.querySelector("#gears-1"),l=document.querySelector("#gears-2"),p=()=>{const t=i.duration*1e3;i.currentTime=0,i.play();let e=i;const n=()=>{e===i?e=l:e=i,i.style.opacity=e===i?1:0,l.style.opacity=e===l?1:0,e.currentTime=.2,e.play(),setTimeout(n,t-1200)};setTimeout(n,t-1200)};r||(isNaN(i.duration)?i.onloadedmetadata=p:p());c("#intro-subline",["#intro-subline","#intro-text","#intro-features"]);const a=o.timeline({scrollTrigger:{trigger:"#automate-title",start:"top center+=300px",end:r?"+=400px":"+=50%",scrub:1}});a.to("#automate-title :nth-child(1)",{x:0,y:0,opacity:1,duration:1});a.to("#automate-title :nth-child(2)",{x:0,y:0,opacity:1,duration:1},"<");a.to("#automate-subtitle",{x:0,y:0,opacity:1,duration:1});a.to("#automate-description",{x:0,y:0,opacity:1,duration:1},"<0.3s");const f=o.timeline({scrollTrigger:{trigger:"#automate-image",start:"top center+=300px",end:r?"+=400px":"+=50%",scrub:1,onLeave:()=>{m.refresh()}}});f.to("#automate-image",{x:"-150px",y:0,opacity:1,duration:1});c("#automate-info",["#automate-text","#automate-features",void 0]);c("#workshops-title",["#workshops-title :nth-child(1)","#workshops-title :nth-child(2)","#workshops-description"]);new y("#flickity-features-container",{wrapAround:!0,pageDots:!0,prevNextButtons:!1});r&&new y("#flickity-features-container-2",{wrapAround:!0,pageDots:!0,prevNextButtons:!1});const s=o.timeline({});s.to("#header-title :nth-child(1) :nth-child(1)",{y:0,opacity:1,duration:.5});s.to("#header-title :nth-child(1) :nth-child(2)",{y:0,opacity:1,duration:.5});s.to("#header-title :nth-child(2)",{y:0,opacity:1,duration:.5});s.to("#header-title :nth-child(3)",{y:0,opacity:1,duration:.5});o.timeline().to("#gears-img",{x:0,opacity:1,duration:2});const w=o.timeline({scrollTrigger:{trigger:"#workshops-analyzes-title",start:"top bottom-=200px",end:r?"+=400px":"+=50%",scrub:1}});w.to("#workshops-analyzes-title",{x:0,y:0,opacity:1,duration:1});const T=o.timeline({scrollTrigger:{trigger:"#workshops-workshops-title",start:"top bottom-=200px",end:r?"+=400px":"+=50%",scrub:1}});T.to("#workshops-workshops-title",{x:0,y:0,opacity:1,duration:1});const b=document.querySelectorAll(".list-entry");for(const t of b){const e=o.timeline({scrollTrigger:{trigger:t,start:"top bottom-=200px",end:"bottom bottom-=200px",scrub:1}});e.to(t.querySelector(".entry-title"),{x:0,y:0,opacity:1,duration:1}),e.to(t.querySelector(".entry-description"),{x:0,y:0,opacity:1,duration:1},"<"),e.to(t.querySelector(".entry-image-container"),{x:0,y:0,opacity:1,duration:1},"<");const n=o.timeline({scrollTrigger:{trigger:t.querySelector(".entry-description ul"),start:"top bottom-=20%",end:"bottom bottom-=20%",scrub:1}});for(const d of t.querySelectorAll(".entry-description li"))n.to(d,{x:0,y:0,opacity:1,duration:1});const u=t.querySelector(".quote-container");u&&n.to(u,{x:0,y:0,opacity:1,duration:1})}g.start();