{"version":3,"file":"TextDisplay.B3T_69Pn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hpO33gi9SOEz0yobhTDx/3Gi0NL1rH7LIX0mCgJ7B/GlobalStore.js","https:/framerusercontent.com/modules/mkUb1iGdMvEGKpIPj4Jp/LXxkpky2baxjTZDtvbAr/ImageClicker.js","https:/framerusercontent.com/modules/vz511SVBRZlsC4unwdZf/GbfVfqQXLG0HTTBDcY2e/TextDisplay.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{jsx as _jsx}from\"react/jsx-runtime\";import{setGlobalLink}from\"https://framerusercontent.com/modules/hpO33gi9SOEz0yobhTDx/3Gi0NL1rH7LIX0mCgJ7B/GlobalStore.js\";import{addPropertyControls,ControlType}from\"framer\";export default function ImageClicker({imageURL}){return /*#__PURE__*/_jsx(\"img\",{src:imageURL,style:{width:\"100%\",height:\"100%\",cursor:\"pointer\",objectFit:\"cover\"},onClick:()=>setGlobalLink(imageURL)});}addPropertyControls(ImageClicker,{imageURL:{type:ControlType.Image,title:\"Image\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageClicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageClicker.map","import{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();// Hide component entirely until an image is selected\nif(!clickedLink)return null;// Overlay click handler: close only if clicked directly on overlay\nfunction handleOverlayClick(e){if(e.target===e.currentTarget)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\"},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"],"mappings":"kQAAmD,SAAgB,GAAe,CAAC,GAAK,CAAC,EAAK,EAAQ,CAAC,EAAS,GAAG,CAAuB,OAAtB,EAAc,EAAe,CAAM,UAAgB,EAAc,EAAK,CAAC,AAAG,GAAc,EAAc,EAAK,AAAE,gBAAjM,AAAhC,GAA4B,CAAI,EAAc,OCA2K,SAAwB,EAAa,CAAC,WAAS,CAAC,CAAC,MAAoB,GAAK,MAAM,CAAC,IAAI,EAAS,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,UAAU,UAAU,OAAQ,EAAC,QAAQ,IAAI,EAAc,EAAS,AAAC,EAAC,AAAE,cAAA,AAApa,GAA2C,IAA0H,IAAoD,CAA2M,EAAoB,EAAa,CAAC,SAAS,CAAC,KAAK,EAAY,MAAM,MAAM,OAAQ,CAAC,EAAC,GCApU,SAAwB,GAAa,CAAC,IAAM,EAAY,GAAe,CAC1P,IAAI,EAAY,OAAO,KACvB,SAAS,EAAmB,EAAE,CAAC,AAAG,EAAE,SAAS,EAAE,eAAc,EAAc,GAAG,AAAE,OAAoB,GAAK,MAAM,CAAC,QAAQ,EAAmB,MAAM,CAAC,SAAS,WAAW,MAAM,QAAQ,OAAO,QAAQ,WAAW,qBAAqB,SAAS,SAAS,QAAQ,OAAO,WAAW,SAAS,eAAe,QAAS,EAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,UAAU,MAAM,CAAC,SAAS,OAAO,UAAU,OAAO,UAAU,UAAU,aAAa,GAAG,UAAU,6BAA8B,CAAC,EAAC,AAAC,EAAC,AAAE,cAF3e,GAA2C,IAAwI"}