{"version":3,"file":"GuideLinkFocus.iynG8_sg.mjs","names":["React.useRef","React.useId","React.useCallback"],"sources":["https:/framerusercontent.com/modules/oxKykaUeLj6J8Qy8DrU4/VprwxIRpE76f8lmsOhpS/GuideLinkFocus.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function withGuideLinkFocus(Component){return /*#__PURE__*/React.forwardRef(function GuideLinkFocus(props,forwardedRef){const root=React.useRef(null);const scopeId=\"rr-guide-focus-\"+React.useId().replace(/:/g,\"\");const setRef=React.useCallback(node=>{root.current=node;if(typeof forwardedRef===\"function\")forwardedRef(node);else if(forwardedRef)forwardedRef.current=node;},[forwardedRef]);React.useEffect(()=>{const element=root.current;if(!element||typeof window===\"undefined\"||typeof document===\"undefined\")return;element.setAttribute(\"data-rr-guide-focus-scope\",scopeId);const styleEl=document.createElement(\"style\");styleEl.setAttribute(\"data-rr-guide-focus-style\",scopeId);styleEl.textContent=`\n[data-rr-guide-focus-scope=\"${scopeId}\"] a:focus-visible,\n[data-rr-guide-focus-scope=\"${scopeId}\"] button:focus-visible,\n[data-rr-guide-focus-scope=\"${scopeId}\"] [tabindex]:focus-visible {\n    outline: 3px solid rgb(0,111,159) !important;\n    outline-offset: 3px !important;\n    box-shadow: inset 0 0 0 3px rgb(0,111,159) !important;\n    text-decoration-line: underline !important;\n}\n`;document.head.appendChild(styleEl);return()=>{styleEl.remove();element.removeAttribute(\"data-rr-guide-focus-scope\");};},[scopeId]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGuideLinkFocus\":{\"type\":\"reactHoc\",\"name\":\"withGuideLinkFocus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideLinkFocus.map"],"mappings":"uJAAuE,SAAgB,EAAmB,EAAU,CAAC,OAAoB,EAAiB,SAAwB,EAAM,EAAa,CAAC,IAAM,EAAKA,EAAa,IAAI,EAAQ,EAAQ,kBAAkBC,EAAY,CAAC,CAAC,QAAQ,KAAK,EAAE,EAAQ,EAAOC,EAAkB,GAAM,CAAC,EAAK,QAAQ,EAAQ,OAAO,GAAe,WAAW,EAAa,CAAI,EAAU,IAAa,EAAa,QAAQ,EAAK,EAAE,CAAC,CAAY,CAAC,EAS5U,OAT8U,MAAoB,CAAC,IAAM,EAAQ,EAAK,QAAQ,GAAG,CAAC,GAAgB,IAAS,QAAa,OAAO,SAAW,IAAY,OAAO,EAAQ,aAAa,4BAA4B,CAAO,EAAE,IAAM,EAAQ,SAAS,cAAc,OAAO,EASnpB,OATqpB,EAAQ,aAAa,4BAA4B,CAAO,EAAE,EAAQ,YAAY;8BAC1uB,EAAQ;8BACR,EAAQ;8BACR,EAAQ;;;;;;EAMpC,SAAS,KAAK,YAAY,CAAO,MAAY,CAAC,EAAQ,OAAO,EAAE,EAAQ,gBAAgB,2BAA2B,CAAE,CAAE,EAAE,CAAC,CAAO,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,CAAM,CAAC,CAAE,CAAC,CAAE,qBATxJ,IAA4B"}