{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/XinSr38vETQrrmU0pqaf/xgBS8scfI6sdyXeNduBJ/DownloadFileButton.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import GeneralButton from\"https://framerusercontent.com/modules/XeNnF5SJKxovCnrGKgpU/zSQg8BM0CNA18pJG2Aaf/KqkL550JR.js\";/**\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function DownloadFileButton({file,label,...props}){return /*#__PURE__*/_jsx(GeneralButton,{...props,onClick:()=>{const link=document.createElement(\"a\");link.href=file;link.download=\"download\";document.body.appendChild(link);link.click();link.remove();},label:label});}DownloadFileButton.defaultProps={label:\"Download\"};DownloadFileButton.displayName=\"General/Button - File\";addPropertyControls(DownloadFileButton,{variant:GeneralButton.propertyControls.variant,label:{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\":\"DownloadFileButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "kIAIkB,SAARA,EAAoC,CAAC,KAAAC,EAAK,MAAAC,EAAM,GAAGC,CAAK,EAAE,CAAC,OAAoBC,EAAKC,EAAc,CAAC,GAAGF,EAAM,QAAQ,IAAI,CAAC,IAAMG,EAAK,SAAS,cAAc,GAAG,EAAEA,EAAK,KAAKL,EAAKK,EAAK,SAAS,WAAW,SAAS,KAAK,YAAYA,CAAI,EAAEA,EAAK,MAAM,EAAEA,EAAK,OAAO,CAAE,EAAE,MAAMJ,CAAK,CAAC,CAAE,CAACF,EAAmB,aAAa,CAAC,MAAM,UAAU,EAAEA,EAAmB,YAAY,wBAAwBO,EAAoBP,EAAmB,CAAC,QAAQK,EAAc,iBAAiB,QAAQ,MAAM,CAAC,MAAM,QAAQ,KAAKG,EAAY,MAAM,EAAE,KAAK,CAAC,MAAM,OAAO,KAAKA,EAAY,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC",
  "names": ["DownloadFileButton", "file", "label", "props", "p", "KqkL550JR_default", "link", "addPropertyControls", "ControlType"]
}
