{"version":3,"file":"Color.Bo7jXzgO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qTx8OYW6fpa1lPuSykLV/BrGWgEw2QgTWb1bpXy7B/Color.js"],"sourcesContent":["// Welcome to Template by Dee S. (https://dees.lemonsqueezy.com/)\n// Follow https://twitter.com/deespnr\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ColorsSelection(props){useEffect(()=>{if(props.enableSelection){const styleId=\"selection-styles\";const existingStyle=document.getElementById(styleId);if(existingStyle){existingStyle.remove();}const style=document.createElement(\"style\");style.id=styleId;style.innerHTML=`\n        ::selection { \n          background: ${props.selectionBackgroundColor};\n          color: ${props.selectionTextColor};\n        }\n        ::-moz-selection { \n          background: ${props.selectionBackgroundColor};\n          color: ${props.selectionTextColor};\n        }`;document.head.appendChild(style);}else{const style=document.getElementById(\"selection-styles\");if(style){style.remove();}}},[props.enableSelection,props.selectionBackgroundColor,props.selectionTextColor]);return /*#__PURE__*/_jsx(\"div\",{});}ColorsSelection.displayName=\"Selection colors\";addPropertyControls(ColorsSelection,{enableSelection:{title:\"Selection\",type:ControlType.Boolean,defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Use to change the colour of selected text and background\"},selectionBackgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#000\",hidden(props){return!props.enableSelection;}},selectionTextColor:{title:\"Text color\",type:ControlType.Color,defaultValue:\"#fff\",hidden(props){return!props.enableSelection;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ColorsSelection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Color.map"],"mappings":"0KAE4H,SAAwB,EAAgB,EAAM,CAQ8C,OAR7C,MAAc,CAAC,GAAG,EAAM,gBAAgB,CAAC,IAAM,EAAQ,mBAAyB,EAAc,SAAS,eAAe,EAAQ,CAAI,GAAe,EAAc,QAAQ,CAAE,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,EAAQ,EAAM,UAAU;;wBAEzY,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;;;wBAGpB,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;WACjC,SAAS,KAAK,YAAY,EAAM,KAAM,CAAC,IAAM,EAAM,SAAS,eAAe,mBAAmB,CAAI,GAAO,EAAM,QAAQ,GAAK,CAAC,EAAM,gBAAgB,EAAM,yBAAyB,EAAM,mBAAmB,CAAC,CAAqB,EAAK,MAAM,EAAE,CAAC,kBAR/M,IAA6B,IAAoD,CAQgI,EAAgB,YAAY,mBAAmB,EAAoB,EAAgB,CAAC,gBAAgB,CAAC,MAAM,YAAY,KAAK,EAAY,QAAQ,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY,2DAA2D,CAAC,yBAAyB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAAC,EAAM,iBAAkB,CAAC,mBAAmB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAAC,EAAM,iBAAkB,CAAC,CAAC"}