{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/0G8aX4cMPcFmHjhwiNlZ/J8JTsPf8hsqOkiVUAGsP/DownloadButton.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,color,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:15,paddingLeft:25,paddingBottom:15,paddingRight:25,borderRadius:30,backgroundColor:tint,color:color,fontSize:\"1.5em\",fontWeight:\"bold\",fontFamily:\"Montserrat\",cursor:\"pointer\"},whileHover:{underlinePosition:1.03,backgroundColor:\"#99144d\",color:\"#d9d9d9\"},children:title})});};Download.defaultProps={tint:\"#09F\",title:\"Download\",color:\"#00\"};addPropertyControls(Download,{tint:{title:\"Tint\",type:ControlType.Color},color:{title:\"Color\",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=./DownloadButton.map"],
  "mappings": "gGAQmB,SAARA,EAA0BC,EAAM,CAAC,GAAK,CAAC,MAAAC,EAAM,KAAAC,EAAK,MAAAC,EAAM,MAAAC,EAAM,KAAAC,CAAI,EAAEL,EAAM,OAAqBM,EAAKC,EAAO,IAAI,CAAC,MAAM,CAAC,GAAGH,EAAM,GAAGI,CAAc,EAAE,SAAuBF,EAAKC,EAAO,IAAI,CAAC,MAAM,IAAI,CAAC,IAAME,EAAK,SAAS,cAAc,GAAG,EAAEA,EAAK,KAAKJ,EAAKI,EAAK,SAAS,WAAW,SAAS,KAAK,YAAYA,CAAI,EAAEA,EAAK,MAAM,EAAEA,EAAK,OAAO,CAAE,EAAE,MAAM,CAAC,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,GAAG,gBAAgBP,EAAK,MAAMC,EAAM,SAAS,QAAQ,WAAW,OAAO,WAAW,aAAa,OAAO,SAAS,EAAE,WAAW,CAAC,kBAAkB,KAAK,gBAAgB,UAAU,MAAM,SAAS,EAAE,SAASF,CAAK,CAAC,CAAC,CAAC,CAAE,CAAEF,EAAS,aAAa,CAAC,KAAK,OAAO,MAAM,WAAW,MAAM,KAAK,EAAEW,EAAoBX,EAAS,CAAC,KAAK,CAAC,MAAM,OAAO,KAAKY,EAAY,KAAK,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,KAAK,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,MAAM,EAAE,KAAK,CAAC,MAAM,OAAO,KAAKA,EAAY,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,IAAMH,EAAe,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,QAAQ",
  "names": ["Download", "props", "title", "tint", "color", "style", "file", "p", "motion", "containerStyle", "link", "addPropertyControls", "ControlType"]
}
