{"version":3,"file":"Duxbe_Download_Button.ClFS06ZK.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,SAAS,EAAE,MAAc,CAAC,IAAM,EAAU,EAAU,WAAW,EAAU,OAAU,WAAW,KAAK,CAAS,EAAG,EAAY,SAAS,EAAW,oBAAoB,KAAK,CAAS,EAAG,EAAY,KAAK,EAAQ,EAAY,SAAS,CAAG,EAAE,CAAC,CAAC,EAAE,IAAM,EAAM,CAAC,QAAQ,mFAAmF,IAAI,4DAA4D,QAAQ,4BAA4B,EAAiK,OAAoB,EAAK,EAAO,OAAO,CAAC,YAAhF,CAAC,EAAO,SAAS,KAAK,EAAM,EAAU,EAA8D,WAAW,CAAC,MAAM,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,EAAE,MAAM,CAAC,QAAQ,YAAY,aAAa,OAAO,OAAO,OAAO,OAAO,UAAU,gBAAgB,EAAK,MAAM,EAAU,SAAS,OAAO,WAAW,IAAI,MAAM,OAAO,WAAW,QAAQ,EAAE,SAAS,CAAvb,QAAQ,wBAAwB,IAAI,wBAAwB,QAAQ,aAAmX,EAAO,EAAS,CAAC,CAAE,qBAHh+B,IAAoD,IAAkC,IAAsC,EAGq2B,EAAoB,EAAsB,CAAC,KAAK,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,SAAS,EAAE,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,SAAS,CAAC,CAAC"}