{"version":3,"file":"Linear.BXTaPNpW.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/ha2vwaWGx2dyGltjEsHR/N6Z8HD1dDI4UjzVcS506/Linear.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withGradientHighlight(Component){return props=>{const applyGradient=element=>{// Vérifiez si le dégradé est déjà appliqué pour éviter les doublons\nif(!element.querySelector(\"span.gradient-applied\")){element.style.removeProperty(\"--framer-text-decoration\");const markElement=document.createElement(\"mark\");const spanElement=document.createElement(\"span\");spanElement.className=\"gradient-applied\";while(element.firstChild){spanElement.appendChild(element.firstChild);}element.appendChild(spanElement);markElement.appendChild(element.cloneNode(true));element.replaceWith(markElement);}};useEffect(()=>{// Appliquez le dégradé à tous les éléments soulignés\nconst elements=document.querySelectorAll(`.${props.className} [style*=\"--framer-text-decoration: underline\"]`);elements.forEach(element=>applyGradient(element));// Observer les changements dans le DOM\nconst mutationObserver=new MutationObserver(()=>{const newElements=document.querySelectorAll(`.${props.className} [style*=\"--framer-text-decoration: underline\"]`);newElements.forEach(element=>applyGradient(element));});mutationObserver.observe(document.body,{childList:true,subtree:true});return()=>{mutationObserver.disconnect();};},[props.className]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} [style*=\"--framer-text-decoration: underline\"] {\n                        visibility: hidden; /* Cache les \\xe9l\\xe9ments jusqu'\\xe0 ce que le d\\xe9grad\\xe9 soit appliqu\\xe9 */\n                    }\n                    .${props.className} .gradient-applied {\n                        visibility: visible; /* Rend les \\xe9l\\xe9ments visibles une fois le d\\xe9grad\\xe9 appliqu\\xe9 */\n                        background: linear-gradient(90deg, #A89AF5, #482063);\n                        -webkit-background-clip: text;\n                        -webkit-text-fill-color: transparent;\n                    }\n                    .${props.className} mark {\n                        background: transparent;\n                        border-radius: 8px;\n                        display: inline-block;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGradientHighlight\":{\"type\":\"reactHoc\",\"name\":\"withGradientHighlight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Linear.map"],"mappings":"yKAA4G,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAc,GAAS,CACzM,GAAG,CAAC,EAAQ,cAAc,wBAAwB,CAAC,CAAC,EAAQ,MAAM,eAAe,2BAA2B,CAAC,IAAM,EAAY,SAAS,cAAc,OAAO,CAAO,EAAY,SAAS,cAAc,OAAO,CAA0C,IAAzC,EAAY,UAAU,mBAAyB,EAAQ,YAAY,EAAY,YAAY,EAAQ,WAAW,CAAE,EAAQ,YAAY,EAAY,CAAC,EAAY,YAAY,EAAQ,UAAU,GAAK,CAAC,CAAC,EAAQ,YAAY,EAAY,GAEhF,OAFoF,MAAc,CACpb,SAAS,iBAAiB,IAAI,EAAM,UAAU,iDAAiD,CAAU,QAAQ,GAAS,EAAc,EAAQ,CAAC,CAChK,IAAM,EAAiB,IAAI,qBAAqB,CAAmB,SAAS,iBAAiB,IAAI,EAAM,UAAU,iDAAiD,CAAa,QAAQ,GAAS,EAAc,EAAQ,CAAC,EAAG,CAAuE,OAAtE,EAAiB,QAAQ,SAAS,KAAK,CAAC,UAAU,GAAK,QAAQ,GAAK,CAAC,KAAW,CAAC,EAAiB,YAAY,GAAK,CAAC,EAAM,UAAU,CAAC,CAAqB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;uBAC7Z,EAAM,UAAU;;;uBAGhB,EAAM,UAAU;;;;;;uBAMhB,EAAM,UAAU;;;;;kBAKrB,CAAC,CAAc,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,CAAC,mBAlBiB,IAA6B"}