{"version":3,"file":"shared-lib.DOxtnskw.mjs","names":[],"sources":["https:/framerusercontent.com/modules/AI8yuklqDACx9WuazjVs/LFjzve4ic18J6YecKTQW/SmoothScroll.js","https:/framerusercontent.com/modules/t79c6ssN6LOctEB4zpOp/Lv7YGgtlf6cdcnIb7cyN/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/** True when the wheel should scroll a box inside the page instead. */function scrollsInside(start,deltaY){let el=start instanceof Element?start:null;while(el&&el!==document.documentElement&&el!==document.body){const overflowY=getComputedStyle(el).overflowY;if((overflowY===\"auto\"||overflowY===\"scroll\")&&el.scrollHeight>el.clientHeight){const atTop=el.scrollTop<=0;const atBottom=el.scrollTop+el.clientHeight>=el.scrollHeight-1;if(deltaY<0&&!atTop||deltaY>0&&!atBottom)return true;}el=el.parentElement;}return false;}/**\n * Smooth Scroll\n *\n * Invisible. Place one on a page to smooth mouse-wheel scrolling there.\n *\n * @framerIntrinsicWidth 20\n * @framerIntrinsicHeight 20\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SmoothScroll(props){const{intensity=70,style}=props;const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const lerp=.16-intensity/100*.14;const wheelMultiplier=1-intensity/100*.4;let target=window.scrollY;let current=target;let frame=0;let last=0;let selfScrolling=false;const maxScroll=()=>document.documentElement.scrollHeight-window.innerHeight;const step=time=>{// Frame-rate independent: the same feel at 60Hz and 120Hz\nconst dt=last?Math.min(time-last,64):16.67;last=time;const t=1-Math.pow(1-lerp,dt/16.67);current+=(target-current)*t;if(Math.abs(target-current)<.5)current=target;selfScrolling=true;window.scrollTo(0,current);if(current!==target)frame=requestAnimationFrame(step);else{frame=0;last=0;}};const onWheel=event=>{if(event.ctrlKey||event.defaultPrevented)return;// pinch zoom, or handled elsewhere\nif(Math.abs(event.deltaX)>Math.abs(event.deltaY))return;if(scrollsInside(event.target,event.deltaY))return;event.preventDefault();if(!frame)current=target=window.scrollY;const unit=event.deltaMode===1?16:event.deltaMode===2?window.innerHeight:1;target=Math.max(0,Math.min(maxScroll(),target+event.deltaY*unit*wheelMultiplier));if(!frame)frame=requestAnimationFrame(step);};// Keyboard, scrollbar and in-page links scroll natively; follow them\nconst onScroll=()=>{if(selfScrolling){selfScrolling=false;return;}if(!frame)current=target=window.scrollY;};window.addEventListener(\"wheel\",onWheel,{passive:false});window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>{window.removeEventListener(\"wheel\",onWheel);window.removeEventListener(\"scroll\",onScroll);if(frame)cancelAnimationFrame(frame);};},[isStatic,intensity]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,position:\"relative\",pointerEvents:\"none\"}});}addPropertyControls(SmoothScroll,{intensity:{type:ControlType.Number,title:\"Intensity\",description:\"Higher is slower and softer.\",defaultValue:70,min:0,max:100,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothScroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"20\",\"framerIntrinsicHeight\":\"20\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothScroll.map","// Generated by Framer (cb436ee)\nexport default function metadata(params,activeLocale){return{description:\"Hey… Im Ari if u didnt know\\n\",favicon:\"https://framerusercontent.com/assets/OVbjkQIazh9dKiwpphCk0KpSoyE.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/UT2c4We1hGfpPE9jb4EQLg3vDb4.png\",title:\"Ari\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"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