{"version":3,"file":"ImageViewer.CXq02OfF.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/kAWbXovLAQn1Mb1ZCl8H/Rs5yn11EPtgfJma12QUe/ImageViewer.js"],"sourcesContent":["/*\n * v1.0.0\n * https://framer.today/license\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";export function withLightboxEffect(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){const images=ref.current.querySelectorAll(\"img\");const openLightbox=img=>{const lightbox=document.createElement(\"div\");lightbox.style.position=\"fixed\";lightbox.style.top=\"0\";lightbox.style.left=\"0\";lightbox.style.width=\"100%\";lightbox.style.height=\"100%\";lightbox.style.backgroundColor=\"rgba(0, 0, 0, 0.8)\";lightbox.style.display=\"flex\";lightbox.style.justifyContent=\"center\";lightbox.style.alignItems=\"center\";lightbox.style.zIndex=\"9999\";const lightboxImg=img.cloneNode();lightboxImg.style.maxWidth=\"80%\";lightboxImg.style.maxHeight=\"80%\";lightboxImg.style.objectFit=\"contain\";lightbox.appendChild(lightboxImg);document.body.appendChild(lightbox);// Close lightbox on click\nlightbox.addEventListener(\"click\",()=>{document.body.removeChild(lightbox);});};images.forEach(img=>{img.addEventListener(\"click\",()=>openLightbox(img));});}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLightboxEffect\":{\"type\":\"reactHoc\",\"name\":\"withLightboxEffect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageViewer.map"],"mappings":"yHAGkF,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,IAAI,EACD,OADG,MAAc,CAAC,GAAG,EAAI,QAAQ,CAAC,IAAM,EAAO,EAAI,QAAQ,iBAAiB,KAAK,EAAQ,EAAa,GAAK,CAAC,IAAM,EAAS,SAAS,cAAc,KAAK,EAAE,EAAS,MAAM,SAAS,QAAQ,EAAS,MAAM,IAAI,IAAI,EAAS,MAAM,KAAK,IAAI,EAAS,MAAM,MAAM,OAAO,EAAS,MAAM,OAAO,OAAO,EAAS,MAAM,gBAAgB,qBAAqB,EAAS,MAAM,QAAQ,OAAO,EAAS,MAAM,eAAe,SAAS,EAAS,MAAM,WAAW,SAAS,EAAS,MAAM,OAAO,OAAO,IAAM,EAAY,EAAI,UAAU,EAAE,EAAY,MAAM,SAAS,MAAM,EAAY,MAAM,UAAU,MAAM,EAAY,MAAM,UAAU,UAAU,EAAS,YAAY,CAAW,EAAE,SAAS,KAAK,YAAY,CAAQ,EAC50B,EAAS,iBAAiB,YAAY,CAAC,SAAS,KAAK,YAAY,CAAQ,CAAE,CAAC,CAAE,EAAE,EAAO,QAAQ,GAAK,CAAC,EAAI,iBAAiB,YAAY,EAAa,CAAG,CAAC,CAAE,CAAC,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,iBADnN,IAAoC"}