{"version":3,"file":"AnimatedGradientBorderRoot.8zb-LdRT.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/0w8cGIgORbEFr6G6PPr3/IzuIPIWJa3QwLY54m7Yn/AnimatedGradientBorderRoot.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useMemo}from\"react\";const ROOT_CLASS=\"upvio-subtle-glow-root\";const INTERACTIVE_CLASS=\"upvio-subtle-glow-interactive\";const STYLE_ID=\"upvio-subtle-glow-root-style\";let activeStyleUsers=0;function ensureScopedStyle(){if(typeof document===\"undefined\")return;const existing=document.getElementById(STYLE_ID);if(existing)return;const styleTag=document.createElement(\"style\");styleTag.id=STYLE_ID;styleTag.textContent=`\n.${ROOT_CLASS} {\n    position: relative;\n    isolation: isolate;\n    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;\n}\n\n.${ROOT_CLASS}::before {\n    content: \"\";\n    position: absolute;\n    inset: 0;\n    border-radius: inherit;\n    background: var(--token-ffcd6dc3-7f1c-48a2-9241-72690074f128);\n    opacity: 0;\n    transition: opacity 0.25s ease;\n    pointer-events: none;\n    z-index: 0;\n}\n\n.${ROOT_CLASS} > * {\n    position: relative;\n    z-index: 1;\n}\n\n.${INTERACTIVE_CLASS}:hover {\n    border-color: color-mix(in srgb, var(--token-a4318860-4c5d-4ec5-8735-820608f2b020) 65%, transparent) !important;\n    box-shadow:\n        0 0 0 2px var(--token-987e5cde-c0ae-457e-aff5-82e8f9775bd4),\n        0 0 40px 4px var(--token-987e5cde-c0ae-457e-aff5-82e8f9775bd4);\n}\n\n.${INTERACTIVE_CLASS}:hover::before {\n    opacity: 1;\n}\n`;document.head.appendChild(styleTag);}function cleanupScopedStyleIfUnused(){if(typeof document===\"undefined\")return;if(activeStyleUsers>0)return;const styleTag=document.getElementById(STYLE_ID);if(styleTag?.parentNode){styleTag.parentNode.removeChild(styleTag);}}/**\n * Replacement override for \"Solution Card/Homepage\" root.\n * Quiet hover state for the interactive variant only: border tints toward\n * Upvio Main, a soft Effects/Glow/Accent bloom, and a Surface/Elevated\n * background lift, all cross-fading in on :hover. No animation, no JS\n * driving it frame to frame — plain CSS, so it's indifferent to the card's\n * aspect ratio.\n */export function withAnimatedGradientBorderRoot(Component){return /*#__PURE__*/forwardRef(function WithSubtleGlowRoot(props,ref){const isInteractiveVariant=useMemo(()=>{const cursor=props.style?.cursor;const opacityValue=props.style?.opacity;const hasDefaultCursor=cursor===\"default\";const parsedOpacity=typeof opacityValue===\"number\"?opacityValue:typeof opacityValue===\"string\"?Number.parseFloat(opacityValue):1;const isDimmed=Number.isFinite(parsedOpacity)&&parsedOpacity<1;return!hasDefaultCursor&&!isDimmed;},[props.style?.cursor,props.style?.opacity]);useEffect(()=>{activeStyleUsers+=1;ensureScopedStyle();return()=>{activeStyleUsers=Math.max(0,activeStyleUsers-1);cleanupScopedStyleIfUnused();};},[]);const composedClassName=[props.className,ROOT_CLASS,isInteractiveVariant?INTERACTIVE_CLASS:null].filter(Boolean).join(\" \");return /*#__PURE__*/_jsx(Component,{ref:ref,...props,className:composedClassName});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAnimatedGradientBorderRoot\":{\"type\":\"reactHoc\",\"name\":\"withAnimatedGradientBorderRoot\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedGradientBorderRoot.map"],"mappings":"2HAAkQ,SAAS,GAAmB,CAA0F,GAAtF,OAAO,SAAW,KAAkC,SAAS,eAAe,CAAoB,EAAE,OAAO,IAAM,EAAS,SAAS,cAAc,OAAO,EAAE,EAAS,GAAG,EAAS,EAAS,YAAY;GACje,EAAW;;;;;;GAMX,EAAW;;;;;;;;;;;;GAYX,EAAW;;;;;GAKX,EAAkB;;;;;;;GAOlB,EAAkB;;;EAGnB,SAAS,KAAK,YAAY,CAAQ,CAAE,CAAC,SAAS,GAA4B,CAAyC,GAArC,OAAO,SAAW,K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