{"version":3,"file":"EventSectionNavStyle.ZzotUp86.mjs","names":["useRef","__esmMin","init_ssg_sandbox_shims","window","de","init_jsx_runtime","J","c","init_npm_react_18_3_1","ce","assignRef","ref","value","ensureScopedStyle","STYLE_ID","style","ROOT_MARKER_ATTR","withEventSectionNav","localRef","element","Component","props","init_EventSectionNavStyle"],"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":"A,8IAA6L,SAASU,EAAU,EAAI,EAAM,CAAKC,IAAc,OAAOA,GAAM,WAAYA,EAAIC,CAAK,EAAU,EAAI,QAAQA,EAAM,CAAC,SAASC,GAAmB,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAeC,CAAQ,EAAE,OAAO,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAGD,EAAS,EAAM,YAAY;GAC1eE,EAAiB;;;;GAIjBA,EAAiB;GACjBA,EAAiB;;;;;GAKjBA,EAAiB;;;;;EAKlB,SAAS,KAAK,YAAYD,CAAK,CAAE,CAAC,SAAgBE,EAAoB,EAAU,CAAC,MAAoB,gBAAW,SAA6B,EAAM,EAAI,CAAC,IAAMC,EAASlB,EAAO,IAAI,EAAuU,OAArUS,MAAc,CAAC,GAAUN,IAAS,QAAa,OAAO,SAAW,IAAY,OAAOU,EAAkB,EAAE,IAAMM,EAAQD,EAAS,QAAQ,GAAIC,EAAyD,OAA1CA,EAAQ,aAAaH,EAAiB,EAAE,MAAY,CAACG,EAAQ,gBAAgBH,CAAgB,CAAE,CAAE,EAAE,CAAC,CAAC,EAA0F,gBAAKI,EAAU,CAAC,IAA1F,GAAO,CAAC,EAAS,QAAQR,EAAMF,EAAUC,EAAIC,CAAK,CAAE,EAAkD,GAAGS,CAAK,CAAC,CAAE,CAAC,CAAE,C,kDAhBzd,EAAiB,8BAAoC,EAAS,8B"}