{"version":3,"file":"ImageGallery.CyrJD7yn.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/5b0m2qhKkiVwh66Zu5WT/aso4AHWflNeMS2HD6UP0/ImageGallery.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * Image Zoom Overlay\n * \n * A single image that zooms to fullscreen when clicked.\n * \n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * \n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ImageZoomOverlay(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image\"},borderRadius=8,overlayColor=\"rgba(0, 0, 0, 0.8)\",hoverEffect=true,hoverScale=1.05,useCursorIcon=true,style}=props;const[isZoomed,setIsZoomed]=useState(false);const handleImageClick=()=>{startTransition(()=>{setIsZoomed(!isZoomed);});};const handleOverlayClick=e=>{if(e.target===e.currentTarget){startTransition(()=>{setIsZoomed(false);});}};// Prevent scrolling when overlay is open\nuseEffect(()=>{if(isZoomed&&typeof document!==\"undefined\"){document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=\"\";};}},[isZoomed]);// Handle escape key to close overlay\nuseEffect(()=>{const handleKeyDown=e=>{if(e.key===\"Escape\"&&isZoomed){startTransition(()=>{setIsZoomed(false);});}};if(typeof window!==\"undefined\"){window.addEventListener(\"keydown\",handleKeyDown);return()=>window.removeEventListener(\"keydown\",handleKeyDown);}},[isZoomed]);// Don't render anything in thumbnail mode\nif(RenderTarget.current()===RenderTarget.thumbnail){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius},children:/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:\"#EEEEEE\",borderRadius,width:\"100%\",height:\"100%\"}})});}return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius,overflow:\"hidden\",...style},children:[/*#__PURE__*/_jsx(motion.div,{layoutId:`zoomable-image-${image.src}`,style:{borderRadius,overflow:\"hidden\",cursor:useCursorIcon?\"zoom-in\":\"pointer\",width:\"100%\",height:\"100%\"},onClick:handleImageClick,whileHover:hoverEffect?{scale:hoverScale}:undefined,transition:{duration:.2},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})}),/*#__PURE__*/_jsx(AnimatePresence,{children:isZoomed&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:overlayColor,zIndex:1e3,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",padding:\"40px\"},onClick:handleOverlayClick,children:/*#__PURE__*/_jsx(motion.div,{layoutId:\"zoomable-image\",style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:useCursorIcon?\"zoom-out\":\"pointer\",backgroundColor:\"transparent\"},onClick:handleImageClick,transition:{type:\"spring\",stiffness:300,damping:30},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{maxWidth:\"90vw\",maxHeight:\"90vh\",objectFit:\"contain\",borderRadius,boxShadow:\"0 8px 30px rgba(0, 0, 0, 0.2)\"}})})})})]});}addPropertyControls(ImageZoomOverlay,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:40,step:1,unit:\"px\"},overlayColor:{type:ControlType.Color,title:\"Overlay\",defaultValue:\"rgba(0, 0, 0, 0.8)\"},useCursorIcon:{type:ControlType.Boolean,title:\"Zoom Cursor\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},hoverEffect:{type:ControlType.Boolean,title:\"Hover Effect\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.05,min:1,max:1.5,step:.01,hidden:({hoverEffect})=>!hoverEffect}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageZoomOverlay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageGallery.map"],"mappings":"4QAUG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,QAAQ,CAAC,eAAa,EAAE,eAAa,qBAAqB,cAAY,GAAK,aAAW,KAAK,gBAAc,GAAK,SAAO,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAO,MAAqB,CAAC,MAAoB,CAAC,EAAY,CAAC,EAAS,EAAG,EAAS,EAAmB,GAAG,CAAI,EAAE,SAAS,EAAE,eAAe,MAAoB,CAAC,EAAY,GAAM,EAAG,EAGnP,OAFrP,MAAc,CAAC,GAAG,GAAU,OAAO,SAAW,IAAmD,MAAtC,UAAS,KAAK,MAAM,SAAS,aAAmB,CAAC,SAAS,KAAK,MAAM,SAAS,KAAQ,CAAC,EAAS,CAAC,CAC5J,MAAc,CAAC,IAAM,EAAc,GAAG,CAAI,EAAE,MAAM,UAAU,GAAU,MAAoB,CAAC,EAAY,GAAM,EAAG,EAAI,GAAU,IAAS,OAA8D,OAAjD,EAAO,iBAAiB,UAAU,EAAc,KAAW,EAAO,oBAAoB,UAAU,EAAc,EAAI,CAAC,EAAS,CAAC,CAC9Q,EAAa,SAAS,GAAG,EAAa,UAA+B,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,eAAa,CA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