{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/WDc6UzKaJ0DIouQlGX8Y/IC05Ah6KI7Hnf3TWzWpp/Auth.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withLoggedOut(Component){return props=>{const[showComponent,setShowComponent]=useState(true);useEffect(()=>{async function fetchData(){let url=new URL(\"https://staging.hdpiano.com/api/user/auth\");let currentDomain=window.location.hostname;if(currentDomain===\"hdpiano.com\"||currentDomain===\"staging.hdpiano.com\"){url.hostname=currentDomain;}const response=await fetch(url.toString());const json=await response.json();console.log(\"json\",json);setShowComponent(!json.isPaidUser);}fetchData();},[]);if(!showComponent)return null;return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLoggedOut\":{\"type\":\"reactHoc\",\"name\":\"withLoggedOut\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auth.map"],
  "mappings": "kIAAwF,SAASA,EAAcC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAcC,CAAgB,EAAEC,EAAS,EAAI,EAAoZ,OAAlZC,EAAU,IAAI,CAAC,eAAeC,GAAW,CAAC,IAAIC,EAAI,IAAI,IAAI,2CAA2C,EAAMC,EAAcC,EAAO,SAAS,UAAYD,IAAgB,eAAeA,IAAgB,yBAAuBD,EAAI,SAASC,GAA0D,IAAME,EAAK,MAAvC,MAAM,MAAMH,EAAI,SAAS,CAAC,GAA4B,KAAK,EAAE,QAAQ,IAAI,OAAOG,CAAI,EAAEP,EAAiB,CAACO,EAAK,UAAU,CAAE,CAACJ,EAAU,CAAE,EAAE,CAAC,CAAC,EAAMJ,EAA8CS,EAAKX,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAlD,IAAoD,CAAE",
  "names": ["withLoggedOut", "Component", "props", "showComponent", "setShowComponent", "ye", "ue", "fetchData", "url", "currentDomain", "window", "json", "p"]
}
