{"version":3,"file":"HeaderScroll.So6jcNkh.mjs","names":["useRef","useCallback","useState"],"sources":["https:/framerusercontent.com/modules/bamMgJhjMszHbcnxCtZj/20nHFbpxFqdlchR1dDZF/Noise.js","https:/framerusercontent.com/modules/oIa9jYqVoiduNUSqRQ7h/utuZoJKJkJROgiqROlgk/ProgressiveBlur.js","https:/framerusercontent.com/modules/ncOQxH3rCHDFGUqMTm3c/XM8tCX5X8d6VrZ57pqCV/HeaderScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Noise\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function Noise(props){const{opacity,backgroundSize,borderRadius}=props;return /*#__PURE__*/ _jsx(\"div\",{style:{...containerStyle,opacity,backgroundSize,borderRadius}});};Noise.defaultProps={opacity:.5,backgroundSize:128,radius:0};addPropertyControls(Noise,{backgroundSize:{title:\"Size\",type:ControlType.Number,min:64,max:256},opacity:{title:\"Opacity\",type:ControlType.Number,step:.1,displayStepper:true,max:1,min:0},borderRadius:{title:\"Radius\",type:ControlType.Number,min:0,max:1e3,step:1,displayStepper:true}});const containerStyle={width:\"100%\",height:\"100%\",backgroundSize:\"256px 256px\",backgroundRepeat:\"repeat\",backgroundImage:\"url('https://framerusercontent.com/images/rR6HYXBrMmX4cRpXfXUOvpvpB0.png')\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Noise\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Noise.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const computeDirection=dir=>{switch(dir){case\"toTop\":return\"to top\";case\"toLeft\":return\"to left\";case\"toRight\":return\"to right\";case\"toBottom\":default:return\"to bottom\";}};// Code component provided by Eleveight Supply™. All rights reserved 2024.\n/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ProgressiveBlur(props){const{blur,blurDirection,allCorners,radius,topLeft,topRight,bottomRight,bottomLeft}=props;const layers=[];const base=blur;const dir=computeDirection(blurDirection);for(let i=0;i<8;i++){const b=base/2**(8-i);const start=(i*12.5).toFixed(1);const mid1=(+start+12.5).toFixed(1);const mid2=(+start+25).toFixed(1);const end=(+start+37.5).toFixed(1);layers.push({blur:`${b}px`,gradient:[`rgba(0,0,0,0) ${start}%`,`rgba(0,0,0,1) ${mid1}%`,`rgba(0,0,0,1) ${mid2}%`,`rgba(0,0,0,0) ${end}%`].join(\", \")});}const cornerRadius=allCorners?`${radius}px`:`${topLeft}px ${topRight}px ${bottomRight}px ${bottomLeft}px`;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:cornerRadius,overflow:\"hidden\",background:\"none\"},children:layers.map((layer,idx)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,zIndex:idx+1,pointerEvents:\"none\",backdropFilter:`blur(${layer.blur})`,WebkitBackdropFilter:`blur(${layer.blur})`,maskImage:`linear-gradient(${dir}, ${layer.gradient})`,WebkitMaskImage:`linear-gradient(${dir}, ${layer.gradient})`,borderRadius:cornerRadius}},idx))});}ProgressiveBlur.defaultProps={blur:10,blurDirection:\"toBottom\",allCorners:true,radius:0,topLeft:0,topRight:0,bottomRight:0,bottomLeft:0};addPropertyControls(ProgressiveBlur,{blur:{type:ControlType.Number,title:\"Blur\",defaultValue:10,min:0,max:100,step:1},blurDirection:{type:ControlType.SegmentedEnum,title:\"Direction\",options:[\"toBottom\",\"toTop\",\"toLeft\",\"toRight\"],optionTitles:[\"↓\",\"↑\",\"←\",\"→\"],defaultValue:\"toBottom\"},cornerRadius:{type:ControlType.FusedNumber,title:\"Radius\",toggleKey:\"allCorners\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],defaultValue:0,min:0,max:200,step:1,description:\"If you need rounded corners, apply them here—don’t put them on the parent container or the blur will break.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressiveBlur\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgressiveBlur.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef,useState}from\"react\";const heroes=new Set;const listeners=new Set;function notify(){listeners.forEach(fn=>fn());}function assignRef(ref,node){if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;}export function HeroBoundary(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const own=useRef(null);const setRef=useCallback(node=>{if(own.current)heroes.delete(own.current);own.current=node;if(node)heroes.add(node);assignRef(ref,node);notify();},[ref]);useEffect(()=>{const node=own.current;if(!node)return;const observer=new ResizeObserver(notify);observer.observe(node);notify();return()=>{observer.disconnect();heroes.delete(node);notify();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}export function HeaderSurface(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,backgroundColor:\"transparent\",top:\"env(safe-area-inset-top, 0px)\"}}));}export function NavigationPill(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,backgroundColor:\"#ffffff\"}}));}export function HeaderLogo(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const own=useRef(null);const[pastHero,setPastHero]=useState(true);const setRef=useCallback(node=>{own.current=node;assignRef(ref,node);},[ref]);useEffect(()=>{const update=()=>{if(!own.current)return;const logoTop=own.current.getBoundingClientRect().top;const visibleHeroes=Array.from(heroes).map(node=>node.getBoundingClientRect()).filter(rect=>rect.width>0&&rect.height>0);setPastHero(visibleHeroes.length>0?visibleHeroes.every(rect=>rect.bottom<=logoTop):true);};listeners.add(update);update();window.addEventListener(\"scroll\",update,{passive:true});window.addEventListener(\"resize\",update);window.addEventListener(\"pageshow\",update);return()=>{listeners.delete(update);window.removeEventListener(\"scroll\",update);window.removeEventListener(\"resize\",update);window.removeEventListener(\"pageshow\",update);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef,variant:pastHero?\"YuIvLvmiy\":\"i_6bNtDri\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"NavigationPill\":{\"type\":\"reactHoc\",\"name\":\"NavigationPill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeroBoundary\":{\"type\":\"reactHoc\",\"name\":\"HeroBoundary\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeaderSurface\":{\"type\":\"reactHoc\",\"name\":\"HeaderSurface\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeaderLogo\":{\"type\":\"reactHoc\",\"name\":\"HeaderLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeaderScroll.map"],"mappings":"+MAQI,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,UAAQ,iBAAe,gBAAc,EAAM,OAAqB,EAAK,M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