{"version":3,"file":"OsButtonComp.CHNBukRM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZiN6yhrldklGbs2beYuc/VioZ4JV9HD83ULrlFx0z/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,androidLink}=props;// Function to detect OS\nconst getOS=()=>{const userAgent=window.navigator.userAgent;if(userAgent.includes(\"Android\"))return\"Android\";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},{label:\"Download for Android\",link:androidLink}];}else if(currentOS===\"Mac\"){primaryLabel=primaryLabelText;primaryLink=macLink;secondaryLinks=[{label:\"Download for Windows\",link:winLink},{label:\"Download for Chrome\",link:chromeLink},{label:\"Download for Android\",link:androidLink}];}else if(currentOS===\"Android\"){primaryLabel=primaryLabelText;primaryLink=androidLink;secondaryLinks=[{label:\"Download for Windows\",link:winLink},{label:\"Download for Mac\",link:macLink},{label:\"Download for Chrome\",link:chromeLink}];}else{primaryLabel=primaryLabelText;primaryLink=chromeLink;secondaryLinks=[{label:\"Download for Windows\",link:winLink},{label:\"Download for Mac\",link:macLink},{label:\"Download for Android\",link:androidLink}];}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, Android\"]})]});}// Add property controls for customization\naddPropertyControls(OSDownloadButton,{winLink:{type:ControlType.String,title:\"Windows Link\",defaultValue:\"https://github.com/rahulbansal16/DictationDaddy/releases/latest/download/Dictation.Daddy.win.exe\"},macLink:{type:ControlType.String,title:\"Mac Link\",defaultValue:\"https://github.com/rahulbansal16/DictationDaddy/releases/latest/download/Dictation-Daddy-mac.dmg\"},chromeLink:{type:ControlType.String,title:\"ChromeOS Link\",defaultValue:\"https://chromewebstore.google.com/detail/voicespeech-to-text-dicta/mnnmkkjnpnmbfohnpbddndcmiioicpjl\"},androidLink:{type:ControlType.String,title:\"Android Link\",defaultValue:\"https://play.google.com/store/apps/details?id=com.dictationdaddy.android\"}});\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,aAAW,eAAa,EACyB,OAA5M,CAAC,IAAM,EAAU,EAAO,UAAU,UAAiJ,OAApI,EAAU,SAAS,UAAU,CAAO,UAAa,EAAU,SAAS,MAAM,CAAO,UAAa,EAAU,SAAS,MAAM,CAAO,MAAY,cAAoC,CACvO,EAAiB,eAAmB,EAAa,WAAe,EAAY,IAAg6B,OAAn4B,IAAY,WAAW,EAAa,EAAiB,EAAY,GAAwK,IAAY,OAAO,EAAa,EAAiB,EAAY,GAA4K,IAAY,WAAW,EAAa,EAAiB,EAAY,IAAqK,EAAa,EAAiB,EAAY,GAAqL,EAAM,MAAM,CAAC,MAAM,CAAC,UAAU,SAAS,CAAC,SAAS,CAAc,EAAK,IAAI,CAAC,KAAK,EAAY,MA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