{"version":3,"file":"ButtonDownloadOSOverride_2.CKFDE49K.mjs","names":["Button2026New","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Download","useState"],"sources":["https:/framerusercontent.com/modules/SN32umKSk38piE7ZZScr/3Y9xuSso6SDfFv1yRulO/wR0giMTCd.js","https:/framerusercontent.com/modules/rlgCYObtZtcP0wk6xYu9/hkJIVMTHgt63VhKcJjhF/ButtonDownloadOSOverride_2.js"],"sourcesContent":["// Generated by Framer (f113a2b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,forwardLoader,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Download from\"https://framerusercontent.com/modules/Z0SamtvFEzK53cuYASD7/3KhhRXq6r3g73pu22eoC/TJbrQa1j4.js\";import Button2026New from\"https://framerusercontent.com/modules/nVTibfQNdTIntWLIw4Xq/sseJ8z7z0xFvP4czE8Sy/KsxdqjKwX.js\";const Button2026NewFonts=getFonts(Button2026New);const cycleOrder=[\"MyXCgWiTQ\",\"el2ZkSXwU\"];const serializationHash=\"framer-IpKst\";const variantClassNames={el2ZkSXwU:\"framer-v-3bbpvp\",MyXCgWiTQ:\"framer-v-g7l72j\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const matchVariant=(...args)=>{for(const arg of args){if(arg&&typeof arg===\"string\")return arg;}return undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Mac:\"MyXCgWiTQ\",Windows:\"el2ZkSXwU\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"MyXCgWiTQ\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"MyXCgWiTQ\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-g7l72j\",className,classNames),\"data-framer-name\":\"Mac\",layoutDependency:layoutDependency,layoutId:\"MyXCgWiTQ\",ref:refBinding,style:{...style},...addPropertyOverrides({el2ZkSXwU:{\"data-framer-name\":\"Windows\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:35,y:(componentViewport?.y||0)+(0+((componentViewport?.height||200)-0-35)/2),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1mz4r8l-container\",\"data-framer-name\":\"Windows\",layoutDependency:layoutDependency,layoutId:\"QbEyCjfV7-container\",name:\"Windows\",nodeId:\"QbEyCjfV7\",rendersWithMotion:true,scopeId:\"wR0giMTCd\",children:/*#__PURE__*/_jsx(Button2026New,{aq3hTZ9m1:\"https://updates.framer.com/electron/darwin/arm64/Framer.zip?_ga=2.113395847.1447313862.1646043056-273660571.1642151053\",aV6xt5PCs:Download,c8MUIFu8M:true,height:\"100%\",id:\"QbEyCjfV7\",kw6l_suoH:\"Download for Mac\",layoutId:\"QbEyCjfV7\",ljsS0PDRT:0,m34vmsLTM:\"\",MBD8rTH3H:\"var(--token-70c17056-82cb-4934-97c9-7213cf77c853, rgba(255, 255, 255, 0.1))\",N15cKHn29:\"download-mac\",name:\"Windows\",rm8ThjdVN:14,variant:matchVariant(\"oWhy0mIFM\"),width:\"100%\",xdxfhd9wh:\"var(--token-26e3cb56-8447-4a64-9b7d-37f16a9909d4, rgb(255, 255, 255))\",Z06FOkhmy:\"QBnsTQ5eq\",...addPropertyOverrides({el2ZkSXwU:{aq3hTZ9m1:\"https://updates.framer.com/electron/win32/x64/Framer.exe?_ga=2.113395847.1447313862.1646043056-273660571.1642151053\",kw6l_suoH:\"Download for Windows\",N15cKHn29:\"download-windows\"}},baseVariant,gestureVariant)})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-IpKst.framer-tznzlr, .framer-IpKst .framer-tznzlr { display: block; }\",\".framer-IpKst.framer-g7l72j { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-IpKst .framer-1mz4r8l-container { flex: none; height: auto; position: relative; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 35\n * @framerIntrinsicWidth 165\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"el2ZkSXwU\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n * @framerTrackingIds [{\"id\":\"_f0ki6r\",\"trackingId\":\"download-mac\"},{\"id\":\"_f9tt1x\",\"trackingId\":\"download-windows\"}]\n */const FramerwR0giMTCd=withCSS(Component,css,\"framer-IpKst\");export default FramerwR0giMTCd;FramerwR0giMTCd.displayName=\"Button Download OS\";FramerwR0giMTCd.defaultProps={height:35,width:165};addPropertyControls(FramerwR0giMTCd,{variant:{options:[\"MyXCgWiTQ\",\"el2ZkSXwU\"],optionTitles:[\"Mac\",\"Windows\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerwR0giMTCd,[{explicitInter:true,fonts:[]},...Button2026NewFonts],{supportsExplicitInterCodegen:true});FramerwR0giMTCd.loader={load:(props,context)=>{const locale=context.locale;return Promise.allSettled([forwardLoader(Button2026New,{},context)]);}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerwR0giMTCd\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"35\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerTrackingIds\":\"[{\\\"id\\\":\\\"_f0ki6r\\\",\\\"trackingId\\\":\\\"download-mac\\\"},{\\\"id\\\":\\\"_f9tt1x\\\",\\\"trackingId\\\":\\\"download-windows\\\"}]\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"el2ZkSXwU\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"165\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","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":"khBAC6yB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,+CAA16B,IAA0M,IAAkE,IAA4B,IAA6I,IAAwH,CAAM,EAAmB,EAASA,EAAc,CAAO,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAc,GAAG,IAAO,CAAC,IAAI,IAAM,KAAO,EAAM,GAAG,GAAK,OAAO,GAAM,SAAS,OAAO,GAA8B,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAO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