{"version":3,"file":"SelectionColor.Co9NRANC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/DLK8r3hOzegGRVgGX5sF/qhvCpeVSn5pm0OEilfWo/SelectionColor.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useNavCursorFix}from\"https://framerusercontent.com/modules/vSl3joqPltZbvjc6UUpQ/s36y9WN0iq6gjUf1fwRo/CursorFlickerFix.js\";export default function SelectionColor(props){const{backgroundColor,textColor}=props;useNavCursorFix();useEffect(()=>{const id=\"custom-selection-color\";let style=document.getElementById(id);if(!style){style=document.createElement(\"style\");style.id=id;document.head.appendChild(style);}style.innerHTML=`\n            ::selection {\n                background: ${backgroundColor};\n                color: ${textColor};\n            }\n\n            ::-moz-selection {\n                background: ${backgroundColor};\n                color: ${textColor};\n            }\n        `;return()=>{style?.remove();};},[backgroundColor,textColor]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}SelectionColor.defaultProps={backgroundColor:\"#3043E3\",textColor:\"#FFFFFF\"};addPropertyControls(SelectionColor,{backgroundColor:{type:ControlType.Color,title:\"Select BG\",defaultValue:\"#3043E3\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SelectionColor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qOAA6P,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,kBAAgB,aAAW,EAUtQ,OAV4Q,EAAgB,EAAE,MAAc,CAAC,IAAM,EAAG,yBAA6B,EAAM,SAAS,eAAe,CAAE,EAU/a,OAVqb,IAAO,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAG,SAAS,KAAK,YAAY,CAAK,GAAG,EAAM,UAAU;;8BAE5gB,EAAgB;yBACrB,EAAU;;;;8BAIL,EAAgB;yBACrB,EAAU;;cAEf,CAAC,GAAO,OAAO,CAAE,CAAE,EAAE,CAAC,EAAgB,CAAS,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAE,iBAVrF,IAA6B,IAAoD,IAAiI,EAU5H,EAAe,aAAa,CAAC,gBAAgB,UAAU,UAAU,SAAS,EAAE,EAAoB,EAAe,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,SAAS,EAAE,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,CAAC,CAAC"}