{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/XrlbtoxWhAAordxPLVWc/L3hqCKPNpIyRjFVmCpho/MyComponent.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const APP_SCHEME=\"thrylapp://profile\";const PLAY_STORE_URL=\"https://play.google.com/store/apps/details?id=com.thryll&hl=en\";const APP_STORE_URL=\"https://apps.apple.com/in/app/thryl/id6744701557\";const DESKTOP_URL=\"https://google.com\";function isMobile(){if(typeof navigator===\"undefined\")return false;const userAgent=navigator.userAgent||navigator.vendor||\"\";return/android|iphone|ipad|ipod/i.test(userAgent);}export default function MyComponent(){const[loading,setLoading]=useState(true);useEffect(()=>{if(typeof window===\"undefined\"||typeof navigator===\"undefined\")return;// Show loader for 1 second\nconst loaderTimer=setTimeout(()=>{setLoading(false);if(!isMobile()){// Desktop: open website\n// window.location.href = DESKTOP_URL;\nreturn;}const userAgent=navigator.userAgent||navigator.vendor||\"\";const isIOS=/iPad|iPhone|iPod/.test(userAgent);const fallbackUrl=isIOS?APP_STORE_URL:PLAY_STORE_URL;// 1\uFE0F\u20E3 Try to open the app\nconst iframe=document.createElement(\"iframe\");iframe.style.display=\"none\";iframe.src=APP_SCHEME;if(document&&document.body){document.body.appendChild(iframe);}// 2\uFE0F\u20E3 If the app doesn't open, fallback to store after 1 second\nconst redirectTimer=setTimeout(()=>{if(iframe&&document.body.contains(iframe)){document.body.removeChild(iframe);}window.location.href=fallbackUrl;},1e3);// Clean up if unmounted early\nreturn()=>{clearTimeout(redirectTimer);if(iframe&&document.body.contains(iframe)){document.body.removeChild(iframe);}};},1500);return()=>clearTimeout(loaderTimer);},[]);if(loading){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",backgroundColor:\"black\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:9999},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:60,height:60,border:\"6px solid #fff\",borderTop:\"6px solid transparent\",borderRadius:\"50%\",animation:\"spin 1s linear infinite\"}}),/*#__PURE__*/_jsx(\"style\",{children:`\n            @keyframes spin {\n              0% { transform: rotate(0deg); }\n              100% { transform: rotate(360deg); }\n            }\n          `})]});}return /*#__PURE__*/_jsx(\"div\",{});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MyComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MyComponent.map"],
  "mappings": "kIAAAA,IAA+F,IAAMC,EAAW,qBAA2BC,EAAe,iEAAuEC,EAAc,mDAA0F,SAASC,GAAU,CAAC,GAAG,OAAO,UAAY,IAAY,MAAO,GAAM,IAAMC,EAAU,UAAU,WAAW,UAAU,QAAQ,GAAG,MAAM,4BAA4B,KAAKA,CAAS,CAAE,CAAgB,SAARC,GAA8B,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAI,EAM7Z,OAN+ZC,EAAU,IAAI,CAAC,GAAG,OAAO,OAAS,KAAa,OAAO,UAAY,IAAY,OACtpB,IAAMC,EAAY,WAAW,IAAI,CAAmB,GAAlBH,EAAW,EAAK,EAAK,CAACJ,EAAS,EAEjE,OAAQ,IAAMC,EAAU,UAAU,WAAW,UAAU,QAAQ,GAAwDO,EAAzC,mBAAmB,KAAKP,CAAS,EAA0BQ,EAAcC,EACjJC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,MAAM,QAAQ,OAAOA,EAAO,IAAIC,EAAc,UAAU,SAAS,MAAM,SAAS,KAAK,YAAYD,CAAM,EAC5J,IAAME,EAAc,WAAW,IAAI,CAAIF,GAAQ,SAAS,KAAK,SAASA,CAAM,GAAG,SAAS,KAAK,YAAYA,CAAM,EAAG,OAAO,SAAS,KAAKH,CAAY,EAAE,GAAG,EACxJ,MAAM,IAAI,CAAC,aAAaK,CAAa,EAAKF,GAAQ,SAAS,KAAK,SAASA,CAAM,GAAG,SAAS,KAAK,YAAYA,CAAM,CAAG,CAAE,EAAE,IAAI,EAAE,MAAM,IAAI,aAAaJ,CAAW,CAAE,EAAE,CAAC,CAAC,EAAKJ,EAA6BW,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,OAAO,QAAQ,gBAAgB,QAAQ,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,IAAI,EAAE,SAAS,CAAcC,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,GAAG,OAAO,iBAAiB,UAAU,wBAAwB,aAAa,MAAM,UAAU,yBAAyB,CAAC,CAAC,EAAeA,EAAK,QAAQ,CAAC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,WAKlkB,CAAC,CAAC,CAAC,CAAC,EAAuBA,EAAK,MAAM,CAAC,CAAC,CAAE",
  "names": ["init_ssg_sandbox_shims", "APP_SCHEME", "PLAY_STORE_URL", "APP_STORE_URL", "isMobile", "userAgent", "MyComponent", "loading", "setLoading", "ye", "ue", "loaderTimer", "fallbackUrl", "APP_STORE_URL", "PLAY_STORE_URL", "iframe", "APP_SCHEME", "redirectTimer", "u", "p"]
}
