{"version":3,"file":"Superscript_Font_Size.3aHT61Vi.mjs","names":["useRef","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/NvNK4ALJHftfIE9AfrOr/bpvROKMP0FHuCIZJxlph/Superscript_Font_Size.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function SuperscriptOverride(){const ref=useRef(null);useEffect(()=>{if(!ref.current)return;const applySuperscript=()=>{const spans=ref.current.querySelectorAll(\"span\");spans.forEach(span=>{const text=span.innerHTML.trim();// Look for citation numbers (¹²³⁴...) at the end of the span\nconst match=text.match(/(.*?)([¹²³⁴-⁹])$/);if(match){const updatedText=`${match[1]}<span style=\"font-size: 70%; position: relative; top: -0.4em;\">${match[2]}</span>`;span.innerHTML=updatedText;}});};// Apply on initial render\napplySuperscript();// Observe future text changes in Framer\nconst observer=new MutationObserver(()=>applySuperscript());observer.observe(ref.current,{childList:true,subtree:true});return()=>observer.disconnect()// Cleanup observer\n;},[]);return{ref};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withSuperscriptOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...SuperscriptOverride(props)});};}withSuperscriptOverride.displayName=\"SuperscriptOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"withSuperscriptOverride\":{\"type\":\"reactHoc\",\"name\":\"withSuperscriptOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SuperscriptOverride\":{\"type\":\"override\",\"name\":\"SuperscriptOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superscript_Font_Size.map"],"mappings":"uKAA+E,SAAgB,GAAqB,CAAC,IAAM,EAAIA,EAAO,KAAK,CAIpI,OAJqI,MAAc,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,MAAqB,CAAa,EAAI,QAAQ,iBAAiB,OAAO,CAAO,QAAQ,GAAM,CACnR,IAAM,EADyR,EAAK,UAAU,MAAM,CACnS,MAAM,mBAAmB,CAAI,IAAwH,EAAK,UAApG,GAAG,EAAM,GAAG,iEAAiE,EAAM,GAAG,WAAuC,EACpM,GAAkB,CAClB,IAAM,EAAS,IAAI,qBAAqB,GAAkB,CAAC,CAA6D,OAA5D,EAAS,QAAQ,EAAI,QAAQ,CAAC,UAAU,GAAK,QAAQ,GAAK,CAAC,KAAW,EAAS,YAAY,EACpJ,EAAE,CAAC,CAAO,CAAC,MAAI,CAAqJ,SAAgB,EAAwB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,CAAC,CAAC,mBAJrT,IAAoC,IAIwF,CAA6L,EAAwB,YAAY"}