{"version":3,"file":"MeravRefinedInteraction.CcdqV9RQ.mjs","names":["useRef","_Fragment","__esmMin","init_npm_react_18_3_1","l","p","c","J","init_jsx_runtime","ce","de","withSectionHeading","Component","props","withRefinedInteraction","id","rootRef","root","previous","node","ref","init_MeravRefinedInteraction"],"sources":["https:/framerusercontent.com/modules/dMR11x59rs9Sumh8a5ht/pqB12RUNpcsXcHIUBaus/MeravRefinedInteraction.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";export function withSectionHeading(Component){return /*#__PURE__*/forwardRef(function SectionHeading(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,role:\"heading\",\"aria-level\":2});});}// Enhances existing native canvas links without changing their layout or content.\nexport function withRefinedInteraction(Component){return /*#__PURE__*/forwardRef(function RefinedInteraction(props,ref){const id=\"merav-refined-interaction\";const rootRef=useRef(null);useEffect(()=>{const root=rootRef.current;if(!root||root.tagName!==\"A\"||root.getAttribute(\"href\"))return;const previous=root.getAttribute(\"tabindex\");root.removeAttribute(\"tabindex\");return()=>{if(previous!==null)root.setAttribute(\"tabindex\",previous);};},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                .${id}:is(a[href],button,[role=\"link\"]) [data-framer-name=\"Interaction title\"],\n                .${id}:is(a[href],button,[role=\"link\"]) [data-framer-name=\"Interaction arrow\"] {\n                    transition: transform 240ms cubic-bezier(.22,1,.36,1);\n                }\n                .${id}:is(a[href],button,[role=\"link\"]):focus-visible { outline: 2px solid #987b57; outline-offset: 5px; }\n                .${id}:is(a[href],button,[role=\"link\"]):focus-visible [data-framer-name=\"Interaction title\"] { transform: translateX(4px) !important; }\n                .${id}:is(a[href],button,[role=\"link\"]):focus-visible [data-framer-name=\"Interaction arrow\"] { transform: translate(4px,-2px) !important; }\n                @media (hover:hover) and (pointer:fine) {\n                    .${id}:is(a[href],button,[role=\"link\"]):hover [data-framer-name=\"Interaction title\"] { transform: translateX(4px) !important; }\n                    .${id}:is(a[href],button,[role=\"link\"]):hover [data-framer-name=\"Interaction arrow\"] { transform: translate(4px,-2px) !important; }\n                    .${id}:is(a[href],button,[role=\"link\"]):active [data-framer-name=\"Interaction title\"] { transform: translateX(2px) !important; transition-duration: 100ms; }\n                    .${id}:is(a[href],button,[role=\"link\"]):active [data-framer-name=\"Interaction arrow\"] { transform: translate(2px,-1px) !important; transition-duration: 100ms; }\n                }\n                @media (prefers-reduced-motion: reduce) {\n                    .${id}:is(a[href],button,[role=\"link\"]) [data-framer-name=\"Interaction title\"],\n                    .${id}:is(a[href],button,[role=\"link\"]) [data-framer-name=\"Interaction arrow\"] { transform: none !important; transition: none !important; }\n                }\n            `}}),/*#__PURE__*/_jsx(Component,{...props,ref:node=>{rootRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},className:[props.className,id].filter(Boolean).join(\" \")})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSectionHeading\":{\"type\":\"reactHoc\",\"name\":\"withSectionHeading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRefinedInteraction\":{\"type\":\"reactHoc\",\"name\":\"withRefinedInteraction\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MeravRefinedInteraction.map"],"mappings":"A,8IAA8H,SAAgBW,EAAmB,EAAU,CAAC,MAAoB,gBAAW,SAAwB,EAAM,EAAI,CAAC,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAU,MAAI,KAAK,UAAU,aAAa,CAAC,CAAC,CAAE,CAAC,CAAE,CACtU,SAAgBC,EAAuB,EAAU,CAAC,MAAoB,gBAAW,SAA4B,EAAM,EAAI,CAAC,IAAMC,EAAG,4BAAkCC,EAAQhB,EAAO,IAAI,EAAsQ,OAApQS,MAAc,CAAC,IAAMQ,EAAKD,EAA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