{"version":3,"file":"Image_zoom.BpTFa8cN.mjs","names":["ArrowTopRight","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","React.useRef","React.useState","React.useMemo","__esmMin","oe","ie","le","init_ssg_sandbox_shims","x","_e","pe","p","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","window","motion","MotionConfigContext","LayoutGroup","init_framer_motion_DhsWWWsN","getFonts","addPropertyControls","cx","init_framer_Bf4_tcb2","withCSS","useVariantState","useComponentViewport","ControlType","useLocaleInfo","RichText","addFonts","withOptimizedAppearEffect","withFX","init_bO_RTuVF0","Icon","addPropertyOverrides","variants","nextOverrides","variant","overrides","ArrowTopRightFonts","ArrowTopRightWithFXWithOptimizedAppearEffect","RichTextWithFXWithOptimizedAppearEffect","cycleOrder","serializationHash","variantClassNames","transition1","animation","animation1","animation2","animation3","Transition","Variants","humanReadableVariantMap","getProps","createLayoutDependency","Framernv0zdpwTn","init_nv0zdpwTn","config","transition","value","contextValue","props","fallbackRef","refBinding","ref","defaultLayoutId","restProps","layoutDependency","scopingClassNames","isDisplayed","baseVariant","layoutId","gestureHandlers","className","classNames","style","gestureVariant","ScrollScaleImage","imgRef","rafRef","scaleRef","minScale","setTick","imageSrc","image","el","scrollRoot","parent","node","doInitialCompute","rect","vpHeight","rootTop","elCenter","viewportCenter","distance","maxDistance","t","curveStrength","targetScale","maxScale","n","imgEl","compute","prev","smoothed","smoothness","onScroll","root","currentScale","init_Image_zoom"],"sources":["https:/framerusercontent.com/modules/9nieO63dvkeWR1rLqu2P/L0CMXNj9sCG4StjzeR7g/nv0zdpwTn.js","https:/framerusercontent.com/modules/W03ORNEvSalaYAE0vLi0/iR3v5eU3w7GmAB4xlb1c/Image_zoom.js"],"sourcesContent":["// Generated by Framer (a72a541)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX,withOptimizedAppearEffect}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import ArrowTopRight from\"https://framerusercontent.com/modules/9QQTzGbVGpHaxPvY2SfT/pJBynch8chJ7U8YLTmGw/bO_RTuVF0.js\";const ArrowTopRightFonts=getFonts(ArrowTopRight);const ArrowTopRightWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(withFX(ArrowTopRight));const RichTextWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(withFX(RichText));const cycleOrder=[\"bn9AbvYsy\",\"zM4Y5BbCu\",\"J9RF4PBtJ\",\"Rm61VBdib\",\"syUFDGBKm\",\"u7oTgPcm5\",\"DFNWCqCrE\"];const serializationHash=\"framer-JZHBZ\";const variantClassNames={bn9AbvYsy:\"framer-v-1tcwvsi\",DFNWCqCrE:\"framer-v-1ydoc35\",J9RF4PBtJ:\"framer-v-1n4gzt6\",Rm61VBdib:\"framer-v-1t0bten\",syUFDGBKm:\"framer-v-1r0w68i\",u7oTgPcm5:\"framer-v-1nbgoip\",zM4Y5BbCu:\"framer-v-6p3f9x\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const animation={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition1,x:0,y:0};const animation1={opacity:.001,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:20};const transition2={damping:30,delay:0,mass:1,stiffness:210,type:\"spring\"};const animation2={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition2,x:0,y:0};const animation3={opacity:.001,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:47};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Ribin Cursor\":\"bn9AbvYsy\",Airmeals:\"u7oTgPcm5\",NDA:\"J9RF4PBtJ\",Soon:\"Rm61VBdib\",thirdfloor:\"syUFDGBKm\",Trekkie:\"DFNWCqCrE\",Yulu:\"zM4Y5BbCu\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"bn9AbvYsy\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"bn9AbvYsy\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"Rm61VBdib\")return false;return true;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1tcwvsi\",className,classNames),\"data-framer-name\":\"Ribin Cursor\",layoutDependency:layoutDependency,layoutId:\"bn9AbvYsy\",ref:refBinding,style:{...style},...addPropertyOverrides({DFNWCqCrE:{\"data-framer-name\":\"Trekkie\"},J9RF4PBtJ:{\"data-framer-name\":\"NDA\"},Rm61VBdib:{\"data-framer-name\":\"Soon\"},syUFDGBKm:{\"data-framer-name\":\"thirdfloor\"},u7oTgPcm5:{\"data-framer-name\":\"Airmeals\"},zM4Y5BbCu:{\"data-framer-name\":\"Yulu\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(ArrowTopRightWithFXWithOptimizedAppearEffect,{__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation,animated:true,className:\"framer-vsvws7\",\"data-framer-appear-id\":\"vsvws7\",initial:animation1,layoutDependency:layoutDependency,layoutId:\"QcwxyNa8t\",optimized:true,style:{\"--apsq6k\":\"rgb(255, 255, 255)\",\"--fo2yib\":0}}),/*#__PURE__*/_jsx(RichTextWithFXWithOptimizedAppearEffect,{__fromCanvasComponent:true,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation2,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"View Ribin\"})})}),className:\"framer-1gj7sh1\",\"data-framer-appear-id\":\"1gj7sh1\",fonts:[\"CUSTOMV2;Neue Haas Grotesk Display Pro 55 Roman\"],initial:animation3,layoutDependency:layoutDependency,layoutId:\"sbf_bQvvC\",optimized:true,style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{J9RF4PBtJ:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({DFNWCqCrE:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"View Trekkie\"})})})},J9RF4PBtJ:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 18, 18)\"},children:\"View SFA\"})})})},Rm61VBdib:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"Coming Soon\"})})})},syUFDGBKm:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"View Thirfloor\"})})})},u7oTgPcm5:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"View Airmeals\"})})})},zM4Y5BbCu:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NVjI7TmV1ZSBIYWFzIEdyb3Rlc2sgRGlzcGxheSBQcm8gNTUgUm9tYW4=\",\"--framer-font-family\":'\"Neue Haas Grotesk Display Pro 55 Roman\", \"Neue Haas Grotesk Display Pro 55 Roman Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.4px\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-color\":\"rgb(255, 255, 255)\"},children:\"View Yulu\"})})})}},baseVariant,gestureVariant)})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-JZHBZ.framer-1w29wry, .framer-JZHBZ .framer-1w29wry { display: block; }\",\".framer-JZHBZ.framer-1tcwvsi { align-content: flex-end; align-items: flex-end; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 3px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 83px; }\",\".framer-JZHBZ .framer-vsvws7 { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 24px); position: relative; width: 24px; }\",\".framer-JZHBZ .framer-1gj7sh1 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-JZHBZ.framer-v-6p3f9x.framer-1tcwvsi, .framer-JZHBZ.framer-v-1n4gzt6.framer-1tcwvsi, .framer-JZHBZ.framer-v-1t0bten.framer-1tcwvsi, .framer-JZHBZ.framer-v-1r0w68i.framer-1tcwvsi, .framer-JZHBZ.framer-v-1nbgoip.framer-1tcwvsi, .framer-JZHBZ.framer-v-1ydoc35.framer-1tcwvsi { width: min-content; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 51\n * @framerIntrinsicWidth 83\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"zM4Y5BbCu\":{\"layout\":[\"auto\",\"auto\"]},\"J9RF4PBtJ\":{\"layout\":[\"auto\",\"auto\"]},\"Rm61VBdib\":{\"layout\":[\"auto\",\"auto\"]},\"syUFDGBKm\":{\"layout\":[\"auto\",\"auto\"]},\"u7oTgPcm5\":{\"layout\":[\"auto\",\"auto\"]},\"DFNWCqCrE\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framernv0zdpwTn=withCSS(Component,css,\"framer-JZHBZ\");export default Framernv0zdpwTn;Framernv0zdpwTn.displayName=\"Cursor 3\";Framernv0zdpwTn.defaultProps={height:51,width:83};addPropertyControls(Framernv0zdpwTn,{variant:{options:[\"bn9AbvYsy\",\"zM4Y5BbCu\",\"J9RF4PBtJ\",\"Rm61VBdib\",\"syUFDGBKm\",\"u7oTgPcm5\",\"DFNWCqCrE\"],optionTitles:[\"Ribin Cursor\",\"Yulu\",\"NDA\",\"Soon\",\"thirdfloor\",\"Airmeals\",\"Trekkie\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framernv0zdpwTn,[{explicitInter:true,fonts:[{cssFamilyName:\"Neue Haas Grotesk Display Pro 55 Roman\",source:\"custom\",style:\"normal\",uiFamilyName:\"Neue Haas Grotesk Display Pro\",url:\"https://framerusercontent.com/assets/tmLwqa5rh55YXw6gAs9GB7y6CY.woff2\",weight:\"500\"}]},...ArrowTopRightFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framernv0zdpwTn\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"51\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"zM4Y5BbCu\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"J9RF4PBtJ\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Rm61VBdib\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"syUFDGBKm\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"u7oTgPcm5\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"DFNWCqCrE\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"83\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./nv0zdpwTn.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ScrollScaleImage(props){const{image,minScale=2,maxScale=1,height=\"100vh\",smoothness=.12,curveStrength=2}=props;const ref=React.useRef(null);const imgRef=React.useRef(null)// <-- added\n;const rafRef=React.useRef(null);const scaleRef=React.useRef(minScale);const[,setTick]=React.useState(0);// Handle Framer image objects\nconst imageSrc=React.useMemo(()=>{if(!image)return\"\";if(typeof image===\"string\")return image;return image.src||image.url||image.imageUrl||image.fileUrl||image.data||\"\";},[image]);// --- INITIAL MEASURE BEFORE FIRST PAINT to prevent initial jitter ---\nReact.useLayoutEffect(()=>{const el=ref.current;if(!el)return;const getScrollParent=node=>{let parent=node?.parentElement;while(parent){const style=getComputedStyle(parent);if(/(auto|scroll)/.test(style.overflowY))return parent;parent=parent.parentElement;}return window;};const scrollRoot=getScrollParent(el);const doInitialCompute=()=>{// run the same compute logic once synchronously to set initial scaleRef\nconst rect=ref.current?.getBoundingClientRect();if(!rect)return;const vpHeight=scrollRoot instanceof Window?window.innerHeight:scrollRoot.clientHeight;const rootTop=scrollRoot instanceof Window?0:scrollRoot.getBoundingClientRect().top;const elCenter=rect.top+rect.height/2;const viewportCenter=rootTop+vpHeight/2;const distance=Math.abs(elCenter-viewportCenter);const maxDistance=vpHeight/2+rect.height/2;let t=Math.min(1,Math.max(0,distance/maxDistance))// 0=center, 1=out\n;t=Math.pow(t,curveStrength);const targetScale=maxScale+(minScale-maxScale)*t;// set without animation so first paint uses correct scale\nscaleRef.current=targetScale;// force one render so React applies the transform inline style\nsetTick(n=>(n+1)%1e6);};const imgEl=imgRef.current;if(imgEl){if(imgEl.complete){doInitialCompute();}else{imgEl.addEventListener(\"load\",doInitialCompute,{once:true});}}else{// no image element available — still attempt initial compute\ndoInitialCompute();}return()=>{if(imgEl)imgEl.removeEventListener(\"load\",doInitialCompute);};// intentionally only depends on imageSrc and curve params\n},[imageSrc,minScale,maxScale,curveStrength]);React.useEffect(()=>{const el=ref.current;if(!el)return;const getScrollParent=node=>{let parent=node?.parentElement;while(parent){const style=getComputedStyle(parent);if(/(auto|scroll)/.test(style.overflowY))return parent;parent=parent.parentElement;}return window;};const scrollRoot=getScrollParent(el);const compute=()=>{if(!ref.current)return;const rect=ref.current.getBoundingClientRect();const vpHeight=scrollRoot instanceof Window?window.innerHeight:scrollRoot.clientHeight;const rootTop=scrollRoot instanceof Window?0:scrollRoot.getBoundingClientRect().top;const elCenter=rect.top+rect.height/2;const viewportCenter=rootTop+vpHeight/2;const distance=Math.abs(elCenter-viewportCenter);const maxDistance=vpHeight/2+rect.height/2;let t=Math.min(1,Math.max(0,distance/maxDistance))// 0=center, 1=out\n;// Apply curve — exponential ease (higher curveStrength = more easing)\n// 0 stays 0, 1 stays 1, middle flattens\nt=Math.pow(t,curveStrength);const targetScale=maxScale+(minScale-maxScale)*t;const prev=scaleRef.current;const smoothed=prev+(targetScale-prev)*Math.min(1,smoothness*60);scaleRef.current=smoothed;setTick(n=>(n+1)%1e6);};const onScroll=()=>{if(rafRef.current)cancelAnimationFrame(rafRef.current);rafRef.current=requestAnimationFrame(compute);};compute();const root=scrollRoot===window?window:scrollRoot;root.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onScroll,{passive:true});return()=>{if(rafRef.current)cancelAnimationFrame(rafRef.current);root.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onScroll);};},[minScale,maxScale,smoothness,curveStrength,imageSrc]);const currentScale=scaleRef.current;return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height,overflow:\"hidden\",position:\"relative\",background:imageSrc?undefined:\"#eee\"},children:imageSrc?/*#__PURE__*/_jsx(\"img\",{ref:imgRef,src:imageSrc,alt:\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",transform:`scale(${currentScale})`,transformOrigin:\"center\",willChange:\"transform\",transition:\"transform 0.06s linear\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#999\"},children:\"Drop an image\"})});}addPropertyControls(ScrollScaleImage,{image:{type:ControlType.Image,title:\"Image\"},minScale:{type:ControlType.Number,title:\"Out Scale\",defaultValue:2,min:.5,max:5,step:.1},maxScale:{type:ControlType.Number,title:\"Center Scale\",defaultValue:1,min:.1,max:3,step:.05},height:{type:ControlType.String,title:\"Height\",defaultValue:\"100vh\"},smoothness:{type:ControlType.Number,title:\"Smoothness\",defaultValue:.12,min:.01,max:1,step:.01},curveStrength:{type:ControlType.Number,title:\"Curve\",defaultValue:2,min:1,max:5,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollScaleImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image_zoom.map"],"mappings":"A,wbACwjC,SAAS6C,EAAqB,EAAU,GAAGC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAuF,OAArFD,GAAU,QAAQ,GAASE,GAAS,OAAO,OAAOD,EAAcE,EAAUD,EAAQ,CAAC,EAASD,CAAc,C,wFAAjxB,EAAmBjB,EAAS9B,CAAa,EAAQ,EAA6CyC,EAA0BC,EAAO1C,CAAa,CAAC,EAAQ,EAAwCyC,EAA0BC,EAAOH,EAAQ,C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