{"version":3,"file":"Gradient_Headlines.dwQfHzBi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/i6WbIXGHD4yeSXZqDC5H/mE9LDRlqNK8BYyZHhzts/Gradient_Headlines.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// HOC to apply full gradient effect to all text\nexport function withFullGradientText(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style||{},background:`\n                        radial-gradient(\n                            circle at 0% 50%,\n                            #FFB366 15%,\n                            #FF00AA 45%,\n                            rgba(193, 143, 204, 0.5) 60%\n                        ),\n                        radial-gradient(\n                            circle at 100% 50%,\n                            #9866CC 25%,\n                            #330066 65%\n                        )\n                    `,/*    \"radial-gradient(100% 454.89% at 0% 0%, #F97316 10%, rgba(255, 0, 174, 0.5) 40%, rgba(194, 143, 204, 0) 55%), radial-gradient(50% 227.45% at 50% 100%, #AD8FCC 0%, #330066 100%)\", */WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",color:\"transparent\",// 👇 halo-killers\nWebkitTextStroke:\"0.25px rgba(255,255,255,0.4)\",WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",textShadow:\"0 0 0 transparent\",mixBlendMode:\"normal\",display:\"inline-block\"}});};}// HOC to apply gradient to a specific phrase\nexport function withPartialGradientText(Component,targetPhrase=\"full-stack agentic apps\"){return props=>{// Function to process text node\nconst processTextNode=text=>{if(!text||typeof text!==\"string\")return text;const parts=text.split(targetPhrase);if(parts.length===1)return text;const result=[];for(let i=0;i<parts.length;i++){if(i>0){result.push(/*#__PURE__*/_jsx(\"span\",{style:{background:\"linear-gradient(77deg, #FFA64D 20%, #CA979F 50%, #FFA64D 80%)\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",color:\"transparent\"},children:targetPhrase},`gradient-${i}`));}if(parts[i]){result.push(parts[i]);}}return result;};// Create wrapper that applies processTextNode to text in children\nreturn /*#__PURE__*/_jsx(Component,{...props,children:typeof props.children===\"string\"?processTextNode(props.children):props.children});};}// Usage example:\n// const GradientHeading = withFullGradientText(Text)\n// const PartialGradientText = withPartialGradientText(Text, \"key phrase\")\n\nexport const __FramerMetadata__ = {\"exports\":{\"withPartialGradientText\":{\"type\":\"reactHoc\",\"name\":\"withPartialGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullGradientText\":{\"type\":\"reactHoc\",\"name\":\"withFullGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gradient_Headlines.map"],"mappings":"oGACA,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,OAAO,EAAE,CAAC,WAAW;;;;;;;;;;;;sBAYgE,qBAAqB,OAAO,oBAAoB,cAAc,eAAe,OAAO,MAAM,cAC3S,iBAAiB,+BAA+B,oBAAoB,cAAc,oBAAoB,YAAY,WAAW,oBAAoB,aAAa,SAAS,QAAQ,eAAe,CAAC,CAAC,CAChM,SAAgB,EAAwB,EAAU,EAAa,0BAA0B,CAAC,MAAO,IAAO,CACxG,IAAM,EAAgB,GAAM,CAAC,GAAG,CAAC,GAAM,OAAO,GAAO,SAAS,OAAO,EAAK,IAAM,EAAM,EAAK,MAAM,EAAa,CAAC,GAAG,EAAM,SAAS,EAAE,OAAO,EAAK,IAAM,EAAO,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAM,OAAO,IAAQ,EAAE,GAAG,EAAO,KAAkB,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,gEAAgE,qBAAqB,OAAO,oBAAoB,cAAc,eAAe,OAAO,MAAM,cAAc,CAAC,SAAS,EAAa,CAAC,YAAY,IAAI,CAAC,CAAK,EAAM,IAAI,EAAO,KAAK,EAAM,GAAG,CAAG,OAAO,GAC9f,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,OAAO,EAAM,UAAW,SAAS,EAAgB,EAAM,SAAS,CAAC,EAAM,SAAS,CAAC,mBAjB5F"}