{"version":3,"file":"Text_highlight.B3p8IfBl.mjs","names":["__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","withCustomTextSelection","selectionStyleId","style","Component","props","init_Text_highlight"],"sources":["https:/framerusercontent.com/modules/OJKnpL3aYMypxbPvSLsQ/FCrfpzPN6mqdP4Es1u23/Text_highlight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";const selectionStyleId=\"custom-selection-style\";export function withCustomTextSelection(Component){return props=>{useEffect(()=>{// Check if the style element already exists to avoid redundant injections\nif(!document.getElementById(selectionStyleId)){const style=document.createElement(\"style\");style.id=selectionStyleId;style.textContent=`\n                    ::selection {\n                        background-color: #918D78; /* Custom highlight color */\n                        color: #FFFFFF;\n                        font-size: inherit;\n                        line-height: inherit;\n                        font-weight: inherit;\n                    }\n                `;document.head.appendChild(style);}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCustomTextSelection\":{\"type\":\"reactHoc\",\"name\":\"withCustomTextSelection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_highlight.map"],"mappings":"A,kHAAwH,SAAgBK,EAAwB,EAAU,CAAC,MAAO,KAAQH,MAAc,CACxM,GAAG,CAAC,SAAS,eAAeI,CAAgB,EAAE,CAAC,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAGD,EAAiB,EAAM,YAAY;;;;;;;;kBAQrH,SAAS,KAAK,YAAYC,CAAK,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsB,gBAAKC,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI,C,4CAT7B,EAAiB,wB"}