{"version":3,"file":"DownloadFileButton.BNSYEOL2.mjs","names":["GeneralButton"],"sources":["https:/framerusercontent.com/modules/XinSr38vETQrrmU0pqaf/AzvfNAqMuJWMDZGK4K7q/DownloadFileButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import GeneralButton from\"https://framerusercontent.com/modules/XeNnF5SJKxovCnrGKgpU/CHjWAuxrObv6JsZ8ITEP/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\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8MAIG,SAAwB,EAAmB,CAAC,OAAK,QAAM,GAAG,GAAO,CAAC,OAAoB,EAAKA,EAAc,CAAC,GAAG,EAAM,YAAY,CAAC,IAAM,EAAK,SAAS,cAAc,IAAI,CAAC,EAAK,KAAK,EAAK,EAAK,SAAS,WAAW,SAAS,KAAK,YAAY,EAAK,CAAC,EAAK,OAAO,CAAC,EAAK,QAAQ,EAAS,QAAM,CAAC,kBAJjP,IAAoD,IAAwH,CAIuE,EAAmB,aAAa,CAAC,MAAM,WAAW,CAAC,EAAmB,YAAY,wBAAwB,EAAoB,EAAmB,CAAC,QAAQA,EAAc,iBAAiB,QAAQ,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,OAAO,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,KAAK,iBAAiB,EAAE,CAAC,CAAC,CAAC"}