{"version":3,"file":"Download_button.iyyi4GD2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xIpzj1s4tZXOjlRci8dM/5ElkQT0YJfZaKXxW3bd9/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:{paddingTop:10,paddingRight:18,paddingBottom:10,paddingLeft:18,borderRadius:100,backgroundColor:tint,color:\"white\",fontSize:\"1em\",fontFamily:\"Poppins\",textTransform:\"Uppercase\",fontWeight:\"bold\",fontSize:\"14px\"},whileHover:{cursor:\"pointer\"},children:title})});};Download.defaultProps={tint:\"#09F\",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\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Download_button.map"],"mappings":"6MAQI,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,QAAM,QAAM,EAAM,OAAqB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAe,CAAC,SAAuB,EAAK,EAAO,IAAI,CAAC,UAAU,CAAC,IAAM,EAAK,SAAS,cAAc,IAAI,CAAC,EAAK,KAAK,EAAK,EAAK,SAAS,WAAW,SAAS,KAAK,YAAY,EAAK,CAAC,EAAK,OAAO,CAAC,EAAK,QAAQ,EAAG,MAAM,CAAC,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,aAAa,IAAI,gBAAgB,EAAK,MAAM,QAAQ,SAAS,MAAM,WAAW,UAAU,cAAc,YAAY,WAAW,OAAO,SAAS,OAAO,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,SAAS,EAAM,CAAC,CAAC,CAAC,oBARtjB,IAAkC,IAAoD,CAQme,EAAS,aAAa,CAAC,KAAK,OAAO,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,CAAC,CAAO,EAAe,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS"}