{"version":3,"file":"Download_Button.DL-RbmjX.mjs","names":[],"sources":["https:/framerusercontent.com/modules/5bCx4pBIK5wWxWlnZaJR/ncAozUvepB88tpOuzaXw/Download_Button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function Download(props){const{title,tint,style,file}=props;return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyle},children:/*#__PURE__*/ _jsx(motion.div,{onTap:()=>{const link=document.createElement(\"a\");link.href=file;link.download=\"download\";document.body.appendChild(link);link.click();link.remove();},style:{margin:20,padding:15,borderRadius:10,backgroundColor:tint,color:\"white\",fontSize:\"1.3em\",fontFamily:\"IBM Plex Mono\",fontWeight:\"medium\"},whileHover:{scale:1.01},children:title})});};Download.defaultProps={tint:\"#0A01FE\",title:\"DOWNLOAD\"};addPropertyControls(Download,{tint:{title:\"Tint\",type:ControlType.Color},title:{title:\"Label\",type:ControlType.String},file:{title:\"File\",type:ControlType.File,allowedFileTypes:[]}});const containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Download\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Download_Button.map"],"mappings":"iTAQI,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,QAAM,OAAK,CAAC,EAAM,OAAqB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAe,CAAC,SAAuB,EAAK,EAAO,IAAI,CAAC,UAAU,CAAC,IAAM,EAAK,SAAS,cAAc,KAAK,EAAK,KAAK,EAAK,EAAK,SAAS,WAAW,SAAS,KAAK,YAAY,GAAM,EAAK,QAAQ,EAAK,QAAU,EAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,EAAK,MAAM,QAAQ,SAAS,QAAQ,WAAW,gBAAgB,WAAW,SAAS,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,SAAS,EAAM,EAAE,CAAG,6BAAC,EAAS,aAAa,CAAC,KAAK,UAAU,MAAM,WAAW,CAAC,EAAoB,EAAS,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,MAAM,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,OAAO,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,KAAK,iBAAiB,EAAE,CAAC,CAAC,EAAQ,EAAe,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS"}