{"version":3,"file":"TextHighlight.CAPJTrKA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/VGZ7K6C3iQ4xu7JnZksL/HNMnVMcWKI40EP26vepi/TextHighlight.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: #032dff; /* 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=./TextHighlight.map"],"mappings":"2JAAwH,SAAgB,EAAwB,EAAU,CAAC,MAAO,KAAQ,MAAc,CACxM,GAAG,CAAC,SAAS,eAAe,EAAiB,CAAC,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,EAAiB,EAAM,YAAY;;;;;;;;kBAQrH,SAAS,KAAK,YAAY,EAAM,GAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,qBAT7D,IAA6B,CAAM,EAAiB"}