import{t as e}from"./rolldown-runtime.BB3S47xo.mjs";import{P as t,V as n,c as r,k as i,o as a,w as o,z as s}from"./react.Eit2hu2Y.mjs";import{M as c,Z as l,a as u,kt as d}from"./framer.BEePfEDD.mjs";function f(e,t,n){return Math.max(e,Math.min(t,n))}var p,m,h,g,_,v,y=e((()=>{s(),p=class{constructor(){this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.duration=0,this.currentTime=0}advance(e){var t;if(!this.isRunning)return;let n=!1;if(this.duration&&this.easing){this.currentTime+=e;let t=f(0,this.currentTime/this.duration,1);n=t>=1;let r=n?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=function(e,t,n,r){return function(e,t,n){return(1-n)*e+n*t}(e,t,1-Math.exp(-n*r))}(this.value,this.to,60*this.lerp,e),Math.round(this.value)===this.to&&(this.value=this.to,n=!0)):(this.value=this.to,n=!0);n&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,n)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}},m=class{constructor({wrapper:e,content:t,autoResize:r=!0,debounce:i=250}={}){this.width=0,this.height=0,this.scrollWidth=0,this.scrollHeight=0,this.resize=()=>{this.onWrapperResize(),this.onContentResize()},this.onWrapperResize=()=>{this.wrapper===n?(this.width=n.innerWidth,this.height=n.innerHeight):this.wrapper instanceof HTMLElement&&(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},this.onContentResize=()=>{this.wrapper===n?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):this.wrapper instanceof HTMLElement&&(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},this.wrapper=e,this.content=t,r&&(this.debouncedResize=function(e,t){let n;return function(){let r=arguments,i=this;clearTimeout(n),n=setTimeout((function(){e.apply(i,r)}),t)}}(this.resize,i),this.wrapper===n?n.addEventListener(`resize`,this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),n.removeEventListener(`resize`,this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},h=class{constructor(){this.events={}}emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e{this.events[e]=this.events[e]?.filter((e=>t!==e))}}off(e,t){this.events[e]=this.events[e]?.filter((e=>t!==e))}destroy(){this.events={}}},g=100/6,_=class{constructor(e,{wheelMultiplier:t=1,touchMultiplier:r=1}){this.lastDelta={x:0,y:0},this.windowWidth=0,this.windowHeight=0,this.onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})},this.onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-(this.touchStart?.x??0))*this.touchMultiplier,i=-(n-(this.touchStart?.y??0))*this.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})},this.onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},this.onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e;t*=r===1?g:r===2?this.windowWidth:1,n*=r===1?g:r===2?this.windowHeight:1,t*=this.wheelMultiplier,n*=this.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})},this.onWindowResize=()=>{this.windowWidth=n.innerWidth,this.windowHeight=n.innerHeight},this.element=e,this.wheelMultiplier=t,this.touchMultiplier=r,this.touchStart={x:null,y:null},this.emitter=new h,n.addEventListener(`resize`,this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.element.addEventListener(`touchstart`,this.onTouchStart,{passive:!1}),this.element.addEventListener(`touchmove`,this.onTouchMove,{passive:!1}),this.element.addEventListener(`touchend`,this.onTouchEnd,{passive:!1})}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),n.removeEventListener(`resize`,this.onWindowResize,!1),this.element.removeEventListener(`wheel`,this.onWheel),this.element.removeEventListener(`touchstart`,this.onTouchStart),this.element.removeEventListener(`touchmove`,this.onTouchMove),this.element.removeEventListener(`touchend`,this.onTouchEnd)}},v=class{constructor({wrapper:e=n,content:t=document.documentElement,wheelEventsTarget:r=e,eventsTarget:i=r,smoothWheel:a=!0,syncTouch:o=!1,syncTouchLerp:s=.075,touchInertiaMultiplier:c=35,duration:l,easing:u=(e=>Math.min(1,1.001-2**(-10*e))),lerp:d=.1,infinite:f=!1,orientation:g=`vertical`,gestureOrientation:v=`vertical`,touchMultiplier:y=1,wheelMultiplier:b=1,autoResize:x=!0,prevent:S,virtualScroll:C,__experimental__naiveDimensions:w=!1}={}){this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.userData={},this.lastVelocity=0,this.velocity=0,this.direction=0,this.onPointerDown=e=>{e.button===1&&this.reset()},this.onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(this.isTouching=r.type===`touchstart`||r.type===`touchmove`,this.options.syncTouch&&i&&r.type===`touchstart`&&!this.isStopped&&!this.isLocked)return void this.reset();let o=t===0&&n===0,s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent;if(c.find((e=>e instanceof Element&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.call(e,`data-lenis-prevent`)||i&&e.hasAttribute?.call(e,`data-lenis-prevent-touch`)||a&&e.hasAttribute?.call(e,`data-lenis-prevent-wheel`)||e.classList?.contains(`lenis`)&&!e.classList?.contains(`lenis-stopped`)))))return;if(this.isStopped||this.isLocked)return void r.preventDefault();if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a))return this.isScrolling=`native`,void this.animate.stop();r.preventDefault();let u=n;this.options.gestureOrientation===`both`?u=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(u=t);let d=i&&this.options.syncTouch,f=i&&r.type===`touchend`&&Math.abs(u)>5;f&&(u=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+u,Object.assign({programmatic:!1},d?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(clearTimeout(this.__resetVelocityTimeout),delete this.__resetVelocityTimeout,this.__preventNextNativeScrollEvent)delete this.__preventNextNativeScrollEvent;else if(!1===this.isScrolling||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isScrolling=`native`,this.emit(),this.velocity!==0&&(this.__resetVelocityTimeout=setTimeout((()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()}),400))}},n.lenisVersion=`1.1.9`,e&&e!==document.documentElement&&e!==document.body||(e=n),this.options={wrapper:e,content:t,wheelEventsTarget:r,eventsTarget:i,smoothWheel:a,syncTouch:o,syncTouchLerp:s,touchInertiaMultiplier:c,duration:l,easing:u,lerp:d,infinite:f,gestureOrientation:v,orientation:g,touchMultiplier:y,wheelMultiplier:b,autoResize:x,prevent:S,virtualScroll:C,__experimental__naiveDimensions:w},this.animate=new p,this.emitter=new h,this.dimensions=new m({wrapper:e,content:t,autoResize:x}),this.updateClassName(),this.userData={},this.time=0,this.velocity=this.lastVelocity=0,this.isLocked=!1,this.isStopped=!1,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll,!1),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown,!1),this.virtualScroll=new _(i,{touchMultiplier:y,wheelMultiplier:b}),this.virtualScroll.on(`scroll`,this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll,!1),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName()}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit(`scroll`,this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t)}scrollTo(e,{offset:t=0,immediate:r=!1,lock:i=!1,duration:a=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:c,onComplete:l,force:u=!1,programmatic:d=!0,userData:p={}}={}){if(!this.isStopped&&!this.isLocked||u){if(typeof e==`string`&&[`top`,`left`,`start`].includes(e))e=0;else if(typeof e==`string`&&[`bottom`,`right`,`end`].includes(e))e=this.limit;else{let r;if(typeof e==`string`?r=document.querySelector(e):e instanceof HTMLElement&&e!=null&&e.nodeType&&(r=e),r){if(this.options.wrapper!==n){let e=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}let i=r.getBoundingClientRect();e=(this.isHorizontal?i.left:i.top)+this.animatedScroll}}if(typeof e==`number`&&(e+=t,e=Math.round(e),this.options.infinite?d&&(this.targetScroll=this.animatedScroll=this.scroll):e=f(0,e,this.limit),e!==this.targetScroll)){if(this.userData=p,r)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),void(this.userData={});d||(this.targetScroll=e),this.animate.fromTo(this.animatedScroll,e,{duration:a,easing:o,lerp:s,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),d&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this.__preventNextNativeScrollEvent=!0,requestAnimationFrame((()=>{delete this.__preventNextNativeScrollEvent}))}get rootElement(){return this.options.wrapper===n?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?function(e,t){return(e%t+t)%t}(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this.__isScrolling}set isScrolling(e){this.__isScrolling!==e&&(this.__isScrolling=e,this.updateClassName())}get isStopped(){return this.__isStopped}set isStopped(e){this.__isStopped!==e&&(this.__isStopped=e,this.updateClassName())}get isLocked(){return this.__isLocked}set isLocked(e){this.__isLocked!==e&&(this.__isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,``).trim()}}}));function b(e){let{intensity:a}=e,o=i(null);return t(()=>{if(o.current)try{o.current.scrollTo(0,{immediate:!0})}catch(e){console.error(`Error scrolling to top:`,e)}},[o]),t(()=>{let e=()=>{try{let e=document.querySelector(`[data-frameruni-stop-scroll]`),t=document.documentElement,n=t&&t.style&&t.style.overflow===`hidden`;o.current&&(e||n?o.current.stop():o.current.start())}catch(e){console.error(`Error in checkForStopScroll:`,e)}};e();let t,n;try{t=new MutationObserver(e),n=new MutationObserver(e),document&&document.documentElement&&(t.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-frameruni-stop-scroll`]}),n.observe(document.documentElement,{attributes:!0,attributeFilter:[`style`]}))}catch(e){console.error(`Error setting up observers:`,e)}return()=>{try{t&&t.disconnect(),n&&n.disconnect()}catch(e){console.error(`Error disconnecting observers:`,e)}}},[]),t(()=>{try{if(!document)return;let e=document.getElementsByTagName(`*`);for(let t=0;t{try{if(typeof v!=`function`){console.error(`Lenis is not available`);return}o.current=new v({duration:(a||10)/10});let e=t=>{if(o.current)try{o.current.raf(t),requestAnimationFrame(e)}catch(e){console.error(`Error in animation frame:`,e)}},t=requestAnimationFrame(e);return()=>{if(cancelAnimationFrame(t),o.current)try{o.current.destroy(),o.current=null}catch(e){console.error(`Error destroying Lenis:`,e)}}}catch(e){return console.error(`Error initializing Lenis:`,e),()=>{}}},[a]),t(()=>{try{if(!document||!o.current)return;let e=Array.from(document.querySelectorAll(`a[href]`)||[]).filter(e=>{if(!e)return!1;let t=e;if(!t.href)return!1;let r=t.href.startsWith(n.location.origin)||t.href.startsWith(`./`)||t.href.startsWith(`/`),i=t.href.includes(`#`);return r&&i}).map(e=>{try{let t=e,r=t.href.includes(`#`)?`#${t.href.split(`#`).pop()}`:``,i=r?decodeURIComponent(r):``,a=0;try{if(i){let e=document.querySelector(i);if(e){let t=n.getComputedStyle(e).scrollMarginTop;a=t&&parseInt(t)||0}}}catch(e){console.error(`Error finding target element:`,e)}return{href:r,scrollMargin:a,anchorElement:t}}catch(e){return console.error(`Error processing anchor:`,e),null}}).filter(Boolean),t=(e,t,n)=>{try{e&&e.preventDefault&&e.preventDefault(),o.current&&t&&o.current.scrollTo(t,{offset:-(n||0)})}catch(e){console.error(`Error in anchor click handler:`,e)}},r=e.map(({href:e,scrollMargin:n})=>r=>t(r,e,n));return e.forEach(({anchorElement:e},t)=>{e&&r[t]&&e.addEventListener(`click`,r[t])}),()=>{e.forEach(({anchorElement:e},t)=>{e&&r[t]&&e.removeEventListener(`click`,r[t])})}}catch(e){return console.error(`Error setting up anchor links:`,e),()=>{}}},[o]),r(`div`,{style:e.style})}var x,S,C=e((()=>{s(),a(),l(),y(),o(),x=d(b,[`html.lenis { height: auto; }`,`.lenis.lenis-smooth { scroll-behavior: auto !important; }`,`.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }`,`.lenis.lenis-stopped { overflow: hidden; }`,`.lenis.lenis-scrolling iframe { pointer-events: none; }`],``),S=x,x.displayName=`Smooth Scroll`,c(x,{intensity:{title:`Intensity`,type:u.Number,defaultValue:10,min:0,description:`More components at [Framer University](https://frameruni.link/cc).`}})}));function w(e,t){return{description:`Launch an automation-focused SaaS website with Worklane. A modern Framer template designed for clarity, speed, and growth.`,favicon:(location.origin+"/assets/framerusercontent.com/assets/QWDFLSB93wZutErVitpV8XZi0zI.png"),robots:`max-image-preview:large`,socialImage:(location.origin+"/assets/framerusercontent.com/assets/TDd9vGiVTGPWub9QimujLuKHZnM.jpg"),title:`Acquira`}}var T=e((()=>{}));export{C as i,w as n,S as r,T as t}; //# sourceMappingURL=shared-lib.Dpg7P9u0.mjs.map