{"version":3,"file":"ImagePreloader.C4bVBpiZ.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx","useState"],"sources":["https:/framerusercontent.com/modules/m1COzQmTCLumoDMn7X5f/rXk4J5DKrLuIupLCHh3F/HoverDim.js","https:/framerusercontent.com/modules/yT1bYTlW7e3O4k8LeOTA/Yf5m6dwGKJwbIBsdrIwx/ImagePreloader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function HoverDimStack(){const transition=\"all 0.5s cubic-bezier(0.38, 0.1, 0, 0.99)\";return{style:{position:\"relative\"},onMouseOver(event){const parent=event.currentTarget;const target=event.target;// Figure out which direct child was hovered\nconst children=Array.from(parent.children);const hoveredChild=children.find(child=>child.contains(target));if(!hoveredChild)return;children.forEach(sibling=>{const el=sibling;el.style.transition=transition;if(sibling===hoveredChild){el.style.opacity=\"1\";//el.style.filter = \"blur(0px)\"\n}else{el.style.opacity=\"0.3\";//el.style.filter = \"blur(2px)\"\n}});},onMouseLeave(event){const parent=event.currentTarget;if(!parent)return;const children=Array.from(parent.children);children.forEach(sibling=>{const el=sibling;el.style.transition=transition;el.style.opacity=\"1\";//el.style.filter = \"blur(0px)\"\n});}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withHoverDimStack(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...HoverDimStack(props)});};}withHoverDimStack.displayName=\"HoverDimStack\";\nexport const __FramerMetadata__ = {\"exports\":{\"HoverDimStack\":{\"type\":\"override\",\"name\":\"HoverDimStack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverDimStack\":{\"type\":\"reactHoc\",\"name\":\"withHoverDimStack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HoverDim.map","/**\n * ImagePreloader\n *\n * A preloader that displays a customizable image or SVG in the center, animates the image up and out, then fades the background. Animation and image are fully customizable.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";function ImagePreloader(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},lottieFile=\"\",useLottie=false,imageSize=120,backgroundColor,duration,backgroundFadeEasing,style}=props;const[phase,setPhase]=useState(\"init\")// init, loading, imageOut, done\n;const isStatic=useIsStaticRenderer();// Only show once per session (until reload)\nuseEffect(()=>{if(typeof window===\"undefined\")return;const key=\"__framerImagePreloaderShown\";if(window[key]){startTransition(()=>setPhase(\"done\"));}else{window[key]=true;}},[]);// Strict scroll blocking while preloader is visible\nuseEffect(()=>{if(typeof window===\"undefined\"||phase===\"done\"){return;}const originalOverflow=document.body.style.overflow;const originalPosition=document.body.style.position;// 1. Lock the body\ndocument.body.style.overflow=\"hidden\";document.body.style.position=\"relative\";// 2. Prevent wheel & touchmove\nconst preventScroll=e=>e.preventDefault();window.addEventListener(\"wheel\",preventScroll,{passive:false});window.addEventListener(\"touchmove\",preventScroll,{passive:false});// 3. Prevent keyboard scroll\nconst preventKeys=e=>{const keys=[\" \",\"ArrowUp\",\"ArrowDown\",\"PageUp\",\"PageDown\",\"Home\",\"End\"];if(keys.includes(e.key)){e.preventDefault();}};window.addEventListener(\"keydown\",preventKeys,{passive:false});// Cleanup function (runs when phase changes to \"done\" or component unmounts)\nreturn()=>{document.body.style.overflow=originalOverflow;document.body.style.position=originalPosition;window.removeEventListener(\"wheel\",preventScroll);window.removeEventListener(\"touchmove\",preventScroll);window.removeEventListener(\"keydown\",preventKeys);};},[phase]);useEffect(()=>{if(isStatic)return;// Only animate exit, not enter\nconst t1=setTimeout(()=>{startTransition(()=>setPhase(\"imageOut\"));},duration*1e3);const t2=setTimeout(()=>{startTransition(()=>setPhase(\"done\"));},duration*1e3+700);return()=>{clearTimeout(t1);clearTimeout(t2);};},[duration,isStatic]);if(phase===\"done\")return null;// Animation states\nlet imageTranslateY=0;let imageOpacity=1;if(phase===\"imageOut\"){imageTranslateY=-(props.exitOffset||80);imageOpacity=0;}const bgOpacity=phase===\"imageOut\"?0:1;const bgEasing=backgroundFadeEasing===\"custom\"?props.backgroundFadeEasingCustom:backgroundFadeEasing;const transition=`opacity 0.7s ${bgEasing}`;// Image transition\nconst imageEasing=props.imageEasing===\"custom\"?props.imageEasingCustom:props.imageEasing||\"cubic-bezier(.7,.2,.2,1)\";const imageDuration=props.imageDuration||.7;const imageTransitionType=props.imageTransitionType||\"timing\";const imageSpring=props.imageSpring||{stiffness:170,damping:26,mass:1};let imageTransitionString=`opacity ${imageDuration}s ${imageEasing}, transform ${imageDuration}s ${imageEasing}`;if(imageTransitionType===\"spring\"){imageTransitionString=`opacity ${imageDuration}s ${imageEasing}, transform ${imageDuration}s ${imageEasing}`;}return /*#__PURE__*/_jsx(\"div\",{style:{...style,// CRITICAL FIX: Ensure the preloader fully covers the viewport\nposition:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",// Existing styles\nbackground:backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition,opacity:bgOpacity,// Block clicks/interaction\npointerEvents:phase===\"done\"?\"none\":\"all\",zIndex:9999,overflow:\"hidden\"},\"aria-label\":\"Loading\",role:\"status\",children:/*#__PURE__*/_jsx(\"div\",{style:{width:imageSize,height:imageSize,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition:imageTransitionString,transform:`translateY(${imageTranslateY}px)`,opacity:imageOpacity,willChange:\"transform, opacity\",userSelect:\"none\",zIndex:1},children:useLottie&&lottieFile?/*#__PURE__*/_jsx(LottiePlayer,{file:lottieFile,size:imageSize}):/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt||\"Preloader Image\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",display:\"block\"}})})});}// LottiePlayer: minimal Lottie renderer using <iframe> for Framer (no npm deps)\nfunction LottiePlayer({file,size}){if(!file)return null;// Use lottiefiles.com embed if .json, else fallback\nconst isJson=file.endsWith(\".json\");if(!isJson)return null;// Use lottiefiles embed player\nconst src=`https://lottiefiles.com/iframe/${encodeURIComponent(file)}`;// But lottiefiles.com/iframe/ expects a lottiefiles asset id, not a raw .json url\n// So fallback to local player\nreturn /*#__PURE__*/_jsx(\"iframe\",{srcDoc:`<html style=\"height:100%;\"><body style=\"margin:0;display:flex;align-items:center;justify-content:center;background:transparent;height:100%;\"><script src=\"https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js\"></script><lottie-player src=\"${file}\" background=\"transparent\" speed=\"1\" style=\"width:100%;height:100%\" loop autoplay></lottie-player></body></html>`,style:{width:size,height:size,border:\"none\",background:\"transparent\"},title:\"Lottie Animation\",\"aria-label\":\"Lottie Animation\",allow:\"autoplay\"});}addPropertyControls(ImagePreloader,{useLottie:{type:ControlType.Boolean,title:\"Use Lottie/JSON\",defaultValue:false,enabledTitle:\"Lottie\",disabledTitle:\"Image/SVG\"},lottieFile:{type:ControlType.File,allowedFileTypes:[\"json\"],title:\"Lottie File\",hidden:({useLottie})=>!useLottie},image:{type:ControlType.ResponsiveImage,title:\"Image/SVG\",hidden:({useLottie})=>!!useLottie},imageSize:{type:ControlType.Number,title:\"Image Size\",// defaultValue: 150, 👈 REMOVED DEFAULT VALUE HERE\nmin:24,max:320,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:2,min:.5,max:10,step:.1},backgroundFadeEasing:{type:ControlType.Enum,title:\"Background Fade Easing\",defaultValue:\"cubic-bezier(.7,.2,.2,1)\",options:[\"ease\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"cubic-bezier(.7,.2,.2,1)\",\"cubic-bezier(.25,.46,.45,.94)\",\"cubic-bezier(.55,.085,.68,.53)\",\"cubic-bezier(.25,.1,.25,1)\",\"cubic-bezier(.175,.885,.32,1.275)\",\"custom\"],optionTitles:[\"Ease\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Smooth\",\"Ease Out Quad\",\"Ease In Cubic\",\"Ease Out Quart\",\"Back Out\",\"Custom\"]},backgroundFadeEasingCustom:{type:ControlType.String,title:\"Custom Background Fade Easing\",defaultValue:\"cubic-bezier(.7,.2,.2,1)\",placeholder:\"cubic-bezier(x1,y1,x2,y2)\",hidden:({backgroundFadeEasing})=>backgroundFadeEasing!==\"custom\"},imageEasing:{type:ControlType.Enum,title:\"Image Easing\",defaultValue:\"cubic-bezier(.7,.2,.2,1)\",options:[\"ease\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"cubic-bezier(.7,.2,.2,1)\",\"cubic-bezier(.25,.46,.45,.94)\",\"cubic-bezier(.55,.085,.68,.53)\",\"cubic-bezier(.25,.1,.25,1)\",\"cubic-bezier(.175,.885,.32,1.275)\",\"custom\"],optionTitles:[\"Ease\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Smooth\",\"Ease Out Quad\",\"Ease In Cubic\",\"Ease Out Quart\",\"Back Out\",\"Custom\"]},imageEasingCustom:{type:ControlType.String,title:\"Custom Image Easing\",defaultValue:\"cubic-bezier(.7,.2,.2,1)\",placeholder:\"cubic-bezier(x1,y1,x2,y2)\",hidden:({imageEasing})=>imageEasing!==\"custom\"},imageDuration:{type:ControlType.Number,title:\"Image Duration (s)\",defaultValue:.7,min:.1,max:3,step:.01},imageTransitionType:{type:ControlType.Enum,title:\"Image Transition Type\",options:[\"timing\",\"spring\"],optionTitles:[\"Timing\",\"Spring\"],defaultValue:\"timing\"},imageSpring:{type:ControlType.Object,title:\"Image Spring Physics\",controls:{stiffness:{type:ControlType.Number,defaultValue:170,min:1,max:1e3,step:1,title:\"Stiffness\"},damping:{type:ControlType.Number,defaultValue:26,min:1,max:100,step:1,title:\"Damping\"},mass:{type:ControlType.Number,defaultValue:1,min:.1,max:10,step:.01,title:\"Mass\"}},defaultValue:{stiffness:170,damping:26,mass:1},hidden:({imageTransitionType})=>imageTransitionType!==\"spring\"},exitOffset:{type:ControlType.Number,title:\"Exit Offset (px)\",defaultValue:80,min:10,max:400,step:1}});export default ImagePreloader;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImagePreloader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImagePreloader.map"],"mappings":"mXAA2C,SAAgB,GAAe,CAAC,IAAM,EAAW,4CAA4C,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,CAAC,YAAY,EAAM,CAAC,IAAM,EAAO,EAAM,cAAoB,EAAO,EAAM,OAC5O,EAAS,MAAM,KAAK,EAAO,SAAS,CAAO,EAAa,EAAS,KAAK,GAAO,EAAM,SAAS,EAAO,CAAC,CAAK,GAAoB,EAAS,QAAQ,GAAS,CAAC,IAAM,EAAG,EAAQ,EAAG,MAAM,WAAW,EAAc,IAAU,EAAc,EAAG,MAAM,QAAQ,IACpP,EAAG,MAAM,QAAQ,OACpB,EAAG,aAAa,EAAM,CAAC,IAAM,EAAO,EAAM,cAAkB,GAA6B,MAAM,KAAK,EAAO,SAAS,CAAU,QAAQ,GAAS,CAAC,IAAM,EAAG,EAAQ,EAAG,MAAM,WAAW,EAAW,EAAG,MAAM,QAAQ,KAClN,EAAG,CAAqJ,SAAgB,EAAkB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAc,EAAM,CAAC,CAAC,mBAJ5R,IAI4B,IAAmF,CAAiL,EAAkB,YAAY,mBCG7L,SAAS,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,oBAAoB,CAAC,aA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