{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ZjwIsTUlc6A7GugA5vQZ/stA0ZIbcSTyJPKx8P3CB/Download_2_0.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\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withAutomaticDownload(Component){function downloadMacApp(){const link=document.createElement(\"a\");link.href=\"https://dl.todesktop.com/240716u3u1yy41w/mac/installer/universal\";document.body.appendChild(link);link.click();document.body.removeChild(link);}function downloadWindowsApp(){const link=document.createElement(\"a\");link.href=\"https://dl.todesktop.com/240716u3u1yy41w/windows/nsis/x64\";document.body.appendChild(link);link.click();document.body.removeChild(link);}let os=\"Unknown\";if(navigator?.appVersion.indexOf(\"Win\")!=-1)os=\"Windows\";if(navigator?.appVersion.indexOf(\"Mac\")!=-1)os=\"MacOS\";if(navigator?.appVersion.indexOf(\"X11\")!=-1)os=\"UNIX\";if(navigator?.appVersion.indexOf(\"Linux\")!=-1)os=\"Linux\";return props=>{useEffect(()=>{if(os===\"MacOS\"){setTimeout(()=>{downloadMacApp();},0);}else if(os===\"Windows\"){setTimeout(()=>{downloadWindowsApp();},0);}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withAutomaticMacAppDownload(Component){function downloadMacApp(){const link=document.createElement(\"a\");link.href=\"https://dl.todesktop.com/240716u3u1yy41w/mac/installer/universal\";document.body.appendChild(link);link.click();document.body.removeChild(link);}return props=>{useEffect(()=>{setTimeout(()=>{downloadMacApp();},0);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withAutomaticWindowsAppDownload(Component){function downloadWindowsApp(){const link=document.createElement(\"a\");link.href=\"https://dl.todesktop.com/240716u3u1yy41w/windows/nsis/x64\";document.body.appendChild(link);link.click();document.body.removeChild(link);}return props=>{useEffect(()=>{setTimeout(()=>{downloadWindowsApp();},0);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAutomaticWindowsAppDownload\":{\"type\":\"reactHoc\",\"name\":\"withAutomaticWindowsAppDownload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAutomaticDownload\":{\"type\":\"reactHoc\",\"name\":\"withAutomaticDownload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAutomaticMacAppDownload\":{\"type\":\"reactHoc\",\"name\":\"withAutomaticMacAppDownload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Download_2_0.map"],
  "mappings": "oFACA,IAAMA,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAAg7B,SAASC,EAA4BC,EAAU,CAAC,SAASC,GAAgB,CAAC,IAAMC,EAAK,SAAS,cAAc,GAAG,EAAEA,EAAK,KAAK,mEAAmE,SAAS,KAAK,YAAYA,CAAI,EAAEA,EAAK,MAAM,EAAE,SAAS,KAAK,YAAYA,CAAI,CAAE,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,WAAW,IAAI,CAACH,EAAe,CAAE,EAAE,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBI,EAAKL,EAAU,CAAC,GAAGG,CAAK,CAAC,EAAI,CAAQ,SAASG,EAAgCN,EAAU,CAAC,SAASO,GAAoB,CAAC,IAAML,EAAK,SAAS,cAAc,GAAG,EAAEA,EAAK,KAAK,4DAA4D,SAAS,KAAK,YAAYA,CAAI,EAAEA,EAAK,MAAM,EAAE,SAAS,KAAK,YAAYA,CAAI,CAAE,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,WAAW,IAAI,CAACG,EAAmB,CAAE,EAAE,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBF,EAAKL,EAAU,CAAC,GAAGG,CAAK,CAAC,EAAI",
  "names": ["useStore", "createStore", "withAutomaticMacAppDownload", "Component", "downloadMacApp", "link", "props", "ue", "p", "withAutomaticWindowsAppDownload", "downloadWindowsApp"]
}
