{"version":3,"file":"Button_Subtext_OSbased_Visibility.DkIQ2_nb.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/22uwRU2vcYeAgx4akgiI/D2ECzdzrcOHEyJ7wOZFp/Button_Subtext_OSbased_Visibility.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// ── OS detection ─────────────────────────────────────────────────────\nfunction detectOS(){if(typeof window===\"undefined\")return\"mac\";const params=new URLSearchParams(window.location.search);const forced=params.get(\"os\")?.toLowerCase();if(forced===\"mac\"||forced===\"apple\")return\"mac\";if(forced===\"windows\"||forced===\"win\")return\"windows\";const ua=navigator.userAgent.toLowerCase();// Apple ecosystem → Mac\nif(ua.includes(\"macintosh\")||ua.includes(\"mac os x\")||ua.includes(\"iphone\")||ua.includes(\"ipad\")||ua.includes(\"ipod\"))return\"mac\";// Explicitly detected → Windows\nconst isAndroid=ua.includes(\"android\");const isLinux=!isAndroid&&ua.includes(\"linux\");const isChromeOS=ua.includes(\"cros\");const isWindows=ua.includes(\"windows\");if(isWindows||isAndroid||isLinux||isChromeOS)return\"windows\";// Unknown fallback\nreturn\"windows\";}function useDetectedOS(){const[os,setOS]=useState(\"mac\");useEffect(()=>{setOS(detectOS());},[]);return os;}// ── OVERRIDES ────────────────────────────────────────────────────────\n// Apply to: \"Requires Apple Silicon processor and macOS 14.4.1 or later\"\nexport function MacRequirementsText(){const os=useDetectedOS();return{style:{display:os===\"mac\"?\"block\":\"none\"}};}// Apply to: \"Requires Windows 11 or later\"\nexport function WindowsRequirementsText(){const os=useDetectedOS();return{style:{display:os===\"windows\"?\"block\":\"none\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withMacRequirementsText(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...MacRequirementsText(props)});};}withMacRequirementsText.displayName=\"MacRequirementsText\";export function withWindowsRequirementsText(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...WindowsRequirementsText(props)});};}withWindowsRequirementsText.displayName=\"WindowsRequirementsText\";\nexport const __FramerMetadata__ = {\"exports\":{\"withWindowsRequirementsText\":{\"type\":\"reactHoc\",\"name\":\"withWindowsRequirementsText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMacRequirementsText\":{\"type\":\"reactHoc\",\"name\":\"withMacRequirementsText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WindowsRequirementsText\":{\"type\":\"override\",\"name\":\"WindowsRequirementsText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MacRequirementsText\":{\"type\":\"override\",\"name\":\"MacRequirementsText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button_Subtext_OSbased_Visibility.map"],"mappings":"uMACA,SAAS,GAAU,CAAC,GAAU,IAAS,OAAY,MAAM,MAA+D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAqB,IAAI,KAAK,EAAE,aAAa,CAAC,GAAG,IAAS,OAAO,IAAS,QAAQ,MAAM,MAAM,GAAG,IAAS,WAAW,IAAS,MAAM,MAAM,UAAU,IAAM,EAAG,EAAU,UAAU,aAAa,CAGrT,OAFG,EAAG,SAAS,YAAY,EAAE,EAAG,SAAS,WAAW,EAAE,EAAG,SAAS,SAAS,EAAE,EAAG,SAAS,OAAO,EAAE,EAAG,SAAS,OAAO,CAAO,OACvE,CAArC,EAAG,SAAS,UAAU,EAA2B,EAAG,SAAS,QAAQ,CAAkB,EAAG,SAAS,OAAO,CAAiB,EAAG,SAAS,UAAU,CAAoD,WACpM,SAAS,GAAe,CAAC,GAAK,CAAC,EAAG,GAAOA,EAAS,MAAM,CAAwC,OAAvC,MAAc,CAAC,EAAM,GAAU,CAAC,EAAG,EAA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