{"version":3,"file":"DeviceButton.D__we5lP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ADIPL62eYIGlTfioRM2E/d0VJuL2YV5b0iq4iykPI/DeviceButton.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function DeviceButton(props){const{iosLink,androidLink,desktopLink,label,background,textColor,fontSize,fontWeight,fontFamily,width,height,borderRadius,paddingX,paddingY,shadow,style}=props;const handleClick=()=>{const userAgent=navigator.userAgent||navigator.vendor||window.opera;if(/iPad|iPhone|iPod/.test(userAgent)&&!window.MSStream){window.open(iosLink,\"_blank\");}else if(/android/i.test(userAgent)){window.open(androidLink,\"_blank\");}else{// Desktop or unknown device\nwindow.open(desktopLink,\"_self\");}};return /*#__PURE__*/_jsx(motion.button,{onClick:handleClick,style:{width,height,padding:`${paddingY}px ${paddingX}px`,borderRadius,border:\"none\",backgroundColor:background,color:textColor,fontSize,fontWeight,fontFamily,cursor:\"pointer\",boxShadow:shadow,...style},whileHover:{scale:1.05},whileTap:{scale:.95},children:label});}addPropertyControls(DeviceButton,{// Links\niosLink:{title:\"iOS Link\",type:ControlType.String,defaultValue:\"https://apps.apple.com/\"},androidLink:{title:\"Android Link\",type:ControlType.String,defaultValue:\"https://play.google.com/store\"},desktopLink:{title:\"Desktop Link\",type:ControlType.String,defaultValue:\"https://yourwebsite.com\"},// Text\nlabel:{title:\"Label\",type:ControlType.String,defaultValue:\"Download the app\"},textColor:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"#FFFFFF\"},fontSize:{title:\"Font Size\",type:ControlType.Number,defaultValue:18,min:10,max:60,unit:\"px\"},fontWeight:{title:\"Font Weight\",type:ControlType.Enum,options:[\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],optionTitles:[\"Regular\",\"Medium\",\"Semibold\",\"Bold\",\"Extra Bold\",\"Black\"],defaultValue:\"700\"},fontFamily:{title:\"Font Family\",type:ControlType.String,defaultValue:'\"General Sans\", sans-serif'},// Layout\nwidth:{title:\"Width\",type:ControlType.Number,defaultValue:220,min:50,max:1e3,unit:\"px\"},height:{title:\"Height\",type:ControlType.Number,defaultValue:56,min:30,max:300,unit:\"px\"},paddingX:{title:\"Padding X\",type:ControlType.Number,defaultValue:24,min:0,max:100,unit:\"px\"},paddingY:{title:\"Padding Y\",type:ControlType.Number,defaultValue:12,min:0,max:100,unit:\"px\"},borderRadius:{title:\"Radius\",type:ControlType.Number,defaultValue:16,min:0,max:100,unit:\"px\"},// Background & shadow\nbackground:{title:\"Background\",type:ControlType.Color,defaultValue:\"#0D002E\"},shadow:{title:\"Shadow\",type:ControlType.String,defaultValue:\"0 4px 12px rgba(0,0,0,0.15)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DeviceButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DeviceButton.map"],"mappings":"wWAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,cAAY,cAAY,QAAM,aAAW,YAAU,WAAS,aAAW,aAAW,QAAM,SAAO,eAAa,WAAS,WAAS,SAAO,SAAO,EACrK,OAAoB,EAAK,EAAO,OAAO,CAAC,YADyJ,CAAC,IAAM,EAAU,EAAU,WAAW,EAAU,QAAQ,EAAO,MAAS,mBAAmB,KAAK,EAAU,EAAE,CAAC,EAAO,SAAU,EAAO,KAAK,EAAQ,SAAS,CAAU,WAAW,KAAK,EAAU,CAAE,EAAO,KAAK,EAAY,SAAS,CACvc,EAAO,KAAK,EAAY,QAAQ,EAAgE,MAAM,CAAC,QAAM,SAAO,QAAQ,GAAG,EAAS,KAAK,EAAS,IA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