{"version":3,"file":"OsButtonComp.DOPG7Ub7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZiN6yhrldklGbs2beYuc/ePiTSMnjIYQQ3RJeyNkD/OsButtonComp.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function OSDownloadButton(props){const{winLink,macLink,chromeLink}=props;// Function to detect OS\nconst getOS=()=>{const userAgent=window.navigator.userAgent;if(userAgent.includes(\"Win\"))return\"Windows\";if(userAgent.includes(\"Mac\"))return\"Mac\";return\"ChromeOS\";};const currentOS=getOS();// Define the primary button label and links dynamically\nconst primaryLabelText=\"Try For Free\";let primaryLabel=\"Download\";let primaryLink=\"#\";let secondaryLinks=[];if(currentOS===\"Windows\"){primaryLabel=primaryLabelText;primaryLink=winLink;secondaryLinks=[{label:\"Download for Mac\",link:macLink},{label:\"Download for Chrome\",link:chromeLink}];}else if(currentOS===\"Mac\"){primaryLabel=primaryLabelText;primaryLink=macLink;secondaryLinks=[{label:\"Download for Windows\",link:winLink},{label:\"Download for Chrome\",link:chromeLink}];}else{primaryLabel=primaryLabelText;primaryLink=chromeLink;secondaryLinks=[{label:\"Download for Windows\",link:winLink},{label:\"Download for Mac\",link:macLink}];}return /*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"a\",{href:primaryLink,style:{display:\"inline-block\",padding:\"12px 20px\",fontSize:\"16px\",fontWeight:\"bold\",color:\"#000000\",backgroundColor:\"#C9F31D\",borderRadius:\"6px\",textDecoration:\"none\",marginBottom:\"10px\"},children:primaryLabel}),/*#__PURE__*/_jsxs(\"div\",{style:{color:\"white\"},children:[\" \",\"Available for Mac, Windows, Chrome\"]})]});}// Add property controls for customization\naddPropertyControls(OSDownloadButton,{winLink:{type:ControlType.String,title:\"Windows Link\",defaultValue:\"#\"},macLink:{type:ControlType.String,title:\"Mac Link\",defaultValue:\"#\"},chromeLink:{type:ControlType.String,title:\"ChromeOS Link\",defaultValue:\"#\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"OSDownloadButton\":{\"type\":\"reactComponent\",\"name\":\"OSDownloadButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OsButtonComp.map"],"mappings":"gRAA6G,SAAgB,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,UAAQ,cAAY,EACZ,OAA3J,CAAC,IAAM,EAAU,EAAO,UAAU,UAAgG,OAAnF,EAAU,SAAS,MAAM,CAAO,UAAa,EAAU,SAAS,MAAM,CAAO,MAAY,cAAoC,CACtL,EAAiB,eAAmB,EAAa,WAAe,EAAY,IAAuiB,OAA1gB,IAAY,WAAW,EAAa,EAAiB,EAAY,GAAwH,IAAY,OAAO,EAAa,EAAiB,EAAY,IAAyH,EAAa,EAAiB,EAAY,GAAqI,EAAM,MAAM,CAAC,MAAM,CAAC,UAAU,SAAS,CAAC,SAAS,CAAc,EAAK,IAAI,CAAC,KAAK,EAAY,MAAM,CAAC,QAAQ,eAAe,QAAQ,YAAY,SAAS,OAAO,WAAW,OAAO,MAAM,UAAU,gBAAgB,UAAU,aAAa,MAAM,eAAe,OAAO,aAAa,OAAO,CAAC,SAAS,EAAa,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,QAAQ,CAAC,SAAS,CAAC,IAAI,qCAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,sBAF1+B,IAAoD,CAG7G,EAAoB,EAAiB,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,eAAe,aAAa,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,IAAI,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,IAAI,CAAC,CAAC"}