{"version":3,"file":"OS_Download_Button.DltAwOUy.mjs","names":[],"sources":["https:/framerusercontent.com/modules/541CIcuoZX8zp0w6txpF/hrd4SCBk3bAnBFpT8b2l/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,linuxFrame,...rest}=props;// Synchronous OS detection\nconst ua=typeof navigator!==\"undefined\"?navigator.userAgent:\"\";const platform=typeof navigator!==\"undefined\"?navigator.platform:\"\";let os=\"windows\";if(/linux|x11/i.test(ua)||/linux|x11/i.test(platform)){os=\"linux\";}else if(platform.toLowerCase().includes(\"mac\")){os=\"mac\";}else if(platform.toLowerCase().includes(\"win\")){os=\"windows\";}// Select the appropriate frame, defaulting to Windows\nlet selected;switch(os){case\"mac\":selected=macFrame;break;case\"linux\":selected=linuxFrame||windowsFrame;break;case\"windows\":default:selected=windowsFrame;break;}return /*#__PURE__*/_jsx(Frame,{...rest,width:\"100%\",height:\"100%\",background:null,style:{overflow:\"visible\",position:\"relative\",userSelect:\"text\",WebkitUserSelect:\"text\",MozUserSelect:\"text\",msUserSelect:\"text\"},children:selected});}addPropertyControls(OSFrameSwitcher,{windowsFrame:{type:ControlType.ComponentInstance,title:\"Windows Frame\"},macFrame:{type:ControlType.ComponentInstance,title:\"Mac Frame\"},linuxFrame:{type:ControlType.ComponentInstance,title:\"Linux Frame\",description:\"Shown to Linux visitors\"}});export default OSFrameSwitcher;\nexport const __FramerMetadata__ = {\"exports\":{\"OSFrameSwitcher\":{\"type\":\"reactComponent\",\"name\":\"OSFrameSwitcher\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"OSFrameSwitcher\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OS_Download_Button.map"],"mappings":"kLAKG,SAAgB,EAAgB,EAAM,CAAC,GAAK,CAAC,eAAa,WAAS,aAAW,GAAG,GAAM,EACpF,EAAU,IAAY,OAAgC,GAApB,EAAU,UAAmB,EAAgB,IAAY,OAA+B,GAAnB,EAAU,SAAgB,EAAG,UAAa,aAAa,KAAK,EAAG,EAAE,aAAa,KAAK,EAAS,CAAE,EAAG,QAAiB,EAAS,aAAa,CAAC,SAAS,MAAM,CAAE,EAAG,MAAe,EAAS,aAAa,CAAC,SAAS,MAAM,GAAE,EAAG,WACpU,IAAI,EAAS,OAAO,EAAP,CAAW,IAAI,MAAM,EAAS,EAAS,MAAM,IAAI,QAAQ,EAAS,GAAY,EAAa,MAAM,IAAI,UAAU,QAAQ,EAAS,EAAa,MAAO,OAAoB,EAAK,EAAM,CAAC,GAAG,EAAK,MAAM,OAAO,OAAO,OAAO,WAAW,KAAK,MAAM,CAAC,SAAS,UAAU,SAAS,WAAW,WAAW,OAAO,iBAAiB,OAAO,cAAc,OAAO,aAAa,OAAO,CAAC,SAAS,EAAS,CAAC,sBAN9V,IAA0D,CAMsS,EAAoB,EAAgB,CAAC,aAAa,CAAC,KAAK,EAAY,kBAAkB,MAAM,gBAAgB,CAAC,SAAS,CAAC,KAAK,EAAY,kBAAkB,MAAM,YAAY,CAAC,WAAW,CAAC,KAAK,EAAY,kBAAkB,MAAM,cAAc,YAAY,0BAA0B,CAAC,CAAC"}