{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/0OkYzZwtM1VV1XrKPkIb/1ADA2MaIN99rgjkM8Jgv/Download_button.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { motion } from \"framer-motion\";\nimport { 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 */\nexport default function Download(props) {\n  const {\n    title,\n    tint,\n    style,\n    file\n  } = props;\n  return /*#__PURE__*/_jsx(motion.div, {\n    style: {\n      ...style,\n      ...containerStyle\n    },\n    children: /*#__PURE__*/_jsx(motion.div, {\n      onTap: () => {\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      style: {\n        margin: 24,\n        padding: 24,\n        borderRadius: 999,\n        backgroundColor: tint,\n        color: \"#1A1A1A\",\n        fontSize: \"18px\",\n        fontWeight: \"bold\",\n        cursor: \"pointer\"\n      },\n      whileHover: {\n        scale: 1.01\n      },\n      children: title\n    })\n  });\n}\n;\nDownload.defaultProps = {\n  tint: \"#09F\",\n  title: \"Download\"\n};\naddPropertyControls(Download, {\n  tint: {\n    title: \"Tint\",\n    type: ControlType.Color\n  },\n  title: {\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\": \"Download\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutWidth\": \"any\",\n        \"framerSupportedLayoutHeight\": \"any\",\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Download_button.map"],
  "mappings": "2FAWe,SAARA,EAA0BC,EAAO,CACtC,GAAM,CACJ,MAAAC,EACA,KAAAC,EACA,MAAAC,EACA,KAAAC,CACF,EAAIJ,EACJ,OAAoBK,EAAKC,EAAO,IAAK,CACnC,MAAO,CACL,GAAGH,EACH,GAAGI,CACL,EACA,SAAuBF,EAAKC,EAAO,IAAK,CACtC,MAAO,IAAM,CACX,IAAME,EAAO,SAAS,cAAc,GAAG,EACvCA,EAAK,KAAOJ,EACZI,EAAK,SAAW,WAChB,SAAS,KAAK,YAAYA,CAAI,EAC9BA,EAAK,MAAM,EACXA,EAAK,OAAO,CACd,EACA,MAAO,CACL,OAAQ,GACR,QAAS,GACT,aAAc,IACd,gBAAiBN,EACjB,MAAO,UACP,SAAU,OACV,WAAY,OACZ,OAAQ,SACV,EACA,WAAY,CACV,MAAO,IACT,EACA,SAAUD,CACZ,CAAC,CACH,CAAC,CACH,CAEAF,EAAS,aAAe,CACtB,KAAM,OACN,MAAO,UACT,EACAU,EAAoBV,EAAU,CAC5B,KAAM,CACJ,MAAO,OACP,KAAMW,EAAY,KACpB,EACA,MAAO,CACL,MAAO,QACP,KAAMA,EAAY,MACpB,EACA,KAAM,CACJ,MAAO,OACP,KAAMA,EAAY,KAClB,iBAAkB,CAAC,CACrB,CACF,CAAC,EACD,IAAMH,EAAiB,CACrB,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,SAAU,QACZ",
  "names": ["Download", "props", "title", "tint", "style", "file", "p", "motion", "containerStyle", "link", "addPropertyControls", "ControlType"]
}
