{"version":3,"file":"ColorGradient_2.Dt2Fm32C.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/hrW6Y68CJ9uQVg7DeoqO/3DYDIOU6qLNPPbODc61G/ColorGradient_2.js"],"sourcesContent":["// Animated looping gradient background with 4 user-selectable colors\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * ColorGradient\n *\n * @framerIntrinsicWidth 130\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ColorGradient(props){const{color1,color2,color3,color4,speed=16,style}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);// Keyframes for 4-color gradient loop\nconst keyframes=`\n    @keyframes gradientShift {\n        0%   { background-position: 0% 50%; }\n        25%  { background-position: 100% 50%; }\n        50%  { background-position: 200% 50%; }\n        75%  { background-position: 300% 50%; }\n        100% { background-position: 400% 50%; }\n    }\n    `;useEffect(()=>{if(!ref.current)return;// Inject keyframes into a style tag\nlet styleTag=document.getElementById(\"animated-gradient-keyframes\");if(!styleTag){styleTag=document.createElement(\"style\");styleTag.id=\"animated-gradient-keyframes\";document.head.appendChild(styleTag);}styleTag.textContent=keyframes;},[color1,color2,color3,color4,keyframes]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:130,height:50,borderRadius:8,...style,background:`linear-gradient(270deg, ${color1}, ${color2}, ${color3}, ${color4}, ${color1})`,backgroundSize:\"400% 400%\",animation:isStatic?undefined:`gradientShift ${speed}s linear infinite`,transition:undefined},\"aria-label\":\"Animated gradient background\"});}addPropertyControls(ColorGradient,{color1:{type:ControlType.Color,title:\"Color 1\",defaultValue:\"#0099FF\"},color2:{type:ControlType.Color,title:\"Color 2\",defaultValue:\"#8855FF\"},color3:{type:ControlType.Color,title:\"Color 3\",defaultValue:\"#FFBB00\"},color4:{type:ControlType.Color,title:\"Color 4\",defaultValue:\"#22CC66\"},speed:{type:ControlType.Number,title:\"Speed (s)\",defaultValue:16,min:2,max:60,step:1,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ColorGradient\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"130\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"50\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ColorGradient_2.map"],"mappings":"yLASG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,SAAO,SAAO,QAAM,GAAG,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAIA,EAAO,IAAI,EAC5J,EAAU;;;;;;;;MASoQ,OAD9Q,MAAc,CAAC,GAAG,CAAC,EAAI,QAAQ,OACrC,IAAI,EAAS,SAAS,eAAe,6BAA6B,EAAM,IAAU,EAAS,SAAS,cAAc,OAAO,EAAE,EAAS,GAAG,8BAA8B,SAAS,KAAK,YAAY,CAAQ,GAAG,EAAS,YAAY,CAAU,EAAE,CAAC,EAAO,EAAO,EAAO,EAAO,CAAS,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,IAAI,OAAO,GAAG,aAAa,EAAE,GAAG,EAAM,WAAW,2BAA2B,EAAO,IAAI,EAAO,IAAI,EAAO,IAAI,EAAO,IAAI,EAAO,GAAG,eAAe,YAAY,UAAU,EAAS,IAAA,GAAU,iBAAiB,EAAM,mBAAmB,WAAW,IAAA,EAAS,EAAE,aAAa,8BAA8B,CAAC,CAAE,iBAlBvkB,IAAoC,IAAwE,EAkB4d,EAAoB,EAAc,CAAC,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,UAAU,aAAa,SAAS,EAAE,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,UAAU,aAAa,SAAS,EAAE,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,UAAU,aAAa,SAAS,EAAE,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,UAAU,aAAa,SAAS,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,eAAe,EAAI,CAAC,CAAC"}