{"version":3,"file":"AnimatedGradientText.BnUfaAz5.mjs","names":["useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","J","c","useReducedMotion","init_framer_motion_DhsWWWsN","useIsStaticRenderer","init_framer_BisrWwwE","AnimatedGradientText","isStaticRenderer","prefersReducedMotion","shouldAnimate","gradientStyle","props","Component","init_AnimatedGradientText"],"sources":["https:/framerusercontent.com/modules/kKdYEg0hxv92gpQOEanL/tHciS0vBgkRnNhqoSGCP/AnimatedGradientText.js"],"sourcesContent":["// User request: Create a new code override export named AnimatedGradientText for an existing Framer RichText layer. It must preserve the canvas text content, typography, size, and layout, but render the glyphs with a smoothly moving looping linear gradient. Use a restrained blue-to-violet-to-pink gradient with a seamless 5–6 second cycle. Do not hardcode text content. Respect prefers-reduced-motion by stopping motion while retaining a readable gradient.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useMemo}from\"react\";import{useIsStaticRenderer}from\"framer\";import{useReducedMotion}from\"framer-motion\";export function AnimatedGradientText(Component){return /*#__PURE__*/forwardRef(function AnimatedGradientTextOverride(props,ref){const isStaticRenderer=useIsStaticRenderer();const prefersReducedMotion=useReducedMotion();const shouldAnimate=!isStaticRenderer&&!prefersReducedMotion;const gradientStyle=useMemo(()=>({...props.style,backgroundImage:\"linear-gradient(110deg, #000000 25%, #BFBFBF 50%, #2D2D2D 75%)\",backgroundSize:\"220% 220%\",backgroundPosition:\"0% 50%\",backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\"}),[props.style]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:gradientStyle,animate:shouldAnimate?{backgroundPosition:[\"0% 50%\",\"100% 50%\",\"0% 50%\"]}:undefined,transition:shouldAnimate?{duration:5.6,ease:\"linear\",repeat:Infinity}:undefined});});}\nexport const __FramerMetadata__ = {\"exports\":{\"AnimatedGradientText\":{\"type\":\"reactHoc\",\"name\":\"AnimatedGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedGradientText.map"],"mappings":"A,6NACqK,SAAgBW,EAAqB,EAAU,CAAC,MAAoB,gBAAW,SAAsC,EAAM,EAAI,CAAC,IAAMC,EAAiBH,EAAoB,EAAQI,EAAqBN,EAAiB,EAAQO,EAAc,CAACF,GAAkB,CAACC,EAA2BE,EAAcf,OAAa,CAAC,GAAGgB,EAAM,MAAM,gBAAgB,iEAAiE,eAAe,YAAY,mBAAmB,SAAS,eAAe,OAAO,qBAAqB,OAAO,MAAM,cAAc,oBAAoB,aAAa,GAAG,CAACA,EAAM,KAAK,CAAC,EAAE,MAAoB,gBAAKC,EAAU,CAAK,MAAI,GAAGD,EAAM,MAAMD,EAAc,QAAQD,EAAc,CAAC,mBAAmB,CAAC,SAAS,WAAW,QAAQ,CAAC,EAAE,IAAA,GAAU,WAAWA,EAAc,CAAC,SAAS,IAAI,KAAK,SAAS,OAAO,GAAQ,EAAE,IAAA,EAAS,CAAC,CAAE,CAAC,CAAE,C"}