{"version":3,"file":"ParralaxImageHeader.VFT4pJs1.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/f9AOqCnyk3mCAFSVIV1k/cnZnQ5PX6gTLkVl44DCp/ParralaxImageHeader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer\";// First parallax container\nexport function ParallaxContainer1(){const{scrollY}=useScroll();const y=useTransform(scrollY,value=>Number(value)/2.5);return{style:{y,position:\"relative\"}};}// FIXED: For frames that should NOT parallax (keeps hover functionality)\nexport function NoParallaxFrame(){const{scrollY}=useScroll();const y=useTransform(scrollY,value=>-(Number(value)/2.5));return{style:{y}};}// Second parallax container\nexport function ParallaxContainer2(){const{scrollY}=useScroll();const y=useTransform(scrollY,value=>Number(value)/2.5);return{style:{y,position:\"relative\"}};}// Alternative: Frame-specific no-parallax with custom speed\nexport function NoParallaxFrame2(speed=2.5){const{scrollY}=useScroll();const y=useTransform(scrollY,value=>-(Number(value)/speed));return{style:{y}};}// Improved factory function to generate overrides dynamically\nfunction createParallaxOverrides(speed=2.5){return{container:()=>{const{scrollY}=useScroll();const y=useTransform(scrollY,value=>Number(value)/speed);return{style:{y,position:\"relative\"}};},overlay:()=>{const{scrollY}=useScroll();const y=useTransform(scrollY,value=>-(Number(value)/speed));return{style:{y,position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\",zIndex:10}};}};}// Usage with factory function\nconst parallax1=createParallaxOverrides(2.5);export const ParallaxContainer3=parallax1.container;export const NoParallaxOverlay3=parallax1.overlay;const parallax2=createParallaxOverrides(3)// Different speed\n;export const ParallaxContainer4=parallax2.container;export const NoParallaxOverlay4=parallax2.overlay;// Video settings for reusable video components\nexport function VideoSettings(){return{autoPlay:true,muted:true,loop:true,playsInline:true,controls:false,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}};}// DEBUG: Test hover functionality - apply this to your interactive elements\nexport function TestHover(){return{whileHover:{scale:1.05,backgroundColor:\"#ff0000\"},style:{cursor:\"pointer\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withParallaxContainer1(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ParallaxContainer1(props)});};}withParallaxContainer1.displayName=\"ParallaxContainer1\";export function withNoParallaxFrame(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...NoParallaxFrame(props)});};}withNoParallaxFrame.displayName=\"NoParallaxFrame\";export function withParallaxContainer2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ParallaxContainer2(props)});};}withParallaxContainer2.displayName=\"ParallaxContainer2\";export function withNoParallaxFrame2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...NoParallaxFrame2(props)});};}withNoParallaxFrame2.displayName=\"NoParallaxFrame2\";export function withVideoSettings(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...VideoSettings(props)});};}withVideoSettings.displayName=\"VideoSettings\";export function withTestHover(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TestHover(props)});};}withTestHover.displayName=\"TestHover\";\nexport const __FramerMetadata__ = {\"exports\":{\"ParallaxContainer1\":{\"type\":\"override\",\"name\":\"ParallaxContainer1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideoSettings\":{\"type\":\"reactHoc\",\"name\":\"withVideoSettings\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNoParallaxFrame\":{\"type\":\"reactHoc\",\"name\":\"withNoParallaxFrame\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NoParallaxOverlay4\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withParallaxContainer2\":{\"type\":\"reactHoc\",\"name\":\"withParallaxContainer2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ParallaxContainer4\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ParallaxContainer2\":{\"type\":\"override\",\"name\":\"ParallaxContainer2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NoParallaxFrame2\":{\"type\":\"override\",\"name\":\"NoParallaxFrame2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTestHover\":{\"type\":\"reactHoc\",\"name\":\"withTestHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TestHover\":{\"type\":\"override\",\"name\":\"TestHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNoParallaxFrame2\":{\"type\":\"reactHoc\",\"name\":\"withNoParallaxFrame2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withParallaxContainer1\":{\"type\":\"reactHoc\",\"name\":\"withParallaxContainer1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VideoSettings\":{\"type\":\"override\",\"name\":\"VideoSettings\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NoParallaxOverlay3\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NoParallaxFrame\":{\"type\":\"override\",\"name\":\"NoParallaxFrame\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ParallaxContainer3\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ParralaxImageHeader.map"],"mappings":"+MACA,SAAgB,GAAoB,CAAC,GAAK,CAAC,WAAS,GAAW,CAAwD,MAAM,CAAC,MAAM,CAAC,EAA7D,EAAa,EAAQ,GAAO,OAAO,EAAM,CAAC,IAAI,CAAiB,SAAS,WAAW,CAAC,CAC5J,SAAgB,GAAiB,CAAC,GAAK,CAAC,WAAS,GAAW,CAA2D,MAAM,C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