{"version":3,"file":"Text_highlight.R9qtppCD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/7IxaiI0I8dy1HX0Y13Lw/gn98nbmnwSKz2g9fb9Cr/Text_highlight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const textColor=\"#FFFFFF\"//set the text color here\n;const backgroundColor=\"#737373\"//set the background color here\n;import{useEffect}from\"react\";export function textHighlighter(Component){return props=>{useEffect(()=>{const styleTag=document.createElement(\"style\");styleTag.innerHTML=`\n                ::selection {\n                    color: ${textColor};\n                    background: ${backgroundColor};\n                }\n            `;document.head.appendChild(styleTag);return()=>{document.head.removeChild(styleTag);};},[textColor,backgroundColor]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"textHighlighter\":{\"type\":\"reactHoc\",\"name\":\"textHighlighter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_highlight.map"],"mappings":"2JAE8B,SAAgB,EAAgB,EAAU,CAAC,MAAO,CAAA,IAAQ,EAAU,IAAI,CAAC,IAAM,EAAS,SAAS,cAAc,QAAQ,CAKnG,OALoG,EAAS,WAAW;;6BAE7I,EAAU;kCACL,EAAgB;;cAEpC,SAAS,KAAK,YAAY,EAAS,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAS,AAAE,CAAE,EAAC,CAAC,EAAU,CAAgB,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAI,kBAN7K,AADP,GAA2C,CAE1C,GAA6B,CAFmB,EAAU,UACpD,EAAgB"}