{"version":3,"file":"VideoDisplay.C4p8SCaT.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/hpO33gi9SOEz0yobhTDx/3Gi0NL1rH7LIX0mCgJ7B/GlobalStore.js","https:/framerusercontent.com/modules/vz511SVBRZlsC4unwdZf/PReqCuVSw1iI2znnfWeZ/TextDisplay.js","https:/framerusercontent.com/modules/AZxRhMYRkrhQo2gAymPa/2TzxA5tN8kK6vW0CrmZV/VideoDisplay.js"],"sourcesContent":["import{useState}from\"react\";let globalSetLink=null;export function useGlobalLink(){const[link,setLink]=useState(\"\");globalSetLink=setLink;return link;}export function setGlobalLink(link){if(globalSetLink)globalSetLink(link);}\nexport const __FramerMetadata__ = {\"exports\":{\"useGlobalLink\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setGlobalLink\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlobalStore.map","// import { useGlobalLink, setGlobalLink } from \"./GlobalStore.tsx\"\n// export default function TextDisplay() {\n//     const clickedLink = useGlobalLink()\n//     // Hide component entirely until an image is selected\n//     if (!clickedLink) return null\n//     // Overlay click handler: close only if clicked directly on overlay\n//     function handleOverlayClick(e: React.MouseEvent<HTMLDivElement>) {\n//         if (e.target === e.currentTarget) setGlobalLink(\"\")\n//     }\n//     return (\n//         <div\n//             onClick={handleOverlayClick}\n//             style={{\n//                 position: \"relative\",\n//                 width: \"100vw\",\n//                 height: \"100vh\",\n//                 background: \"rgba(0, 0, 0, 0.6)\",\n//                 overflow: \"hidden\",\n//                 display: \"flex\",\n//                 alignItems: \"center\",\n//                 justifyContent: \"center\",\n//             }}\n//         >\n//             <img\n//                 src={clickedLink}\n//                 alt=\"Clicked\"\n//                 style={{\n//                     maxWidth: \"70vw\",\n//                     maxHeight: \"60vh\",\n//                     objectFit: \"contain\",\n//                     borderRadius: 18,\n//                     boxShadow: \"0 8px 32px rgba(0,0,0,0.19)\",\n//                 }}\n//             />\n//         </div>\n//     )\n// }\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useGlobalLink,setGlobalLink}from\"https://framerusercontent.com/modules/hpO33gi9SOEz0yobhTDx/3Gi0NL1rH7LIX0mCgJ7B/GlobalStore.js\";export default function TextDisplay(){const clickedLink=useGlobalLink();if(!clickedLink)return null;function handleOverlayClick(){setGlobalLink(\"\");}return /*#__PURE__*/_jsx(\"div\",{onClick:handleOverlayClick,style:{position:\"relative\",width:\"100vw\",height:\"100vh\",background:\"rgba(0, 0, 0, 0.6)\",overflow:\"hidden\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"img\",{src:clickedLink,alt:\"Clicked\",style:{maxWidth:\"70vw\",maxHeight:\"60vh\",objectFit:\"contain\",borderRadius:18,boxShadow:\"0 8px 32px rgba(0,0,0,0.19)\"}})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextDisplay.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useGlobalLink,setGlobalLink}from\"https://framerusercontent.com/modules/hpO33gi9SOEz0yobhTDx/3Gi0NL1rH7LIX0mCgJ7B/GlobalStore.js\";export default function VideoDisplay(){const clickedLink=useGlobalLink();console.log(clickedLink)// Debug\n;if(!clickedLink)return null;function handleOverlayClick(e){if(e.target===e.currentTarget)setGlobalLink(\"\");}return /*#__PURE__*/_jsx(\"div\",{onClick:handleOverlayClick,style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",background:\"rgba(0,0,0,0.7)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:9999},children:/*#__PURE__*/_jsx(\"video\",{src:clickedLink,controls:true,autoPlay:true,muted:true,playsInline:true,style:{maxWidth:\"90vw\",maxHeight:\"80vh\",borderRadius:18,boxShadow:\"0 8px 32px rgba(0,0,0,0.19)\"}})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoDisplay.map"],"mappings":"2JAAmD,SAAgB,GAAe,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,GAAG,CAAuB,MAAtB,GAAc,EAAe,EAAM,SAAgB,EAAc,EAAK,CAAI,GAAc,EAAc,EAAK,oBAAnM,CAAI,EAAc,QCqCqI,SAAwB,GAAa,CAAC,IAAM,EAAY,GAAe,CAAC,GAAG,CAAC,EAAY,OAAO,KAAK,SAAS,GAAoB,CAAC,EAAc,GAAG,CAAE,OAAoB,EAAK,MAAM,CAAC,QAAQ,EAAmB,MAAM,CAAC,SAAS,WAAW,MAAM,QAAQ,OAAO,QAAQ,WAAW,qBAAqB,SAAS,SAAS,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,UAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,UAAU,MAAM,CAAC,SAAS,OAAO,UAAU,OAAO,UAAU,UAAU,aAAa,GAAG,UAAU,8BAA8B,CAAC,CAAC,CAAC,CAAC,kBAAvsB,IAAwI,ICrCA,SAAwB,GAAc,CAAC,IAAM,EAAY,GAAe,CAC1P,GAD2P,QAAQ,IAAI,EAAY,CAChR,CAAC,EAAY,OAAO,KAAK,SAAS,EAAmB,EAAE,CAAI,EAAE,SAAS,EAAE,eAAc,EAAc,GAAG,CAAE,OAAoB,EAAK,MAAM,CAAC,QAAQ,EAAmB,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,OAAO,QAAQ,WAAW,kBAAkB,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,KAAK,CAAC,SAAsB,EAAK,QAAQ,CAAC,IAAI,EAAY,SAAS,GAAK,SAAS,GAAK,MAAM,GAAK,YAAY,GAAK,MAAM,CAAC,SAAS,OAAO,UAAU,OAAO,aAAa,GAAG,UAAU,8BAA8B,CAAC,CAAC,CAAC,CAAC,kBADpf,IAAwI"}