{"version":3,"file":"OSDownload.BWeCbGrT.mjs","names":[],"sources":["https:/framerusercontent.com/modules/XbesF0ogTVdtlMl0lAr9/JbsaGrwVzzqkIrWQdQ4I/OSDownload.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";function getOS(){if(typeof navigator===\"undefined\")return\"mac\";const ua=navigator.userAgent.toLowerCase();const platform=navigator.userAgentData?.platform?.toLowerCase()??navigator.platform?.toLowerCase()??\"\";if(platform.includes(\"win\")||ua.includes(\"windows\"))return\"windows\";return\"mac\";}// Apply this override to your \"Download for Mac\" CTA Button\nexport function withOSDownload(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const os=getOS();if(os===\"windows\"){return /*#__PURE__*/_jsx(Component,{ref:ref,...props,title:\"Download for Windows\",link:\"https://dl2.speakapp.com/windows/SpeakApp.appinstaller?utm_source=mainpage\",tracking:\"download-windows\"});}return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}// Apply this to the DMG install overlay/modal (so it doesn't show on Windows)\nexport function hideOnWindows(Component){return /*#__PURE__*/forwardRef((props,ref)=>{if(getOS()===\"windows\"){return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,display:\"none\"}});}return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOSDownload\":{\"type\":\"reactHoc\",\"name\":\"withOSDownload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideOnWindows\":{\"type\":\"reactHoc\",\"name\":\"hideOnWindows\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OSDownload.map"],"mappings":"gIAAyE,SAAS,GAAO,CAAC,GAAU,IAAY,OAAY,MAAM,MAAM,IAAM,EAAG,EAAU,UAAU,aAAa,CAA4K,OAA5J,EAAU,eAAe,UAAU,aAAa,EAAE,EAAU,UAAU,aAAa,EAAE,IAAe,SAAS,MAAM,EAAE,EAAG,SAAS,UAAU,CAAO,UAAgB,MACpW,SAAgB,EAAe,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAgB,GAAO,GAAS,UAA+B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,uBAAuB,KAAK,6EAA6E,SAAS,mBAAmB,CAAC,CAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,CAAG,sBAD5U,IAA8B"}