{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/wGrVxbpvoRgOaqaW1yAK/Nqekrs1tsF5dwGJoyDwk/Test.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// import { createStore } from \"https://framer.com/m/framer/store.js@^1.0.0\"\n// const useStore = createStore({\n//     isCaptive: false,\n// })\n// Allows us to safely handle the instagram user agent\nexport function withSafeAppLink(Component){return props=>{const handleClick=()=>{if(isCaptiveUserAgent()){window.location.href=\"/sign-up-instagram?isCaptive=true\";}else{console.log(\"User agent does not contain Instagram or LinkedIn.\");window.location.href=\"/app\";}};// const handleTap = () => {\n//     if (isCaptiveUserAgent()) {\n//         window.location.search = \"isCaptive=true\"\n//         // @ts-ignore\n//         props?.onTap()\n//     } else {\n//         console.log(\n//             \"User agent does not contain Instagram or LinkedIn.\"\n//         )\n//         window.location.href = \"/app\"\n//     }\n// }\n// if (captiveUserAgent) {\n//     return (\n//         <Component {...props} onClick={handleClick} onTap={() => {}} />\n//     )\n// }\nreturn /*#__PURE__*/_jsx(Component,{id:\"signUpButton\",...props,onClick:handleClick});};}const EmbeddedCaptiveSignUpStyle={position:\"absolute\",display:\"flex\",width:\"100vw\",height:\"100vh\",background:\"black\"};export function withAppRedirect(Component){return props=>{useEffect(()=>{if(!isCaptiveUserAgent()&&window.location.search.includes(\"isCaptive\")){window.location.href=\"/app\";}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}const isCaptiveUserAgent=()=>{const userAgent=navigator.userAgent;const regex=/(instagram|linkedin)/i;return regex.test(userAgent);};\nexport const __FramerMetadata__ = {\"exports\":{\"withAppRedirect\":{\"type\":\"reactHoc\",\"name\":\"withAppRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSafeAppLink\":{\"type\":\"reactHoc\",\"name\":\"withSafeAppLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Test.map"],
  "mappings": "gGAKO,SAASA,EAAgBC,EAAU,CAAC,OAAOC,GAiB9BC,EAAKF,EAAU,CAAC,GAAG,eAAe,GAAGC,EAAM,QAjBa,IAAI,CAAIE,EAAmB,EAAGC,EAAO,SAAS,KAAK,qCAA0C,QAAQ,IAAI,oDAAoD,EAAEA,EAAO,SAAS,KAAK,OAAQ,CAiBtL,CAAC,CAAI,CAA8H,SAASC,EAAgBC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAI,CAACC,EAAmB,GAAGC,EAAO,SAAS,OAAO,SAAS,WAAW,IAAGA,EAAO,SAAS,KAAK,OAAQ,EAAE,CAAC,CAAC,EAAsBC,EAAKL,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI,CAAC,IAAME,EAAmB,IAAI,CAAC,IAAMG,EAAUC,EAAU,UAA8C,MAAxB,wBAAqC,KAAKD,CAAS,CAAE",
  "names": ["withSafeAppLink", "Component", "props", "p", "isCaptiveUserAgent", "window", "withAppRedirect", "Component", "props", "ue", "isCaptiveUserAgent", "window", "p", "userAgent", "navigator"]
}
