{"version":3,"file":"ButtonDownloadOSOverride_2.DsWsAZFT.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/rlgCYObtZtcP0wk6xYu9/hkJIVMTHgt63VhKcJjhF/ButtonDownloadOSOverride_2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{useEffect,useState}from\"react\";function detectOSVariant(){if(typeof navigator===\"undefined\")return null;const nav=navigator;const platform=nav.userAgentData?.platform??nav.platform??\"\";const userAgent=nav.userAgent??\"\";const fingerprint=`${platform} ${userAgent}`.toLowerCase();if(fingerprint.includes(\"macintosh\")||fingerprint.includes(\"mac os x\")){return\"Mac\";}if(fingerprint.includes(\"windows\")||fingerprint.includes(\"win32\")){return\"Windows\";}return null;}export function withDownloadOSVariant(Component){return /*#__PURE__*/forwardRef(function DownloadOSVariantOverride(props,ref){const[isReady,setIsReady]=useState(false);const[detectedVariant,setDetectedVariant]=useState(null);useEffect(()=>{setDetectedVariant(detectOSVariant());setIsReady(true);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,variant:detectedVariant??props.variant,style:{...props.style,visibility:isReady?props.style?.visibility:\"hidden\",pointerEvents:isReady?props.style?.pointerEvents:\"none\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withDownloadOSVariant\":{\"type\":\"reactHoc\",\"name\":\"withDownloadOSVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonDownloadOSOverride_2.map"],"mappings":"8IAA+G,SAAS,GAAiB,CAAC,GAAU,IAAY,OAAY,OAAO,KAAK,IAAM,EAAI,EAA+G,EAAY,GAAlG,EAAI,eAAe,UAAU,EAAI,UAAU,GAAmE,GAAhD,EAAI,WAAW,KAAgD,aAAa,CAA0K,OAAtK,EAAY,SAAS,YAAY,EAAE,EAAY,SAAS,WAAW,CAAQ,MAAU,EAAY,SAAS,UAAU,EAAE,EAAY,SAAS,QAAQ,CAAQ,UAAkB,KAAM,SAAgB,EAAsB,EAAU,CAAC,OAAoB,EAAW,SAAmC,EAAM,EAAI,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAM,CAAC,EAAgB,GAAoBA,EAAS,KAAK,CAA6E,OAA5E,MAAc,CAAC,EAAmB,GAAiB,CAAC,CAAC,EAAW,GAAK,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,QAAQ,GAAiB,EAAM,QAAQ,MAAM,CAAC,GAAG,EAAM,MAAM,WAAW,EAAQ,EAAM,OAAO,WAAW,SAAS,cAAc,EAAQ,EAAM,OAAO,cAAc,OAAO,CAAC,CAAC,EAAG,sBAAjgC,IAA8B"}