{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/rofp3mS0LNY15cjhHzia/Ycw95yYPzpr98rHtCJMh/BlurGradient.js"],
  "sourcesContent": ["import { jsx as r } from \"react/jsx-runtime\";\nimport { addPropertyControls as t, ControlType as e } from \"framer\"; /**\n                                                                     * @framerDisableUnlink\n                                                                     *\n                                                                     * @framerIntrinsicWidth 240\n                                                                     * @framerIntrinsicHeight 240\n                                                                     *\n                                                                     * @framerSupportedLayoutWidth fixed\n                                                                     * @framerSupportedLayoutHeight fixed\n                                                                     */\nfunction a({\n  blur: t,\n  borderRadius: e,\n  direction: a\n}) {\n  let i = r => {\n      switch (r) {\n        case \"toBottom\":\n        default:\n          return \"to bottom\";\n        case \"toTop\":\n          return \"to top\";\n        case \"toLeft\":\n          return \"to left\";\n        case \"toRight\":\n          return \"to right\";\n      }\n    },\n    o = [{\n      blur: `${t / 2 / 2 / 2 / 2 / 2 / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%\"\n    }, {\n      blur: `${t / 2 / 2 / 2 / 2 / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%\"\n    }, {\n      blur: `${t / 2 / 2 / 2 / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%\"\n    }, {\n      blur: `${t / 2 / 2 / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%\"\n    }, {\n      blur: `${t / 2 / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%\"\n    }, {\n      blur: `${t / 2 / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%\"\n    }, {\n      blur: `${t / 2}px`,\n      gradient: \"rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%\"\n    }, {\n      blur: `${t}px`,\n      gradient: \"rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%\"\n    }];\n  return /*#__PURE__*/r(\"div\", {\n    style: {\n      position: \"relative\",\n      width: \"100%\",\n      height: \"100%\",\n      borderRadius: `${e}px`\n    },\n    children: o.map((t, o) => /*#__PURE__*/r(\"div\", {\n      style: {\n        position: \"absolute\",\n        inset: 0,\n        zIndex: o + 1,\n        backdropFilter: `blur(${t.blur})`,\n        WebkitBackdropFilter: `blur(${t.blur})`,\n        maskImage: `linear-gradient(${i(a)}, ${t.gradient})`,\n        WebkitMaskImage: `linear-gradient(${i(a)}, ${t.gradient})`,\n        borderRadius: `${e}px`,\n        pointerEvents: \"none\"\n      }\n    }, o))\n  });\n}\na.defaultProps = {\n  blur: 10,\n  borderRadius: 0,\n  direction: \"toBottom\"\n}, t(a, {\n  blur: {\n    title: \"Blur\",\n    type: e.Number,\n    defaultValue: 10,\n    min: 0,\n    max: 100,\n    step: 1,\n    description: \"Large blur values (10<) can impact performance.\"\n  },\n  borderRadius: {\n    title: \"Radius\",\n    type: e.Number,\n    defaultValue: 0,\n    min: 0,\n    max: 100,\n    step: 1,\n    description: \"Blur Gradient component's parent frame can't have border radius (it will break the component). If you need corner radius, apply it directly to the Blur Gradient component here.\"\n  },\n  direction: {\n    title: \"Direction\",\n    type: e.SegmentedEnum,\n    options: [\"toBottom\", \"toTop\", \"toLeft\", \"toRight\"],\n    optionTitles: [\"\u2193\", \"\u2191\", \"\u2190\", \"\u2192\"],\n    defaultValue: \"toBottom\"\n  }\n});\nexport default a;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"BlurGradient\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutWidth\": \"fixed\",\n        \"framerContractVersion\": \"1\",\n        \"framerDisableUnlink\": \"*\",\n        \"framerIntrinsicHeight\": \"240\",\n        \"framerIntrinsicWidth\": \"240\",\n        \"framerSupportedLayoutHeight\": \"fixed\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./BlurGradient.map"],
  "mappings": "2FAUA,SAASA,EAAE,CACT,KAAMC,EACN,aAAcC,EACd,UAAWF,CACb,EAAG,CACD,IAAIG,EAAIC,GAAK,CACT,OAAQA,EAAG,CACT,IAAK,WACL,QACE,MAAO,YACT,IAAK,QACH,MAAO,SACT,IAAK,SACH,MAAO,UACT,IAAK,UACH,MAAO,UACX,CACF,EACAC,EAAI,CAAC,CACH,KAAM,GAAGJ,EAAI,EAAI,EAAI,EAAI,EAAI,EAAI,EAAI,MACrC,SAAU,2FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,EAAI,EAAI,EAAI,EAAI,EAAI,MACjC,SAAU,4FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,EAAI,EAAI,EAAI,EAAI,MAC7B,SAAU,4FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,EAAI,EAAI,EAAI,MACzB,SAAU,4FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,EAAI,EAAI,MACrB,SAAU,4FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,EAAI,MACjB,SAAU,6FACZ,EAAG,CACD,KAAM,GAAGA,EAAI,MACb,SAAU,qEACZ,EAAG,CACD,KAAM,GAAGA,MACT,SAAU,+CACZ,CAAC,EACH,OAAoBK,EAAE,MAAO,CAC3B,MAAO,CACL,SAAU,WACV,MAAO,OACP,OAAQ,OACR,aAAc,GAAGJ,KACnB,EACA,SAAUG,EAAE,IAAI,CAACJ,EAAGI,IAAmBC,EAAE,MAAO,CAC9C,MAAO,CACL,SAAU,WACV,MAAO,EACP,OAAQD,EAAI,EACZ,eAAgB,QAAQJ,EAAE,QAC1B,qBAAsB,QAAQA,EAAE,QAChC,UAAW,mBAAmBE,EAAEH,CAAC,MAAMC,EAAE,YACzC,gBAAiB,mBAAmBE,EAAEH,CAAC,MAAMC,EAAE,YAC/C,aAAc,GAAGC,MACjB,cAAe,MACjB,CACF,EAAGG,CAAC,CAAC,CACP,CAAC,CACH,CACAL,EAAE,aAAe,CACf,KAAM,GACN,aAAc,EACd,UAAW,UACb,EAAGO,EAAEP,EAAG,CACN,KAAM,CACJ,MAAO,OACP,KAAMQ,EAAE,OACR,aAAc,GACd,IAAK,EACL,IAAK,IACL,KAAM,EACN,YAAa,iDACf,EACA,aAAc,CACZ,MAAO,SACP,KAAMA,EAAE,OACR,aAAc,EACd,IAAK,EACL,IAAK,IACL,KAAM,EACN,YAAa,kLACf,EACA,UAAW,CACT,MAAO,YACP,KAAMA,EAAE,cACR,QAAS,CAAC,WAAY,QAAS,SAAU,SAAS,EAClD,aAAc,CAAC,SAAK,SAAK,SAAK,QAAG,EACjC,aAAc,UAChB,CACF,CAAC,EACD,IAAOC,EAAQT",
  "names": ["a", "t", "e", "i", "r", "o", "p", "addPropertyControls", "ControlType", "BlurGradient_default"]
}
