/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@flyingbisons/kwadronapp@1.0.9/src/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{initAlpine}from"./init.js";import{gsap}from"gsap";import{ScrollTrigger}from"gsap/ScrollTrigger";gsap.registerPlugin(ScrollTrigger),window.heroInitAnimation=function(){const t=gsap.timeline();t.fromTo(".navbar",{y:-100,autoAlpha:0},{y:0,autoAlpha:1,duration:.5,ease:"power3.in"}),t.fromTo([".hero_main-wrap",".hero_features-wrap"],{y:50,autoAlpha:0},{y:0,autoAlpha:1,duration:.2,ease:"power3.in",stagger:.1},"<0.2")},window.textVertical=function(){const t=document.querySelector(".section.is-v-text h2");if(t){const e=t.textContent;t.innerHTML="",e.split(" ").forEach((e=>{const o=document.createElement("span");o.className="heading-word",o.textContent=e+" ",t.appendChild(o)}))}const e=document.querySelectorAll(".section.is-v-text h2 span");gsap.to(e,{scrollTrigger:{trigger:".section.is-v-text",start:"top top+=40%",end:"top top+=20%",scrub:1},color:"#fff",stagger:.1,ease:"none"})},window.textHorizontal=function(){const t=document.querySelector(".h-text_main-wrap"),e=document.querySelector(".is-display.is-h-text"),o=function(){return gsap.set(e,{x:-(e.offsetWidth-t.offsetWidth),position:"relative"}),gsap.from(e,{x:0,ease:"power2.out",scrollTrigger:{trigger:".section.is-h-text",start:"top 60%",end:"top top-=20%",scrub:!0}})};let r=o();window.addEventListener("resize",(function(){r&&r.scrollTrigger&&r.scrollTrigger.kill(),r=o()}))},window.studioBoxes=function(){const t=document.querySelector(".container.is-studio"),e=document.querySelector(".studio_marquee-control"),o=function(){return gsap.set(e,{x:-(e.offsetWidth-t.offsetWidth),position:"relative"}),gsap.from(e,{x:0,ease:"power2.out",scrollTrigger:{trigger:".section.is-studio",start:"top+=10% top",end:"bottom bottom",scrub:!0}})};let r=o();window.addEventListener("resize",(function(){r&&r.scrollTrigger&&r.scrollTrigger.kill(),r=o()}))},window.kwadronIcon=function(){const t=document.querySelector(".hitw_tab-1-icon");gsap.to(t,{scale:1.5,ease:"power2.out",scrollTrigger:{trigger:".section.is-hitw",start:"top-=50% top",end:"bottom+=70% bottom",scrub:!0}})},window.displayButtons=function(){const t=navigator.userAgent||navigator.vendor||window.opera,e=document.querySelectorAll('[btntype="google"]'),o=document.querySelectorAll('[btntype="apple"]');/iPad|iPhone|iPod/.test(t)&&!window.MSStream?(e.forEach((t=>{t.style.display="none"})),o.forEach((t=>{t.style.display="flex"}))):/android/i.test(t)?(o.forEach((t=>{t.style.display="none"})),e.forEach((t=>{t.style.display="flex"}))):(o.forEach((t=>{t.style.display="flex"})),e.forEach((t=>{t.style.display="flex"})))},window.Webflow||=[],window.Webflow.push((()=>{initAlpine(),textVertical(),kwadronIcon(),textHorizontal(),studioBoxes(),displayButtons(),heroInitAnimation();const t=function(t,e=200){let o;return function(...r){clearTimeout(o),o=setTimeout((()=>t.apply(this,r)),e)}}((function(){ScrollTrigger.refresh()}),200);window.addEventListener("resize",t)}));
//# sourceMappingURL=/sm/d71a1a90e4e12e41894f7fbc6f11e001cfd8ab992995fbb4616d9dcf65c4778a.map