{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/541CIcuoZX8zp0w6txpF/1lheaa625G1NcU9Ua5SZ/OS_Download_Button.js"],
  "sourcesContent": ["// OSFrameSwitcher.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";/**\n * Displays a connected Frame based on the visitor's OS.\n * Uses synchronous detection so the correct frame renders immediately\n * without showing a placeholder or causing a flash.\n */export function OSFrameSwitcher(props){const{windowsFrame,macFrame,mobileFrame,...rest}=props;// Synchronous OS detection\nconst ua=typeof navigator!==\"undefined\"?navigator.userAgent:\"\";const platform=typeof navigator!==\"undefined\"?navigator.platform:\"\";let os=\"windows\";if(/Android|iPhone|iPad|iPod/i.test(ua)){os=\"mobile\";}else if(platform.toLowerCase().includes(\"win\")){os=\"windows\";}else if(platform.toLowerCase().includes(\"mac\")){os=\"mac\";}// Select the appropriate frame, defaulting to Windows\nlet selected;switch(os){case\"mac\":selected=macFrame;break;case\"mobile\":selected=mobileFrame||windowsFrame;break;case\"windows\":default:selected=windowsFrame;break;}return /*#__PURE__*/_jsx(Frame,{...rest,width:\"100%\",height:\"100%\",background:null,style:{overflow:\"visible\",position:\"relative\"},children:selected});}addPropertyControls(OSFrameSwitcher,{windowsFrame:{type:ControlType.ComponentInstance,title:\"Windows Frame\"},macFrame:{type:ControlType.ComponentInstance,title:\"Mac Frame\"},mobileFrame:{type:ControlType.ComponentInstance,title:\"Mobile Frame\",description:\"Shown to iOS/Android visitors\"}});export default OSFrameSwitcher;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OSFrameSwitcher\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"OSFrameSwitcher\":{\"type\":\"reactComponent\",\"name\":\"OSFrameSwitcher\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OS_Download_Button.map"],
  "mappings": "yGAKU,SAASA,EAAgBC,EAAM,CAAC,GAAK,CAAC,aAAAC,EAAa,SAAAC,EAAS,YAAAC,EAAY,GAAGC,CAAI,EAAEJ,EACrFK,EAAG,OAAOC,EAAY,IAAYA,EAAU,UAAU,GAASC,EAAS,OAAOD,EAAY,IAAYA,EAAU,SAAS,GAAOE,EAAG,UAAa,4BAA4B,KAAKH,CAAE,EAAGG,EAAG,SAAkBD,EAAS,YAAY,EAAE,SAAS,KAAK,EAAGC,EAAG,UAAmBD,EAAS,YAAY,EAAE,SAAS,KAAK,IAAGC,EAAG,OAC3T,IAAIC,EAAS,OAAOD,EAAG,CAAC,IAAI,MAAMC,EAASP,EAAS,MAAM,IAAI,SAASO,EAASN,GAAaF,EAAa,MAAM,IAAI,UAAU,QAAQQ,EAASR,EAAa,KAAM,CAAC,OAAoBS,EAAKC,EAAM,CAAC,GAAGP,EAAK,MAAM,OAAO,OAAO,OAAO,WAAW,KAAK,MAAM,CAAC,SAAS,UAAU,SAAS,UAAU,EAAE,SAASK,CAAQ,CAAC,CAAE,CAACG,EAAoBb,EAAgB,CAAC,aAAa,CAAC,KAAKc,EAAY,kBAAkB,MAAM,eAAe,EAAE,SAAS,CAAC,KAAKA,EAAY,kBAAkB,MAAM,WAAW,EAAE,YAAY,CAAC,KAAKA,EAAY,kBAAkB,MAAM,eAAe,YAAY,+BAA+B,CAAC,CAAC",
  "names": ["OSFrameSwitcher", "props", "windowsFrame", "macFrame", "mobileFrame", "rest", "ua", "navigator", "platform", "os", "selected", "p", "Frame", "addPropertyControls", "ControlType"]
}
