{"version":3,"file":"Gradient_Headlines.DuU78ALb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/i6WbIXGHD4yeSXZqDC5H/fA1wlfGihQTrh5H9PuEf/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:\"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\",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\":{\"withFullGradientText\":{\"type\":\"reactHoc\",\"name\":\"withFullGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPartialGradientText\":{\"type\":\"reactHoc\",\"name\":\"withPartialGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gradient_Headlines.map"],"mappings":"0HACA,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,OAAO,EAAE,CAAC,WAAW,kLAAkL,qBAAqB,OAAO,oBAAoB,cAAc,eAAe,OAAO,MAAM,cAAc,QAAQ,eAAe,CAAC,CAAC,CACpc,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,mBAJ5F"}