{"version":3,"file":"AnimatedGradientBorderRoot.rsFZrs9k.mjs","names":["forwardRef","useMemo","useEffect","_jsx","__esmMin","pe","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","ensureScopedStyle","STYLE_ID","styleTag","ROOT_CLASS","INTERACTIVE_CLASS","cleanupScopedStyleIfUnused","activeStyleUsers","withAnimatedGradientBorderRoot","Component","props","ref","isInteractiveVariant","cursor","opacityValue","hasDefaultCursor","parsedOpacity","composedClassName","init_AnimatedGradientBorderRoot"],"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":"A,gIAAkQ,SAASW,GAAmB,CAA0F,GAAtF,OAAO,SAAW,KAAkC,SAAS,eAAeC,CAAoB,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