{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ByKve4Zodze0dYZSnazr/M4maZ4z8bwqTrIYUZSGe/Conditional_Rander.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const IPINFO_TOKEN=\"3ec68d8fd0c901\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n */export function withLocationVisibility(Component){return props=>{const[isVisible,setIsVisible]=useState(true)// Default is hidden\n;useEffect(()=>{async function fetchLocation(){try{const response=await fetch(`https://ipinfo.io?token=${IPINFO_TOKEN}`);const json=await response.json();// Set visible to true if not in India\nsetIsVisible(json.country==\"IN\");}catch(error){console.error(\"Error fetching IP information:\",error);}}fetchLocation();},[]);if(!isVisible){return null// Component will not render if hidden\n;}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLocationVisibility\":{\"type\":\"reactHoc\",\"name\":\"withLocationVisibility\",\"annotations\":{\"framerIntrinsicHeight\":\"100\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Conditional_Rander.map"],
  "mappings": "uDAAiF,IAAMA,EAAa,iBAI1F,SAASC,EAAuBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAUC,CAAY,EAAEC,EAAS,EAAI,EAEc,OAD5HC,EAAU,IAAI,CAAC,eAAeC,GAAe,CAAC,GAAG,CAAuE,IAAMC,EAAK,MAAlE,MAAM,MAAM,2BAA2BT,GAAc,GAA4B,KAAK,EACxJK,EAAaI,EAAK,SAAS,IAAI,CAAE,OAAOC,EAAN,CAAa,QAAQ,MAAM,iCAAiCA,CAAK,CAAE,CAAC,CAACF,EAAc,CAAE,EAAE,CAAC,CAAC,EAAMJ,EAC3GO,EAAKT,EAAU,CAAC,GAAGC,CAAK,CAAC,EADoG,IAClG,CAAE",
  "names": ["IPINFO_TOKEN", "withLocationVisibility", "Component", "props", "isVisible", "setIsVisible", "ye", "ue", "fetchLocation", "json", "error", "p"]
}
