{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/N5Df6ciNsMiQ9uneJ31l/DuwAeCWjJ6Xr1FdIXcxa/Highlight.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function TextSelectionOverride(props){useEffect(()=>{// Define the custom CSS for text selection\nconst style=document.createElement(\"style\");style.innerHTML=`\n            ::selection {\n                background: ${props.selectionColor||\"yellow\"}; /* Default selection color */\n                color: ${props.textColor||\"black\"}; /* Default text color */\n            }\n        `;// Append the style to the document head\ndocument.head.appendChild(style);// Clean up the effect by removing the style when the component is unmounted\nreturn()=>{document.head.removeChild(style);};},[props.selectionColor,props.textColor]);return /*#__PURE__*/_jsx(Frame,{background:\"transparent\",...props,children:props.children});}// Add property controls to make props editable in Framer\naddPropertyControls(TextSelectionOverride,{selectionColor:{title:\"Selection Color\",type:ControlType.Color,defaultValue:\"yellow\"},textColor:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"black\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"TextSelectionOverride\":{\"type\":\"reactComponent\",\"name\":\"TextSelectionOverride\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Highlight.map"],
  "mappings": "uEAAyI,SAASA,EAAsBC,EAAM,CAAC,OAAAC,EAAU,IAAI,CAC7L,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,OAAAA,EAAM,UAAU;AAAA;AAAA,8BAE9BF,EAAM,gBAAgB;AAAA,yBAC3BA,EAAM,WAAW;AAAA;AAAA,UAG1C,SAAS,KAAK,YAAYE,CAAK,EACzB,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAK,CAAE,CAAE,EAAE,CAACF,EAAM,eAAeA,EAAM,SAAS,CAAC,EAAsBG,EAAKC,EAAM,CAAC,WAAW,cAAc,GAAGJ,EAAM,SAASA,EAAM,QAAQ,CAAC,CAAE,CACpLK,EAAoBN,EAAsB,CAAC,eAAe,CAAC,MAAM,kBAAkB,KAAKO,EAAY,MAAM,aAAa,QAAQ,EAAE,UAAU,CAAC,MAAM,aAAa,KAAKA,EAAY,MAAM,aAAa,OAAO,CAAC,CAAC",
  "names": ["TextSelectionOverride", "props", "ue", "style", "p", "Frame", "addPropertyControls", "ControlType"]
}
