{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/WcMbHBks2nbpih8cQpDP/AhqzfIsqvEqQBTf3A4Vp/Conic.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType, Color, motion } from \"framer\";\nimport { defaultEvents } from \"https://framer.com/m/framer/default-utils.js@^0.45.0\";\nconst colorToValue = c => Color(c).toValue(); /**\n                                              * CONIC\n                                              *\n                                              * @framerIntrinsicWidth 200\n                                              * @framerIntrinsicHeight 200\n                                              *\n                                              * @framerSupportedLayoutWidth fixed\n                                              * @framerSupportedLayoutHeight fixed\n                                              */\nexport function Conic(props) {\n  const {\n    colors,\n    radius,\n    from,\n    xPos,\n    yPos,\n    blur,\n    onClick,\n    onMouseEnter,\n    onMouseLeave,\n    onMouseDown,\n    onMouseUp,\n    transition\n  } = props; /* The CSS Background String */\n  const background = `conic-gradient(from ${from}deg at ${xPos}% ${yPos * 0.5 + 25}%, ${colors.map(c => colorToValue(c)).join(\",\")})`; /* Fallback variables */\n  let message = \"\";\n  let isEmpty = false;\n  let fallBackColor = colors[0]; /* Fallback for 0 colors or 1 color in array */\n  if (colors.length == 0) {\n    message = \"\uD83D\uDC4B Please add 2+ colors.\";\n    fallBackColor = \"rgba(136, 85, 255, 0.1)\";\n    isEmpty = true;\n  } else if (colors.length == 1) {\n    isEmpty = true;\n    fallBackColor = colors[0];\n  } else {\n    isEmpty = false;\n  }\n  return /*#__PURE__*/_jsx(\"div\", {\n    style: {\n      width: \"100%\",\n      height: \"100%\",\n      overflow: \"hidden\",\n      borderRadius: radius\n    },\n    children: /*#__PURE__*/_jsx(motion.div, {\n      onClick,\n      onMouseEnter,\n      onMouseLeave,\n      onMouseDown,\n      onMouseUp,\n      transition: transition,\n      initial: false,\n      animate: {\n        filter: `blur(${blur}px)`,\n        background: isEmpty ? fallBackColor : background\n      },\n      style: {\n        width: \"100%\",\n        height: \"100%\",\n        display: \"flex\",\n        placeItems: \"center\",\n        placeContent: \"center\",\n        color: \"#85F\"\n      },\n      children: message\n    })\n  });\n} /* Default Properties */\nConic.defaultProps = {\n  colors: [\"cyan\", \"magenta\", \"yellow\", \"cyan\"],\n  blur: 0,\n  radius: 0,\n  from: 0,\n  xPos: 50,\n  yPos: 50\n}; /* Property Controls, Default Gradient */\naddPropertyControls(Conic, {\n  colors: {\n    type: ControlType.Array,\n    title: \"Colors\",\n    control: {\n      type: ControlType.Color,\n      title: \"Color\"\n    },\n    defaultValue: Conic.defaultProps.colors\n  },\n  radius: {\n    type: ControlType.Number,\n    title: \"Radius\",\n    min: 0,\n    max: 500\n  },\n  blur: {\n    type: ControlType.Number,\n    title: \"Blur\",\n    min: 0,\n    max: 100\n  },\n  from: {\n    type: ControlType.Number,\n    title: \"Angle\",\n    unit: \"\u00B0\",\n    min: 0,\n    max: 1080,\n    displayStepper: true,\n    step: 15\n  },\n  xPos: {\n    type: ControlType.Number,\n    title: \"X\",\n    unit: \"%\",\n    min: 0,\n    max: 100\n  },\n  yPos: {\n    type: ControlType.Number,\n    title: \"Y\",\n    unit: \"%\",\n    min: 0,\n    max: 100\n  },\n  ...defaultEvents\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"Conic\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Conic\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerIntrinsicHeight\": \"200\",\n        \"framerSupportedLayoutWidth\": \"fixed\",\n        \"framerContractVersion\": \"1\",\n        \"framerIntrinsicWidth\": \"200\",\n        \"framerSupportedLayoutHeight\": \"fixed\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Conic.map"],
  "mappings": "gJAGA,IAAMA,EAAeC,GAAKC,EAAMD,CAAC,EAAE,QAAQ,EASpC,SAASE,EAAMC,EAAO,CAC3B,GAAM,CACJ,OAAAC,EACA,OAAAC,EACA,KAAAC,EACA,KAAAC,EACA,KAAAC,EACA,KAAAC,EAC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,QACP,KAAM,OACN,IAAK,EACL,IAAK,KACL,eAAgB,GAChB,KAAM,EACR,EACA,KAAM,CACJ,KAAMA,EAAY,OAClB,MAAO,IACP,KAAM,IACN,IAAK,EACL,IAAK,GACP,EACA,KAAM,CACJ,KAAMA,EAAY,OAClB,MAAO,IACP,KAAM,IACN,IAAK,EACL,IAAK,GACP,EACA,GAAGC,CACL,CAAC",
  "names": ["colorToValue", "c", "Color", "Conic", "props", "colors", "radius", "from", "xPos", "yPos", "blur", "onClick", "onMouseEnter", "onMouseLeave", "onMouseDown", "onMouseUp", "transition", "background", "message", "isEmpty", "fallBackColor", "p", "motion", "addPropertyControls", "ControlType", "defaultEvents"]
}
