{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/100qdyQ3jJ8EVd3LZT0G/7MrQFSucVH0TlmEvMuuq/Autoredirect_preturi.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";function delay(millis){return new Promise(resolve=>setTimeout(resolve,millis));}// async function autoredirectInSeconds(seconds) {\n//     await setTimeout(() => {}, 500)\n//     window.location.href = `http://oldapp.saloanelemagic.ro${window.location.pathname}`\n// }\n// Autoredirect function\nasync function autoredirectInSeconds(millis){console.log(\"Auto redirect starting...\");await delay(millis);// If you want to redirect inside the iframe itself\nwindow.location.href=`http://oldapp.saloanelemagic.ro${window.location.pathname}${window.location.search}`;// If you need to redirect the parent window, use:\n// window.top.location.href = `http://oldapp.saloanelemagic.ro${window.location.pathname}`\n}export function autoredirect(Component){return props=>{useEffect(()=>{console.log(\"HERE\");autoredirectInSeconds(100);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"autoredirect\":{\"type\":\"reactHoc\",\"name\":\"autoredirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Autoredirect_preturi.map"],
  "mappings": "yFAAwE,SAASA,EAAMC,EAAO,CAAC,OAAO,IAAI,QAAQC,GAAS,WAAWA,EAAQD,CAAM,CAAC,CAAE,CAKvJ,eAAeE,EAAsBF,EAAO,CAAC,QAAQ,IAAI,2BAA2B,EAAE,MAAMD,EAAMC,CAAM,EACxGG,EAAO,SAAS,KAAK,kCAAkCA,EAAO,SAAS,QAAQ,GAAGA,EAAO,SAAS,MAAM,EAExG,CAAQ,SAASC,EAAaC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,QAAQ,IAAI,MAAM,EAAEL,EAAsB,GAAG,CAAE,EAAE,CAAC,CAAC,EAAsBM,EAAKH,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["delay", "millis", "resolve", "autoredirectInSeconds", "window", "autoredirect", "Component", "props", "ue", "p"]
}
