{"version":3,"file":"ColorCycle.BJ2_eLeh.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cFjPtjbJ051ozDpEHU2p/DcTNk63d3WvgOq1OUG6s/NoiseGradient.js","https:/framerusercontent.com/modules/dXMoFu7V9NbxJuWGeX9h/8zU7so8TlI4oIVv2mQOr/ColorCycle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * NOISE GRADIENT\n * By Benjamin den Boer\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function NoiseGradient(props){const{angle,backgroundColor,backgroundSize,blending,brightness,contrast,gradientColor,overlayColor}=props;let src=\"https://framerusercontent.com/images/BIDFYoNsJ2LPGX7kjhBw8Qrqcc.svg\";const size={width:\"100%\",height:\"100%\"};const inset={position:\"absolute\",inset:0};return /*#__PURE__*/ _jsxs(\"div\",{style:{...size,position:\"relative\",backgroundColor,isolation:\"isolate\"},children:[/*#__PURE__*/ _jsx(\"div\",{style:{...size,...inset,background:`linear-gradient(${angle}deg, ${gradientColor}, transparent), url(${src})`,filter:`contrast(${contrast}%) brightness(${brightness}%)`}}),/*#__PURE__*/ _jsx(\"div\",{style:{...size,...inset,backgroundColor:overlayColor,mixBlendMode:blending}})]});};NoiseGradient.defaultProps={density:1,backgroundColor:\"#FB0\",gradientColor:\"#F30\",overlayColor:\"#FED\",angle:45,contrast:500,brightness:500};NoiseGradient.displayName=\"Noise Gradient\";addPropertyControls(NoiseGradient,{backgroundColor:{type:ControlType.Color,title:\"Fill\"},gradientColor:{type:ControlType.Color,title:\"Gradient\"},angle:{title:\"Angle\",type:ControlType.Number,min:-180,max:180,unit:\"deg\",defaultValue:NoiseGradient.defaultProps.angle},contrast:{title:\"Contrast\",type:ControlType.Number,min:200,max:5e3,unit:\"%\"},brightness:{title:\"Brightness\",type:ControlType.Number,min:100,max:5e3,unit:\"%\"},overlayColor:{type:ControlType.Color,title:\"Overlay\"},blending:{type:ControlType.Enum,defaultValue:\"overlay\",options:[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\",],optionTitles:[\"Normal\",\"Multiply\",\"Screen\",\"Overlay\",\"Darken\",\"Lighten\",\"Color Dodge\",\"Color Burn\",\"Hard Light\",\"Soft Light\",\"Difference\",\"Exclusion\",\"Hue\",\"Saturation\",\"Color\",\"Luminosity\",]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NoiseGradient\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NoiseGradient.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Color}from\"framer\";import{motion}from\"framer-motion\";/**\n * COLOR CYCLE\n * By Benjamin den Boer\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function ColorCycle(props){const{colors,radius,randomStart,animOptions,animRepeat,animPause}=props;let shuffledColors=colors;colors.push(colors[0]);if(randomStart){shuffledColors=colors.map(value=>({value,sort:Math.random()})).sort((a,b)=>a.sort-b.sort).map(({value})=>Color.toHslString(Color(value)));shuffledColors.push(shuffledColors[0]);}return /*#__PURE__*/ _jsx(motion.div,{style:{width:\"100%\",height:\"100%\",backgroundColor:shuffledColors[0],borderRadius:radius,willChange:\"background-color\"},animate:{backgroundColor:[...shuffledColors]},transition:{...animOptions,repeat:animRepeat&&Infinity,repeatType:animRepeat&&\"loop\",repeatDelay:animPause}});};ColorCycle.defaultProps={radius:0,colors:[\"#0CF\",\"#2DD\",\"#F64\",\"#99F\"],randomStart:false,animOptions:{type:\"tween\",ease:[0,0,1,1],duration:1},animRepeat:true,animPause:0};ColorCycle.displayName=\"Color Cycle\";addPropertyControls(ColorCycle,{radius:{type:ControlType.Number,min:0,max:1e3,step:1,displayStepper:true,defaultValue:0},colors:{type:ControlType.Array,control:{type:ControlType.Color},defaultValue:ColorCycle.defaultProps.colors},animOptions:{type:ControlType.Transition,title:\"Transition\",defaultValue:ColorCycle.defaultProps.animOptions},randomStart:{type:ControlType.Boolean,title:\"Randomize\",defaultValue:ColorCycle.defaultProps.randomStart},animRepeat:{type:ControlType.Boolean,title:\"Repeat\",defaultValue:ColorCycle.defaultProps.animRepeat},animPause:{type:ControlType.Number,title:\"Pause\",min:0,max:10,displayStepper:true,step:1,defaultValue:ColorCycle.defaultProps.animPause}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ColorCycle\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ColorCycle.map"],"mappings":"2NAUI,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,kBAAgB,iBAAe,WAAS,aAAW,WAAS,gBAAc,gBAAc,EAA0F,EAAK,CAAC,MAAM,OAAO,OAAO,OAAO,CAAO,EAAM,CAAC,SAAS,WAAW,MAAM,EAAE,CAAC,OAAqB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAK,SAAS,WAAW,kBAAgB,UAAU,UAAU,CAAC,SAAS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