{"version":3,"file":"ShimmerGradientText.BCLibVLy.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/8TgvBmBFx0AWSL2MexOB/HeY6OT3arMUh7brbFpF7/ShimmerGradientText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// User request: fix design-canvas visibility by detecting Framer canvas/static rendering and showing a visible static gradient there, while preserving preview/published entrance + shimmer animation exactly and keeping all existing controls/sizing/typography/colors/timing unchanged.\n/**\n * Shimmer Gradient Text\n * ----------------\n * Renders italic display text filled with a moving 3-color gradient,\n * plus a soft blur-in entrance on load. This is the \"turn readers\" /\n * \"because I needed one\" style phrase used once per page hero.\n *\n * Replaces: the gradient-clipped, shimmering headline word on every\n * page's hero (Homepage, Services, Contact, Resources, About, Journal).\n *\n * How to use in Framer:\n * 1. Drag \"Shimmer Gradient Text\" onto your canvas.\n * 2. Leave the layer's width as Fit Content so it hugs the text.\n * 3. Type your phrase into \"Text\" and match the font size to the rest\n *    of that page's headline.\n * 4. Leave the three colors as-is for the brand gradient (blue → purple\n *    → yellow) unless a page calls for a variation.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ShimmerGradientText(props){const{text=\"turn readers\",fontSize=48,fontFamily=\"Cormorant Garamond, serif\",fontWeight=600,italic=true,colorA=\"#188BFF\",colorB=\"#8A2BFF\",colorC=\"#FFE138\",speed=7}=props;const isStaticRenderer=useIsStaticRenderer();const gradientBackgroundImage=React.useMemo(()=>`linear-gradient(92deg, ${colorA} 0%, ${colorB} 35%, ${colorC} 60%, ${colorB} 82%, ${colorA} 100%)`,[colorA,colorB,colorC]);const textStyle=React.useMemo(()=>({position:\"relative\",display:\"inline-block\",maxWidth:\"100%\",whiteSpace:\"normal\",fontFamily,fontWeight,fontStyle:italic?\"italic\":\"normal\",fontSize,backgroundImage:gradientBackgroundImage,backgroundSize:\"220% 100%\",WebkitBackgroundClip:\"text\",backgroundClip:\"text\",color:\"transparent\"}),[fontFamily,fontWeight,italic,fontSize,gradientBackgroundImage]);if(isStaticRenderer){return /*#__PURE__*/_jsx(\"span\",{style:{...textStyle,backgroundPosition:\"50% 50%\"},children:text});}return /*#__PURE__*/_jsx(motion.span,{initial:{opacity:0,filter:\"blur(18px)\",scale:1.1},animate:{opacity:1,filter:\"blur(0px)\",scale:1,backgroundPosition:[\"0% 50%\",\"100% 50%\",\"0% 50%\"]},transition:{opacity:{duration:.8,ease:[.22,.61,.36,1]},filter:{duration:.8,ease:[.22,.61,.36,1]},scale:{duration:.8,ease:[.22,.61,.36,1]},backgroundPosition:{duration:speed,repeat:Infinity,ease:\"easeInOut\",delay:.8}},style:textStyle,children:text});}addPropertyControls(ShimmerGradientText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"turn readers\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:12,max:160,step:1,defaultValue:48},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Cormorant Garamond, serif\"},fontWeight:{type:ControlType.Number,title:\"Font Weight\",min:100,max:900,step:100,defaultValue:600},italic:{type:ControlType.Boolean,title:\"Italic\",defaultValue:true},colorA:{type:ControlType.Color,title:\"Color 1\",defaultValue:\"#188BFF\"},colorB:{type:ControlType.Color,title:\"Color 2\",defaultValue:\"#8A2BFF\"},colorC:{type:ControlType.Color,title:\"Color 3\",defaultValue:\"#FFE138\"},speed:{type:ControlType.Number,title:\"Shimmer Speed (s)\",min:2,max:20,step:1,defaultValue:7}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShimmerGradientText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShimmerGradientText.map"],"mappings":"mOAqBG,SAAw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