{"version":3,"file":"Blur_Gradient.BqLqO2Ss.mjs","names":["React.useMemo","React.useId"],"sources":["https:/framerusercontent.com/modules/e0jagDtiKlgWW8Ov7SAU/qSUxyFezoBKAVyB2s8ke/Blur_Gradient.js"],"sourcesContent":["// User instructions: Rewrite the component completely so it works (shows up). Fix the 0x0 sizing issue by ensuring a minimum size of 5x5 so it can be seen and selected on the canvas.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Blurred Animated Gradient\n *\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function BlurredAnimatedGradient(props){const{gradientColors=[\"#ff6e7f\",\"#bfe9ff\"],angle=45,blurAmount=15,opacity=1,animationDuration=3,animate=true,backgroundColor=\"#FFFFFF\",style}=props;const isStatic=useIsStaticRenderer();const safeColors=React.useMemo(()=>{const filtered=(gradientColors||[]).filter(Boolean);if(filtered.length>=2)return filtered;if(filtered.length===1)return[filtered[0],filtered[0]];return[\"#ff6e7f\",\"#bfe9ff\"];},[gradientColors]);const keyframeName=React.useId().replace(/:/g,\"_\");const keyframes=React.useMemo(()=>{return`@keyframes ${keyframeName} {\n  0% { background-position: 0% 50%; }\n  50% { background-position: 100% 50%; }\n  100% { background-position: 0% 50%; }\n}`;},[keyframeName]);const containerStyle={position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",backgroundColor,...style,// Enforce a minimum visible/selectable size even if Framer provides 0x0 sizing.\nminWidth:5,minHeight:5};const gradientStyle={position:\"absolute\",inset:0,pointerEvents:\"none\",zIndex:0,opacity,backgroundImage:`linear-gradient(${angle}deg, ${safeColors.join(\", \")})`,backgroundSize:\"200% 200%\",backgroundPosition:\"0% 50%\",filter:blurAmount>0?`blur(${blurAmount}px)`:undefined,transform:blurAmount>0?\"scale(1.1)\":undefined,willChange:animate&&!isStatic?\"background-position\":undefined,animation:animate&&!isStatic?`${keyframeName} ${Math.max(.1,animationDuration)}s ease-in-out infinite`:undefined};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,\"aria-hidden\":true,children:[!isStatic&&animate?/*#__PURE__*/_jsx(\"style\",{children:keyframes}):null,/*#__PURE__*/_jsx(\"div\",{style:gradientStyle})]});}addPropertyControls(BlurredAnimatedGradient,{gradientColors:{type:ControlType.Array,title:\"Gradient Colors\",control:{type:ControlType.Color,defaultValue:\"#ff6e7f\"},defaultValue:[\"#ff6e7f\",\"#bfe9ff\"],maxCount:6},angle:{type:ControlType.Number,title:\"Angle\",defaultValue:45,min:0,max:360,step:1,unit:\"deg\"},blurAmount:{type:ControlType.Number,title:\"Blur\",min:0,max:200,step:1,defaultValue:15,unit:\"px\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.01},animate:{type:ControlType.Boolean,title:\"Animate\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},animationDuration:{type:ControlType.Number,title:\"Duration\",min:.5,max:20,step:.1,defaultValue:3,unit:\"s\",hidden:p=>!p.animate},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlurredAnimatedGradient\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"320\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Blur_Gradient.map"],"mappings":"iMASG,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,iBAAe,CAAC,UAAU,SAAS,EAAE,QAAM,GAAG,aAAW,GAAG,UAAQ,EAAE,oBAAkB,EAAE,UAAQ,GAAK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