{"version":3,"file":"Color.DTYtmPEl.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":"2KAE4H,SAAwB,EAAgB,EAAM,CAQ8C,OAR7C,MAAc,CAAC,GAAG,EAAM,gBAAgB,CAAC,IAAM,EAAQ,mBAAyB,EAAc,SAAS,eAAe,CAAO,EAAK,GAAe,EAAc,OAAO,EAAG,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAQ,EAAM,UAAU;;wBAEzY,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;;;wBAGpB,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;WACjC,SAAS,KAAK,YAAY,CAAK,CAAE,KAAK,CAAC,IAAM,EAAM,SAAS,eAAe,kBAAkB,EAAK,GAAO,EAAM,OAAO,CAAG,CAAC,EAAE,CAAC,EAAM,gBAAgB,EAAM,yBAAyB,EAAM,kBAAkB,CAAC,EAAsB,EAAK,MAAM,CAAC,CAAC,CAAE,iBARjN,IAA6B,IAAoD,EAQiI,EAAgB,YAAY,mBAAmB,EAAoB,EAAgB,CAAC,gBAAgB,CAAC,MAAM,YAAY,KAAK,EAAY,QAAQ,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY,0DAA0D,EAAE,yBAAyB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAAC,EAAM,eAAgB,CAAC,EAAE,mBAAmB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAAC,EAAM,eAAgB,CAAC,CAAC,CAAC"}