{"version":3,"file":"GetStarted.BUFu_VFw.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/8rnKeQHpLr5R6Y7DhR4I/Y14bPndfQu5CWP6hTs6p/GetStarted.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});const detectPlatform=()=>{// Check if running in a browser environment\nif(typeof window===\"undefined\"||!window.navigator){return\"Unknown\";}const platform=window.navigator.platform;const userAgent=window.navigator.userAgent;// Check for iOS devices first\nif(/iPad|iPhone|iPod/.test(platform)||// Additional check for iPad in desktop mode\nplatform===\"MacIntel\"&&\"maxTouchPoints\"in navigator&&navigator.maxTouchPoints>0){return\"iOS\";}// Check for Mac desktop\nif(platform.indexOf(\"Mac\")!==-1){return\"MacOS\";}// Check for Windows desktop\nif(platform.indexOf(\"Win\")!==-1){return\"Windows\";}// Other platforms\nif(platform.indexOf(\"Linux\")!==-1)return\"Linux\";if(platform.indexOf(\"X11\")!==-1)return\"UNIX\";return\"Unknown\";};export function withDynamicSignUpDestination(Component){return props=>{const handleClick=useCallback(e=>{e.preventDefault();// Insert Twitter Event ID\nif(\"twq\"in window){// @ts-ignore\nwindow.twq(\"event\",\"tw-prmpe-prmpf\",{});}const platform=detectPlatform();if(platform===\"MacOS\"){window.location.href=\"/download/mac\";}else if(platform===\"Windows\"){window.location.href=\"/download/windows\";}else{window.location.href=\"https://v2.mem.ai/sign-up\";}},[]);return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicSignUpDestination\":{\"type\":\"reactHoc\",\"name\":\"withDynamicSignUpDestination\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GetStarted.map"],"mappings":"qSAO+G,SAAgB,EAA6B,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAYA,EAAY,GAAG,CAAC,EAAE,gBAAgB,CACvO,QAAQ,GACX,EAAO,IAAI,QAAQ,iBAAiB,EAAE,CAAC,CAAE,IAAM,EAAS,GAAgB,CAAI,IAAW,QAAS,EAAO,SAAS,KAAK,gBAAyB,IAAW,UAAW,EAAO,SAAS,KAAK,oBAA0B,EAAO,SAAS,KAAK,6BAA+B,EAAE,CAAC,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC,yBATlS,IAA+B,IAAqE,CAChI,EAAY,CAAC,WAAW,UAAU,CAAC,CAAO,MAAmB,CAC5E,GAAU,IAAS,QAAa,CAAC,EAAO,UAAW,MAAM,UAAW,IAAM,EAAS,EAAO,UAAU,SAKP,OALgC,EAAO,UAAU,UAC3I,mBAAmB,KAAK,EAAS,EACpC,IAAW,YAAY,mBAAmB,GAAW,EAAU,eAAe,EAAS,MACpF,EAAS,QAAQ,MAAM,GAAG,GAC1B,EAAS,QAAQ,MAAM,GAAG,GAC1B,EAAS,QAAQ,QAAQ,GAAG,GAAoB,EAAS,QAAQ,MAAM,GAAG,GAAsB,UAAb,OAA9C,QADD,UADA"}