{"version":3,"file":"Duxbe_Download_Button.DYfUTUTO.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/GhcdavvZKQ37tc1UJxCe/fMeAOPrPh5RV6SrYpH2I/Duxbe_Download_Button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useEffect,useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Duxbe_Download_Button(props){const{tint,textColor}=props;const[platform,setPlatform]=useState(\"desktop\");useEffect(()=>{const userAgent=navigator.userAgent||navigator.vendor;if(/android/i.test(userAgent)){setPlatform(\"android\");}else if(/iPhone|iPad|iPod/i.test(userAgent)){setPlatform(\"ios\");}else{setPlatform(\"desktop\");}},[]);const links={android:\"https://play.google.com/store/apps/details?id=com.hancod.duxbe.business&hl=en_IN\",ios:\"https://apps.apple.com/in/app/duxbe-business/id6502827781\",desktop:\"https://business.duxbe.com\"};const labels={android:\"Get it on Google Play\",ios:\"Download on App Store\",desktop:\"Get Started\"};const handleClick=()=>{window.location.href=links[platform];};return /*#__PURE__*/_jsx(motion.button,{onClick:handleClick,whileHover:{scale:1.05},whileTap:{scale:.95},style:{padding:\"14px 24px\",borderRadius:\"12px\",border:\"none\",cursor:\"pointer\",backgroundColor:tint,color:textColor,fontSize:\"16px\",fontWeight:600,width:\"auto\",whiteSpace:\"nowrap\"},children:labels[platform]});}addPropertyControls(Duxbe_Download_Button,{tint:{title:\"Background\",type:ControlType.Color,defaultValue:\"#000000\"},textColor:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Duxbe_Download_Button\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Duxbe_Download_Button.map"],"mappings":"uPAGG,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,OAAK,aAAW,EAAW,CAAC,EAAS,GAAaA,EAAS,UAAU,CAAC,MAAc,CAAC,IAAM,EAAU,EAAU,WAAW,EAAU,OAAU,WAAW,KAAK,EAAU,CAAE,EAAY,UAAU,CAAU,oBAAoB,KAAK,EAAU,CAAE,EAAY,MAAM,CAAO,EAAY,UAAU,EAAI,EAAE,CAAC,CAAC,IAAM,EAAM,CAAC,QAAQ,mFAAmF,IAAI,4DAA4D,QAAQ,6BAA6B,CAAgK,OAAoB,EAAK,EAAO,OAAO,CAAC,YAAhF,CAAC,EAAO,SAAS,KAAK,EAAM,IAAwE,WAAW,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,YAAY,aAAa,OAAO,OAAO,OAAO,OAAO,UAAU,gBAAgB,EAAK,MAAM,EAAU,SAAS,OAAO,WAAW,IAAI,MAAM,OAAO,WAAW,SAAS,CAAC,SAA/a,CAAC,QAAQ,wBAAwB,IAAI,wBAAwB,QAAQ,cAAc,CAA4W,GAAU,CAAC,sBAH99B,IAAoD,IAAkC,IAAsC,CAGo2B,EAAoB,EAAsB,CAAC,KAAK,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,CAAC"}