{"version":3,"file":"EventSectionNavStyle.Dj7zBkls.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ObOnMjXcHR4y1AggciUm/Doifr7NLKr8lRRSCYqDS/EventSectionNavStyle.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";const ROOT_MARKER_ATTR=\"data-apex-event-section-nav\";const STYLE_ID=\"apex-event-section-nav-style\";function assignRef(ref,value){if(!ref)return;if(typeof ref===\"function\"){ref(value);return;}ref.current=value;}function ensureScopedStyle(){if(typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=`\n[${ROOT_MARKER_ATTR}] a {\n  color: #193074;\n  transition: color 150ms ease;\n}\n[${ROOT_MARKER_ATTR}] a:hover,\n[${ROOT_MARKER_ATTR}] a:focus-visible {\n  color: #E0303D;\n  text-decoration: underline;\n  text-underline-offset: 4px;\n}\n[${ROOT_MARKER_ATTR}] a:focus-visible {\n  outline: 2px solid #193074;\n  outline-offset: 4px;\n  border-radius: 2px;\n}\n`;document.head.appendChild(style);}export function withEventSectionNav(Component){return /*#__PURE__*/forwardRef(function WithEventSectionNav(props,ref){const localRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;ensureScopedStyle();const element=localRef.current;if(!element)return;element.setAttribute(ROOT_MARKER_ATTR,\"\");return()=>{element.removeAttribute(ROOT_MARKER_ATTR);};},[]);const setRefs=value=>{localRef.current=value;assignRef(ref,value);};return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withEventSectionNav\":{\"type\":\"reactHoc\",\"name\":\"withEventSectionNav\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EventSectionNavStyle.map"],"mappings":"8IAA6L,SAAS,EAAU,EAAI,EAAM,CAAK,KAAW,IAAG,OAAO,GAAM,WAAW,CAAC,EAAI,CAAK,EAAE,MAAO,CAAC,EAAI,QAAQ,CAAb,CAAmB,CAAC,SAAS,GAAmB,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAe,CAAQ,EAAE,OAAO,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAS,EAAM,YAAY;GAC1e,EAAiB;;;;GAIjB,EAAiB;GACjB,EAAiB;;;;;GAKjB,EAAiB;;;;;EAKlB,SAAS,KAAK,YAAY,CAAK,CAAE,CAAC,SAAgB,EAAoB,EAAU,CAAC,OAAoB,EAAW,SAA6B,EAAM,EAAI,CAAC,IAAM,EAASA,EAAO,IAAI,EAAuU,OAArU,MAAc,CAAC,GAAU,IAAS,QAAa,OAAO,SAAW,IAAY,OAAO,EAAkB,EAAE,IAAM,EAAQ,EAAS,QAAY,KAAyD,OAA1C,EAAQ,aAAa,EAAiB,EAAE,MAAY,CAAC,EAAQ,gBAAgB,CAAgB,CAAE,CAAE,EAAE,CAAC,CAAC,EAA0F,EAAK,EAAU,CAAC,IAA1F,GAAO,CAAC,EAAS,QAAQ,EAAM,EAAU,EAAI,CAAK,CAAE,EAAkD,GAAG,CAAK,CAAC,CAAE,CAAC,CAAE,yBAhB/gB,IAA+C,EAAO,EAAiB,8BAAoC,EAAS"}