{"version":3,"file":"Text_Highlight.Ch1OmTCS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vjqMB3Psu7sDWRLH4nmr/YZRYvscDHVm5Nj0U3XSn/Text_Highlight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withCustomTextSelection(Component){return props=>{useEffect(()=>{// Création et injection du style personnalisé pour la sélection de texte\nconst style=document.createElement(\"style\");style.textContent=`\n                ::selection {\n                    background-color: #DFFF6C; /* Couleur de surlignage personnalis\\xe9e */\n                    color: #141414; /* Couleur du texte s\\xe9lectionn\\xe9 */\n                    font-size: inherit;\n                    line-height: inherit;\n                    font-weight: inherit;\n                }\n            `;document.head.appendChild(style);// Nettoyage du style lors du démontage du composant\nreturn()=>{document.head.removeChild(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":"kHAAwE,SAAgB,EAAwB,EAAU,CAAC,MAAO,KAAQ,MAAc,CACxJ,IAAM,EAAM,SAAS,cAAc,QAAQ,CAS3C,MAT4C,GAAM,YAAY;;;;;;;;cAQhD,SAAS,KAAK,YAAY,EAAM,KACpC,CAAC,SAAS,KAAK,YAAY,EAAM,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,mBAVvD,IAA6B"}