{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/XinSr38vETQrrmU0pqaf/IPwTWddsEANI9z7hd0lS/DownloadFileButton.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport GeneralButton from \"https://framerusercontent.com/modules/XeNnF5SJKxovCnrGKgpU/UBpjTJf1DkAguIQ7b5XN/KqkL550JR.js\"; /**\n                                                                                                                          *\n                                                                                                                          * @framerSupportedLayoutWidth any\n                                                                                                                          * @framerSupportedLayoutHeight any\n                                                                                                                          */\nexport default function DownloadFileButton({\n  file,\n  label,\n  ...props\n}) {\n  return /*#__PURE__*/_jsx(GeneralButton, {\n    ...props,\n    onClick: () => {\n      const link = document.createElement(\"a\");\n      link.href = file;\n      link.download = \"download\";\n      document.body.appendChild(link);\n      link.click();\n      link.remove();\n    },\n    label: label\n  });\n}\n;\nDownloadFileButton.defaultProps = {\n  label: \"Download\"\n};\nDownloadFileButton.displayName = \"General/Button - File\";\naddPropertyControls(DownloadFileButton, {\n  variant: GeneralButton.propertyControls.variant,\n  label: {\n    title: \"Label\",\n    type: ControlType.String\n  },\n  file: {\n    title: \"File\",\n    type: ControlType.File,\n    allowedFileTypes: []\n  }\n});\nconst containerStyle = {\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  overflow: \"hidden\"\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"DownloadFileButton\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutHeight\": \"any\",\n        \"framerSupportedLayoutWidth\": \"any\",\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};"],
  "mappings": "kIAOe,SAARA,EAAoC,CACzC,KAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EAAG,CACD,OAAoBC,EAAKC,EAAe,CACtC,GAAGF,EACH,QAAS,IAAM,CACb,IAAMG,EAAO,SAAS,cAAc,GAAG,EACvCA,EAAK,KAAOL,EACZK,EAAK,SAAW,WAChB,SAAS,KAAK,YAAYA,CAAI,EAC9BA,EAAK,MAAM,EACXA,EAAK,OAAO,CACd,EACA,MAAOJ,CACT,CAAC,CACH,CAEAF,EAAmB,aAAe,CAChC,MAAO,UACT,EACAA,EAAmB,YAAc,wBACjCO,EAAoBP,EAAoB,CACtC,QAASK,EAAc,iBAAiB,QACxC,MAAO,CACL,MAAO,QACP,KAAMG,EAAY,MACpB,EACA,KAAM,CACJ,MAAO,OACP,KAAMA,EAAY,KAClB,iBAAkB,CAAC,CACrB,CACF,CAAC",
  "names": ["DownloadFileButton", "file", "label", "props", "p", "KqkL550JR_default", "link", "addPropertyControls", "ControlType"]
}
