{"version":3,"file":"WithGradientText.D26D_dKA.mjs","names":["__esmMin","init_npm_react_18_3_1","c","J","init_jsx_runtime","ce","ensureStyleTag","STYLE_ID","styleTag","CLASS_NAME","withGradientText","mergedClassName","props","Component","init_WithGradientText"],"sources":["https:/framerusercontent.com/modules/Qtjr6hIaqL4ezXW6Oj5T/QZTj9m6bmcKcfzZAQW3l/WithGradientText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";const STYLE_ID=\"veyro-gradient-text-override-style\";const CLASS_NAME=\"veyro-gradient-text-override\";function ensureStyleTag(){if(typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const styleTag=document.createElement(\"style\");styleTag.id=STYLE_ID;styleTag.textContent=`\n.${CLASS_NAME} {\n    background-image: linear-gradient(90deg, #C6A07A 0%, #F4EFEA 50%, #C6A07A 100%);\n    background-size: 200% 100%;\n    background-position: 0% 50%;\n    background-repeat: repeat;\n    -webkit-background-clip: text;\n    background-clip: text;\n    color: transparent !important;\n    -webkit-text-fill-color: transparent;\n    animation: veyroGradientTextShift 6s ease-in-out infinite alternate;\n}\n\n@keyframes veyroGradientTextShift {\n    0% { background-position: 0% 50%; }\n    100% { background-position: 100% 50%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n    .${CLASS_NAME} {\n        animation: none;\n        background-position: 50% 50%;\n    }\n}\n`;document.head.appendChild(styleTag);}export function withGradientText(Component){return /*#__PURE__*/forwardRef(function WithGradientText(props,ref){useEffect(()=>{ensureStyleTag();},[]);const mergedClassName=[props.className,CLASS_NAME].filter(Boolean).join(\" \");return /*#__PURE__*/_jsx(Component,{ref:ref,...props,className:mergedClassName,style:{...props.style,backgroundImage:\"linear-gradient(90deg, #C6A07A 0%, #F4EFEA 50%, #C6A07A 100%)\",backgroundSize:\"200% 100%\",backgroundPosition:\"0% 50%\",backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\",animation:\"veyroGradientTextShift 6s ease-in-out infinite alternate\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGradientText\":{\"type\":\"reactHoc\",\"name\":\"withGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithGradientText.map"],"mappings":"A,yHAAuL,SAASM,GAAgB,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAeC,CAAQ,EAAE,OAAO,IAAMC,EAAS,SAAS,cAAc,OAAO,EAAE,EAAS,GAAGD,EAAS,EAAS,YAAY;GAC3XE,EAAW;;;;;;;;;;;;;;;;;;OAkBPA,EAAW;;;;;EAKhB,SAAS,KAAK,YAAYD,CAAQ,CAAE,CAAC,SAAgBE,EAAiB,EAAU,CAAC,MAAoB,gBAAW,SAA0B,EAAM,EAAI,CAACL,MAAc,CAACC,EAAe,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMK,EAAgB,CAACC,EAAM,UAAUH,CAAU,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAE,MAAoB,gBAAKI,EAAU,CAAK,MAAI,GAAGD,EAAM,UAAUD,EAAgB,MAAM,CAAC,GAAGC,EAAM,MAAM,gBAAgB,gEAAgE,eAAe,YAAY,mBAAmB,SAAS,eAAe,OAAO,qBAAqB,OAAO,MAAM,cAAc,oBAAoB,cAAc,UAAU,0DAA0D,CAAC,CAAC,CAAE,CAAC,CAAE,C,8CAxBhlB,EAAS,qCAA2C,EAAW,8B"}